eslint-config-airbnb-extended 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.configs = void 0;
7
+ var base_1 = __importDefault(require("./base"));
8
+ exports.configs = {
9
+ base: base_1.default,
10
+ };
@@ -0,0 +1,177 @@
1
+ declare const _default: {
2
+ name: string;
3
+ rules: {
4
+ 'accessor-pairs': "off";
5
+ 'array-callback-return': ["error", {
6
+ allowImplicit: boolean;
7
+ }];
8
+ 'block-scoped-var': "error";
9
+ complexity: ["off", number];
10
+ 'class-methods-use-this': ["error", {
11
+ exceptMethods: never[];
12
+ }];
13
+ 'consistent-return': "error";
14
+ curly: ["error", string];
15
+ 'default-case': ["error", {
16
+ commentPattern: string;
17
+ }];
18
+ 'default-case-last': "error";
19
+ 'default-param-last': "error";
20
+ 'dot-notation': ["error", {
21
+ allowKeywords: boolean;
22
+ }];
23
+ 'dot-location': ["error", string];
24
+ eqeqeq: ["error", string, {
25
+ null: string;
26
+ }];
27
+ 'grouped-accessor-pairs': "error";
28
+ 'guard-for-in': "error";
29
+ 'max-classes-per-file': ["error", number];
30
+ 'no-alert': "warn";
31
+ 'no-caller': "error";
32
+ 'no-case-declarations': "error";
33
+ 'no-constructor-return': "error";
34
+ 'no-div-regex': "off";
35
+ 'no-else-return': ["error", {
36
+ allowElseIf: boolean;
37
+ }];
38
+ 'no-empty-function': ["error", {
39
+ allow: string[];
40
+ }];
41
+ 'no-empty-pattern': "error";
42
+ 'no-empty-static-block': "off";
43
+ 'no-eq-null': "off";
44
+ 'no-eval': "error";
45
+ 'no-extend-native': "error";
46
+ 'no-extra-bind': "error";
47
+ 'no-extra-label': "error";
48
+ 'no-fallthrough': "error";
49
+ 'no-floating-decimal': "error";
50
+ 'no-global-assign': ["error", {
51
+ exceptions: never[];
52
+ }];
53
+ 'no-native-reassign': "off";
54
+ 'no-implicit-coercion': ["off", {
55
+ boolean: boolean;
56
+ number: boolean;
57
+ string: boolean;
58
+ allow: never[];
59
+ }];
60
+ 'no-implicit-globals': "off";
61
+ 'no-implied-eval': "error";
62
+ 'no-invalid-this': "off";
63
+ 'no-iterator': "error";
64
+ 'no-labels': ["error", {
65
+ allowLoop: boolean;
66
+ allowSwitch: boolean;
67
+ }];
68
+ 'no-lone-blocks': "error";
69
+ 'no-loop-func': "error";
70
+ 'no-magic-numbers': ["off", {
71
+ ignore: never[];
72
+ ignoreArrayIndexes: boolean;
73
+ enforceConst: boolean;
74
+ detectObjects: boolean;
75
+ }];
76
+ 'no-multi-spaces': ["error", {
77
+ ignoreEOLComments: boolean;
78
+ }];
79
+ 'no-multi-str': "error";
80
+ 'no-new': "error";
81
+ 'no-new-func': "error";
82
+ 'no-new-wrappers': "error";
83
+ 'no-nonoctal-decimal-escape': "error";
84
+ 'no-object-constructor': "off";
85
+ 'no-octal': "error";
86
+ 'no-octal-escape': "error";
87
+ 'no-param-reassign': ["error", {
88
+ props: boolean;
89
+ ignorePropertyModificationsFor: string[];
90
+ }];
91
+ 'no-proto': "error";
92
+ 'no-redeclare': "error";
93
+ 'no-restricted-properties': ["error", {
94
+ object: string;
95
+ property: string;
96
+ message: string;
97
+ }, {
98
+ object: string;
99
+ property: string;
100
+ message: string;
101
+ }, {
102
+ object: string;
103
+ property: string;
104
+ message: string;
105
+ }, {
106
+ object: string;
107
+ property: string;
108
+ message: string;
109
+ }, {
110
+ object: string;
111
+ property: string;
112
+ message: string;
113
+ }, {
114
+ object: string;
115
+ property: string;
116
+ message: string;
117
+ }, {
118
+ object: string;
119
+ property: string;
120
+ message: string;
121
+ }, {
122
+ property: string;
123
+ message: string;
124
+ }, {
125
+ property: string;
126
+ message: string;
127
+ }, {
128
+ object: string;
129
+ property: string;
130
+ message: string;
131
+ }];
132
+ 'no-return-assign': ["error", string];
133
+ 'no-return-await': "error";
134
+ 'no-script-url': "error";
135
+ 'no-self-assign': ["error", {
136
+ props: boolean;
137
+ }];
138
+ 'no-self-compare': "error";
139
+ 'no-sequences': "error";
140
+ 'no-throw-literal': "error";
141
+ 'no-unmodified-loop-condition': "off";
142
+ 'no-unused-expressions': ["error", {
143
+ allowShortCircuit: boolean;
144
+ allowTernary: boolean;
145
+ allowTaggedTemplates: boolean;
146
+ }];
147
+ 'no-unused-labels': "error";
148
+ 'no-useless-call': "off";
149
+ 'no-useless-catch': "error";
150
+ 'no-useless-concat': "error";
151
+ 'no-useless-escape': "error";
152
+ 'no-useless-return': "error";
153
+ 'no-void': "error";
154
+ 'no-warning-comments': ["off", {
155
+ terms: string[];
156
+ location: string;
157
+ }];
158
+ 'no-with': "error";
159
+ 'prefer-promise-reject-errors': ["error", {
160
+ allowEmptyReject: boolean;
161
+ }];
162
+ 'prefer-named-capture-group': "off";
163
+ 'prefer-object-has-own': "off";
164
+ 'prefer-regex-literals': ["error", {
165
+ disallowRedundantWrapping: boolean;
166
+ }];
167
+ radix: "error";
168
+ 'require-await': "off";
169
+ 'require-unicode-regexp': "off";
170
+ 'vars-on-top': "error";
171
+ 'wrap-iife': ["error", string, {
172
+ functionPrototypeMethods: boolean;
173
+ }];
174
+ yoda: "error";
175
+ };
176
+ };
177
+ export default _default;
@@ -0,0 +1,379 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ name: 'airbnb/config/best-practices',
5
+ rules: {
6
+ // enforces getter/setter pairs in objects
7
+ // https://eslint.org/docs/rules/accessor-pairs
8
+ 'accessor-pairs': 'off',
9
+ // enforces return statements in callbacks of array's methods
10
+ // https://eslint.org/docs/rules/array-callback-return
11
+ 'array-callback-return': ['error', { allowImplicit: true }],
12
+ // treat var statements as if they were block scoped
13
+ // https://eslint.org/docs/rules/block-scoped-var
14
+ 'block-scoped-var': 'error',
15
+ // specify the maximum cyclomatic complexity allowed in a program
16
+ // https://eslint.org/docs/rules/complexity
17
+ complexity: ['off', 20],
18
+ // enforce that class methods use "this"
19
+ // https://eslint.org/docs/rules/class-methods-use-this
20
+ 'class-methods-use-this': [
21
+ 'error',
22
+ {
23
+ exceptMethods: [],
24
+ },
25
+ ],
26
+ // require return statements to either always or never specify values
27
+ // https://eslint.org/docs/rules/consistent-return
28
+ 'consistent-return': 'error',
29
+ // specify curly brace conventions for all control statements
30
+ // https://eslint.org/docs/rules/curly
31
+ curly: ['error', 'multi-line'], // multiline
32
+ // require default case in switch statements
33
+ // https://eslint.org/docs/rules/default-case
34
+ 'default-case': ['error', { commentPattern: '^no default$' }],
35
+ // Enforce default clauses in switch statements to be last
36
+ // https://eslint.org/docs/rules/default-case-last
37
+ 'default-case-last': 'error',
38
+ // https://eslint.org/docs/rules/default-param-last
39
+ 'default-param-last': 'error',
40
+ // encourages use of dot notation whenever possible
41
+ // https://eslint.org/docs/rules/dot-notation
42
+ 'dot-notation': ['error', { allowKeywords: true }],
43
+ // enforces consistent newlines before or after dots
44
+ // https://eslint.org/docs/rules/dot-location
45
+ 'dot-location': ['error', 'property'],
46
+ // require the use of === and !==
47
+ // https://eslint.org/docs/rules/eqeqeq
48
+ eqeqeq: ['error', 'always', { null: 'ignore' }],
49
+ // Require grouped accessor pairs in object literals and classes
50
+ // https://eslint.org/docs/rules/grouped-accessor-pairs
51
+ 'grouped-accessor-pairs': 'error',
52
+ // make sure for-in loops have an if statement
53
+ // https://eslint.org/docs/rules/guard-for-in
54
+ 'guard-for-in': 'error',
55
+ // enforce a maximum number of classes per file
56
+ // https://eslint.org/docs/rules/max-classes-per-file
57
+ 'max-classes-per-file': ['error', 1],
58
+ // disallow the use of alert, confirm, and prompt
59
+ // https://eslint.org/docs/rules/no-alert
60
+ // TODO: enable, semver-major
61
+ 'no-alert': 'warn',
62
+ // disallow use of arguments.caller or arguments.callee
63
+ // https://eslint.org/docs/rules/no-caller
64
+ 'no-caller': 'error',
65
+ // disallow lexical declarations in case/default clauses
66
+ // https://eslint.org/docs/rules/no-case-declarations
67
+ 'no-case-declarations': 'error',
68
+ // Disallow returning value in constructor
69
+ // https://eslint.org/docs/rules/no-constructor-return
70
+ 'no-constructor-return': 'error',
71
+ // disallow division operators explicitly at beginning of regular expression
72
+ // https://eslint.org/docs/rules/no-div-regex
73
+ 'no-div-regex': 'off',
74
+ // disallow else after a return in an if
75
+ // https://eslint.org/docs/rules/no-else-return
76
+ 'no-else-return': ['error', { allowElseIf: false }],
77
+ // disallow empty functions, except for standalone funcs/arrows
78
+ // https://eslint.org/docs/rules/no-empty-function
79
+ 'no-empty-function': [
80
+ 'error',
81
+ {
82
+ allow: ['arrowFunctions', 'functions', 'methods'],
83
+ },
84
+ ],
85
+ // disallow empty destructuring patterns
86
+ // https://eslint.org/docs/rules/no-empty-pattern
87
+ 'no-empty-pattern': 'error',
88
+ // Disallow empty static blocks
89
+ // https://eslint.org/docs/latest/rules/no-empty-static-block
90
+ // TODO: semver-major, enable
91
+ 'no-empty-static-block': 'off',
92
+ // disallow comparisons to null without a type-checking operator
93
+ // https://eslint.org/docs/rules/no-eq-null
94
+ 'no-eq-null': 'off',
95
+ // disallow use of eval()
96
+ // https://eslint.org/docs/rules/no-eval
97
+ 'no-eval': 'error',
98
+ // disallow adding to native types
99
+ // https://eslint.org/docs/rules/no-extend-native
100
+ 'no-extend-native': 'error',
101
+ // disallow unnecessary function binding
102
+ // https://eslint.org/docs/rules/no-extra-bind
103
+ 'no-extra-bind': 'error',
104
+ // disallow Unnecessary Labels
105
+ // https://eslint.org/docs/rules/no-extra-label
106
+ 'no-extra-label': 'error',
107
+ // disallow fallthrough of case statements
108
+ // https://eslint.org/docs/rules/no-fallthrough
109
+ 'no-fallthrough': 'error',
110
+ // disallow the use of leading or trailing decimal points in numeric literals
111
+ // https://eslint.org/docs/rules/no-floating-decimal
112
+ 'no-floating-decimal': 'error',
113
+ // disallow reassignments of native objects or read-only globals
114
+ // https://eslint.org/docs/rules/no-global-assign
115
+ 'no-global-assign': ['error', { exceptions: [] }],
116
+ // deprecated in favor of no-global-assign
117
+ // https://eslint.org/docs/rules/no-native-reassign
118
+ 'no-native-reassign': 'off',
119
+ // disallow implicit type conversions
120
+ // https://eslint.org/docs/rules/no-implicit-coercion
121
+ 'no-implicit-coercion': [
122
+ 'off',
123
+ {
124
+ boolean: false,
125
+ number: true,
126
+ string: true,
127
+ allow: [],
128
+ },
129
+ ],
130
+ // disallow var and named functions in global scope
131
+ // https://eslint.org/docs/rules/no-implicit-globals
132
+ 'no-implicit-globals': 'off',
133
+ // disallow use of eval()-like methods
134
+ // https://eslint.org/docs/rules/no-implied-eval
135
+ 'no-implied-eval': 'error',
136
+ // disallow this keywords outside of classes or class-like objects
137
+ // https://eslint.org/docs/rules/no-invalid-this
138
+ 'no-invalid-this': 'off',
139
+ // disallow usage of __iterator__ property
140
+ // https://eslint.org/docs/rules/no-iterator
141
+ 'no-iterator': 'error',
142
+ // disallow use of labels for anything other than loops and switches
143
+ // https://eslint.org/docs/rules/no-labels
144
+ 'no-labels': ['error', { allowLoop: false, allowSwitch: false }],
145
+ // disallow unnecessary nested blocks
146
+ // https://eslint.org/docs/rules/no-lone-blocks
147
+ 'no-lone-blocks': 'error',
148
+ // disallow creation of functions within loops
149
+ // https://eslint.org/docs/rules/no-loop-func
150
+ 'no-loop-func': 'error',
151
+ // disallow magic numbers
152
+ // https://eslint.org/docs/rules/no-magic-numbers
153
+ 'no-magic-numbers': [
154
+ 'off',
155
+ {
156
+ ignore: [],
157
+ ignoreArrayIndexes: true,
158
+ enforceConst: true,
159
+ detectObjects: false,
160
+ },
161
+ ],
162
+ // disallow use of multiple spaces
163
+ // https://eslint.org/docs/rules/no-multi-spaces
164
+ 'no-multi-spaces': [
165
+ 'error',
166
+ {
167
+ ignoreEOLComments: false,
168
+ },
169
+ ],
170
+ // disallow use of multiline strings
171
+ // https://eslint.org/docs/rules/no-multi-str
172
+ 'no-multi-str': 'error',
173
+ // disallow use of new operator when not part of the assignment or comparison
174
+ // https://eslint.org/docs/rules/no-new
175
+ 'no-new': 'error',
176
+ // disallow use of new operator for Function object
177
+ // https://eslint.org/docs/rules/no-new-func
178
+ 'no-new-func': 'error',
179
+ // disallows creating new instances of String, Number, and Boolean
180
+ // https://eslint.org/docs/rules/no-new-wrappers
181
+ 'no-new-wrappers': 'error',
182
+ // Disallow \8 and \9 escape sequences in string literals
183
+ // https://eslint.org/docs/rules/no-nonoctal-decimal-escape
184
+ 'no-nonoctal-decimal-escape': 'error',
185
+ // Disallow calls to the Object constructor without an argument
186
+ // https://eslint.org/docs/latest/rules/no-object-constructor
187
+ // TODO: enable, semver-major
188
+ 'no-object-constructor': 'off',
189
+ // disallow use of (old style) octal literals
190
+ // https://eslint.org/docs/rules/no-octal
191
+ 'no-octal': 'error',
192
+ // disallow use of octal escape sequences in string literals, such as
193
+ // var foo = 'Copyright \251';
194
+ // https://eslint.org/docs/rules/no-octal-escape
195
+ 'no-octal-escape': 'error',
196
+ // disallow reassignment of function parameters
197
+ // disallow parameter object manipulation except for specific exclusions
198
+ // rule: https://eslint.org/docs/rules/no-param-reassign.html
199
+ 'no-param-reassign': [
200
+ 'error',
201
+ {
202
+ props: true,
203
+ ignorePropertyModificationsFor: [
204
+ 'acc', // for reduce accumulators
205
+ 'accumulator', // for reduce accumulators
206
+ 'e', // for e.returnvalue
207
+ 'ctx', // for Koa routing
208
+ 'context', // for Koa routing
209
+ 'req', // for Express requests
210
+ 'request', // for Express requests
211
+ 'res', // for Express responses
212
+ 'response', // for Express responses
213
+ '$scope', // for Angular 1 scopes
214
+ 'staticContext', // for ReactRouter context
215
+ ],
216
+ },
217
+ ],
218
+ // disallow usage of __proto__ property
219
+ // https://eslint.org/docs/rules/no-proto
220
+ 'no-proto': 'error',
221
+ // disallow declaring the same variable more than once
222
+ // https://eslint.org/docs/rules/no-redeclare
223
+ 'no-redeclare': 'error',
224
+ // disallow certain object properties
225
+ // https://eslint.org/docs/rules/no-restricted-properties
226
+ 'no-restricted-properties': [
227
+ 'error',
228
+ {
229
+ object: 'arguments',
230
+ property: 'callee',
231
+ message: 'arguments.callee is deprecated',
232
+ },
233
+ {
234
+ object: 'global',
235
+ property: 'isFinite',
236
+ message: 'Please use Number.isFinite instead',
237
+ },
238
+ {
239
+ object: 'self',
240
+ property: 'isFinite',
241
+ message: 'Please use Number.isFinite instead',
242
+ },
243
+ {
244
+ object: 'window',
245
+ property: 'isFinite',
246
+ message: 'Please use Number.isFinite instead',
247
+ },
248
+ {
249
+ object: 'global',
250
+ property: 'isNaN',
251
+ message: 'Please use Number.isNaN instead',
252
+ },
253
+ {
254
+ object: 'self',
255
+ property: 'isNaN',
256
+ message: 'Please use Number.isNaN instead',
257
+ },
258
+ {
259
+ object: 'window',
260
+ property: 'isNaN',
261
+ message: 'Please use Number.isNaN instead',
262
+ },
263
+ {
264
+ property: '__defineGetter__',
265
+ message: 'Please use Object.defineProperty instead.',
266
+ },
267
+ {
268
+ property: '__defineSetter__',
269
+ message: 'Please use Object.defineProperty instead.',
270
+ },
271
+ {
272
+ object: 'Math',
273
+ property: 'pow',
274
+ message: 'Use the exponentiation operator (**) instead.',
275
+ },
276
+ ],
277
+ // disallow use of assignment in return statement
278
+ // https://eslint.org/docs/rules/no-return-assign
279
+ 'no-return-assign': ['error', 'always'],
280
+ // disallow redundant `return await`
281
+ // https://eslint.org/docs/rules/no-return-await
282
+ 'no-return-await': 'error',
283
+ // disallow use of `javascript:` urls.
284
+ // https://eslint.org/docs/rules/no-script-url
285
+ 'no-script-url': 'error',
286
+ // disallow self assignment
287
+ // https://eslint.org/docs/rules/no-self-assign
288
+ 'no-self-assign': [
289
+ 'error',
290
+ {
291
+ props: true,
292
+ },
293
+ ],
294
+ // disallow comparisons where both sides are exactly the same
295
+ // https://eslint.org/docs/rules/no-self-compare
296
+ 'no-self-compare': 'error',
297
+ // disallow use of comma operator
298
+ // https://eslint.org/docs/rules/no-sequences
299
+ 'no-sequences': 'error',
300
+ // restrict what can be thrown as an exception
301
+ // https://eslint.org/docs/rules/no-throw-literal
302
+ 'no-throw-literal': 'error',
303
+ // disallow unmodified conditions of loops
304
+ // https://eslint.org/docs/rules/no-unmodified-loop-condition
305
+ 'no-unmodified-loop-condition': 'off',
306
+ // disallow usage of expressions in statement position
307
+ // https://eslint.org/docs/rules/no-unused-expressions
308
+ 'no-unused-expressions': [
309
+ 'error',
310
+ {
311
+ allowShortCircuit: false,
312
+ allowTernary: false,
313
+ allowTaggedTemplates: false,
314
+ },
315
+ ],
316
+ // disallow unused labels
317
+ // https://eslint.org/docs/rules/no-unused-labels
318
+ 'no-unused-labels': 'error',
319
+ // disallow unnecessary .call() and .apply()
320
+ // https://eslint.org/docs/rules/no-useless-call
321
+ 'no-useless-call': 'off',
322
+ // Disallow unnecessary catch clauses
323
+ // https://eslint.org/docs/rules/no-useless-catch
324
+ 'no-useless-catch': 'error',
325
+ // disallow useless string concatenation
326
+ // https://eslint.org/docs/rules/no-useless-concat
327
+ 'no-useless-concat': 'error',
328
+ // disallow unnecessary string escaping
329
+ // https://eslint.org/docs/rules/no-useless-escape
330
+ 'no-useless-escape': 'error',
331
+ // disallow redundant return; keywords
332
+ // https://eslint.org/docs/rules/no-useless-return
333
+ 'no-useless-return': 'error',
334
+ // disallow use of void operator
335
+ // https://eslint.org/docs/rules/no-void
336
+ 'no-void': 'error',
337
+ // disallow usage of configurable warning terms in comments: e.g. todo
338
+ // https://eslint.org/docs/rules/no-warning-comments
339
+ 'no-warning-comments': ['off', { terms: ['todo', 'fixme', 'xxx'], location: 'start' }],
340
+ // disallow use of the with statement
341
+ // https://eslint.org/docs/rules/no-with
342
+ 'no-with': 'error',
343
+ // require using Error objects as Promise rejection reasons
344
+ // https://eslint.org/docs/rules/prefer-promise-reject-errors
345
+ 'prefer-promise-reject-errors': ['error', { allowEmptyReject: true }],
346
+ // Suggest using named capture group in regular expression
347
+ // https://eslint.org/docs/rules/prefer-named-capture-group
348
+ 'prefer-named-capture-group': 'off',
349
+ // Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call()
350
+ // https://eslint.org/docs/rules/prefer-object-has-own
351
+ // TODO: semver-major: enable thus rule, once eslint v8.5.0 is required
352
+ 'prefer-object-has-own': 'off',
353
+ // https://eslint.org/docs/rules/prefer-regex-literals
354
+ 'prefer-regex-literals': [
355
+ 'error',
356
+ {
357
+ disallowRedundantWrapping: true,
358
+ },
359
+ ],
360
+ // require use of the second argument for parseInt()
361
+ // https://eslint.org/docs/rules/radix
362
+ radix: 'error',
363
+ // require `await` in `async function` (note: this is a horrible rule that should never be used)
364
+ // https://eslint.org/docs/rules/require-await
365
+ 'require-await': 'off',
366
+ // Enforce the use of u flag on RegExp
367
+ // https://eslint.org/docs/rules/require-unicode-regexp
368
+ 'require-unicode-regexp': 'off',
369
+ // requires to declare all vars on top of their containing scope
370
+ // https://eslint.org/docs/rules/vars-on-top
371
+ 'vars-on-top': 'error',
372
+ // require immediate function invocation to be wrapped in parentheses
373
+ // https://eslint.org/docs/rules/wrap-iife.html
374
+ 'wrap-iife': ['error', 'outside', { functionPrototypeMethods: false }],
375
+ // require or disallow Yoda conditions
376
+ // https://eslint.org/docs/rules/yoda
377
+ yoda: 'error',
378
+ },
379
+ };
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ name: string;
3
+ rules: {
4
+ 'for-direction': "error";
5
+ 'getter-return': ["error", {
6
+ allowImplicit: boolean;
7
+ }];
8
+ 'no-async-promise-executor': "error";
9
+ 'no-await-in-loop': "error";
10
+ 'no-compare-neg-zero': "error";
11
+ 'no-cond-assign': ["error", string];
12
+ 'no-console': "warn";
13
+ 'no-constant-binary-expression': "off";
14
+ 'no-constant-condition': "warn";
15
+ 'no-control-regex': "error";
16
+ 'no-debugger': "error";
17
+ 'no-dupe-args': "error";
18
+ 'no-dupe-else-if': "error";
19
+ 'no-dupe-keys': "error";
20
+ 'no-duplicate-case': "error";
21
+ 'no-empty': "error";
22
+ 'no-empty-character-class': "error";
23
+ 'no-ex-assign': "error";
24
+ 'no-extra-boolean-cast': "error";
25
+ 'no-extra-parens': ["off", string, {
26
+ conditionalAssign: boolean;
27
+ nestedBinaryExpressions: boolean;
28
+ returnAssign: boolean;
29
+ ignoreJSX: string;
30
+ enforceForArrowConditionals: boolean;
31
+ }];
32
+ 'no-extra-semi': "error";
33
+ 'no-func-assign': "error";
34
+ 'no-import-assign': "error";
35
+ 'no-inner-declarations': "error";
36
+ 'no-invalid-regexp': "error";
37
+ 'no-irregular-whitespace': "error";
38
+ 'no-loss-of-precision': "error";
39
+ 'no-misleading-character-class': "error";
40
+ 'no-obj-calls': "error";
41
+ 'no-new-native-nonconstructor': "off";
42
+ 'no-promise-executor-return': "error";
43
+ 'no-prototype-builtins': "error";
44
+ 'no-regex-spaces': "error";
45
+ 'no-setter-return': "error";
46
+ 'no-sparse-arrays': "error";
47
+ 'no-template-curly-in-string': "error";
48
+ 'no-unexpected-multiline': "error";
49
+ 'no-unreachable': "error";
50
+ 'no-unreachable-loop': ["error", {
51
+ ignore: never[];
52
+ }];
53
+ 'no-unsafe-finally': "error";
54
+ 'no-unsafe-negation': "error";
55
+ 'no-unsafe-optional-chaining': ["error", {
56
+ disallowArithmeticOperators: boolean;
57
+ }];
58
+ 'no-unused-private-class-members': "off";
59
+ 'no-useless-backreference': "error";
60
+ 'no-negated-in-lhs': "off";
61
+ 'require-atomic-updates': "off";
62
+ 'use-isnan': "error";
63
+ 'valid-jsdoc': "off";
64
+ 'valid-typeof': ["error", {
65
+ requireStringLiterals: boolean;
66
+ }];
67
+ };
68
+ };
69
+ export default _default;