Skip to content

Commit b461fd6

Browse files
authoredJul 13, 2023
feat!: use typed checked linting and stylistic config (#247)
1 parent 2968db1 commit b461fd6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed
 

‎typescript.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const eslintConfigTypescript = {
22
extends: [
3-
'plugin:@typescript-eslint/eslint-recommended',
4-
'plugin:@typescript-eslint/recommended',
3+
'eslint:recommended',
4+
'plugin:@typescript-eslint/recommended-type-checked',
5+
'plugin:@typescript-eslint/stylistic-type-checked',
56
],
67
parser: '@typescript-eslint/parser',
78
plugins: ['@typescript-eslint'],
@@ -39,9 +40,7 @@ const eslintConfigTypescript = {
3940
},
4041
],
4142

42-
'@typescript-eslint/no-explicit-any': 'error',
4343
'@typescript-eslint/no-unused-expressions': 'error',
44-
'@typescript-eslint/prefer-optional-chain': 'error',
4544
'@typescript-eslint/prefer-ts-expect-error': 'error',
4645
},
4746
overrides: [
@@ -54,6 +53,10 @@ const eslintConfigTypescript = {
5453
'@typescript-eslint/no-var-requires': 'off',
5554
},
5655
},
56+
{
57+
files: ['*.js'],
58+
extends: ['plugin:@typescript-eslint/disable-type-checked'],
59+
},
5760
],
5861
};
5962

0 commit comments

Comments
 (0)
Please sign in to comment.