1
1
module . exports = {
2
2
extends : [ 'plugin:@typescript-eslint/recommended' , 'wix/react-native' , 'plugin:react-hooks/recommended' ] ,
3
3
parser : '@typescript-eslint/parser' ,
4
+ // plugins: ['@typescript-eslint'],
4
5
rules : {
6
+ /* Disabled rules for typescript */
7
+ 'no-dupe-class-members' : 'off' ,
8
+ /* Other Rules */
9
+ 'no-unused-expressions' : 'off' ,
5
10
'arrow-parens' : 'off' ,
6
11
// TODO: remove after migration of legacy lifecycle methods
7
12
camelcase : 'off' ,
@@ -26,17 +31,16 @@ module.exports = {
26
31
"@typescript-eslint/no-var-requires" : 0 ,
27
32
"@typescript-eslint/no-explicit-any" : 0 ,
28
33
"@typescript-eslint/member-delimiter-style" : 0 ,
29
- // "@typescript-eslint/no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}],
30
- "@typescript-eslint/no-unused-vars" : 0 , //todo: uncomment this line and use the the better unused rule above ^
34
+ "@typescript-eslint/no-unused-vars" : [ 2 , { "args" : "all" , "argsIgnorePattern" : "^_" } ] ,
35
+ // "@typescript-eslint/no-unused-vars": 0, //todo: uncomment this line and use the the better unused rule above ^
31
36
"@typescript-eslint/no-non-null-assertion" : 0 ,
32
37
"@typescript-eslint/explicit-member-accessibility" : 0 ,
33
38
"@typescript-eslint/prefer-optional-chain" : "error" ,
34
39
"@typescript-eslint/ban-ts-ignore" : 0 ,
35
40
"@typescript-eslint/no-empty-function" : 0 ,
36
41
"@typescript-eslint/camelcase" : 0 ,
37
42
"@typescript-eslint/indent" : 0
38
- } ,
39
- plugins : [ '@typescript-eslint' ] ,
43
+ }
40
44
} ;
41
45
42
46
// OLD ESlint configuration
0 commit comments