@@ -10,45 +10,52 @@ module.exports = {
10
10
'eslint:recommended' ,
11
11
'plugin:import/errors' ,
12
12
'plugin:import/warnings' ,
13
- 'plugin:import/typescript' ,
14
- 'plugin:@typescript-eslint/recommended' ,
15
13
'plugin:eslint-plugin/all' ,
16
14
'plugin:prettier/recommended' ,
17
15
] ,
18
16
parserOptions : {
19
17
ecmaVersion : 10 ,
20
- project : [ './tsconfig.json' , './tests/tsconfig.json' ] ,
21
18
sourceType : 'module' ,
22
19
} ,
23
20
rules : {
24
21
'no-console' : 'warn' ,
25
-
26
- '@typescript-eslint/explicit-function-return-type' : 'off' ,
27
- '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
28
- '@typescript-eslint/ban-ts-ignore' : 'off' ,
29
- '@typescript-eslint/no-explicit-any' : 'off' ,
30
22
} ,
31
23
overrides : [
32
24
{
33
- files : [ 'tests/**' ] ,
34
- env : {
35
- jest : true ,
36
- } ,
25
+ files : [ '*.ts' , '*.tsx' ] ,
26
+ extends : [ 'plugin:import/typescript' , 'plugin:@typescript-eslint/recommended' ] ,
27
+
37
28
rules : {
38
- 'jest/no-disabled-tests' : 'warn' ,
39
- 'jest/no-focused-tests' : 'error' ,
40
- 'jest/no-alias-methods' : 'error' ,
41
- 'jest/no-identical-title' : 'error' ,
42
- 'jest/no-jasmine-globals' : 'error' ,
43
- 'jest/no-jest-import' : 'error' ,
44
- 'jest/no-test-prefixes' : 'error' ,
45
- 'jest/no-test-callback' : 'error' ,
46
- 'jest/no-test-return-statement' : 'error' ,
47
- 'jest/prefer-to-have-length' : 'warn' ,
48
- 'jest/prefer-spy-on' : 'error' ,
49
- 'jest/valid-expect' : 'error' ,
50
- 'jest/no-test-callback' : 'off' ,
29
+ '@typescript-eslint/explicit-function-return-type' : 'off' ,
30
+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
31
+ '@typescript-eslint/ban-ts-ignore' : 'off' ,
32
+ '@typescript-eslint/no-explicit-any' : 'off' ,
33
+ } ,
34
+
35
+ parserOptions : {
36
+ project : [ './tsconfig.json' , './tests/tsconfig.json' ] ,
51
37
} ,
38
+ overrides : [
39
+ {
40
+ files : [ 'tests/**' ] ,
41
+ env : {
42
+ jest : true ,
43
+ } ,
44
+ rules : {
45
+ 'jest/no-disabled-tests' : 'warn' ,
46
+ 'jest/no-focused-tests' : 'error' ,
47
+ 'jest/no-alias-methods' : 'error' ,
48
+ 'jest/no-identical-title' : 'error' ,
49
+ 'jest/no-jasmine-globals' : 'error' ,
50
+ 'jest/no-test-prefixes' : 'error' ,
51
+ 'jest/no-test-return-statement' : 'error' ,
52
+ 'jest/prefer-to-have-length' : 'warn' ,
53
+ 'jest/prefer-spy-on' : 'error' ,
54
+ 'jest/valid-expect' : 'error' ,
55
+ 'jest/no-test-callback' : 'off' ,
56
+ } ,
57
+ } ,
58
+ ] ,
52
59
} ,
53
60
] ,
54
61
settings : {
@@ -58,5 +65,4 @@ module.exports = {
58
65
} ,
59
66
} ,
60
67
} ,
61
- ignorePatterns : [ '.eslintrc.js' ] ,
62
68
}
0 commit comments