1
1
module . exports = {
2
2
env : {
3
- " jest" : true ,
4
- " browser" : false ,
5
- " node" : true ,
6
- " es2020" : true
3
+ ' jest' : true ,
4
+ ' browser' : false ,
5
+ ' node' : true ,
6
+ ' es2020' : true
7
7
} ,
8
- parser : " @typescript-eslint/parser" ,
8
+ parser : ' @typescript-eslint/parser' ,
9
9
extends : [
10
- " plugin:@typescript-eslint/eslint-recommended" ,
11
- " plugin:@typescript-eslint/recommended"
10
+ ' plugin:@typescript-eslint/eslint-recommended' ,
11
+ ' plugin:@typescript-eslint/recommended'
12
12
] ,
13
- plugins : [ " @typescript-eslint" ] ,
13
+ plugins : [ ' @typescript-eslint' ] ,
14
14
rules : {
15
- " no-console" : 0 ,
16
- " semi" : [ " error" , "never" ] ,
17
- " newline-before-return" : 2 ,
18
- " indent" : [ " error" , 2 , { " SwitchCase" : 1 } ] ,
19
- " quotes" : [ " error" , " single" , { " allowTemplateLiterals" : true } ] ,
20
- " object-curly-spacing" : [ " error" , " always" ] ,
21
- " array-bracket-spacing" : [ " error" , " always" , { " singleValue" : false } ] ,
22
- " arrow-body-style" : [ " error" , " as-needed" ] ,
23
- " computed-property-spacing" : [ " error" , " never" ] ,
24
- " no-multiple-empty-lines" : [ " error" , { " max" : 1 , " maxBOF" : 0 } ] ,
25
- " prefer-arrow-callback" : " error" ,
26
- " func-style" : [ " warn" , " expression" ] ,
27
- " no-multi-spaces" : [ " error" , { " ignoreEOLComments" : false } ] ,
28
- " keyword-spacing" : " error" ,
29
- " @typescript-eslint/semi" : [ " error" , "never" ] ,
30
- " @typescript-eslint/indent" : [ " error" , 2 , { " SwitchCase" : 1 } ] ,
31
- " @typescript-eslint/explicit-function-return-type" : [ " error" , { " allowExpressions" : true } ] ,
32
- " @typescript-eslint/member-delimiter-style" : [ " error" , { " multiline" : { " delimiter" : " none" } } ] ,
33
- " @typescript-eslint/interface-name-prefix" : [ " off" ] ,
34
- " @typescript-eslint/camelcase" : [ " off" ] ,
35
- " @typescript-eslint/no-use-before-define" : [ " off" ] ,
36
- " @typescript-eslint/ban-ts-ignore" : [ " off" ] ,
37
- " @typescript-eslint/no-inferrable-types" : [ " off" ] ,
38
- " @typescript-eslint/no-unused-vars" : [ " error" , { " argsIgnorePattern" : "^_" } ] ,
39
- " @typescript-eslint/no-explicit-any" : " error" ,
40
- " @typescript-eslint/explicit-member-accessibility" : " error"
15
+ ' no-console' : 0 ,
16
+ ' semi' : [ ' error' , 'always' ] ,
17
+ ' newline-before-return' : 2 ,
18
+ ' indent' : [ ' error' , 2 , { ' SwitchCase' : 1 } ] ,
19
+ ' quotes' : [ ' error' , ' single' , { ' allowTemplateLiterals' : true } ] ,
20
+ ' object-curly-spacing' : [ ' error' , ' always' ] ,
21
+ ' array-bracket-spacing' : [ ' error' , ' always' , { ' singleValue' : false } ] ,
22
+ ' arrow-body-style' : [ ' error' , ' as-needed' ] ,
23
+ ' computed-property-spacing' : [ ' error' , ' never' ] ,
24
+ ' no-multiple-empty-lines' : [ ' error' , { ' max' : 1 , ' maxBOF' : 0 } ] ,
25
+ ' prefer-arrow-callback' : ' error' ,
26
+ ' func-style' : [ ' warn' , ' expression' ] ,
27
+ ' no-multi-spaces' : [ ' error' , { ' ignoreEOLComments' : false } ] ,
28
+ ' keyword-spacing' : ' error' ,
29
+ ' @typescript-eslint/semi' : [ ' error' , 'always' ] ,
30
+ ' @typescript-eslint/indent' : [ ' error' , 2 , { ' SwitchCase' : 1 } ] ,
31
+ ' @typescript-eslint/explicit-function-return-type' : [ ' error' , { ' allowExpressions' : true } ] ,
32
+ ' @typescript-eslint/member-delimiter-style' : [ ' error' , { ' multiline' : { ' delimiter' : ' none' } } ] ,
33
+ ' @typescript-eslint/interface-name-prefix' : [ ' off' ] ,
34
+ ' @typescript-eslint/camelcase' : [ ' off' ] ,
35
+ ' @typescript-eslint/no-use-before-define' : [ ' off' ] ,
36
+ ' @typescript-eslint/ban-ts-ignore' : [ ' off' ] ,
37
+ ' @typescript-eslint/no-inferrable-types' : [ ' off' ] ,
38
+ ' @typescript-eslint/no-unused-vars' : [ ' error' , { ' argsIgnorePattern' : '^_' } ] ,
39
+ ' @typescript-eslint/no-explicit-any' : ' error' ,
40
+ ' @typescript-eslint/explicit-member-accessibility' : ' error'
41
41
}
42
42
} ;
0 commit comments