immosquare-cleaner 0.1.46 → 0.1.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/immosquare-cleaner/version.rb +1 -1
- data/linters/rubocop-3.3.4.yml +2 -0
- data/linters/rubocop.yml +2 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/LICENSE-MIT +21 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/README.md +412 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/index.d.ts +61 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/index.js +618 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/legacy.js +539 -0
- data/node_modules/@eslint/eslintrc/node_modules/ignore/package.json +73 -0
- data/node_modules/@eslint/js/package.json +1 -1
- data/node_modules/@eslint/plugin-kit/LICENSE +201 -0
- data/node_modules/@eslint/plugin-kit/README.md +224 -0
- data/node_modules/@eslint/plugin-kit/dist/cjs/index.cjs +555 -0
- data/node_modules/@eslint/plugin-kit/dist/cjs/index.d.cts +239 -0
- data/node_modules/@eslint/plugin-kit/dist/cjs/types.ts +7 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/index.d.ts +239 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/index.js +551 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/types.d.ts +6 -0
- data/node_modules/@eslint/plugin-kit/dist/esm/types.ts +7 -0
- data/node_modules/@eslint/plugin-kit/package.json +62 -0
- data/node_modules/eslint/README.md +2 -2
- data/node_modules/eslint/lib/config/config.js +278 -0
- data/node_modules/eslint/lib/config/flat-config-array.js +3 -204
- data/node_modules/eslint/lib/languages/js/source-code/source-code.js +29 -94
- data/node_modules/eslint/lib/linter/apply-disable-directives.js +17 -28
- data/node_modules/eslint/lib/linter/file-context.js +134 -0
- data/node_modules/eslint/lib/linter/linter.js +37 -42
- data/node_modules/eslint/lib/rules/id-length.js +1 -0
- data/node_modules/eslint/lib/rules/no-invalid-regexp.js +34 -18
- data/node_modules/eslint/lib/rules/require-unicode-regexp.js +95 -14
- data/node_modules/eslint/lib/rules/utils/regular-expressions.js +11 -3
- data/node_modules/eslint/lib/types/index.d.ts +1635 -0
- data/node_modules/eslint/lib/types/rules/best-practices.d.ts +1075 -0
- data/node_modules/eslint/lib/types/rules/deprecated.d.ts +294 -0
- data/node_modules/eslint/lib/types/rules/ecmascript-6.d.ts +561 -0
- data/node_modules/eslint/lib/types/rules/index.d.ts +50 -0
- data/node_modules/eslint/lib/types/rules/node-commonjs.d.ts +160 -0
- data/node_modules/eslint/lib/types/rules/possible-errors.d.ts +598 -0
- data/node_modules/eslint/lib/types/rules/strict-mode.d.ts +38 -0
- data/node_modules/eslint/lib/types/rules/stylistic-issues.d.ts +1932 -0
- data/node_modules/eslint/lib/types/rules/variables.d.ts +221 -0
- data/node_modules/eslint/lib/types/use-at-your-own-risk.d.ts +85 -0
- data/node_modules/eslint/package.json +20 -8
- data/node_modules/ignore/index.d.ts +1 -1
- data/node_modules/ignore/index.js +25 -7
- data/node_modules/ignore/legacy.js +34 -14
- data/node_modules/ignore/package.json +12 -11
- data/node_modules/npm-check-updates/build/index.js +282 -282
- data/node_modules/npm-check-updates/build/index.js.map +1 -1
- data/node_modules/npm-check-updates/package.json +1 -1
- data/package.json +3 -3
- metadata +31 -4
- data/linters/rubocop-2.7.6.yml +0 -88
- data/node_modules/eslint/lib/linter/config-comment-parser.js +0 -169
@@ -0,0 +1,1932 @@
|
|
1
|
+
/**
|
2
|
+
* @fileoverview This file contains the rule types for ESLint. It was initially extracted
|
3
|
+
* from the `@types/eslint` package.
|
4
|
+
*/
|
5
|
+
|
6
|
+
/*
|
7
|
+
* MIT License
|
8
|
+
* Copyright (c) Microsoft Corporation.
|
9
|
+
*
|
10
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
11
|
+
* of this software and associated documentation files (the "Software"), to deal
|
12
|
+
* in the Software without restriction, including without limitation the rights
|
13
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
14
|
+
* copies of the Software, and to permit persons to whom the Software is
|
15
|
+
* furnished to do so, subject to the following conditions:
|
16
|
+
* The above copyright notice and this permission notice shall be included in all
|
17
|
+
* copies or substantial portions of the Software.
|
18
|
+
*
|
19
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
20
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
21
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
23
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
24
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
25
|
+
* SOFTWARE
|
26
|
+
*/
|
27
|
+
|
28
|
+
import { Linter } from "../index";
|
29
|
+
|
30
|
+
export interface StylisticIssues extends Linter.RulesRecord {
|
31
|
+
/**
|
32
|
+
* Rule to enforce linebreaks after opening and before closing array brackets.
|
33
|
+
*
|
34
|
+
* @since 4.0.0-alpha.1
|
35
|
+
* @see https://eslint.org/docs/rules/array-bracket-newline
|
36
|
+
*/
|
37
|
+
"array-bracket-newline": Linter.RuleEntry<
|
38
|
+
[
|
39
|
+
| "always"
|
40
|
+
| "never"
|
41
|
+
| "consistent"
|
42
|
+
| Partial<{
|
43
|
+
/**
|
44
|
+
* @default true
|
45
|
+
*/
|
46
|
+
multiline: boolean;
|
47
|
+
/**
|
48
|
+
* @default null
|
49
|
+
*/
|
50
|
+
minItems: number | null;
|
51
|
+
}>,
|
52
|
+
]
|
53
|
+
>;
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Rule to enforce consistent spacing inside array brackets.
|
57
|
+
*
|
58
|
+
* @since 0.24.0
|
59
|
+
* @see https://eslint.org/docs/rules/array-bracket-spacing
|
60
|
+
*/
|
61
|
+
"array-bracket-spacing":
|
62
|
+
| Linter.RuleEntry<
|
63
|
+
[
|
64
|
+
"never",
|
65
|
+
Partial<{
|
66
|
+
/**
|
67
|
+
* @default false
|
68
|
+
*/
|
69
|
+
singleValue: boolean;
|
70
|
+
/**
|
71
|
+
* @default false
|
72
|
+
*/
|
73
|
+
objectsInArrays: boolean;
|
74
|
+
/**
|
75
|
+
* @default false
|
76
|
+
*/
|
77
|
+
arraysInArrays: boolean;
|
78
|
+
}>,
|
79
|
+
]
|
80
|
+
>
|
81
|
+
| Linter.RuleEntry<
|
82
|
+
[
|
83
|
+
"always",
|
84
|
+
Partial<{
|
85
|
+
/**
|
86
|
+
* @default true
|
87
|
+
*/
|
88
|
+
singleValue: boolean;
|
89
|
+
/**
|
90
|
+
* @default true
|
91
|
+
*/
|
92
|
+
objectsInArrays: boolean;
|
93
|
+
/**
|
94
|
+
* @default true
|
95
|
+
*/
|
96
|
+
arraysInArrays: boolean;
|
97
|
+
}>,
|
98
|
+
]
|
99
|
+
>;
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Rule to enforce line breaks after each array element.
|
103
|
+
*
|
104
|
+
* @since 4.0.0-rc.0
|
105
|
+
* @see https://eslint.org/docs/rules/array-element-newline
|
106
|
+
*/
|
107
|
+
"array-element-newline": Linter.RuleEntry<
|
108
|
+
[
|
109
|
+
| "always"
|
110
|
+
| "never"
|
111
|
+
| "consistent"
|
112
|
+
| Partial<{
|
113
|
+
/**
|
114
|
+
* @default true
|
115
|
+
*/
|
116
|
+
multiline: boolean;
|
117
|
+
/**
|
118
|
+
* @default null
|
119
|
+
*/
|
120
|
+
minItems: number | null;
|
121
|
+
}>,
|
122
|
+
]
|
123
|
+
>;
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Rule to disallow or enforce spaces inside of blocks after opening block and before closing block.
|
127
|
+
*
|
128
|
+
* @since 1.2.0
|
129
|
+
* @see https://eslint.org/docs/rules/block-spacing
|
130
|
+
*/
|
131
|
+
"block-spacing": Linter.RuleEntry<["always" | "never"]>;
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Rule to enforce consistent brace style for blocks.
|
135
|
+
*
|
136
|
+
* @since 0.0.7
|
137
|
+
* @see https://eslint.org/docs/rules/brace-style
|
138
|
+
*/
|
139
|
+
"brace-style": Linter.RuleEntry<
|
140
|
+
[
|
141
|
+
"1tbs" | "stroustrup" | "allman",
|
142
|
+
Partial<{
|
143
|
+
/**
|
144
|
+
* @default false
|
145
|
+
*/
|
146
|
+
allowSingleLine: boolean;
|
147
|
+
}>,
|
148
|
+
]
|
149
|
+
>;
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Rule to enforce camelcase naming convention.
|
153
|
+
*
|
154
|
+
* @since 0.0.2
|
155
|
+
* @see https://eslint.org/docs/rules/camelcase
|
156
|
+
*/
|
157
|
+
camelcase: Linter.RuleEntry<
|
158
|
+
[
|
159
|
+
Partial<{
|
160
|
+
/**
|
161
|
+
* @default 'always'
|
162
|
+
*/
|
163
|
+
properties: "always" | "never";
|
164
|
+
/**
|
165
|
+
* @default false
|
166
|
+
*/
|
167
|
+
ignoreDestructuring: boolean;
|
168
|
+
/**
|
169
|
+
* @remarks
|
170
|
+
* Also accept for regular expression patterns
|
171
|
+
*/
|
172
|
+
allow: string[];
|
173
|
+
}>,
|
174
|
+
]
|
175
|
+
>;
|
176
|
+
|
177
|
+
/**
|
178
|
+
* Rule to enforce or disallow capitalization of the first letter of a comment.
|
179
|
+
*
|
180
|
+
* @since 3.11.0
|
181
|
+
* @see https://eslint.org/docs/rules/capitalized-comments
|
182
|
+
*/
|
183
|
+
"capitalized-comments": Linter.RuleEntry<
|
184
|
+
[
|
185
|
+
"always" | "never",
|
186
|
+
Partial<{
|
187
|
+
ignorePattern: string;
|
188
|
+
/**
|
189
|
+
* @default false
|
190
|
+
*/
|
191
|
+
ignoreInlineComments: boolean;
|
192
|
+
/**
|
193
|
+
* @default false
|
194
|
+
*/
|
195
|
+
ignoreConsecutiveComments: boolean;
|
196
|
+
}>,
|
197
|
+
]
|
198
|
+
>;
|
199
|
+
|
200
|
+
/**
|
201
|
+
* Rule to require or disallow trailing commas.
|
202
|
+
*
|
203
|
+
* @since 0.16.0
|
204
|
+
* @see https://eslint.org/docs/rules/comma-dangle
|
205
|
+
*/
|
206
|
+
"comma-dangle": Linter.RuleEntry<
|
207
|
+
[
|
208
|
+
| "never"
|
209
|
+
| "always"
|
210
|
+
| "always-multiline"
|
211
|
+
| "only-multiline"
|
212
|
+
| Partial<{
|
213
|
+
/**
|
214
|
+
* @default 'never'
|
215
|
+
*/
|
216
|
+
arrays: "never" | "always" | "always-multiline" | "only-multiline";
|
217
|
+
/**
|
218
|
+
* @default 'never'
|
219
|
+
*/
|
220
|
+
objects: "never" | "always" | "always-multiline" | "only-multiline";
|
221
|
+
/**
|
222
|
+
* @default 'never'
|
223
|
+
*/
|
224
|
+
imports: "never" | "always" | "always-multiline" | "only-multiline";
|
225
|
+
/**
|
226
|
+
* @default 'never'
|
227
|
+
*/
|
228
|
+
exports: "never" | "always" | "always-multiline" | "only-multiline";
|
229
|
+
/**
|
230
|
+
* @default 'never'
|
231
|
+
*/
|
232
|
+
functions: "never" | "always" | "always-multiline" | "only-multiline";
|
233
|
+
}>,
|
234
|
+
]
|
235
|
+
>;
|
236
|
+
|
237
|
+
/**
|
238
|
+
* Rule to enforce consistent spacing before and after commas.
|
239
|
+
*
|
240
|
+
* @since 0.9.0
|
241
|
+
* @see https://eslint.org/docs/rules/comma-spacing
|
242
|
+
*/
|
243
|
+
"comma-spacing": Linter.RuleEntry<
|
244
|
+
[
|
245
|
+
Partial<{
|
246
|
+
/**
|
247
|
+
* @default false
|
248
|
+
*/
|
249
|
+
before: boolean;
|
250
|
+
/**
|
251
|
+
* @default true
|
252
|
+
*/
|
253
|
+
after: boolean;
|
254
|
+
}>,
|
255
|
+
]
|
256
|
+
>;
|
257
|
+
|
258
|
+
/**
|
259
|
+
* Rule to enforce consistent comma style.
|
260
|
+
*
|
261
|
+
* @since 0.9.0
|
262
|
+
* @see https://eslint.org/docs/rules/comma-style
|
263
|
+
*/
|
264
|
+
"comma-style": Linter.RuleEntry<
|
265
|
+
[
|
266
|
+
"last" | "first",
|
267
|
+
Partial<{
|
268
|
+
exceptions: Record<string, boolean>;
|
269
|
+
}>,
|
270
|
+
]
|
271
|
+
>;
|
272
|
+
|
273
|
+
/**
|
274
|
+
* Rule to enforce consistent spacing inside computed property brackets.
|
275
|
+
*
|
276
|
+
* @since 0.23.0
|
277
|
+
* @see https://eslint.org/docs/rules/computed-property-spacing
|
278
|
+
*/
|
279
|
+
"computed-property-spacing": Linter.RuleEntry<["never" | "always"]>;
|
280
|
+
|
281
|
+
/**
|
282
|
+
* Rule to enforce consistent naming when capturing the current execution context.
|
283
|
+
*
|
284
|
+
* @since 0.0.9
|
285
|
+
* @see https://eslint.org/docs/rules/consistent-this
|
286
|
+
*/
|
287
|
+
"consistent-this": Linter.RuleEntry<[...string[]]>;
|
288
|
+
|
289
|
+
/**
|
290
|
+
* Rule to require or disallow newline at the end of files.
|
291
|
+
*
|
292
|
+
* @since 0.7.1
|
293
|
+
* @see https://eslint.org/docs/rules/eol-last
|
294
|
+
*/
|
295
|
+
"eol-last": Linter.RuleEntry<
|
296
|
+
[
|
297
|
+
"always" | "never", // | 'unix' | 'windows'
|
298
|
+
]
|
299
|
+
>;
|
300
|
+
|
301
|
+
/**
|
302
|
+
* Rule to require or disallow spacing between function identifiers and their invocations.
|
303
|
+
*
|
304
|
+
* @since 3.3.0
|
305
|
+
* @see https://eslint.org/docs/rules/func-call-spacing
|
306
|
+
*/
|
307
|
+
"func-call-spacing": Linter.RuleEntry<["never" | "always"]>;
|
308
|
+
|
309
|
+
/**
|
310
|
+
* Rule to require function names to match the name of the variable or property to which they are assigned.
|
311
|
+
*
|
312
|
+
* @since 3.8.0
|
313
|
+
* @see https://eslint.org/docs/rules/func-name-matching
|
314
|
+
*/
|
315
|
+
"func-name-matching":
|
316
|
+
| Linter.RuleEntry<
|
317
|
+
[
|
318
|
+
"always" | "never",
|
319
|
+
Partial<{
|
320
|
+
/**
|
321
|
+
* @default false
|
322
|
+
*/
|
323
|
+
considerPropertyDescriptor: boolean;
|
324
|
+
/**
|
325
|
+
* @default false
|
326
|
+
*/
|
327
|
+
includeCommonJSModuleExports: boolean;
|
328
|
+
}>,
|
329
|
+
]
|
330
|
+
>
|
331
|
+
| Linter.RuleEntry<
|
332
|
+
[
|
333
|
+
Partial<{
|
334
|
+
/**
|
335
|
+
* @default false
|
336
|
+
*/
|
337
|
+
considerPropertyDescriptor: boolean;
|
338
|
+
/**
|
339
|
+
* @default false
|
340
|
+
*/
|
341
|
+
includeCommonJSModuleExports: boolean;
|
342
|
+
}>,
|
343
|
+
]
|
344
|
+
>;
|
345
|
+
|
346
|
+
/**
|
347
|
+
* Rule to require or disallow named `function` expressions.
|
348
|
+
*
|
349
|
+
* @since 0.4.0
|
350
|
+
* @see https://eslint.org/docs/rules/func-names
|
351
|
+
*/
|
352
|
+
"func-names": Linter.RuleEntry<
|
353
|
+
[
|
354
|
+
"always" | "as-needed" | "never",
|
355
|
+
Partial<{
|
356
|
+
generators: "always" | "as-needed" | "never";
|
357
|
+
}>,
|
358
|
+
]
|
359
|
+
>;
|
360
|
+
|
361
|
+
/**
|
362
|
+
* Rule to enforce the consistent use of either `function` declarations or expressions.
|
363
|
+
*
|
364
|
+
* @since 0.2.0
|
365
|
+
* @see https://eslint.org/docs/rules/func-style
|
366
|
+
*/
|
367
|
+
"func-style": Linter.RuleEntry<
|
368
|
+
[
|
369
|
+
"expression" | "declaration",
|
370
|
+
Partial<{
|
371
|
+
/**
|
372
|
+
* @default false
|
373
|
+
*/
|
374
|
+
allowArrowFunctions: boolean;
|
375
|
+
}>,
|
376
|
+
]
|
377
|
+
>;
|
378
|
+
|
379
|
+
/**
|
380
|
+
* Rule to enforce consistent line breaks inside function parentheses.
|
381
|
+
*
|
382
|
+
* @since 4.6.0
|
383
|
+
* @see https://eslint.org/docs/rules/function-paren-newline
|
384
|
+
*/
|
385
|
+
"function-paren-newline": Linter.RuleEntry<
|
386
|
+
[
|
387
|
+
| "always"
|
388
|
+
| "never"
|
389
|
+
| "multiline"
|
390
|
+
| "multiline-arguments"
|
391
|
+
| "consistent"
|
392
|
+
| Partial<{
|
393
|
+
minItems: number;
|
394
|
+
}>,
|
395
|
+
]
|
396
|
+
>;
|
397
|
+
|
398
|
+
/**
|
399
|
+
* Rule to disallow specified identifiers.
|
400
|
+
*
|
401
|
+
* @since 2.0.0-beta.2
|
402
|
+
* @see https://eslint.org/docs/rules/id-blacklist
|
403
|
+
*/
|
404
|
+
"id-blacklist": Linter.RuleEntry<[...string[]]>;
|
405
|
+
|
406
|
+
/**
|
407
|
+
* Rule to enforce minimum and maximum identifier lengths.
|
408
|
+
*
|
409
|
+
* @since 1.0.0
|
410
|
+
* @see https://eslint.org/docs/rules/id-length
|
411
|
+
*/
|
412
|
+
"id-length": Linter.RuleEntry<
|
413
|
+
[
|
414
|
+
Partial<{
|
415
|
+
/**
|
416
|
+
* @default 2
|
417
|
+
*/
|
418
|
+
min: number;
|
419
|
+
/**
|
420
|
+
* @default Infinity
|
421
|
+
*/
|
422
|
+
max: number;
|
423
|
+
/**
|
424
|
+
* @default 'always'
|
425
|
+
*/
|
426
|
+
properties: "always" | "never";
|
427
|
+
exceptions: string[];
|
428
|
+
}>,
|
429
|
+
]
|
430
|
+
>;
|
431
|
+
|
432
|
+
/**
|
433
|
+
* Rule to require identifiers to match a specified regular expression.
|
434
|
+
*
|
435
|
+
* @since 1.0.0
|
436
|
+
* @see https://eslint.org/docs/rules/id-match
|
437
|
+
*/
|
438
|
+
"id-match": Linter.RuleEntry<
|
439
|
+
[
|
440
|
+
string,
|
441
|
+
Partial<{
|
442
|
+
/**
|
443
|
+
* @default false
|
444
|
+
*/
|
445
|
+
properties: boolean;
|
446
|
+
/**
|
447
|
+
* @default false
|
448
|
+
*/
|
449
|
+
onlyDeclarations: boolean;
|
450
|
+
/**
|
451
|
+
* @default false
|
452
|
+
*/
|
453
|
+
ignoreDestructuring: boolean;
|
454
|
+
}>,
|
455
|
+
]
|
456
|
+
>;
|
457
|
+
|
458
|
+
/**
|
459
|
+
* Rule to enforce the location of arrow function bodies.
|
460
|
+
*
|
461
|
+
* @since 4.12.0
|
462
|
+
* @see https://eslint.org/docs/rules/implicit-arrow-linebreak
|
463
|
+
*/
|
464
|
+
"implicit-arrow-linebreak": Linter.RuleEntry<["beside" | "below"]>;
|
465
|
+
|
466
|
+
/**
|
467
|
+
* Rule to enforce consistent indentation.
|
468
|
+
*
|
469
|
+
* @since 0.14.0
|
470
|
+
* @see https://eslint.org/docs/rules/indent
|
471
|
+
*/
|
472
|
+
indent: Linter.RuleEntry<
|
473
|
+
[
|
474
|
+
number | "tab",
|
475
|
+
Partial<{
|
476
|
+
/**
|
477
|
+
* @default 0
|
478
|
+
*/
|
479
|
+
SwitchCase: number;
|
480
|
+
/**
|
481
|
+
* @default 1
|
482
|
+
*/
|
483
|
+
VariableDeclarator:
|
484
|
+
| Partial<{
|
485
|
+
/**
|
486
|
+
* @default 1
|
487
|
+
*/
|
488
|
+
var: number | "first";
|
489
|
+
/**
|
490
|
+
* @default 1
|
491
|
+
*/
|
492
|
+
let: number | "first";
|
493
|
+
/**
|
494
|
+
* @default 1
|
495
|
+
*/
|
496
|
+
const: number | "first";
|
497
|
+
}>
|
498
|
+
| number
|
499
|
+
| "first";
|
500
|
+
/**
|
501
|
+
* @default 1
|
502
|
+
*/
|
503
|
+
outerIIFEBody: number;
|
504
|
+
/**
|
505
|
+
* @default 1
|
506
|
+
*/
|
507
|
+
MemberExpression: number | "off";
|
508
|
+
/**
|
509
|
+
* @default { parameters: 1, body: 1 }
|
510
|
+
*/
|
511
|
+
FunctionDeclaration: Partial<{
|
512
|
+
/**
|
513
|
+
* @default 1
|
514
|
+
*/
|
515
|
+
parameters: number | "first" | "off";
|
516
|
+
/**
|
517
|
+
* @default 1
|
518
|
+
*/
|
519
|
+
body: number;
|
520
|
+
}>;
|
521
|
+
/**
|
522
|
+
* @default { parameters: 1, body: 1 }
|
523
|
+
*/
|
524
|
+
FunctionExpression: Partial<{
|
525
|
+
/**
|
526
|
+
* @default 1
|
527
|
+
*/
|
528
|
+
parameters: number | "first" | "off";
|
529
|
+
/**
|
530
|
+
* @default 1
|
531
|
+
*/
|
532
|
+
body: number;
|
533
|
+
}>;
|
534
|
+
/**
|
535
|
+
* @default { arguments: 1 }
|
536
|
+
*/
|
537
|
+
CallExpression: Partial<{
|
538
|
+
/**
|
539
|
+
* @default 1
|
540
|
+
*/
|
541
|
+
arguments: number | "first" | "off";
|
542
|
+
}>;
|
543
|
+
/**
|
544
|
+
* @default 1
|
545
|
+
*/
|
546
|
+
ArrayExpression: number | "first" | "off";
|
547
|
+
/**
|
548
|
+
* @default 1
|
549
|
+
*/
|
550
|
+
ObjectExpression: number | "first" | "off";
|
551
|
+
/**
|
552
|
+
* @default 1
|
553
|
+
*/
|
554
|
+
ImportDeclaration: number | "first" | "off";
|
555
|
+
/**
|
556
|
+
* @default false
|
557
|
+
*/
|
558
|
+
flatTernaryExpressions: boolean;
|
559
|
+
ignoredNodes: string[];
|
560
|
+
/**
|
561
|
+
* @default false
|
562
|
+
*/
|
563
|
+
ignoreComments: boolean;
|
564
|
+
}>,
|
565
|
+
]
|
566
|
+
>;
|
567
|
+
|
568
|
+
/**
|
569
|
+
* Rule to enforce the consistent use of either double or single quotes in JSX attributes.
|
570
|
+
*
|
571
|
+
* @since 1.4.0
|
572
|
+
* @see https://eslint.org/docs/rules/jsx-quotes
|
573
|
+
*/
|
574
|
+
"jsx-quotes": Linter.RuleEntry<["prefer-double" | "prefer-single"]>;
|
575
|
+
|
576
|
+
/**
|
577
|
+
* Rule to enforce consistent spacing between keys and values in object literal properties.
|
578
|
+
*
|
579
|
+
* @since 0.9.0
|
580
|
+
* @see https://eslint.org/docs/rules/key-spacing
|
581
|
+
*/
|
582
|
+
"key-spacing": Linter.RuleEntry<
|
583
|
+
[
|
584
|
+
| Partial<
|
585
|
+
| {
|
586
|
+
/**
|
587
|
+
* @default false
|
588
|
+
*/
|
589
|
+
beforeColon: boolean;
|
590
|
+
/**
|
591
|
+
* @default true
|
592
|
+
*/
|
593
|
+
afterColon: boolean;
|
594
|
+
/**
|
595
|
+
* @default 'strict'
|
596
|
+
*/
|
597
|
+
mode: "strict" | "minimum";
|
598
|
+
align:
|
599
|
+
| Partial<{
|
600
|
+
/**
|
601
|
+
* @default false
|
602
|
+
*/
|
603
|
+
beforeColon: boolean;
|
604
|
+
/**
|
605
|
+
* @default true
|
606
|
+
*/
|
607
|
+
afterColon: boolean;
|
608
|
+
/**
|
609
|
+
* @default 'colon'
|
610
|
+
*/
|
611
|
+
on: "value" | "colon";
|
612
|
+
/**
|
613
|
+
* @default 'strict'
|
614
|
+
*/
|
615
|
+
mode: "strict" | "minimum";
|
616
|
+
}>
|
617
|
+
| "value"
|
618
|
+
| "colon";
|
619
|
+
}
|
620
|
+
| {
|
621
|
+
singleLine?:
|
622
|
+
| Partial<{
|
623
|
+
/**
|
624
|
+
* @default false
|
625
|
+
*/
|
626
|
+
beforeColon: boolean;
|
627
|
+
/**
|
628
|
+
* @default true
|
629
|
+
*/
|
630
|
+
afterColon: boolean;
|
631
|
+
/**
|
632
|
+
* @default 'strict'
|
633
|
+
*/
|
634
|
+
mode: "strict" | "minimum";
|
635
|
+
}>
|
636
|
+
| undefined;
|
637
|
+
multiLine?:
|
638
|
+
| Partial<{
|
639
|
+
/**
|
640
|
+
* @default false
|
641
|
+
*/
|
642
|
+
beforeColon: boolean;
|
643
|
+
/**
|
644
|
+
* @default true
|
645
|
+
*/
|
646
|
+
afterColon: boolean;
|
647
|
+
/**
|
648
|
+
* @default 'strict'
|
649
|
+
*/
|
650
|
+
mode: "strict" | "minimum";
|
651
|
+
align:
|
652
|
+
| Partial<{
|
653
|
+
/**
|
654
|
+
* @default false
|
655
|
+
*/
|
656
|
+
beforeColon: boolean;
|
657
|
+
/**
|
658
|
+
* @default true
|
659
|
+
*/
|
660
|
+
afterColon: boolean;
|
661
|
+
/**
|
662
|
+
* @default 'colon'
|
663
|
+
*/
|
664
|
+
on: "value" | "colon";
|
665
|
+
/**
|
666
|
+
* @default 'strict'
|
667
|
+
*/
|
668
|
+
mode: "strict" | "minimum";
|
669
|
+
}>
|
670
|
+
| "value"
|
671
|
+
| "colon";
|
672
|
+
}>
|
673
|
+
| undefined;
|
674
|
+
}
|
675
|
+
>
|
676
|
+
| {
|
677
|
+
align: Partial<{
|
678
|
+
/**
|
679
|
+
* @default false
|
680
|
+
*/
|
681
|
+
beforeColon: boolean;
|
682
|
+
/**
|
683
|
+
* @default true
|
684
|
+
*/
|
685
|
+
afterColon: boolean;
|
686
|
+
/**
|
687
|
+
* @default 'colon'
|
688
|
+
*/
|
689
|
+
on: "value" | "colon";
|
690
|
+
/**
|
691
|
+
* @default 'strict'
|
692
|
+
*/
|
693
|
+
mode: "strict" | "minimum";
|
694
|
+
}>;
|
695
|
+
singleLine?:
|
696
|
+
| Partial<{
|
697
|
+
/**
|
698
|
+
* @default false
|
699
|
+
*/
|
700
|
+
beforeColon: boolean;
|
701
|
+
/**
|
702
|
+
* @default true
|
703
|
+
*/
|
704
|
+
afterColon: boolean;
|
705
|
+
/**
|
706
|
+
* @default 'strict'
|
707
|
+
*/
|
708
|
+
mode: "strict" | "minimum";
|
709
|
+
}>
|
710
|
+
| undefined;
|
711
|
+
multiLine?:
|
712
|
+
| Partial<{
|
713
|
+
/**
|
714
|
+
* @default false
|
715
|
+
*/
|
716
|
+
beforeColon: boolean;
|
717
|
+
/**
|
718
|
+
* @default true
|
719
|
+
*/
|
720
|
+
afterColon: boolean;
|
721
|
+
/**
|
722
|
+
* @default 'strict'
|
723
|
+
*/
|
724
|
+
mode: "strict" | "minimum";
|
725
|
+
}>
|
726
|
+
| undefined;
|
727
|
+
},
|
728
|
+
]
|
729
|
+
>;
|
730
|
+
|
731
|
+
/**
|
732
|
+
* Rule to enforce consistent spacing before and after keywords.
|
733
|
+
*
|
734
|
+
* @since 2.0.0-beta.1
|
735
|
+
* @see https://eslint.org/docs/rules/keyword-spacing
|
736
|
+
*/
|
737
|
+
"keyword-spacing": Linter.RuleEntry<
|
738
|
+
[
|
739
|
+
Partial<{
|
740
|
+
/**
|
741
|
+
* @default true
|
742
|
+
*/
|
743
|
+
before: boolean;
|
744
|
+
/**
|
745
|
+
* @default true
|
746
|
+
*/
|
747
|
+
after: boolean;
|
748
|
+
overrides: Record<
|
749
|
+
string,
|
750
|
+
Partial<{
|
751
|
+
before: boolean;
|
752
|
+
after: boolean;
|
753
|
+
}>
|
754
|
+
>;
|
755
|
+
}>,
|
756
|
+
]
|
757
|
+
>;
|
758
|
+
|
759
|
+
/**
|
760
|
+
* Rule to enforce position of line comments.
|
761
|
+
*
|
762
|
+
* @since 3.5.0
|
763
|
+
* @see https://eslint.org/docs/rules/line-comment-position
|
764
|
+
*/
|
765
|
+
"line-comment-position": Linter.RuleEntry<
|
766
|
+
[
|
767
|
+
Partial<{
|
768
|
+
/**
|
769
|
+
* @default 'above'
|
770
|
+
*/
|
771
|
+
position: "above" | "beside";
|
772
|
+
ignorePattern: string;
|
773
|
+
/**
|
774
|
+
* @default true
|
775
|
+
*/
|
776
|
+
applyDefaultIgnorePatterns: boolean;
|
777
|
+
}>,
|
778
|
+
]
|
779
|
+
>;
|
780
|
+
|
781
|
+
/**
|
782
|
+
* Rule to enforce consistent linebreak style.
|
783
|
+
*
|
784
|
+
* @since 0.21.0
|
785
|
+
* @see https://eslint.org/docs/rules/linebreak-style
|
786
|
+
*/
|
787
|
+
"linebreak-style": Linter.RuleEntry<["unix" | "windows"]>;
|
788
|
+
|
789
|
+
/**
|
790
|
+
* Rule to require empty lines around comments.
|
791
|
+
*
|
792
|
+
* @since 0.22.0
|
793
|
+
* @see https://eslint.org/docs/rules/lines-around-comment
|
794
|
+
*/
|
795
|
+
"lines-around-comment": Linter.RuleEntry<
|
796
|
+
[
|
797
|
+
Partial<{
|
798
|
+
/**
|
799
|
+
* @default true
|
800
|
+
*/
|
801
|
+
beforeBlockComment: boolean;
|
802
|
+
/**
|
803
|
+
* @default false
|
804
|
+
*/
|
805
|
+
afterBlockComment: boolean;
|
806
|
+
/**
|
807
|
+
* @default false
|
808
|
+
*/
|
809
|
+
beforeLineComment: boolean;
|
810
|
+
/**
|
811
|
+
* @default false
|
812
|
+
*/
|
813
|
+
afterLineComment: boolean;
|
814
|
+
/**
|
815
|
+
* @default false
|
816
|
+
*/
|
817
|
+
allowBlockStart: boolean;
|
818
|
+
/**
|
819
|
+
* @default false
|
820
|
+
*/
|
821
|
+
allowBlockEnd: boolean;
|
822
|
+
/**
|
823
|
+
* @default false
|
824
|
+
*/
|
825
|
+
allowObjectStart: boolean;
|
826
|
+
/**
|
827
|
+
* @default false
|
828
|
+
*/
|
829
|
+
allowObjectEnd: boolean;
|
830
|
+
/**
|
831
|
+
* @default false
|
832
|
+
*/
|
833
|
+
allowArrayStart: boolean;
|
834
|
+
/**
|
835
|
+
* @default false
|
836
|
+
*/
|
837
|
+
allowArrayEnd: boolean;
|
838
|
+
/**
|
839
|
+
* @default false
|
840
|
+
*/
|
841
|
+
allowClassStart: boolean;
|
842
|
+
/**
|
843
|
+
* @default false
|
844
|
+
*/
|
845
|
+
allowClassEnd: boolean;
|
846
|
+
ignorePattern: string;
|
847
|
+
/**
|
848
|
+
* @default true
|
849
|
+
*/
|
850
|
+
applyDefaultIgnorePatterns: boolean;
|
851
|
+
}>,
|
852
|
+
]
|
853
|
+
>;
|
854
|
+
|
855
|
+
/**
|
856
|
+
* Rule to require or disallow an empty line between class members.
|
857
|
+
*
|
858
|
+
* @since 4.9.0
|
859
|
+
* @see https://eslint.org/docs/rules/lines-between-class-members
|
860
|
+
*/
|
861
|
+
"lines-between-class-members": Linter.RuleEntry<
|
862
|
+
[
|
863
|
+
"always" | "never",
|
864
|
+
Partial<{
|
865
|
+
/**
|
866
|
+
* @default false
|
867
|
+
*/
|
868
|
+
exceptAfterSingleLine: boolean;
|
869
|
+
}>,
|
870
|
+
]
|
871
|
+
>;
|
872
|
+
|
873
|
+
/**
|
874
|
+
* Rule to enforce a maximum depth that blocks can be nested.
|
875
|
+
*
|
876
|
+
* @since 0.0.9
|
877
|
+
* @see https://eslint.org/docs/rules/max-depth
|
878
|
+
*/
|
879
|
+
"max-depth": Linter.RuleEntry<
|
880
|
+
[
|
881
|
+
Partial<{
|
882
|
+
/**
|
883
|
+
* @default 4
|
884
|
+
*/
|
885
|
+
max: number;
|
886
|
+
}>,
|
887
|
+
]
|
888
|
+
>;
|
889
|
+
|
890
|
+
/**
|
891
|
+
* Rule to enforce a maximum line length.
|
892
|
+
*
|
893
|
+
* @since 0.0.9
|
894
|
+
* @see https://eslint.org/docs/rules/max-len
|
895
|
+
*/
|
896
|
+
"max-len": Linter.RuleEntry<
|
897
|
+
[
|
898
|
+
Partial<{
|
899
|
+
/**
|
900
|
+
* @default 80
|
901
|
+
*/
|
902
|
+
code: number;
|
903
|
+
/**
|
904
|
+
* @default 4
|
905
|
+
*/
|
906
|
+
tabWidth: number;
|
907
|
+
comments: number;
|
908
|
+
ignorePattern: string;
|
909
|
+
/**
|
910
|
+
* @default false
|
911
|
+
*/
|
912
|
+
ignoreComments: boolean;
|
913
|
+
/**
|
914
|
+
* @default false
|
915
|
+
*/
|
916
|
+
ignoreTrailingComments: boolean;
|
917
|
+
/**
|
918
|
+
* @default false
|
919
|
+
*/
|
920
|
+
ignoreUrls: boolean;
|
921
|
+
/**
|
922
|
+
* @default false
|
923
|
+
*/
|
924
|
+
ignoreStrings: boolean;
|
925
|
+
/**
|
926
|
+
* @default false
|
927
|
+
*/
|
928
|
+
ignoreTemplateLiterals: boolean;
|
929
|
+
/**
|
930
|
+
* @default false
|
931
|
+
*/
|
932
|
+
ignoreRegExpLiterals: boolean;
|
933
|
+
}>,
|
934
|
+
]
|
935
|
+
>;
|
936
|
+
|
937
|
+
/**
|
938
|
+
* Rule to enforce a maximum number of lines per file.
|
939
|
+
*
|
940
|
+
* @since 2.12.0
|
941
|
+
* @see https://eslint.org/docs/rules/max-lines
|
942
|
+
*/
|
943
|
+
"max-lines": Linter.RuleEntry<
|
944
|
+
[
|
945
|
+
| Partial<{
|
946
|
+
/**
|
947
|
+
* @default 300
|
948
|
+
*/
|
949
|
+
max: number;
|
950
|
+
/**
|
951
|
+
* @default false
|
952
|
+
*/
|
953
|
+
skipBlankLines: boolean;
|
954
|
+
/**
|
955
|
+
* @default false
|
956
|
+
*/
|
957
|
+
skipComments: boolean;
|
958
|
+
}>
|
959
|
+
| number,
|
960
|
+
]
|
961
|
+
>;
|
962
|
+
|
963
|
+
/**
|
964
|
+
* Rule to enforce a maximum number of line of code in a function.
|
965
|
+
*
|
966
|
+
* @since 5.0.0
|
967
|
+
* @see https://eslint.org/docs/rules/max-lines-per-function
|
968
|
+
*/
|
969
|
+
"max-lines-per-function": Linter.RuleEntry<
|
970
|
+
[
|
971
|
+
Partial<{
|
972
|
+
/**
|
973
|
+
* @default 50
|
974
|
+
*/
|
975
|
+
max: number;
|
976
|
+
/**
|
977
|
+
* @default false
|
978
|
+
*/
|
979
|
+
skipBlankLines: boolean;
|
980
|
+
/**
|
981
|
+
* @default false
|
982
|
+
*/
|
983
|
+
skipComments: boolean;
|
984
|
+
/**
|
985
|
+
* @default false
|
986
|
+
*/
|
987
|
+
IIFEs: boolean;
|
988
|
+
}>,
|
989
|
+
]
|
990
|
+
>;
|
991
|
+
|
992
|
+
/**
|
993
|
+
* Rule to enforce a maximum depth that callbacks can be nested.
|
994
|
+
*
|
995
|
+
* @since 0.2.0
|
996
|
+
* @see https://eslint.org/docs/rules/max-nested-callbacks
|
997
|
+
*/
|
998
|
+
"max-nested-callbacks": Linter.RuleEntry<
|
999
|
+
[
|
1000
|
+
| Partial<{
|
1001
|
+
/**
|
1002
|
+
* @default 10
|
1003
|
+
*/
|
1004
|
+
max: number;
|
1005
|
+
}>
|
1006
|
+
| number,
|
1007
|
+
]
|
1008
|
+
>;
|
1009
|
+
|
1010
|
+
/**
|
1011
|
+
* Rule to enforce a maximum number of parameters in function definitions.
|
1012
|
+
*
|
1013
|
+
* @since 0.0.9
|
1014
|
+
* @see https://eslint.org/docs/rules/max-params
|
1015
|
+
*/
|
1016
|
+
"max-params": Linter.RuleEntry<
|
1017
|
+
[
|
1018
|
+
| Partial<{
|
1019
|
+
/**
|
1020
|
+
* @default 3
|
1021
|
+
*/
|
1022
|
+
max: number;
|
1023
|
+
}>
|
1024
|
+
| number,
|
1025
|
+
]
|
1026
|
+
>;
|
1027
|
+
|
1028
|
+
/**
|
1029
|
+
* Rule to enforce a maximum number of statements allowed in function blocks.
|
1030
|
+
*
|
1031
|
+
* @since 0.0.9
|
1032
|
+
* @see https://eslint.org/docs/rules/max-statements
|
1033
|
+
*/
|
1034
|
+
"max-statements": Linter.RuleEntry<
|
1035
|
+
[
|
1036
|
+
| Partial<{
|
1037
|
+
/**
|
1038
|
+
* @default 10
|
1039
|
+
*/
|
1040
|
+
max: number;
|
1041
|
+
/**
|
1042
|
+
* @default false
|
1043
|
+
*/
|
1044
|
+
ignoreTopLevelFunctions: boolean;
|
1045
|
+
}>
|
1046
|
+
| number,
|
1047
|
+
]
|
1048
|
+
>;
|
1049
|
+
|
1050
|
+
/**
|
1051
|
+
* Rule to enforce a maximum number of statements allowed per line.
|
1052
|
+
*
|
1053
|
+
* @since 2.5.0
|
1054
|
+
* @see https://eslint.org/docs/rules/max-statements-per-line
|
1055
|
+
*/
|
1056
|
+
"max-statements-per-line": Linter.RuleEntry<
|
1057
|
+
[
|
1058
|
+
| Partial<{
|
1059
|
+
/**
|
1060
|
+
* @default 1
|
1061
|
+
*/
|
1062
|
+
max: number;
|
1063
|
+
}>
|
1064
|
+
| number,
|
1065
|
+
]
|
1066
|
+
>;
|
1067
|
+
|
1068
|
+
/**
|
1069
|
+
* Rule to enforce a particular style for multiline comments.
|
1070
|
+
*
|
1071
|
+
* @since 4.10.0
|
1072
|
+
* @see https://eslint.org/docs/rules/multiline-comment-style
|
1073
|
+
*/
|
1074
|
+
"multiline-comment-style": Linter.RuleEntry<["starred-block" | "bare-block" | "separate-lines"]>;
|
1075
|
+
|
1076
|
+
/**
|
1077
|
+
* Rule to enforce newlines between operands of ternary expressions.
|
1078
|
+
*
|
1079
|
+
* @since 3.1.0
|
1080
|
+
* @see https://eslint.org/docs/rules/multiline-ternary
|
1081
|
+
*/
|
1082
|
+
"multiline-ternary": Linter.RuleEntry<["always" | "always-multiline" | "never"]>;
|
1083
|
+
|
1084
|
+
/**
|
1085
|
+
* Rule to require constructor names to begin with a capital letter.
|
1086
|
+
*
|
1087
|
+
* @since 0.0.3-0
|
1088
|
+
* @see https://eslint.org/docs/rules/new-cap
|
1089
|
+
*/
|
1090
|
+
"new-cap": Linter.RuleEntry<
|
1091
|
+
[
|
1092
|
+
Partial<{
|
1093
|
+
/**
|
1094
|
+
* @default true
|
1095
|
+
*/
|
1096
|
+
newIsCap: boolean;
|
1097
|
+
/**
|
1098
|
+
* @default true
|
1099
|
+
*/
|
1100
|
+
capIsNew: boolean;
|
1101
|
+
newIsCapExceptions: string[];
|
1102
|
+
newIsCapExceptionPattern: string;
|
1103
|
+
capIsNewExceptions: string[];
|
1104
|
+
capIsNewExceptionPattern: string;
|
1105
|
+
/**
|
1106
|
+
* @default true
|
1107
|
+
*/
|
1108
|
+
properties: boolean;
|
1109
|
+
}>,
|
1110
|
+
]
|
1111
|
+
>;
|
1112
|
+
|
1113
|
+
/**
|
1114
|
+
* Rule to enforce or disallow parentheses when invoking a constructor with no arguments.
|
1115
|
+
*
|
1116
|
+
* @since 0.0.6
|
1117
|
+
* @see https://eslint.org/docs/rules/new-parens
|
1118
|
+
*/
|
1119
|
+
"new-parens": Linter.RuleEntry<["always" | "never"]>;
|
1120
|
+
|
1121
|
+
/**
|
1122
|
+
* Rule to require a newline after each call in a method chain.
|
1123
|
+
*
|
1124
|
+
* @since 2.0.0-rc.0
|
1125
|
+
* @see https://eslint.org/docs/rules/newline-per-chained-call
|
1126
|
+
*/
|
1127
|
+
"newline-per-chained-call": Linter.RuleEntry<
|
1128
|
+
[
|
1129
|
+
{
|
1130
|
+
/**
|
1131
|
+
* @default 2
|
1132
|
+
*/
|
1133
|
+
ignoreChainWithDepth: number;
|
1134
|
+
},
|
1135
|
+
]
|
1136
|
+
>;
|
1137
|
+
|
1138
|
+
/**
|
1139
|
+
* Rule to disallow `Array` constructors.
|
1140
|
+
*
|
1141
|
+
* @since 0.4.0
|
1142
|
+
* @see https://eslint.org/docs/rules/no-array-constructor
|
1143
|
+
*/
|
1144
|
+
"no-array-constructor": Linter.RuleEntry<[]>;
|
1145
|
+
|
1146
|
+
/**
|
1147
|
+
* Rule to disallow bitwise operators.
|
1148
|
+
*
|
1149
|
+
* @since 0.0.2
|
1150
|
+
* @see https://eslint.org/docs/rules/no-bitwise
|
1151
|
+
*/
|
1152
|
+
"no-bitwise": Linter.RuleEntry<
|
1153
|
+
[
|
1154
|
+
Partial<{
|
1155
|
+
allow: string[];
|
1156
|
+
/**
|
1157
|
+
* @default false
|
1158
|
+
*/
|
1159
|
+
int32Hint: boolean;
|
1160
|
+
}>,
|
1161
|
+
]
|
1162
|
+
>;
|
1163
|
+
|
1164
|
+
/**
|
1165
|
+
* Rule to disallow `continue` statements.
|
1166
|
+
*
|
1167
|
+
* @since 0.19.0
|
1168
|
+
* @see https://eslint.org/docs/rules/no-continue
|
1169
|
+
*/
|
1170
|
+
"no-continue": Linter.RuleEntry<[]>;
|
1171
|
+
|
1172
|
+
/**
|
1173
|
+
* Rule to disallow inline comments after code.
|
1174
|
+
*
|
1175
|
+
* @since 0.10.0
|
1176
|
+
* @see https://eslint.org/docs/rules/no-inline-comments
|
1177
|
+
*/
|
1178
|
+
"no-inline-comments": Linter.RuleEntry<[]>;
|
1179
|
+
|
1180
|
+
/**
|
1181
|
+
* Rule to disallow `if` statements as the only statement in `else` blocks.
|
1182
|
+
*
|
1183
|
+
* @since 0.6.0
|
1184
|
+
* @see https://eslint.org/docs/rules/no-lonely-if
|
1185
|
+
*/
|
1186
|
+
"no-lonely-if": Linter.RuleEntry<[]>;
|
1187
|
+
|
1188
|
+
/**
|
1189
|
+
* Rule to disallow mixed binary operators.
|
1190
|
+
*
|
1191
|
+
* @since 2.12.0
|
1192
|
+
* @see https://eslint.org/docs/rules/no-mixed-operators
|
1193
|
+
*/
|
1194
|
+
"no-mixed-operators": Linter.RuleEntry<
|
1195
|
+
[
|
1196
|
+
Partial<{
|
1197
|
+
/**
|
1198
|
+
* @default
|
1199
|
+
* [
|
1200
|
+
* ["+", "-", "*", "/", "%", "**"],
|
1201
|
+
* ["&", "|", "^", "~", "<<", ">>", ">>>"],
|
1202
|
+
* ["==", "!=", "===", "!==", ">", ">=", "<", "<="],
|
1203
|
+
* ["&&", "||"],
|
1204
|
+
* ["in", "instanceof"]
|
1205
|
+
* ]
|
1206
|
+
*/
|
1207
|
+
groups: string[][];
|
1208
|
+
/**
|
1209
|
+
* @default true
|
1210
|
+
*/
|
1211
|
+
allowSamePrecedence: boolean;
|
1212
|
+
}>,
|
1213
|
+
]
|
1214
|
+
>;
|
1215
|
+
|
1216
|
+
/**
|
1217
|
+
* Rule to disallow mixed spaces and tabs for indentation.
|
1218
|
+
*
|
1219
|
+
* @remarks
|
1220
|
+
* Recommended by ESLint, the rule was enabled in `eslint:recommended`.
|
1221
|
+
*
|
1222
|
+
* @since 0.7.1
|
1223
|
+
* @see https://eslint.org/docs/rules/no-mixed-spaces-and-tabs
|
1224
|
+
*/
|
1225
|
+
"no-mixed-spaces-and-tabs": Linter.RuleEntry<["smart-tabs"]>;
|
1226
|
+
|
1227
|
+
/**
|
1228
|
+
* Rule to disallow use of chained assignment expressions.
|
1229
|
+
*
|
1230
|
+
* @since 3.14.0
|
1231
|
+
* @see https://eslint.org/docs/rules/no-multi-assign
|
1232
|
+
*/
|
1233
|
+
"no-multi-assign": Linter.RuleEntry<[]>;
|
1234
|
+
|
1235
|
+
/**
|
1236
|
+
* Rule to disallow multiple empty lines.
|
1237
|
+
*
|
1238
|
+
* @since 0.9.0
|
1239
|
+
* @see https://eslint.org/docs/rules/no-multiple-empty-lines
|
1240
|
+
*/
|
1241
|
+
"no-multiple-empty-lines": Linter.RuleEntry<
|
1242
|
+
[
|
1243
|
+
| Partial<{
|
1244
|
+
/**
|
1245
|
+
* @default 2
|
1246
|
+
*/
|
1247
|
+
max: number;
|
1248
|
+
maxEOF: number;
|
1249
|
+
maxBOF: number;
|
1250
|
+
}>
|
1251
|
+
| number,
|
1252
|
+
]
|
1253
|
+
>;
|
1254
|
+
|
1255
|
+
/**
|
1256
|
+
* Rule to disallow negated conditions.
|
1257
|
+
*
|
1258
|
+
* @since 1.6.0
|
1259
|
+
* @see https://eslint.org/docs/rules/no-negated-condition
|
1260
|
+
*/
|
1261
|
+
"no-negated-condition": Linter.RuleEntry<[]>;
|
1262
|
+
|
1263
|
+
/**
|
1264
|
+
* Rule to disallow nested ternary expressions.
|
1265
|
+
*
|
1266
|
+
* @since 0.2.0
|
1267
|
+
* @see https://eslint.org/docs/rules/no-nested-ternary
|
1268
|
+
*/
|
1269
|
+
"no-nested-ternary": Linter.RuleEntry<[]>;
|
1270
|
+
|
1271
|
+
/**
|
1272
|
+
* Rule to disallow `Object` constructors.
|
1273
|
+
*
|
1274
|
+
* @since 0.0.9
|
1275
|
+
* @see https://eslint.org/docs/rules/no-new-object
|
1276
|
+
*/
|
1277
|
+
"no-new-object": Linter.RuleEntry<[]>;
|
1278
|
+
|
1279
|
+
/**
|
1280
|
+
* Rule to disallow the unary operators `++` and `--`.
|
1281
|
+
*
|
1282
|
+
* @since 0.0.9
|
1283
|
+
* @see https://eslint.org/docs/rules/no-plusplus
|
1284
|
+
*/
|
1285
|
+
"no-plusplus": Linter.RuleEntry<
|
1286
|
+
[
|
1287
|
+
Partial<{
|
1288
|
+
/**
|
1289
|
+
* @default false
|
1290
|
+
*/
|
1291
|
+
allowForLoopAfterthoughts: boolean;
|
1292
|
+
}>,
|
1293
|
+
]
|
1294
|
+
>;
|
1295
|
+
|
1296
|
+
/**
|
1297
|
+
* Rule to disallow specified syntax.
|
1298
|
+
*
|
1299
|
+
* @since 1.4.0
|
1300
|
+
* @see https://eslint.org/docs/rules/no-restricted-syntax
|
1301
|
+
*/
|
1302
|
+
"no-restricted-syntax": Linter.RuleEntry<
|
1303
|
+
[
|
1304
|
+
...Array<
|
1305
|
+
| string
|
1306
|
+
| {
|
1307
|
+
selector: string;
|
1308
|
+
message?: string | undefined;
|
1309
|
+
}
|
1310
|
+
>,
|
1311
|
+
]
|
1312
|
+
>;
|
1313
|
+
|
1314
|
+
/**
|
1315
|
+
* Rule to disallow all tabs.
|
1316
|
+
*
|
1317
|
+
* @since 3.2.0
|
1318
|
+
* @see https://eslint.org/docs/rules/no-tabs
|
1319
|
+
*/
|
1320
|
+
"no-tabs": Linter.RuleEntry<
|
1321
|
+
[
|
1322
|
+
Partial<{
|
1323
|
+
/**
|
1324
|
+
* @default false
|
1325
|
+
*/
|
1326
|
+
allowIndentationTabs: boolean;
|
1327
|
+
}>,
|
1328
|
+
]
|
1329
|
+
>;
|
1330
|
+
|
1331
|
+
/**
|
1332
|
+
* Rule to disallow ternary operators.
|
1333
|
+
*
|
1334
|
+
* @since 0.0.9
|
1335
|
+
* @see https://eslint.org/docs/rules/no-ternary
|
1336
|
+
*/
|
1337
|
+
"no-ternary": Linter.RuleEntry<[]>;
|
1338
|
+
|
1339
|
+
/**
|
1340
|
+
* Rule to disallow trailing whitespace at the end of lines.
|
1341
|
+
*
|
1342
|
+
* @since 0.7.1
|
1343
|
+
* @see https://eslint.org/docs/rules/no-trailing-spaces
|
1344
|
+
*/
|
1345
|
+
"no-trailing-spaces": Linter.RuleEntry<
|
1346
|
+
[
|
1347
|
+
Partial<{
|
1348
|
+
/**
|
1349
|
+
* @default false
|
1350
|
+
*/
|
1351
|
+
skipBlankLines: boolean;
|
1352
|
+
/**
|
1353
|
+
* @default false
|
1354
|
+
*/
|
1355
|
+
ignoreComments: boolean;
|
1356
|
+
}>,
|
1357
|
+
]
|
1358
|
+
>;
|
1359
|
+
|
1360
|
+
/**
|
1361
|
+
* Rule to disallow dangling underscores in identifiers.
|
1362
|
+
*
|
1363
|
+
* @since 0.0.9
|
1364
|
+
* @see https://eslint.org/docs/rules/no-underscore-dangle
|
1365
|
+
*/
|
1366
|
+
"no-underscore-dangle": Linter.RuleEntry<
|
1367
|
+
[
|
1368
|
+
Partial<{
|
1369
|
+
allow: string[];
|
1370
|
+
/**
|
1371
|
+
* @default false
|
1372
|
+
*/
|
1373
|
+
allowAfterThis: boolean;
|
1374
|
+
/**
|
1375
|
+
* @default false
|
1376
|
+
*/
|
1377
|
+
allowAfterSuper: boolean;
|
1378
|
+
/**
|
1379
|
+
* @default false
|
1380
|
+
*/
|
1381
|
+
enforceInMethodNames: boolean;
|
1382
|
+
}>,
|
1383
|
+
]
|
1384
|
+
>;
|
1385
|
+
|
1386
|
+
/**
|
1387
|
+
* Rule to disallow ternary operators when simpler alternatives exist.
|
1388
|
+
*
|
1389
|
+
* @since 0.21.0
|
1390
|
+
* @see https://eslint.org/docs/rules/no-unneeded-ternary
|
1391
|
+
*/
|
1392
|
+
"no-unneeded-ternary": Linter.RuleEntry<
|
1393
|
+
[
|
1394
|
+
Partial<{
|
1395
|
+
/**
|
1396
|
+
* @default true
|
1397
|
+
*/
|
1398
|
+
defaultAssignment: boolean;
|
1399
|
+
}>,
|
1400
|
+
]
|
1401
|
+
>;
|
1402
|
+
|
1403
|
+
/**
|
1404
|
+
* Rule to disallow whitespace before properties.
|
1405
|
+
*
|
1406
|
+
* @since 2.0.0-beta.1
|
1407
|
+
* @see https://eslint.org/docs/rules/no-whitespace-before-property
|
1408
|
+
*/
|
1409
|
+
"no-whitespace-before-property": Linter.RuleEntry<[]>;
|
1410
|
+
|
1411
|
+
/**
|
1412
|
+
* Rule to enforce the location of single-line statements.
|
1413
|
+
*
|
1414
|
+
* @since 3.17.0
|
1415
|
+
* @see https://eslint.org/docs/rules/nonblock-statement-body-position
|
1416
|
+
*/
|
1417
|
+
"nonblock-statement-body-position": Linter.RuleEntry<
|
1418
|
+
[
|
1419
|
+
"beside" | "below" | "any",
|
1420
|
+
Partial<{
|
1421
|
+
overrides: Record<string, "beside" | "below" | "any">;
|
1422
|
+
}>,
|
1423
|
+
]
|
1424
|
+
>;
|
1425
|
+
|
1426
|
+
/**
|
1427
|
+
* Rule to enforce consistent line breaks inside braces.
|
1428
|
+
*
|
1429
|
+
* @since 2.12.0
|
1430
|
+
* @see https://eslint.org/docs/rules/object-curly-newline
|
1431
|
+
*/
|
1432
|
+
"object-curly-newline": Linter.RuleEntry<
|
1433
|
+
[
|
1434
|
+
| "always"
|
1435
|
+
| "never"
|
1436
|
+
| Partial<{
|
1437
|
+
/**
|
1438
|
+
* @default false
|
1439
|
+
*/
|
1440
|
+
multiline: boolean;
|
1441
|
+
minProperties: number;
|
1442
|
+
/**
|
1443
|
+
* @default true
|
1444
|
+
*/
|
1445
|
+
consistent: boolean;
|
1446
|
+
}>
|
1447
|
+
| Partial<
|
1448
|
+
Record<
|
1449
|
+
"ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportDeclaration",
|
1450
|
+
| "always"
|
1451
|
+
| "never"
|
1452
|
+
| Partial<{
|
1453
|
+
/**
|
1454
|
+
* @default false
|
1455
|
+
*/
|
1456
|
+
multiline: boolean;
|
1457
|
+
minProperties: number;
|
1458
|
+
/**
|
1459
|
+
* @default true
|
1460
|
+
*/
|
1461
|
+
consistent: boolean;
|
1462
|
+
}>
|
1463
|
+
>
|
1464
|
+
>,
|
1465
|
+
]
|
1466
|
+
>;
|
1467
|
+
|
1468
|
+
/**
|
1469
|
+
* Rule to enforce consistent spacing inside braces.
|
1470
|
+
*
|
1471
|
+
* @since 0.22.0
|
1472
|
+
* @see https://eslint.org/docs/rules/object-curly-spacing
|
1473
|
+
*/
|
1474
|
+
"object-curly-spacing":
|
1475
|
+
| Linter.RuleEntry<
|
1476
|
+
[
|
1477
|
+
"never",
|
1478
|
+
{
|
1479
|
+
/**
|
1480
|
+
* @default false
|
1481
|
+
*/
|
1482
|
+
arraysInObjects: boolean;
|
1483
|
+
/**
|
1484
|
+
* @default false
|
1485
|
+
*/
|
1486
|
+
objectsInObjects: boolean;
|
1487
|
+
},
|
1488
|
+
]
|
1489
|
+
>
|
1490
|
+
| Linter.RuleEntry<
|
1491
|
+
[
|
1492
|
+
"always",
|
1493
|
+
{
|
1494
|
+
/**
|
1495
|
+
* @default true
|
1496
|
+
*/
|
1497
|
+
arraysInObjects: boolean;
|
1498
|
+
/**
|
1499
|
+
* @default true
|
1500
|
+
*/
|
1501
|
+
objectsInObjects: boolean;
|
1502
|
+
},
|
1503
|
+
]
|
1504
|
+
>;
|
1505
|
+
|
1506
|
+
/**
|
1507
|
+
* Rule to enforce placing object properties on separate lines.
|
1508
|
+
*
|
1509
|
+
* @since 2.10.0
|
1510
|
+
* @see https://eslint.org/docs/rules/object-property-newline
|
1511
|
+
*/
|
1512
|
+
"object-property-newline": Linter.RuleEntry<
|
1513
|
+
[
|
1514
|
+
Partial<{
|
1515
|
+
/**
|
1516
|
+
* @default false
|
1517
|
+
*/
|
1518
|
+
allowAllPropertiesOnSameLine: boolean;
|
1519
|
+
}>,
|
1520
|
+
]
|
1521
|
+
>;
|
1522
|
+
|
1523
|
+
/**
|
1524
|
+
* Rule to enforce variables to be declared either together or separately in functions.
|
1525
|
+
*
|
1526
|
+
* @since 0.0.9
|
1527
|
+
* @see https://eslint.org/docs/rules/one-var
|
1528
|
+
*/
|
1529
|
+
"one-var": Linter.RuleEntry<
|
1530
|
+
[
|
1531
|
+
| "always"
|
1532
|
+
| "never"
|
1533
|
+
| "consecutive"
|
1534
|
+
| Partial<
|
1535
|
+
{
|
1536
|
+
/**
|
1537
|
+
* @default false
|
1538
|
+
*/
|
1539
|
+
separateRequires: boolean;
|
1540
|
+
} & Record<"var" | "let" | "const", "always" | "never" | "consecutive">
|
1541
|
+
>
|
1542
|
+
| Partial<Record<"initialized" | "uninitialized", "always" | "never" | "consecutive">>,
|
1543
|
+
]
|
1544
|
+
>;
|
1545
|
+
|
1546
|
+
/**
|
1547
|
+
* Rule to require or disallow newlines around variable declarations.
|
1548
|
+
*
|
1549
|
+
* @since 2.0.0-beta.3
|
1550
|
+
* @see https://eslint.org/docs/rules/one-var-declaration-per-line
|
1551
|
+
*/
|
1552
|
+
"one-var-declaration-per-line": Linter.RuleEntry<["initializations" | "always"]>;
|
1553
|
+
|
1554
|
+
/**
|
1555
|
+
* Rule to require or disallow assignment operator shorthand where possible.
|
1556
|
+
*
|
1557
|
+
* @since 0.10.0
|
1558
|
+
* @see https://eslint.org/docs/rules/operator-assignment
|
1559
|
+
*/
|
1560
|
+
"operator-assignment": Linter.RuleEntry<["always" | "never"]>;
|
1561
|
+
|
1562
|
+
/**
|
1563
|
+
* Rule to enforce consistent linebreak style for operators.
|
1564
|
+
*
|
1565
|
+
* @since 0.19.0
|
1566
|
+
* @see https://eslint.org/docs/rules/operator-linebreak
|
1567
|
+
*/
|
1568
|
+
"operator-linebreak": Linter.RuleEntry<
|
1569
|
+
[
|
1570
|
+
"after" | "before" | "none",
|
1571
|
+
Partial<{
|
1572
|
+
overrides: Record<string, "after" | "before" | "none">;
|
1573
|
+
}>,
|
1574
|
+
]
|
1575
|
+
>;
|
1576
|
+
|
1577
|
+
/**
|
1578
|
+
* Rule to require or disallow padding within blocks.
|
1579
|
+
*
|
1580
|
+
* @since 0.9.0
|
1581
|
+
* @see https://eslint.org/docs/rules/padded-blocks
|
1582
|
+
*/
|
1583
|
+
"padded-blocks": Linter.RuleEntry<
|
1584
|
+
[
|
1585
|
+
"always" | "never" | Partial<Record<"blocks" | "classes" | "switches", "always" | "never">>,
|
1586
|
+
{
|
1587
|
+
/**
|
1588
|
+
* @default false
|
1589
|
+
*/
|
1590
|
+
allowSingleLineBlocks: boolean;
|
1591
|
+
},
|
1592
|
+
]
|
1593
|
+
>;
|
1594
|
+
|
1595
|
+
/**
|
1596
|
+
* Rule to require or disallow padding lines between statements.
|
1597
|
+
*
|
1598
|
+
* @since 4.0.0-beta.0
|
1599
|
+
* @see https://eslint.org/docs/rules/padding-line-between-statements
|
1600
|
+
*/
|
1601
|
+
"padding-line-between-statements": Linter.RuleEntry<
|
1602
|
+
[
|
1603
|
+
...Array<
|
1604
|
+
{
|
1605
|
+
blankLine: "any" | "never" | "always";
|
1606
|
+
} & Record<"prev" | "next", string | string[]>
|
1607
|
+
>,
|
1608
|
+
]
|
1609
|
+
>;
|
1610
|
+
|
1611
|
+
/**
|
1612
|
+
* Rule to disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead.
|
1613
|
+
*
|
1614
|
+
* @since 5.0.0-alpha.3
|
1615
|
+
* @see https://eslint.org/docs/rules/prefer-object-spread
|
1616
|
+
*/
|
1617
|
+
"prefer-object-spread": Linter.RuleEntry<[]>;
|
1618
|
+
|
1619
|
+
/**
|
1620
|
+
* Rule to require quotes around object literal property names.
|
1621
|
+
*
|
1622
|
+
* @since 0.0.6
|
1623
|
+
* @see https://eslint.org/docs/rules/quote-props
|
1624
|
+
*/
|
1625
|
+
"quote-props":
|
1626
|
+
| Linter.RuleEntry<["always" | "consistent"]>
|
1627
|
+
| Linter.RuleEntry<
|
1628
|
+
[
|
1629
|
+
"as-needed",
|
1630
|
+
Partial<{
|
1631
|
+
/**
|
1632
|
+
* @default false
|
1633
|
+
*/
|
1634
|
+
keywords: boolean;
|
1635
|
+
/**
|
1636
|
+
* @default true
|
1637
|
+
*/
|
1638
|
+
unnecessary: boolean;
|
1639
|
+
/**
|
1640
|
+
* @default false
|
1641
|
+
*/
|
1642
|
+
numbers: boolean;
|
1643
|
+
}>,
|
1644
|
+
]
|
1645
|
+
>
|
1646
|
+
| Linter.RuleEntry<
|
1647
|
+
[
|
1648
|
+
"consistent-as-needed",
|
1649
|
+
Partial<{
|
1650
|
+
/**
|
1651
|
+
* @default false
|
1652
|
+
*/
|
1653
|
+
keywords: boolean;
|
1654
|
+
}>,
|
1655
|
+
]
|
1656
|
+
>;
|
1657
|
+
|
1658
|
+
/**
|
1659
|
+
* Rule to enforce the consistent use of either backticks, double, or single quotes.
|
1660
|
+
*
|
1661
|
+
* @since 0.0.7
|
1662
|
+
* @see https://eslint.org/docs/rules/quotes
|
1663
|
+
*/
|
1664
|
+
quotes: Linter.RuleEntry<
|
1665
|
+
[
|
1666
|
+
"double" | "single" | "backtick",
|
1667
|
+
Partial<{
|
1668
|
+
/**
|
1669
|
+
* @default false
|
1670
|
+
*/
|
1671
|
+
avoidEscape: boolean;
|
1672
|
+
/**
|
1673
|
+
* @default false
|
1674
|
+
*/
|
1675
|
+
allowTemplateLiterals: boolean;
|
1676
|
+
}>,
|
1677
|
+
]
|
1678
|
+
>;
|
1679
|
+
|
1680
|
+
/**
|
1681
|
+
* Rule to require or disallow semicolons instead of ASI.
|
1682
|
+
*
|
1683
|
+
* @since 0.0.6
|
1684
|
+
* @see https://eslint.org/docs/rules/semi
|
1685
|
+
*/
|
1686
|
+
semi:
|
1687
|
+
| Linter.RuleEntry<
|
1688
|
+
[
|
1689
|
+
"always",
|
1690
|
+
Partial<{
|
1691
|
+
/**
|
1692
|
+
* @default false
|
1693
|
+
*/
|
1694
|
+
omitLastInOneLineBlock: boolean;
|
1695
|
+
}>,
|
1696
|
+
]
|
1697
|
+
>
|
1698
|
+
| Linter.RuleEntry<
|
1699
|
+
[
|
1700
|
+
"never",
|
1701
|
+
Partial<{
|
1702
|
+
/**
|
1703
|
+
* @default 'any'
|
1704
|
+
*/
|
1705
|
+
beforeStatementContinuationChars: "any" | "always" | "never";
|
1706
|
+
}>,
|
1707
|
+
]
|
1708
|
+
>;
|
1709
|
+
|
1710
|
+
/**
|
1711
|
+
* Rule to enforce consistent spacing before and after semicolons.
|
1712
|
+
*
|
1713
|
+
* @since 0.16.0
|
1714
|
+
* @see https://eslint.org/docs/rules/semi-spacing
|
1715
|
+
*/
|
1716
|
+
"semi-spacing": Linter.RuleEntry<
|
1717
|
+
[
|
1718
|
+
Partial<{
|
1719
|
+
/**
|
1720
|
+
* @default false
|
1721
|
+
*/
|
1722
|
+
before: boolean;
|
1723
|
+
/**
|
1724
|
+
* @default true
|
1725
|
+
*/
|
1726
|
+
after: boolean;
|
1727
|
+
}>,
|
1728
|
+
]
|
1729
|
+
>;
|
1730
|
+
|
1731
|
+
/**
|
1732
|
+
* Rule to enforce location of semicolons.
|
1733
|
+
*
|
1734
|
+
* @since 4.0.0-beta.0
|
1735
|
+
* @see https://eslint.org/docs/rules/semi-style
|
1736
|
+
*/
|
1737
|
+
"semi-style": Linter.RuleEntry<["last" | "first"]>;
|
1738
|
+
|
1739
|
+
/**
|
1740
|
+
* Rule to require object keys to be sorted.
|
1741
|
+
*
|
1742
|
+
* @since 3.3.0
|
1743
|
+
* @see https://eslint.org/docs/rules/sort-keys
|
1744
|
+
*/
|
1745
|
+
"sort-keys": Linter.RuleEntry<
|
1746
|
+
[
|
1747
|
+
"asc" | "desc",
|
1748
|
+
Partial<{
|
1749
|
+
/**
|
1750
|
+
* @default true
|
1751
|
+
*/
|
1752
|
+
caseSensitive: boolean;
|
1753
|
+
/**
|
1754
|
+
* @default 2
|
1755
|
+
*/
|
1756
|
+
minKeys: number;
|
1757
|
+
/**
|
1758
|
+
* @default false
|
1759
|
+
*/
|
1760
|
+
natural: boolean;
|
1761
|
+
/**
|
1762
|
+
* @default false
|
1763
|
+
*/
|
1764
|
+
allowLineSeparatedGroups: boolean;
|
1765
|
+
}>,
|
1766
|
+
]
|
1767
|
+
>;
|
1768
|
+
|
1769
|
+
/**
|
1770
|
+
* Rule to require variables within the same declaration block to be sorted.
|
1771
|
+
*
|
1772
|
+
* @since 0.2.0
|
1773
|
+
* @see https://eslint.org/docs/rules/sort-vars
|
1774
|
+
*/
|
1775
|
+
"sort-vars": Linter.RuleEntry<
|
1776
|
+
[
|
1777
|
+
Partial<{
|
1778
|
+
/**
|
1779
|
+
* @default false
|
1780
|
+
*/
|
1781
|
+
ignoreCase: boolean;
|
1782
|
+
}>,
|
1783
|
+
]
|
1784
|
+
>;
|
1785
|
+
|
1786
|
+
/**
|
1787
|
+
* Rule to enforce consistent spacing before blocks.
|
1788
|
+
*
|
1789
|
+
* @since 0.9.0
|
1790
|
+
* @see https://eslint.org/docs/rules/space-before-blocks
|
1791
|
+
*/
|
1792
|
+
"space-before-blocks": Linter.RuleEntry<
|
1793
|
+
["always" | "never" | Partial<Record<"functions" | "keywords" | "classes", "always" | "never" | "off">>]
|
1794
|
+
>;
|
1795
|
+
|
1796
|
+
/**
|
1797
|
+
* Rule to enforce consistent spacing before `function` definition opening parenthesis.
|
1798
|
+
*
|
1799
|
+
* @since 0.18.0
|
1800
|
+
* @see https://eslint.org/docs/rules/space-before-function-paren
|
1801
|
+
*/
|
1802
|
+
"space-before-function-paren": Linter.RuleEntry<
|
1803
|
+
["always" | "never" | Partial<Record<"anonymous" | "named" | "asyncArrow", "always" | "never" | "ignore">>]
|
1804
|
+
>;
|
1805
|
+
|
1806
|
+
/**
|
1807
|
+
* Rule to enforce consistent spacing inside parentheses.
|
1808
|
+
*
|
1809
|
+
* @since 0.8.0
|
1810
|
+
* @see https://eslint.org/docs/rules/space-in-parens
|
1811
|
+
*/
|
1812
|
+
"space-in-parens": Linter.RuleEntry<
|
1813
|
+
[
|
1814
|
+
"never" | "always",
|
1815
|
+
Partial<{
|
1816
|
+
exceptions: string[];
|
1817
|
+
}>,
|
1818
|
+
]
|
1819
|
+
>;
|
1820
|
+
|
1821
|
+
/**
|
1822
|
+
* Rule to require spacing around infix operators.
|
1823
|
+
*
|
1824
|
+
* @since 0.2.0
|
1825
|
+
* @see https://eslint.org/docs/rules/space-infix-ops
|
1826
|
+
*/
|
1827
|
+
"space-infix-ops": Linter.RuleEntry<
|
1828
|
+
[
|
1829
|
+
Partial<{
|
1830
|
+
/**
|
1831
|
+
* @default false
|
1832
|
+
*/
|
1833
|
+
int32Hint: boolean;
|
1834
|
+
}>,
|
1835
|
+
]
|
1836
|
+
>;
|
1837
|
+
|
1838
|
+
/**
|
1839
|
+
* Rule to enforce consistent spacing before or after unary operators.
|
1840
|
+
*
|
1841
|
+
* @since 0.10.0
|
1842
|
+
* @see https://eslint.org/docs/rules/space-unary-ops
|
1843
|
+
*/
|
1844
|
+
"space-unary-ops": Linter.RuleEntry<
|
1845
|
+
[
|
1846
|
+
Partial<{
|
1847
|
+
/**
|
1848
|
+
* @default true
|
1849
|
+
*/
|
1850
|
+
words: boolean;
|
1851
|
+
/**
|
1852
|
+
* @default false
|
1853
|
+
*/
|
1854
|
+
nonwords: boolean;
|
1855
|
+
overrides: Record<string, boolean>;
|
1856
|
+
}>,
|
1857
|
+
]
|
1858
|
+
>;
|
1859
|
+
|
1860
|
+
/**
|
1861
|
+
* Rule to enforce consistent spacing after the `//` or `/*` in a comment.
|
1862
|
+
*
|
1863
|
+
* @since 0.23.0
|
1864
|
+
* @see https://eslint.org/docs/rules/spaced-comment
|
1865
|
+
*/
|
1866
|
+
"spaced-comment": Linter.RuleEntry<
|
1867
|
+
[
|
1868
|
+
"always" | "never",
|
1869
|
+
{
|
1870
|
+
exceptions: string[];
|
1871
|
+
markers: string[];
|
1872
|
+
line: {
|
1873
|
+
exceptions: string[];
|
1874
|
+
markers: string[];
|
1875
|
+
};
|
1876
|
+
block: {
|
1877
|
+
exceptions: string[];
|
1878
|
+
markers: string[];
|
1879
|
+
/**
|
1880
|
+
* @default false
|
1881
|
+
*/
|
1882
|
+
balanced: boolean;
|
1883
|
+
};
|
1884
|
+
},
|
1885
|
+
]
|
1886
|
+
>;
|
1887
|
+
|
1888
|
+
/**
|
1889
|
+
* Rule to enforce spacing around colons of switch statements.
|
1890
|
+
*
|
1891
|
+
* @since 4.0.0-beta.0
|
1892
|
+
* @see https://eslint.org/docs/rules/switch-colon-spacing
|
1893
|
+
*/
|
1894
|
+
"switch-colon-spacing": Linter.RuleEntry<
|
1895
|
+
[
|
1896
|
+
Partial<{
|
1897
|
+
/**
|
1898
|
+
* @default false
|
1899
|
+
*/
|
1900
|
+
before: boolean;
|
1901
|
+
/**
|
1902
|
+
* @default true
|
1903
|
+
*/
|
1904
|
+
after: boolean;
|
1905
|
+
}>,
|
1906
|
+
]
|
1907
|
+
>;
|
1908
|
+
|
1909
|
+
/**
|
1910
|
+
* Rule to require or disallow spacing between template tags and their literals.
|
1911
|
+
*
|
1912
|
+
* @since 3.15.0
|
1913
|
+
* @see https://eslint.org/docs/rules/template-tag-spacing
|
1914
|
+
*/
|
1915
|
+
"template-tag-spacing": Linter.RuleEntry<["never" | "always"]>;
|
1916
|
+
|
1917
|
+
/**
|
1918
|
+
* Rule to require or disallow Unicode byte order mark (BOM).
|
1919
|
+
*
|
1920
|
+
* @since 2.11.0
|
1921
|
+
* @see https://eslint.org/docs/rules/unicode-bom
|
1922
|
+
*/
|
1923
|
+
"unicode-bom": Linter.RuleEntry<["never" | "always"]>;
|
1924
|
+
|
1925
|
+
/**
|
1926
|
+
* Rule to require parenthesis around regex literals.
|
1927
|
+
*
|
1928
|
+
* @since 0.1.0
|
1929
|
+
* @see https://eslint.org/docs/rules/wrap-regex
|
1930
|
+
*/
|
1931
|
+
"wrap-regex": Linter.RuleEntry<[]>;
|
1932
|
+
}
|