@@ -7,38 +7,47 @@ module.exports = {
7
7
root : true ,
8
8
extends : [
9
9
"eslint:recommended" ,
10
- "plugin:@typescript-eslint/eslint-recommended" ,
11
- "plugin:@typescript-eslint/recommended" ,
12
- "prettier/@typescript-eslint"
10
+ "prettier"
13
11
] ,
14
12
parser : "@typescript-eslint/parser" ,
15
13
parserOptions : {
16
- project : "tsconfig.json"
14
+ project : [
15
+ "tsconfig.json" ,
16
+ "tsconfig.eslint.json"
17
+ ]
17
18
} ,
18
19
plugins : [ "@typescript-eslint" ] ,
19
20
rules : {
20
- "@typescript-eslint/no-floating-promises" : [ "error" , { ignoreVoid : true } ] ,
21
- "@typescript-eslint/interface-name-prefix" : [
21
+ "@typescript-eslint/ban-ts-comment" : "warn" ,
22
+ "@typescript-eslint/camelcase" : "off" ,
23
+ "@typescript-eslint/explicit-function-return-type" : "off" ,
24
+ "@typescript-eslint/naming-convention" : [
22
25
"error" ,
23
- { prefixWithI : "always" }
26
+ {
27
+ "selector" : "interface" ,
28
+ "format" : [ "PascalCase" ] ,
29
+ "custom" : {
30
+ "regex" : "^I[A-Z]" ,
31
+ "match" : true
32
+ }
33
+ }
24
34
] ,
25
- "@typescript-eslint/no-unused-vars" : [ "warn" , { args : "none" } ] ,
26
- "@typescript-eslint/no-use-before-define" : "off" ,
27
- "@typescript-eslint/camelcase" : "off" ,
35
+ "@typescript-eslint/no-empty-interface" : "off" ,
28
36
"@typescript-eslint/no-explicit-any" : "off" ,
29
- "@typescript-eslint/no-non-null-assertion" : "off" ,
37
+ "@typescript-eslint/no-floating-promises" : [ "error" , { ignoreVoid : true } ] ,
38
+ "@typescript-eslint/no-inferrable-types" : "off" ,
30
39
"@typescript-eslint/no-namespace" : "off" ,
31
- "@typescript-eslint/explicit-function-return-type" : "off" ,
32
- "@typescript-eslint/ban-ts-ignore" : "warn" ,
40
+ "@typescript-eslint/no-non-null-assertion" : "off" ,
41
+ "@typescript-eslint/no-unused-vars" : [ "warn" , { args : "none" } ] ,
42
+ "@typescript-eslint/no-use-before-define" : "off" ,
33
43
"@typescript-eslint/no-var-requires" : "off" ,
34
- "@typescript-eslint/no-empty-interface" : "off" ,
35
44
"@typescript-eslint/triple-slash-reference" : "warn" ,
36
- "@typescript-eslint/no-inferrable-types" : "off" ,
45
+ "no-case-declarations" : "warn" ,
46
+ "no-control-regex" : "warn" ,
37
47
"no-inner-declarations" : "off" ,
38
48
"no-prototype-builtins" : "off" ,
39
- "no-control-regex" : "warn" ,
40
49
"no-undef" : "warn" ,
41
- "no-case-declarations " : "warn " ,
50
+ "no-unused-vars " : "off " ,
42
51
"no-useless-escape" : "off" ,
43
52
"prefer-const" : "off"
44
53
}
0 commit comments