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