<NME> lint-staged.config.js
<BEF> function mapFilenames(filenames) {
    return filenames.map(filename => `"${filename}"`).join(' ');
}

module.exports = {
    '*': () => [
        'npm run build',
        'npm run test',
    ],
    '*.ts': (filenames) => [
    '*.ts': (filenames) => [
        `eslint --fix --cache ${mapFilenames(filenames)}`,
    ],
};

<MSG> Prevent double build on commit

<DFF> @@ -4,7 +4,6 @@ function mapFilenames(filenames) {
 
 module.exports = {
     '*': () => [
-        'npm run build',
         'npm run test',
     ],
     '*.ts': (filenames) => [

Prevent double build on commit