Browse Source
chore(typescript): ignore JS files when running typescript:check, register env.d.ts, lint TS files
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
pull/11752/head
Maksim Sukharev
2 years ago
No known key found for this signature in database
GPG Key ID: 6349D071889BD1D5
2 changed files with
4 additions and
4 deletions
-
package.json
-
tsconfig.json
|
|
|
@ -14,8 +14,8 @@ |
|
|
|
"test": "jest", |
|
|
|
"test:watch": "jest --watch", |
|
|
|
"test:coverage": "jest --coverage", |
|
|
|
"lint": "eslint --ext .js,.vue src", |
|
|
|
"lint:fix": "eslint --ext .js,.vue src --fix", |
|
|
|
"lint": "eslint --ext .js,.ts,.vue src", |
|
|
|
"lint:fix": "eslint --ext .js,.ts,.vue src --fix", |
|
|
|
"stylelint": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue", |
|
|
|
"stylelint:fix": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue --fix", |
|
|
|
"analyze": "npm run analyze:stats && npm run analyze:serve", |
|
|
|
|
|
|
|
@ -1,11 +1,11 @@ |
|
|
|
{ |
|
|
|
"extends": "@vue/tsconfig/tsconfig.json", |
|
|
|
"include": ["src/**/*.ts"], |
|
|
|
"include": ["src/**/*.ts", "src/env.d.ts"], |
|
|
|
"exclude": ["node_modules", "vendor"], |
|
|
|
"compilerOptions": { |
|
|
|
"outDir": "./js", |
|
|
|
"allowJs": true, |
|
|
|
"checkJs": true, |
|
|
|
"checkJs": false, |
|
|
|
"allowImportingTsExtensions": true, |
|
|
|
"lib": ["ESNext"], |
|
|
|
}, |
|
|
|
|