Skip to content

Commit 33c0a83

Browse files
committed
build: use standalone tsconfig for eslint
1 parent 5026d5c commit 33c0a83

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
files: ['*.ts', '*.vue'],
77
extends: 'vuepress-typescript',
88
parserOptions: {
9-
project: ['docs/tsconfig.json', 'packages/**/tsconfig.json'],
9+
project: ['tsconfig.eslint.json'],
1010
},
1111
rules: {
1212
'@typescript-eslint/ban-ts-comment': 'off',

docs/tsconfig.json

-4
This file was deleted.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"docs:clean": "rimraf docs/.vuepress/.temp docs/.vuepress/.cache docs/.vuepress/dist",
1616
"docs:dev": "vuepress dev docs --clean-cache",
1717
"docs:serve": "anywhere -h localhost -d docs/.vuepress/dist",
18-
"lint": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" eslint --ext .js,.ts,.vue .",
18+
"lint": "eslint --ext .js,.ts,.vue .",
1919
"release": "yarn lint && yarn clean && yarn copy && yarn build && yarn test && lerna publish prerelease --dist-tag next",
2020
"test": "jest --runInBand"
2121
},
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"lint-staged": {
29-
"*.{js,ts,vue}": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" eslint --fix",
29+
"*.{js,ts,vue}": "eslint --fix",
3030
"*.{json,yml,css,scss}": "prettier --write",
3131
"package.json": "sort-package-json"
3232
},

packages/@vuepress/cli/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "../../../tsconfig.base.json",
3-
"include": ["./src", "./__tests__", "./__tests__/**/.vuepress/**/*"]
3+
"include": ["./src", "./__tests__"]
44
}

tsconfig.eslint.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"include": ["**/.vuepress/**/*", "packages/**/*"],
4+
"exclude": ["node_modules", ".temp", "lib", "dist"]
5+
}

0 commit comments

Comments
 (0)