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