Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3c91913

Browse files
committed
fix(ESLint): Support v7 of eslint-config-airbnb-typescript
1 parent f797043 commit 3c91913

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.eslintrc.js

+3
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ module.exports = {
77
'plugin:prettier/recommended',
88
'plugin:jest/recommended',
99
],
10+
parserOptions: {
11+
project: ['./tsconfig.base.json'],
12+
},
1013
};

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@
106106
"lines": 80,
107107
"statements": -10
108108
}
109+
},
110+
"globals": {
111+
"ts-jest": {
112+
"tsConfig": "tsconfig.base.json"
113+
}
109114
}
110115
},
111116
"config": {
@@ -116,7 +121,9 @@
116121
"@pika/pack": {
117122
"pipeline": [
118123
[
119-
"@pika/plugin-ts-standard-pkg"
124+
"@pika/plugin-ts-standard-pkg", {
125+
"tsconfig": "./tsconfig.base.json"
126+
}
120127
],
121128
[
122129
"@pika/plugin-build-node"

tsconfig.json renamed to tsconfig.base.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
"declarationDir": "./build",
1111
"outDir": "./build"
1212
},
13-
"include": ["src/**/*.ts"],
14-
"exclude": ["node_modules/**", "**/__mocks__/**", "**/*.spec.ts"]
13+
"include": ["src/**/*.ts"]
1514
}

tsconfig.prod.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"exclude": ["node_modules/**", "**/__mocks__/**", "**/*.spec.ts"]
4+
}

0 commit comments

Comments
 (0)