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
parent
commit
1b5fb52d36
No known key found for this signature in database GPG Key ID: 6349D071889BD1D5
  1. 4
      package.json
  2. 4
      tsconfig.json

4
package.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",

4
tsconfig.json

@ -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"],
},

Loading…
Cancel
Save