-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
260 lines (248 loc) · 6.05 KB
/
.eslintrc.yml
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
parser: babel-eslint
extends:
- standard
- eslint:recommended
- plugin:node/recommended
- plugin:import/errors
- plugin:import/warnings
- plugin:security/recommended
plugins:
- flowtype
- prettier
- standard
- import
- promise
- json
- html
- markdown
- security
env:
es6: true
node: true
mocha: true
parserOptions:
arrowFunctions: true
binaryLiterals: true
blockBindings: true
classes: true
defaultParams: true
destructuring: true
experimentalObjectRestSpread: true
forOf: true
generators: true
globalReturn: true
jsx: true
modules: true
objectLiteralComputedProperties: true
objectLiteralDuplicateProperties: true
objectLiteralShorthandMethods: true
objectLiteralShorthandProperties: true
octalLiterals: true
regexUFlag: true
regexYFlag: true
restParams: true
spread: true
superInFunctions: true
templateStrings: true
unicodeCodePointEscapes: true
sourceType: module
rules:
prettier/prettier: error
flowtype/space-after-type-colon: off
flowtype/space-before-type-colon: off
flowtype/space-before-generic-bracket: off
flowtype/union-intersection-spacing: off
flowtype/no-weak-types: [error, {any: false}]
flowtype/define-flow-type: error
flowtype/use-flow-type: error
flowtype/semi: off
node/no-extraneous-require: [error, {allowModules: ["library"]}]
import/no-unresolved: [error, {commonjs: true, amd: true}]
import/named: error
import/namespace: error
import/default: error
import/export: error
security/detect-object-injection: off
promise/always-return: error
promise/no-return-wrap: error
promise/param-names: error
promise/catch-or-return: error
promise/no-native: off
promise/no-nesting: warn
promise/no-promise-in-callback: warn
promise/no-callback-in-promise: warn
promise/avoid-new: warn
promise/no-new-statics: error
promise/no-return-in-finally: warn
promise/valid-params: warn
arrow-parens: off
arrow-spacing: off
block-scoped-var: off
brace-style: off
callback-return: error
camelcase: [error, {properties: always}]
comma-dangle: off
comma-spacing: off
comma-style: off
complexity: off
computed-property-spacing: off
consistent-return: off
consistent-this: off
curly: [error, "multi"]
default-case: off
dot-location: error
dot-notation: off
eol-last: off
func-call-spacing: off
eqeqeq: [error, smart]
func-names: off
func-style: off
guard-for-in: error
handle-callback-err: [error, error]
id-length: off
id-match: [error, "^(?:_?[a-zA-Z0-9]*)|[_A-Z0-9]+$"]
indent: off
init-declarations: off
key-spacing: off
keyword-spacing: off
linebreak-style: error
lines-around-comment: off
max-depth: off
max-len: off
max-nested-callbacks: off
max-params: off
max-statements: off
new-cap: off
new-parens: off
no-alert: error
no-array-constructor: error
no-await-in-loop: error
no-bitwise: off
no-caller: error
no-class-assign: error
no-cond-assign: error
no-console: warn
no-const-assign: error
no-constant-condition: error
no-continue: off
no-control-regex: off
no-debugger: warn
no-delete-var: error
no-div-regex: error
no-dupe-args: error
no-dupe-keys: error
no-duplicate-case: error
no-else-return: error
no-empty: error
no-empty-character-class: error
no-eq-null: off
no-eval: error
no-ex-assign: error
no-extend-native: error
no-extra-bind: error
no-extra-boolean-cast: error
no-extra-parens: off
no-extra-semi: off
no-fallthrough: error
no-floating-decimal: off
no-func-assign: error
no-implicit-coercion: error
no-implied-eval: error
no-inline-comments: off
no-inner-declarations: [error, functions]
no-invalid-regexp: error
no-invalid-this: off
no-irregular-whitespace: error
no-iterator: error
no-label-var: error
no-labels: [error, {allowLoop: true}]
no-lone-blocks: error
no-lonely-if: error
no-loop-func: off
no-mixed-requires: [error, true]
no-mixed-spaces-and-tabs: off
no-multi-spaces: off
no-multi-str: error
no-multiple-empty-lines: off
no-nested-ternary: off
no-new: error
no-new-func: off
no-new-object: error
no-new-require: error
no-new-wrappers: error
no-obj-calls: error
no-octal: error
no-octal-escape: error
no-param-reassign: error
no-path-concat: error
no-plusplus: off
no-process-env: off
no-process-exit: off
no-proto: error
no-redeclare: error
no-regex-spaces: error
no-restricted-modules: off
no-return-assign: error
no-script-url: error
no-self-compare: off
no-sequences: off
no-shadow: [error, { "allow": ["error", "callback", "next", "done", "cb"] }]
no-shadow-restricted-names: error
no-spaced-func: off
no-sparse-arrays: error
no-sync: warn
no-ternary: off
no-this-before-super: error
no-throw-literal: error
no-trailing-spaces: off
no-undef: error
no-undef-init: error
no-undefined: off
no-underscore-dangle: off
no-unexpected-multiline: off
no-unneeded-ternary: error
no-unreachable: error
no-unsafe-negation: error
no-unused-expressions: error
no-unused-vars: [error, {vars: all, args: after-used, argsIgnorePattern: "^_"}]
no-use-before-define: off
no-useless-call: error
no-useless-escape: error
no-useless-return: error
no-var: error
no-void: error
no-warning-comments: off
no-with: error
no-prototype-builtins: error
newline-per-chained-call: ["error", { "ignoreChainWithDepth": 3 }]
object-curly-spacing: [off, always]
object-shorthand: [error, always]
one-var: [error, never]
operator-assignment: [error, always]
padded-blocks: off
padding-line-between-statements: off
prefer-const: error
prefer-spread: off
prefer-template: error
quote-props: off
radix: error
require-yield: off
semi: off
semi-spacing: off
sort-vars: off
space-before-blocks: off
space-in-parens: off
space-infix-ops: off
space-unary-ops: off
spaced-comment: [error, always]
strict: off
template-curly-spacing: error
use-isnan: error
valid-jsdoc: off
valid-typeof: error
vars-on-top: off
wrap-iife: off
wrap-regex: off
yoda: [error, never, {exceptRange: true}]
overrides:
- files: "*"