Browse Source

Only lint t/jsx? files

Avoid listing .json files
Guy Carmeli 6 years ago
parent
commit
5f6b02a163
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/test-js.js

+ 1
- 1
scripts/test-js.js View File

14
 run();
14
 run();
15
 
15
 
16
 function run() {
16
 function run() {
17
-  const paths = _.chain(dirs).map((d) => d === 'e2e' ? `${d}/**/*.[tj]s` : `${d}/**/*.[tj]s*`).join(' ').value();
17
+  const paths = _.chain(dirs).map((d) => d === 'e2e' ? `${d}/**/*.[tj]s` : `${d}/**/*.[tj]sx?`).join(' ').value();
18
   exec.execSync(`tslint ${paths} ${fix} --format verbose`);
18
   exec.execSync(`tslint ${paths} ${fix} --format verbose`);
19
   assertAllTsFilesInSrc();
19
   assertAllTsFilesInSrc();
20
   exec.execSync(`jest --coverage`);
20
   exec.execSync(`jest --coverage`);