3
3
/** @type {import('eslint').Linter.Config } */
4
4
const config = {
5
5
root : true ,
6
+ reportUnusedDisableDirectives : true ,
7
+ ignorePatterns : [ '**/build' , '**/coverage' , '**/dist' ] ,
6
8
parser : '@typescript-eslint/parser' ,
7
9
plugins : [ '@typescript-eslint' , 'import' ] ,
8
10
extends : [
9
- 'plugin:@typescript- eslint/eslint- recommended' ,
11
+ 'eslint: recommended' ,
10
12
'plugin:@typescript-eslint/recommended' ,
13
+ 'plugin:@typescript-eslint/stylistic' ,
11
14
'plugin:import/recommended' ,
12
15
'plugin:import/typescript' ,
13
16
'prettier' ,
@@ -18,7 +21,7 @@ const config = {
18
21
} ,
19
22
parserOptions : {
20
23
tsconfigRootDir : __dirname ,
21
- project : './tsconfig.json' ,
24
+ project : true ,
22
25
sourceType : 'module' ,
23
26
ecmaVersion : 2020 ,
24
27
} ,
@@ -34,14 +37,17 @@ const config = {
34
37
} ,
35
38
} ,
36
39
rules : {
40
+ '@typescript-eslint/array-type' : 'off' ,
37
41
'@typescript-eslint/ban-types' : 'off' ,
38
42
'@typescript-eslint/ban-ts-comment' : 'off' ,
43
+ '@typescript-eslint/consistent-type-definitions' : 'off' ,
39
44
'@typescript-eslint/consistent-type-imports' : 'error' ,
40
45
'@typescript-eslint/explicit-module-boundary-types' : 'off' ,
41
46
'@typescript-eslint/no-empty-interface' : 'off' ,
42
47
'@typescript-eslint/no-explicit-any' : 'off' ,
43
48
'@typescript-eslint/no-non-null-assertion' : 'off' ,
44
49
'@typescript-eslint/no-unnecessary-condition' : 'error' ,
50
+ '@typescript-eslint/no-unused-vars' : 'off' ,
45
51
'@typescript-eslint/no-inferrable-types' : [
46
52
'error' ,
47
53
{
@@ -52,8 +58,10 @@ const config = {
52
58
'import/no-cycle' : 'error' ,
53
59
'import/no-unresolved' : [ 'error' , { ignore : [ '^@tanstack/' ] } ] ,
54
60
'import/no-unused-modules' : [ 'off' , { unusedExports : true } ] ,
61
+ 'no-async-promise-executor' : 'off' ,
62
+ 'no-empty' : 'off' ,
55
63
'no-redeclare' : 'off' ,
56
- '@typescript-eslint/ no-unused-vars ' : 'off' ,
64
+ 'no-undef ' : 'off' ,
57
65
} ,
58
66
overrides : [
59
67
{
0 commit comments