-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
190 lines (189 loc) · 5.86 KB
/
.eslintrc
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["@typescript-eslint", "react"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"import/no-unresolved": 0,
"react/jsx-filename-extension": [1, {
"extensions": [
".ts",
".tsx"
]
}],
"no-use-before-define": "off",
"react/prop-types": 0,
"comma-dangle": "off",
"padded-blocks": "off",
"arrow-body-style": "off",
"react-hooks/exhaustive-deps": "warn",
"quotes": ["error", "double"],
"import/no-cycle": 0,
"object-curly-newline": "off",
"func-names": "off",
"no-empty": "off",
"no-lonely-if": "off",
"@typescript-eslint/no-use-before-define": ["off"],
"import/extensions": ["error", "never"],
"no-shadow": "off",
"no-explicit-any": "off",
"@typescript-eslint/no-shadow": ["error"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"array-callback-return": "off",
"no-else-return": "off",
"indent": ["error", 2],
"arrow-parens":["error","as-needed"],
"block-scoped-var":"off",
"no-plusplus":"off",
"no-case-declarations":"off",
"lines-between-class-members":"off",
// ----------------------------------
//TODO: these are temporarily ignored
"no-underscore-dangle": "off",
"no-unused-vars": "off",
"no-console": "off",
"max-len": ["off", { "code": 150, "ignoreUrls": true }],
"eqeqeq": "off",
"no-await-in-loop": "off",
"no-loop-func": "off",
"no-empty-function": "off",
"no-undef-init": "off",
"no-restricted-properties": "off",
"no-prototype-builtins": "off",
"no-unused-expressions": "off",
"import/order": "off",
"import/export": "off",
"one-var": "off",
"operator-linebreak": "off",
"import/no-named-as-default": "off",
"operator-assignment": "off",
"prefer-template": "off",
"consistent-return": "off",
"prefer-const": "off",
"no-bitwise": "off",
"no-undef": "off",
"no-param-reassign": "off",
"spaced-comment": ["off", "always"],
"no-useless-return": "off",
"new-cap": "off",
"class-methods-use-this": "off",
"implicit-arrow-linebreak": "off",
"import/prefer-default-export":"off",
"import/newline-after-import":"off",
"vars-on-top":"off",
"no-redeclare":"off",
"no-var":"off",
"nonblock-statement-body-position":"off",
"camelcase":"off",
"no-fallthrough":"off",
"no-nested-ternary":"off",
"no-async-promise-executor":"off",
"prefer-arrow-callback":"off",
"default-case":"off",
"import/no-useless-path-segments":"off",
"prefer-object-spread":"off",
"no-self-compare":"off",
"strict":"off",
"import/first":"off",
"lines-around-directive":"off",
"no-multiple-empty-lines":"off",
"prefer-rest-params":"off",
"no-dupe-keys":"off",
"no-useless-constructor":"off",
"react-native/no-inline-styles":"off",
"react/no-array-index-key":"off",
"react/default-props-match-prop-types":"off",
"react/destructuring-assignment":"off",
"react/jsx-one-expression-per-line":"off",
"react/jsx-wrap-multilines":"off",
"react/no-unused-prop-types":"off",
"react/require-default-props":"off",
"react/sort-comp":"off",
"react-native/no-raw-tex":"off",
"no-unneeded-ternary":"off",
"react-native/no-color-literals":"off",
"react/static-property-placement":"off",
"react/forbid-prop-types":"off",
"react/self-closing-comp":"off",
"react/jsx-closing-bracket-location":"off",
"react/no-unused-state":"off",
"no-return-assign":"off",
"react/jsx-tag-spacing":"off",
"react/jsx-no-bind":"off",
"global-require":"off",
"react/prefer-stateless-function":"off",
"react/jsx-props-no-spreading":"off",
"react/jsx-curly-brace-presence":"off",
"react/jsx-boolean-value":"off",
"react/jsx-closing-tag-location":"off",
"react/state-in-constructor":"off",
"react/jsx-first-prop-new-line":"off",
"react/jsx-curly-spacing":"off",
"brace-style":"off",
"react/no-string-refs":"off",
"quote-props":"off",
"dot-notation":"off",
"react/jsx-fragments":"off",
"react/jsx-max-props-per-line":"off",
"import/named":"off",
"yoda":"off",
"guard-for-in":"off",
"no-unreachable":"off",
"no-useless-escape":"off",
"prefer-promise-reject-errors":"off",
"react-native/split-platform-components":"off",
"radix":"off",
"import/no-named-default":"off",
"no-restricted-syntax":"off",
"no-tabs":"off",
"no-dupe-class-members":"off",
"react/jsx-props-no-multi-spaces":"off",
"no-lone-blocks":"off",
"no-useless-concat":"off",
"react/prefer-es6-class":"off",
"no-irregular-whitespace":"off",
"react/jsx-no-duplicate-props":"off",
"react/jsx-no-undef":"off",
"no-multi-assign":"off",
"no-void":"off",
"react/no-redundant-should-component-update":"off",
"react/no-children-prop":"off",
"react/no-this-in-sfc":"off",
"no-restricted-globals":"off",
"no-mixed-operators":"off",
"prefer-destructuring":"off",
"react/no-unescaped-entities":"off",
"import/no-duplicates":"off",
"no-continue":"off",
"prefer-spread":"off",
"import/no-extraneous-dependencies":"off",
"react/jsx-indent-props":["off",2],
"no-constant-condition":"off",
"react/no-deprecated":"off",
"no-floating-decima":"off",
"react/jsx-indent":"off",
"function-paren-newline":"off",
"react/no-access-state-in-setstate":"off",
"react-native/no-unused-styles":["off","skip"],
"react-native/no-single-element-style-arrays":"off",
"array-bracket-spacing":"off"
}
}