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