Skip to content

Commit 392859b

Browse files
committed
chore: elsint
1 parent 564131f commit 392859b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.eslintrc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ module.exports = {
33
plugins: ['prettier', '@typescript-eslint'],
44
parser: '@typescript-eslint/parser',
55
parserOptions: {
6-
createDefaultProgram: true,
7-
project: './tsconfig.json'
6+
ecmaVersion: 2018,
7+
sourceType: 'module',
8+
parser: '@typescript-eslint/parser',
9+
project: 'tsconfig.eslint.json',
10+
warnOnUnsupportedTypeScriptVersion: false,
11+
tsconfigRootDir: __dirname
812
},
913
rules: {
1014
'prettier/prettier': 'warn',

tsconfig.eslint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
3+
"extends": "./tsconfig.json",
4+
"include": ["**/*", ".eslintrc.js", "app.webpack.config.js"]
5+
}

0 commit comments

Comments
 (0)