1
+ module . exports = {
2
+ plugins : [
3
+ 'import' ,
4
+ 'unused-imports' ,
5
+ '@typescript-eslint'
6
+ ] ,
7
+ parser : '@typescript-eslint/parser' ,
8
+ parserOptions : {
9
+ 'ecmaVersion' : 2017 ,
10
+ 'sourceType' : 'module' ,
11
+ 'project' : './tsconfig.json'
12
+ } ,
13
+ rules : {
14
+ 'curly' : [ 'error' , 'all' ] ,
15
+ 'no-extra-label' : 'error' ,
16
+ 'no-unused-labels' : 'error' ,
17
+ 'new-parens' : 'error' ,
18
+ 'no-new-wrappers' : 'error' ,
19
+ 'no-debugger' : 'error' ,
20
+ 'no-duplicate-case' : 'error' ,
21
+ 'no-throw-literal' : 'error' ,
22
+ 'no-return-await' : 'error' ,
23
+ 'no-unsafe-finally' : 'error' ,
24
+ 'no-unused-expressions' : [
25
+ 'error' ,
26
+ {
27
+ 'allowShortCircuit' : true
28
+ }
29
+ ] ,
30
+ 'no-var' : 'error' ,
31
+ 'object-shorthand' : 'error' ,
32
+ 'prefer-arrow-callback' : [
33
+ 'error' ,
34
+ {
35
+ 'allowNamedFunctions' : true
36
+ }
37
+ ] ,
38
+ 'prefer-const' : [
39
+ 'error' ,
40
+ {
41
+ 'destructuring' : 'all'
42
+ }
43
+ ] ,
44
+ 'no-array-constructor' : 'error' ,
45
+ 'import/no-default-export' : 'error' ,
46
+ 'import/no-duplicates' : 'error' ,
47
+ 'unused-imports/no-unused-imports-ts' : 'error' ,
48
+ 'default-case' : 'error' ,
49
+ '@typescript-eslint/no-floating-promises' : 'error'
50
+ }
51
+ } ;
0 commit comments