Skip to content

Commit 9cf9e1e

Browse files
committed
chore(typescript): ignore JS files when running typescript:check, lint TS files
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent dfaf3c1 commit 9cf9e1e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"test": "jest",
1515
"test:watch": "jest --watch",
1616
"test:coverage": "jest --coverage",
17-
"lint": "eslint --ext .js,.vue src",
18-
"lint:fix": "eslint --ext .js,.vue src --fix",
17+
"lint": "eslint --ext .js,.ts,.vue src",
18+
"lint:fix": "eslint --ext .js,.ts,.vue src --fix",
1919
"stylelint": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue",
2020
"stylelint:fix": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue --fix",
2121
"analyze": "npm run analyze:stats && npm run analyze:serve",

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"compilerOptions": {
66
"outDir": "./js",
77
"allowJs": true,
8-
"checkJs": true,
8+
"checkJs": false,
99
"allowImportingTsExtensions": true,
1010
"lib": ["ESNext"],
1111
},

0 commit comments

Comments
 (0)