UNPKG

8.15 kBJavaScriptView Raw
1module.exports = {
2 env: {
3 browser: true,
4 es6: true,
5 node: true
6 },
7 parser: "babel-eslint",
8 parserOptions: {
9 ecmaVersion: 8,
10 sourceType: "module"
11 },
12 extends: ["plugin:flowtype/recommended"],
13 plugins: ["flowtype"],
14 rules: {
15 "accessor-pairs": "off",
16 "array-bracket-newline": "off",
17 "array-bracket-spacing": "off",
18 "array-callback-return": "off",
19 "array-element-newline": "off",
20 "arrow-body-style": "off",
21 "arrow-parens": "off",
22 "arrow-spacing": "off",
23 "block-scoped-var": "off",
24 "block-spacing": "off",
25 "brace-style": "off",
26 "callback-return": "off",
27 camelcase: "off",
28 "capitalized-comments": "off",
29 "class-methods-use-this": "off",
30 "comma-dangle": "off",
31 "comma-spacing": "off",
32 "comma-style": "off",
33 complexity: "off",
34 "computed-property-spacing": "off",
35 "consistent-return": "off",
36 "consistent-this": "off",
37 "constructor-super": "error",
38 curly: "off",
39 "default-case": "off",
40 "dot-location": "off",
41 "dot-notation": "off",
42 "eol-last": "off",
43 eqeqeq: "off",
44 "for-direction": "off",
45 "func-call-spacing": "off",
46 "func-name-matching": "off",
47 "func-names": "off",
48 "func-style": "off",
49 "function-paren-newline": "off",
50 "generator-star-spacing": "off",
51 "getter-return": "off",
52 "global-require": "off",
53 "guard-for-in": "off",
54 "handle-callback-err": "off",
55 "id-blacklist": "off",
56 "id-length": "off",
57 "id-match": "off",
58 "indent-legacy": "off",
59 "init-declarations": "off",
60 "jsx-quotes": "off",
61 "key-spacing": "off",
62 "keyword-spacing": "off",
63 "line-comment-position": "off",
64 "lines-around-comment": "off",
65 "lines-around-directive": "off",
66 "lines-between-class-members": "off",
67 "max-depth": "off",
68 "max-len": "off",
69 "max-lines": "off",
70 "max-nested-callbacks": "off",
71 "max-params": "off",
72 "max-statements": "off",
73 "max-statements-per-line": "off",
74 "multiline-comment-style": "off",
75 "multiline-ternary": "off",
76 "new-cap": "off",
77 "new-parens": "off",
78 "newline-after-var": "off",
79 "newline-before-return": "off",
80 "newline-per-chained-call": "off",
81 "no-alert": "off",
82 "no-array-constructor": "off",
83 "no-await-in-loop": "off",
84 "no-bitwise": "off",
85 "no-buffer-constructor": "off",
86 "no-caller": "off",
87 "no-case-declarations": "error",
88 "no-catch-shadow": "off",
89 "no-class-assign": "error",
90 "no-compare-neg-zero": "error",
91 "no-cond-assign": "error",
92 "no-confusing-arrow": "off",
93 "no-console": "error",
94 "no-const-assign": "error",
95 "no-constant-condition": "off",
96 "no-continue": "off",
97 "no-control-regex": "error",
98 "no-debugger": "error",
99 "no-delete-var": "error",
100 "no-div-regex": "off",
101 "no-dupe-args": "error",
102 "no-dupe-class-members": "error",
103 "no-dupe-keys": "error",
104 "no-duplicate-case": "error",
105 "no-duplicate-imports": "off",
106 "no-else-return": "off",
107 "no-empty": "error",
108 "no-empty-character-class": "error",
109 "no-empty-function": "off",
110 "no-empty-pattern": "error",
111 "no-eq-null": "off",
112 "no-eval": "off",
113 "no-ex-assign": "error",
114 "no-extend-native": "off",
115 "no-extra-bind": "off",
116 "no-extra-boolean-cast": "error",
117 "no-extra-label": "off",
118 "no-extra-parens": "off",
119 "no-extra-semi": "error",
120 "no-fallthrough": "error",
121 "no-floating-decimal": "off",
122 "no-func-assign": "error",
123 "no-global-assign": "error",
124 "no-implicit-coercion": "off",
125 "no-implicit-globals": "off",
126 "no-implied-eval": "off",
127 "no-inline-comments": "off",
128 "no-inner-declarations": "error",
129 "no-invalid-regexp": "error",
130 "no-invalid-this": "off",
131 "no-irregular-whitespace": "error",
132 "no-iterator": "off",
133 "no-label-var": "off",
134 "no-labels": "off",
135 "no-lone-blocks": "off",
136 "no-lonely-if": "off",
137 "no-loop-func": "off",
138 "no-magic-numbers": "off",
139 "no-mixed-operators": "off",
140 "no-mixed-requires": "off",
141 "no-mixed-spaces-and-tabs": "error",
142 "no-multi-assign": "off",
143 "no-multi-spaces": "off",
144 "no-multi-str": "off",
145 "no-multiple-empty-lines": "off",
146 "no-native-reassign": "off",
147 "no-negated-condition": "off",
148 "no-negated-in-lhs": "off",
149 "no-nested-ternary": "off",
150 "no-new": "off",
151 "no-new-func": "off",
152 "no-new-object": "off",
153 "no-new-require": "off",
154 "no-new-symbol": "error",
155 "no-new-wrappers": "off",
156 "no-obj-calls": "error",
157 "no-octal": "error",
158 "no-octal-escape": "off",
159 "no-param-reassign": "off",
160 "no-path-concat": "off",
161 "no-plusplus": "off",
162 "no-process-env": "off",
163 "no-process-exit": "off",
164 "no-proto": "off",
165 "no-prototype-builtins": "off",
166 "no-redeclare": "error",
167 "no-regex-spaces": "error",
168 "no-restricted-globals": "off",
169 "no-restricted-imports": "off",
170 "no-restricted-modules": "off",
171 "no-restricted-properties": "off",
172 "no-restricted-syntax": "off",
173 "no-return-assign": "off",
174 "no-return-await": "off",
175 "no-script-url": "off",
176 "no-self-assign": "error",
177 "no-self-compare": "off",
178 "no-sequences": "off",
179 "no-shadow": "off",
180 "no-shadow-restricted-names": "off",
181 "no-spaced-func": "off",
182 "no-sparse-arrays": "error",
183 "no-sync": "off",
184 "no-tabs": "off",
185 "no-template-curly-in-string": "off",
186 "no-ternary": "off",
187 "no-this-before-super": "error",
188 "no-throw-literal": "off",
189 "no-trailing-spaces": "off",
190 "no-undef": "error",
191 "no-undef-init": "off",
192 "no-undefined": "off",
193 "no-underscore-dangle": "off",
194 "no-unexpected-multiline": "error",
195 "no-unmodified-loop-condition": "off",
196 "no-unneeded-ternary": "off",
197 "no-unreachable": "error",
198 "no-unsafe-finally": "error",
199 "no-unsafe-negation": "error",
200 "no-unused-expressions": "off",
201 "no-unused-labels": "error",
202 "no-unused-vars": "error",
203 "no-use-before-define": "off",
204 "no-useless-call": "off",
205 "no-useless-computed-key": "off",
206 "no-useless-concat": "off",
207 "no-useless-constructor": "off",
208 "no-useless-escape": "error",
209 "no-useless-rename": "off",
210 "no-useless-return": "off",
211 "no-var": "off",
212 "no-void": "off",
213 "no-warning-comments": "off",
214 "no-whitespace-before-property": "off",
215 "no-with": "off",
216 "nonblock-statement-body-position": "off",
217 "object-curly-newline": "off",
218 "object-curly-spacing": "off",
219 "object-property-newline": "off",
220 "object-shorthand": "off",
221 "one-var": "off",
222 "one-var-declaration-per-line": "off",
223 "operator-assignment": "off",
224 "operator-linebreak": "off",
225 "padded-blocks": "off",
226 "padding-line-between-statements": "off",
227 "prefer-arrow-callback": "off",
228 "prefer-const": "off",
229 "prefer-destructuring": "off",
230 "prefer-numeric-literals": "off",
231 "prefer-promise-reject-errors": "off",
232 "prefer-reflect": "off",
233 "prefer-rest-params": "off",
234 "prefer-spread": "off",
235 "prefer-template": "off",
236 "quote-props": "off",
237 radix: "off",
238 "require-await": "off",
239 "require-jsdoc": "off",
240 "require-yield": "error",
241 "rest-spread-spacing": "off",
242 "semi-spacing": "off",
243 "semi-style": "off",
244 "sort-imports": "off",
245 "sort-keys": "off",
246 "sort-vars": "off",
247 "space-before-blocks": "off",
248 "space-before-function-paren": "off",
249 "space-in-parens": "off",
250 "space-infix-ops": "off",
251 "space-unary-ops": "off",
252 "spaced-comment": "off",
253 strict: "off",
254 "switch-colon-spacing": "off",
255 "symbol-description": "off",
256 "template-curly-spacing": "off",
257 "template-tag-spacing": "off",
258 "unicode-bom": "off",
259 "use-isnan": "error",
260 "valid-jsdoc": "off",
261 "valid-typeof": "error",
262 "vars-on-top": "off",
263 "wrap-iife": "off",
264 "wrap-regex": "off",
265 "yield-star-spacing": "off",
266 yoda: "off",
267 indent: ["error", 2],
268 "linebreak-style": ["error", "unix"],
269 quotes: ["error", "double"],
270 semi: ["error", "always"]
271 }
272};