33/** @type {import('eslint').Linter.Config } */
44const config = {
55 root : true ,
6+ reportUnusedDisableDirectives : true ,
67 parser : '@typescript-eslint/parser' ,
78 plugins : [ '@typescript-eslint' , 'import' ] ,
89 extends : [
9- 'plugin:@typescript- eslint/eslint- recommended' ,
10+ 'eslint: recommended' ,
1011 'plugin:@typescript-eslint/recommended' ,
12+ 'plugin:@typescript-eslint/stylistic' ,
1113 'plugin:import/recommended' ,
1214 'plugin:import/typescript' ,
1315 'prettier' ,
@@ -18,7 +20,7 @@ const config = {
1820 } ,
1921 parserOptions : {
2022 tsconfigRootDir : __dirname ,
21- project : './tsconfig.json' ,
23+ project : true ,
2224 sourceType : 'module' ,
2325 ecmaVersion : 2020 ,
2426 } ,
@@ -34,9 +36,14 @@ const config = {
3436 } ,
3537 } ,
3638 rules : {
39+ '@typescript-eslint/array-type' : 'off' ,
3740 '@typescript-eslint/ban-types' : 'off' ,
3841 '@typescript-eslint/ban-ts-comment' : 'off' ,
39- '@typescript-eslint/consistent-type-imports' : 'error' ,
42+ '@typescript-eslint/consistent-type-definitions' : 'off' ,
43+ '@typescript-eslint/consistent-type-imports' : [
44+ 'error' ,
45+ { prefer : 'type-imports' } ,
46+ ] ,
4047 '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
4148 '@typescript-eslint/no-empty-interface' : 'off' ,
4249 '@typescript-eslint/no-explicit-any' : 'off' ,
@@ -76,16 +83,9 @@ const config = {
7683
7784 'no-redeclare' : 'off' ,
7885 'no-shadow' : 'error' ,
86+ 'no-undef' : 'off' ,
7987 'sort-imports' : [ 'error' , { ignoreDeclarationSort : true } ] ,
8088 } ,
81- overrides : [
82- {
83- files : [ '**/*.test.{ts,tsx}' ] ,
84- rules : {
85- '@typescript-eslint/no-unnecessary-condition' : 'off' ,
86- } ,
87- } ,
88- ] ,
8989}
9090
9191module . exports = config
0 commit comments