-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
141 lines (141 loc) · 3.62 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"env": {
"es2021": true,
"node": true,
"react-native/react-native": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-redux/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended",
"plugin:jest/style"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"react",
"react-native",
"react-redux",
"@typescript-eslint",
"jest",
"unused-imports"
],
"settings": {
"import/extensions": [
".js",
".jsx",
".ts",
".tsx"
],
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx"
]
}
}
},
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx",
".tsx"
]
}
],
// "func-style": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"unused-imports/no-unused-imports": "error",
"react/prop-types": "off",
"react-redux/mapStateToProps-no-store": "off",
"react-redux/prefer-separate-component-file": "off",
"react-redux/connect-prefer-named-arguments": "off",
"react/no-unused-prop-types": "off",
"react/destructuring-assignment": "off",
"no-nested-ternary": "off",
"class-methods-use-this": "off",
"array-callback-return": "off",
"camelcase": "off",
"no-promise-executor-return": "off",
"react/no-access-state-in-setstate": "off",
"react/static-property-placement": "off",
"no-unused-expressions": "off",
"react/no-unescaped-entities": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"prefer-destructuring": "off",
"no-plusplus": "off",
"no-shadow": "off",
"@typescript-eslint/no-empty-function": "off",
"no-underscore-dangle": "off",
"react/state-in-constructor": "off",
"no-cond-assign": "off",
"no-await-in-loop": "off",
"react-native/no-unused-styles": "error",
"react-native/no-single-element-style-arrays": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"react-hooks/exhaustive-deps": "off",
"react/jsx-props-no-spreading": "off",
"no-case-declarations": "off",
"default-param-last": "off",
"no-bitwise": "off",
"no-loop-func": "off",
"no-continue": "off",
"import/no-import-module-exports": "off",
"react/no-unstable-nested-components": "off",
"import/no-named-as-default": "off",
"radix": "off",
"@typescript-eslint/no-var-requires": "off",
"global-require": "off",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"import/no-extraneous-dependencies": "off",
"no-use-before-define": "off",
"func-names": "off",
"react/jsx-no-constructed-context-values": "off",
"react/require-default-props": "off"
}
}