@@ -25,51 +25,65 @@ module.exports = {
25
25
} ,
26
26
'ecmaVersion' : 2018 ,
27
27
'sourceType' : 'module' ,
28
- // 'project': './tsconfig.json'
28
+ 'project' : './tsconfig.json'
29
29
} ,
30
30
'plugins' : [
31
31
'react' ,
32
- '@typescript-eslint' ,
33
- // 'prettier'
32
+ '@typescript-eslint'
34
33
] ,
35
34
'rules' : {
36
35
'no-undef' : 0 ,
37
- // 'indent': [ 'error', 2 ] ,
38
- 'linebreak-style' : [ 'error' , 'unix' ] ,
39
- 'quotes' : [ 'error' , 'single' ] ,
40
- 'semi' : [ 2 , 'never' ] ,
41
- 'no-unused-vars' : 'off' ,
36
+ 'indent' : 0 ,
37
+ 'linebreak-style' : [ 2 , 'unix' ] ,
38
+ 'quotes' : 0 ,
39
+ 'semi' : 0 ,
40
+ 'no-unused-vars' : 0 ,
42
41
'prefer-spread' : 0 ,
43
42
'prefer-const' : 0 ,
44
43
'switch-colon-spacing' : [ 2 , { 'after' : true , 'before' : true } ] ,
45
44
'default-case' : 2 ,
46
45
'no-spaced-func' : 2 ,
47
46
'no-case-declarations' : 0 ,
47
+ 'space-before-function-paren' : 0 ,
48
+ 'keyword-spacing' : 0 ,
49
+ 'key-spacing' : 2 ,
50
+ 'comma-spacing' : 0 ,
51
+ 'space-before-blocks' : 2 ,
52
+ 'arrow-spacing' : 2 ,
53
+ 'semi-spacing' : 2 ,
54
+ 'no-irregular-whitespace' : 2 ,
55
+
48
56
// react jsx
49
57
'react/display-name' : 0 ,
50
- 'react/jsx-filename-extension' : 'off' ,
51
- 'react/jsx-first-prop-new-line' : 'off' ,
52
- 'react/jsx-indent' : [ 'error' , 2 ] ,
58
+ 'react/jsx-filename-extension' : 0 ,
59
+ 'react/jsx-first-prop-new-line' : 0 ,
60
+ 'react/jsx-indent' : [ 2 , 2 ] ,
53
61
'react/jsx-indent-props' : [ 2 , 2 ] ,
54
62
'react/prop-types' : 0 ,
63
+ 'react/jsx-key' : 2 ,
55
64
56
- // @typescript -eslint
65
+ // @typescript -eslint
66
+ '@typescript-eslint/quotes' : [ 2 , 'single' ] ,
57
67
'@typescript-eslint/indent' : [ 2 , 2 ] ,
58
68
'@typescript-eslint/camelcase' : 0 ,
59
69
'@typescript-eslint/explicit-function-return-type' : 0 ,
60
70
'@typescript-eslint/no-non-null-assertion' : 0 ,
61
71
'@typescript-eslint/no-use-before-define' : 0 ,
62
72
'@typescript-eslint/member-delimiter-style' : 0 ,
63
73
'@typescript-eslint/no-unused-vars' : 0 ,
64
- '@typescript-eslint/no-use-before-define' : 0 ,
65
74
'@typescript-eslint/no-explicit-any' : 0 ,
66
75
'@typescript-eslint/explicit-member-accessibility' : 0 ,
67
76
'@typescript-eslint/no-angle-bracket-type-assertion' : 0 ,
68
77
'@typescript-eslint/interface-name-prefix' : 0 ,
69
78
'@typescript-eslint/no-empty-function' : 1 ,
70
- '@typescript-eslint/semi' : 0 ,
79
+ '@typescript-eslint/semi' : [ 2 , 'never' ] ,
71
80
'@typescript-eslint/no-inferrable-types' : 0 ,
72
81
'@typescript-eslint/no-empty-interface' : 1 ,
73
82
'@typescript-eslint/class-name-casing' : 0 ,
83
+ '@typescript-eslint/explicit-module-boundary-types' : 0 ,
84
+ '@typescript-eslint/space-before-function-paren' : [ 2 ] ,
85
+ '@typescript-eslint/keyword-spacing' : [ 2 , ] ,
86
+ '@typescript-eslint/comma-spacing' : 2 ,
87
+ '@typescript-eslint/type-annotation-spacing' : 2
74
88
}
75
- } ;
89
+ }
0 commit comments