@@ -4,116 +4,19 @@ module.exports = {
4
4
es6 : true
5
5
} ,
6
6
extends : [
7
- 'standard ' , 'standard-jsx'
7
+ '@codingame ' , 'standard-jsx'
8
8
] ,
9
- globals : {
10
- Atomics : 'readonly' ,
11
- SharedArrayBuffer : 'readonly'
12
- } ,
13
- parser : '@typescript-eslint/parser' ,
14
9
parserOptions : {
15
10
ecmaFeatures : {
16
11
jsx : true
17
- } ,
18
- ecmaVersion : 2018 ,
19
- sourceType : 'module' ,
20
- project : './tsconfig.json'
12
+ }
21
13
} ,
22
14
plugins : [
23
15
'react' ,
24
- '@typescript-eslint' ,
25
- 'react-hooks' ,
26
- 'unused-imports'
16
+ 'react-hooks'
27
17
] ,
28
18
rules : {
29
- '@typescript-eslint/member-delimiter-style' : [
30
- 'error' ,
31
- {
32
- multiline : {
33
- delimiter : 'none'
34
- } ,
35
- singleline : {
36
- delimiter : 'comma'
37
- }
38
- }
39
- ] ,
40
- '@typescript-eslint/no-misused-promises' : [
41
- 'error' ,
42
- { checksVoidReturn : false }
43
- ] ,
44
- 'no-unused-vars' : 'off' ,
45
- '@typescript-eslint/no-unused-vars' : [ 'warn' , { ignoreRestSiblings : true } ] ,
46
- 'no-use-before-define' : 'off' ,
47
- '@typescript-eslint/no-use-before-define' : [
48
- 'error' ,
49
- {
50
- functions : false ,
51
- classes : false ,
52
- variables : false
53
- }
54
- ] ,
55
- '@typescript-eslint/no-useless-constructor' : 'error' ,
56
- '@typescript-eslint/type-annotation-spacing' : 'error' ,
57
- 'import/named' : 'off' ,
58
- 'import/namespace' : 'off' ,
59
- 'import/no-unresolved' : 'off' ,
60
- 'import/order' : [
61
- 'warn' ,
62
- {
63
- groups : [ 'unknown' , 'external' , 'internal' , 'builtin' , 'index' , 'sibling' , 'parent' ] ,
64
- 'newlines-between' : 'never'
65
- }
66
- ] ,
67
- 'no-console' : [ 'warn' , { allow : [ 'warn' , 'error' , 'debug' , 'info' ] } ] ,
68
- 'no-useless-constructor' : 'off' ,
69
- 'unused-imports/no-unused-imports' : 'warn' ,
70
- 'no-redeclare' : 'off' ,
71
- '@typescript-eslint/no-redeclare' : [ 'error' ] ,
72
- '@typescript-eslint/no-unnecessary-condition' : 'warn' ,
73
- '@typescript-eslint/explicit-module-boundary-types' : [
74
- 'warn' ,
75
- {
76
- allowArgumentsExplicitlyTypedAsAny : true
77
- }
78
- ] ,
79
- semi : 'off' ,
80
- '@typescript-eslint/semi' : [
81
- 'error' , 'never'
82
- ] ,
83
- 'eslint/no-extra-semi' : 'off' ,
84
- '@typescript-eslint/no-extra-semi' : [
85
- 'warn'
86
- ] ,
87
- '@typescript-eslint/strict-boolean-expressions' : [
88
- 'warn' ,
89
- {
90
- allowString : false ,
91
- allowNumber : false ,
92
- allowNullableObject : false
93
- }
94
- ] ,
95
- '@typescript-eslint/no-explicit-any' : [
96
- 'error' ,
97
- {
98
- ignoreRestArgs : true
99
- }
100
- ] ,
101
- '@typescript-eslint/no-unnecessary-type-assertion' : [ 'error' ] ,
102
- '@typescript-eslint/no-floating-promises' : [
103
- 'error'
104
- ] ,
105
- 'no-void' : [
106
- 'error' ,
107
- {
108
- allowAsStatement : true
109
- }
110
- ] ,
111
- 'react-hooks/exhaustive-deps' : [
112
- 'error' ,
113
- {
114
- additionalHooks : '(useDebouncedCallback)'
115
- }
116
- ] ,
19
+ 'react-hooks/exhaustive-deps' : 'error' ,
117
20
'react-hooks/rules-of-hooks' : 'error'
118
21
}
119
22
}
0 commit comments