-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
206 lines (206 loc) · 5.54 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
{
"env": {
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:flowtype/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"plugins": ["flowtype"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"rules": {
"strict": "off",
"eqeqeq": [2, "allow-null"],
"flowtype/generic-spacing": "off",
"object-shorthand": [1, "always"],
"camelcase": [
2,
{
"properties": "never"
}
],
"no-extra-boolean-cast": [1],
"spaced-comment": [1, "always"],
"no-lonely-if": [1],
"no-new-object": [1],
"no-empty-pattern": [2],
"no-empty": [1],
"no-eval": [2],
"no-nested-ternary": [1],
"no-implied-eval": [2],
"no-labels": [2],
"no-lone-blocks": [2],
"no-native-reassign": [2],
"no-new-func": [2],
"no-redeclare": [2],
"no-self-compare": [2],
"no-sequences": [0],
"no-throw-literal": [0],
"no-unused-expressions": [
1,
{"allowTernary": true, "allowShortCircuit": true}
],
"no-useless-call": [1],
"max-nested-callbacks": [1, 5],
"no-param-reassign": [1, {"props": false}],
"no-catch-shadow": 2,
"no-label-var": 2,
"no-shadow-restricted-names": 2,
"no-undef": 2,
"no-undef-init": 2,
"no-unused-vars": [
1,
{
"vars": "local",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"no-useless-concat": [1],
"no-undefined": 1,
"consistent-return": [1],
"no-console": [0],
"dot-notation": [1],
"no-caller": [1],
"no-extra-bind": [1],
"no-new-wrappers": [1],
"no-octal": [1],
"no-octal-escape": [1],
"no-proto": [1],
"no-script-url": [1],
"no-void": [1],
"no-with": [1],
"radix": [2],
"new-cap": [1, {"capIsNewExceptions": ["Deferred"]}],
"no-unneeded-ternary": [1],
"no-fallthrough": [1],
"no-unreachable": [1],
"no-self-assign": [1],
"no-unexpected-multiline": [1],
"no-inline-comments": [0],
"no-use-before-define": [1],
"no-var": [1],
"no-multi-str": [0],
"consistent-this": [0, "self"],
"linebreak-style": 0,
"prefer-rest-params": [1],
"prefer-const": [
1,
{
"destructuring": "any",
"ignoreReadBeforeAssign": true
}
],
"no-useless-constructor": [2],
"no-iterator": [2],
"no-dupe-class-members": [2],
"constructor-super": [2],
"no-class-assign": [2],
"no-const-assign": [2],
"no-new-symbol": [2],
"no-this-before-super": [2],
"no-useless-computed-key": [2],
"prefer-template": [0],
"arrow-body-style": [0, "as-needed"],
"import/no-unresolved": [2],
"import/named": [2],
"import/namespace": [2],
"import/default": [2],
"import/export": [2],
"import/first": [2],
"import/no-mutable-exports": [2],
"import/no-named-default": [2],
"import/no-named-as-default": [2],
"import/no-named-as-default-member": [2],
"import/no-duplicates": [2],
"import/no-anonymous-default-export": [2],
"import/prefer-default-export": [1],
"import/newline-after-import": [1],
"import/no-deprecated": [1],
"curly": 0,
"max-len": 0,
"no-confusing-arrow": 0,
"no-mixed-operators": 0,
"no-tabs": 0,
"quotes": 0,
"array-bracket-newline": "off",
"array-bracket-spacing": "off",
"array-element-newline": "off",
"arrow-parens": "off",
"arrow-spacing": "off",
"block-spacing": "off",
"brace-style": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "off",
"computed-property-spacing": "off",
"dot-location": "off",
"eol-last": "off",
"func-call-spacing": "off",
"function-paren-newline": "off",
"generator-star": "off",
"generator-star-spacing": "off",
"indent": "off",
"indent-legacy": "off",
"key-spacing": "off",
"keyword-spacing": "off",
"multiline-ternary": "off",
"newline-per-chained-call": "off",
"new-parens": "off",
"no-arrow-condition": "off",
"no-comma-dangle": "off",
"no-extra-parens": "off",
"no-extra-semi": "off",
"no-floating-decimal": "off",
"no-mixed-spaces-and-tabs": "off",
"no-multi-spaces": "off",
"no-multiple-empty-lines": "off",
"no-reserved-keys": "off",
"no-space-before-semi": "off",
"no-spaced-func": "off",
"no-trailing-spaces": "off",
"no-whitespace-before-property": "off",
"no-wrap-func": "off",
"nonblock-statement-body-position": "off",
"object-curly-newline": "off",
"object-curly-spacing": "off",
"object-property-newline": "off",
"one-var-declaration-per-line": "off",
"operator-linebreak": "off",
"padded-blocks": "off",
"quote-props": "off",
"rest-spread-spacing": "off",
"semi": "off",
"semi-spacing": "off",
"semi-style": "off",
"space-after-function-name": "off",
"space-after-keywords": "off",
"space-before-blocks": "off",
"space-before-function-paren": "off",
"space-before-function-parentheses": "off",
"space-before-keywords": "off",
"space-in-brackets": "off",
"space-in-parens": "off",
"space-infix-ops": "off",
"space-return-throw-case": "off",
"space-unary-ops": "off",
"space-unary-word-ops": "off",
"switch-colon-spacing": "off",
"template-curly-spacing": "off",
"template-tag-spacing": "off",
"unicode-bom": "off",
"wrap-iife": "off",
"wrap-regex": "off",
"yield-star-spacing": "off"
}
}