@kazupon/eslint-config 0.18.0 → 0.19.0

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.
Files changed (87) hide show
  1. package/dist/index.cjs +97 -216
  2. package/dist/index.d.cts +14216 -3
  3. package/dist/index.d.ts +14216 -3
  4. package/dist/index.js +70 -89
  5. package/package.json +15 -15
  6. package/dist/config.d.cts +0 -9
  7. package/dist/config.d.ts +0 -9
  8. package/dist/configs/comments.d.cts +0 -15
  9. package/dist/configs/comments.d.ts +0 -15
  10. package/dist/configs/imports.d.cts +0 -21
  11. package/dist/configs/imports.d.ts +0 -21
  12. package/dist/configs/index.d.cts +0 -17
  13. package/dist/configs/index.d.ts +0 -17
  14. package/dist/configs/javascript.d.cts +0 -15
  15. package/dist/configs/javascript.d.ts +0 -15
  16. package/dist/configs/jsdoc.d.cts +0 -27
  17. package/dist/configs/jsdoc.d.ts +0 -27
  18. package/dist/configs/jsonc.d.cts +0 -39
  19. package/dist/configs/jsonc.d.ts +0 -39
  20. package/dist/configs/markdown.d.cts +0 -28
  21. package/dist/configs/markdown.d.ts +0 -28
  22. package/dist/configs/prettier.d.cts +0 -15
  23. package/dist/configs/prettier.d.ts +0 -15
  24. package/dist/configs/promise.d.cts +0 -15
  25. package/dist/configs/promise.d.ts +0 -15
  26. package/dist/configs/react.d.cts +0 -26
  27. package/dist/configs/react.d.ts +0 -26
  28. package/dist/configs/regexp.d.cts +0 -15
  29. package/dist/configs/regexp.d.ts +0 -15
  30. package/dist/configs/svelte.d.cts +0 -21
  31. package/dist/configs/svelte.d.ts +0 -21
  32. package/dist/configs/toml.d.cts +0 -15
  33. package/dist/configs/toml.d.ts +0 -15
  34. package/dist/configs/typescript.d.cts +0 -38
  35. package/dist/configs/typescript.d.ts +0 -38
  36. package/dist/configs/unicorn.d.cts +0 -20
  37. package/dist/configs/unicorn.d.ts +0 -20
  38. package/dist/configs/vitest.d.cts +0 -22
  39. package/dist/configs/vitest.d.ts +0 -22
  40. package/dist/configs/vue.d.cts +0 -36
  41. package/dist/configs/vue.d.ts +0 -36
  42. package/dist/configs/yml.d.cts +0 -22
  43. package/dist/configs/yml.d.ts +0 -22
  44. package/dist/globs.d.cts +0 -14
  45. package/dist/globs.d.ts +0 -14
  46. package/dist/types/gens/comments.d.cts +0 -65
  47. package/dist/types/gens/comments.d.ts +0 -65
  48. package/dist/types/gens/eslint.d.cts +0 -23
  49. package/dist/types/gens/eslint.d.ts +0 -23
  50. package/dist/types/gens/imports.d.cts +0 -520
  51. package/dist/types/gens/imports.d.ts +0 -520
  52. package/dist/types/gens/javascript.d.cts +0 -3163
  53. package/dist/types/gens/javascript.d.ts +0 -3163
  54. package/dist/types/gens/jsdoc.d.cts +0 -796
  55. package/dist/types/gens/jsdoc.d.ts +0 -796
  56. package/dist/types/gens/jsonc.d.cts +0 -513
  57. package/dist/types/gens/jsonc.d.ts +0 -513
  58. package/dist/types/gens/markdown.d.cts +0 -42
  59. package/dist/types/gens/markdown.d.ts +0 -42
  60. package/dist/types/gens/prettier.d.cts +0 -2
  61. package/dist/types/gens/prettier.d.ts +0 -2
  62. package/dist/types/gens/promise.d.cts +0 -113
  63. package/dist/types/gens/promise.d.ts +0 -113
  64. package/dist/types/gens/react.d.cts +0 -1053
  65. package/dist/types/gens/react.d.ts +0 -1053
  66. package/dist/types/gens/regexp.d.cts +0 -553
  67. package/dist/types/gens/regexp.d.ts +0 -553
  68. package/dist/types/gens/svelte.d.cts +0 -491
  69. package/dist/types/gens/svelte.d.ts +0 -491
  70. package/dist/types/gens/toml.d.cts +0 -256
  71. package/dist/types/gens/toml.d.ts +0 -256
  72. package/dist/types/gens/typescript.d.cts +0 -1578
  73. package/dist/types/gens/typescript.d.ts +0 -1578
  74. package/dist/types/gens/unicorn.d.cts +0 -925
  75. package/dist/types/gens/unicorn.d.ts +0 -925
  76. package/dist/types/gens/vitest.d.cts +0 -377
  77. package/dist/types/gens/vitest.d.ts +0 -377
  78. package/dist/types/gens/vue.d.cts +0 -2746
  79. package/dist/types/gens/vue.d.ts +0 -2746
  80. package/dist/types/gens/yml.d.cts +0 -375
  81. package/dist/types/gens/yml.d.ts +0 -375
  82. package/dist/types/index.d.cts +0 -19
  83. package/dist/types/index.d.ts +0 -19
  84. package/dist/types/overrides.d.cts +0 -8
  85. package/dist/types/overrides.d.ts +0 -8
  86. package/dist/utils.d.cts +0 -18
  87. package/dist/utils.d.ts +0 -18
@@ -1,3163 +0,0 @@
1
- import type { Linter } from 'eslint';
2
- export interface JavascriptRules {
3
- /**
4
- * Enforce getter and setter pairs in objects and classes
5
- * @see https://eslint.org/docs/latest/rules/accessor-pairs
6
- */
7
- 'accessor-pairs'?: Linter.RuleEntry<AccessorPairs>;
8
- /**
9
- * Enforce linebreaks after opening and before closing array brackets
10
- * @see https://eslint.org/docs/latest/rules/array-bracket-newline
11
- * @deprecated
12
- */
13
- 'array-bracket-newline'?: Linter.RuleEntry<ArrayBracketNewline>;
14
- /**
15
- * Enforce consistent spacing inside array brackets
16
- * @see https://eslint.org/docs/latest/rules/array-bracket-spacing
17
- * @deprecated
18
- */
19
- 'array-bracket-spacing'?: Linter.RuleEntry<ArrayBracketSpacing>;
20
- /**
21
- * Enforce `return` statements in callbacks of array methods
22
- * @see https://eslint.org/docs/latest/rules/array-callback-return
23
- */
24
- 'array-callback-return'?: Linter.RuleEntry<ArrayCallbackReturn>;
25
- /**
26
- * Enforce line breaks after each array element
27
- * @see https://eslint.org/docs/latest/rules/array-element-newline
28
- * @deprecated
29
- */
30
- 'array-element-newline'?: Linter.RuleEntry<ArrayElementNewline>;
31
- /**
32
- * Require braces around arrow function bodies
33
- * @see https://eslint.org/docs/latest/rules/arrow-body-style
34
- */
35
- 'arrow-body-style'?: Linter.RuleEntry<ArrowBodyStyle>;
36
- /**
37
- * Require parentheses around arrow function arguments
38
- * @see https://eslint.org/docs/latest/rules/arrow-parens
39
- * @deprecated
40
- */
41
- 'arrow-parens'?: Linter.RuleEntry<ArrowParens>;
42
- /**
43
- * Enforce consistent spacing before and after the arrow in arrow functions
44
- * @see https://eslint.org/docs/latest/rules/arrow-spacing
45
- * @deprecated
46
- */
47
- 'arrow-spacing'?: Linter.RuleEntry<ArrowSpacing>;
48
- /**
49
- * Enforce the use of variables within the scope they are defined
50
- * @see https://eslint.org/docs/latest/rules/block-scoped-var
51
- */
52
- 'block-scoped-var'?: Linter.RuleEntry<[]>;
53
- /**
54
- * Disallow or enforce spaces inside of blocks after opening block and before closing block
55
- * @see https://eslint.org/docs/latest/rules/block-spacing
56
- * @deprecated
57
- */
58
- 'block-spacing'?: Linter.RuleEntry<BlockSpacing>;
59
- /**
60
- * Enforce consistent brace style for blocks
61
- * @see https://eslint.org/docs/latest/rules/brace-style
62
- * @deprecated
63
- */
64
- 'brace-style'?: Linter.RuleEntry<BraceStyle>;
65
- /**
66
- * Require `return` statements after callbacks
67
- * @see https://eslint.org/docs/latest/rules/callback-return
68
- * @deprecated
69
- */
70
- 'callback-return'?: Linter.RuleEntry<CallbackReturn>;
71
- /**
72
- * Enforce camelcase naming convention
73
- * @see https://eslint.org/docs/latest/rules/camelcase
74
- */
75
- 'camelcase'?: Linter.RuleEntry<Camelcase>;
76
- /**
77
- * Enforce or disallow capitalization of the first letter of a comment
78
- * @see https://eslint.org/docs/latest/rules/capitalized-comments
79
- */
80
- 'capitalized-comments'?: Linter.RuleEntry<CapitalizedComments>;
81
- /**
82
- * Enforce that class methods utilize `this`
83
- * @see https://eslint.org/docs/latest/rules/class-methods-use-this
84
- */
85
- 'class-methods-use-this'?: Linter.RuleEntry<ClassMethodsUseThis>;
86
- /**
87
- * Require or disallow trailing commas
88
- * @see https://eslint.org/docs/latest/rules/comma-dangle
89
- * @deprecated
90
- */
91
- 'comma-dangle'?: Linter.RuleEntry<CommaDangle>;
92
- /**
93
- * Enforce consistent spacing before and after commas
94
- * @see https://eslint.org/docs/latest/rules/comma-spacing
95
- * @deprecated
96
- */
97
- 'comma-spacing'?: Linter.RuleEntry<CommaSpacing>;
98
- /**
99
- * Enforce consistent comma style
100
- * @see https://eslint.org/docs/latest/rules/comma-style
101
- * @deprecated
102
- */
103
- 'comma-style'?: Linter.RuleEntry<CommaStyle>;
104
- /**
105
- * Enforce a maximum cyclomatic complexity allowed in a program
106
- * @see https://eslint.org/docs/latest/rules/complexity
107
- */
108
- 'complexity'?: Linter.RuleEntry<Complexity>;
109
- /**
110
- * Enforce consistent spacing inside computed property brackets
111
- * @see https://eslint.org/docs/latest/rules/computed-property-spacing
112
- * @deprecated
113
- */
114
- 'computed-property-spacing'?: Linter.RuleEntry<ComputedPropertySpacing>;
115
- /**
116
- * Require `return` statements to either always or never specify values
117
- * @see https://eslint.org/docs/latest/rules/consistent-return
118
- */
119
- 'consistent-return'?: Linter.RuleEntry<ConsistentReturn>;
120
- /**
121
- * Enforce consistent naming when capturing the current execution context
122
- * @see https://eslint.org/docs/latest/rules/consistent-this
123
- */
124
- 'consistent-this'?: Linter.RuleEntry<ConsistentThis>;
125
- /**
126
- * Require `super()` calls in constructors
127
- * @see https://eslint.org/docs/latest/rules/constructor-super
128
- */
129
- 'constructor-super'?: Linter.RuleEntry<[]>;
130
- /**
131
- * Enforce consistent brace style for all control statements
132
- * @see https://eslint.org/docs/latest/rules/curly
133
- */
134
- 'curly'?: Linter.RuleEntry<Curly>;
135
- /**
136
- * Require `default` cases in `switch` statements
137
- * @see https://eslint.org/docs/latest/rules/default-case
138
- */
139
- 'default-case'?: Linter.RuleEntry<DefaultCase>;
140
- /**
141
- * Enforce default clauses in switch statements to be last
142
- * @see https://eslint.org/docs/latest/rules/default-case-last
143
- */
144
- 'default-case-last'?: Linter.RuleEntry<[]>;
145
- /**
146
- * Enforce default parameters to be last
147
- * @see https://eslint.org/docs/latest/rules/default-param-last
148
- */
149
- 'default-param-last'?: Linter.RuleEntry<[]>;
150
- /**
151
- * Enforce consistent newlines before and after dots
152
- * @see https://eslint.org/docs/latest/rules/dot-location
153
- * @deprecated
154
- */
155
- 'dot-location'?: Linter.RuleEntry<DotLocation>;
156
- /**
157
- * Enforce dot notation whenever possible
158
- * @see https://eslint.org/docs/latest/rules/dot-notation
159
- */
160
- 'dot-notation'?: Linter.RuleEntry<DotNotation>;
161
- /**
162
- * Require or disallow newline at the end of files
163
- * @see https://eslint.org/docs/latest/rules/eol-last
164
- * @deprecated
165
- */
166
- 'eol-last'?: Linter.RuleEntry<EolLast>;
167
- /**
168
- * Require the use of `===` and `!==`
169
- * @see https://eslint.org/docs/latest/rules/eqeqeq
170
- */
171
- 'eqeqeq'?: Linter.RuleEntry<Eqeqeq>;
172
- /**
173
- * Enforce "for" loop update clause moving the counter in the right direction
174
- * @see https://eslint.org/docs/latest/rules/for-direction
175
- */
176
- 'for-direction'?: Linter.RuleEntry<[]>;
177
- /**
178
- * Require or disallow spacing between function identifiers and their invocations
179
- * @see https://eslint.org/docs/latest/rules/func-call-spacing
180
- * @deprecated
181
- */
182
- 'func-call-spacing'?: Linter.RuleEntry<FuncCallSpacing>;
183
- /**
184
- * Require function names to match the name of the variable or property to which they are assigned
185
- * @see https://eslint.org/docs/latest/rules/func-name-matching
186
- */
187
- 'func-name-matching'?: Linter.RuleEntry<FuncNameMatching>;
188
- /**
189
- * Require or disallow named `function` expressions
190
- * @see https://eslint.org/docs/latest/rules/func-names
191
- */
192
- 'func-names'?: Linter.RuleEntry<FuncNames>;
193
- /**
194
- * Enforce the consistent use of either `function` declarations or expressions assigned to variables
195
- * @see https://eslint.org/docs/latest/rules/func-style
196
- */
197
- 'func-style'?: Linter.RuleEntry<FuncStyle>;
198
- /**
199
- * Enforce line breaks between arguments of a function call
200
- * @see https://eslint.org/docs/latest/rules/function-call-argument-newline
201
- * @deprecated
202
- */
203
- 'function-call-argument-newline'?: Linter.RuleEntry<FunctionCallArgumentNewline>;
204
- /**
205
- * Enforce consistent line breaks inside function parentheses
206
- * @see https://eslint.org/docs/latest/rules/function-paren-newline
207
- * @deprecated
208
- */
209
- 'function-paren-newline'?: Linter.RuleEntry<FunctionParenNewline>;
210
- /**
211
- * Enforce consistent spacing around `*` operators in generator functions
212
- * @see https://eslint.org/docs/latest/rules/generator-star-spacing
213
- * @deprecated
214
- */
215
- 'generator-star-spacing'?: Linter.RuleEntry<GeneratorStarSpacing>;
216
- /**
217
- * Enforce `return` statements in getters
218
- * @see https://eslint.org/docs/latest/rules/getter-return
219
- */
220
- 'getter-return'?: Linter.RuleEntry<GetterReturn>;
221
- /**
222
- * Require `require()` calls to be placed at top-level module scope
223
- * @see https://eslint.org/docs/latest/rules/global-require
224
- * @deprecated
225
- */
226
- 'global-require'?: Linter.RuleEntry<[]>;
227
- /**
228
- * Require grouped accessor pairs in object literals and classes
229
- * @see https://eslint.org/docs/latest/rules/grouped-accessor-pairs
230
- */
231
- 'grouped-accessor-pairs'?: Linter.RuleEntry<GroupedAccessorPairs>;
232
- /**
233
- * Require `for-in` loops to include an `if` statement
234
- * @see https://eslint.org/docs/latest/rules/guard-for-in
235
- */
236
- 'guard-for-in'?: Linter.RuleEntry<[]>;
237
- /**
238
- * Require error handling in callbacks
239
- * @see https://eslint.org/docs/latest/rules/handle-callback-err
240
- * @deprecated
241
- */
242
- 'handle-callback-err'?: Linter.RuleEntry<HandleCallbackErr>;
243
- /**
244
- * Disallow specified identifiers
245
- * @see https://eslint.org/docs/latest/rules/id-blacklist
246
- * @deprecated
247
- */
248
- 'id-blacklist'?: Linter.RuleEntry<IdBlacklist>;
249
- /**
250
- * Disallow specified identifiers
251
- * @see https://eslint.org/docs/latest/rules/id-denylist
252
- */
253
- 'id-denylist'?: Linter.RuleEntry<IdDenylist>;
254
- /**
255
- * Enforce minimum and maximum identifier lengths
256
- * @see https://eslint.org/docs/latest/rules/id-length
257
- */
258
- 'id-length'?: Linter.RuleEntry<IdLength>;
259
- /**
260
- * Require identifiers to match a specified regular expression
261
- * @see https://eslint.org/docs/latest/rules/id-match
262
- */
263
- 'id-match'?: Linter.RuleEntry<IdMatch>;
264
- /**
265
- * Enforce the location of arrow function bodies
266
- * @see https://eslint.org/docs/latest/rules/implicit-arrow-linebreak
267
- * @deprecated
268
- */
269
- 'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
270
- /**
271
- * Enforce consistent indentation
272
- * @see https://eslint.org/docs/latest/rules/indent
273
- * @deprecated
274
- */
275
- 'indent'?: Linter.RuleEntry<Indent>;
276
- /**
277
- * Enforce consistent indentation
278
- * @see https://eslint.org/docs/latest/rules/indent-legacy
279
- * @deprecated
280
- */
281
- 'indent-legacy'?: Linter.RuleEntry<IndentLegacy>;
282
- /**
283
- * Require or disallow initialization in variable declarations
284
- * @see https://eslint.org/docs/latest/rules/init-declarations
285
- */
286
- 'init-declarations'?: Linter.RuleEntry<InitDeclarations>;
287
- /**
288
- * Enforce the consistent use of either double or single quotes in JSX attributes
289
- * @see https://eslint.org/docs/latest/rules/jsx-quotes
290
- * @deprecated
291
- */
292
- 'jsx-quotes'?: Linter.RuleEntry<JsxQuotes>;
293
- /**
294
- * Enforce consistent spacing between keys and values in object literal properties
295
- * @see https://eslint.org/docs/latest/rules/key-spacing
296
- * @deprecated
297
- */
298
- 'key-spacing'?: Linter.RuleEntry<KeySpacing>;
299
- /**
300
- * Enforce consistent spacing before and after keywords
301
- * @see https://eslint.org/docs/latest/rules/keyword-spacing
302
- * @deprecated
303
- */
304
- 'keyword-spacing'?: Linter.RuleEntry<KeywordSpacing>;
305
- /**
306
- * Enforce position of line comments
307
- * @see https://eslint.org/docs/latest/rules/line-comment-position
308
- * @deprecated
309
- */
310
- 'line-comment-position'?: Linter.RuleEntry<LineCommentPosition>;
311
- /**
312
- * Enforce consistent linebreak style
313
- * @see https://eslint.org/docs/latest/rules/linebreak-style
314
- * @deprecated
315
- */
316
- 'linebreak-style'?: Linter.RuleEntry<LinebreakStyle>;
317
- /**
318
- * Require empty lines around comments
319
- * @see https://eslint.org/docs/latest/rules/lines-around-comment
320
- * @deprecated
321
- */
322
- 'lines-around-comment'?: Linter.RuleEntry<LinesAroundComment>;
323
- /**
324
- * Require or disallow newlines around directives
325
- * @see https://eslint.org/docs/latest/rules/lines-around-directive
326
- * @deprecated
327
- */
328
- 'lines-around-directive'?: Linter.RuleEntry<LinesAroundDirective>;
329
- /**
330
- * Require or disallow an empty line between class members
331
- * @see https://eslint.org/docs/latest/rules/lines-between-class-members
332
- * @deprecated
333
- */
334
- 'lines-between-class-members'?: Linter.RuleEntry<LinesBetweenClassMembers>;
335
- /**
336
- * Require or disallow logical assignment operator shorthand
337
- * @see https://eslint.org/docs/latest/rules/logical-assignment-operators
338
- */
339
- 'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>;
340
- /**
341
- * Enforce a maximum number of classes per file
342
- * @see https://eslint.org/docs/latest/rules/max-classes-per-file
343
- */
344
- 'max-classes-per-file'?: Linter.RuleEntry<MaxClassesPerFile>;
345
- /**
346
- * Enforce a maximum depth that blocks can be nested
347
- * @see https://eslint.org/docs/latest/rules/max-depth
348
- */
349
- 'max-depth'?: Linter.RuleEntry<MaxDepth>;
350
- /**
351
- * Enforce a maximum line length
352
- * @see https://eslint.org/docs/latest/rules/max-len
353
- * @deprecated
354
- */
355
- 'max-len'?: Linter.RuleEntry<MaxLen>;
356
- /**
357
- * Enforce a maximum number of lines per file
358
- * @see https://eslint.org/docs/latest/rules/max-lines
359
- */
360
- 'max-lines'?: Linter.RuleEntry<MaxLines>;
361
- /**
362
- * Enforce a maximum number of lines of code in a function
363
- * @see https://eslint.org/docs/latest/rules/max-lines-per-function
364
- */
365
- 'max-lines-per-function'?: Linter.RuleEntry<MaxLinesPerFunction>;
366
- /**
367
- * Enforce a maximum depth that callbacks can be nested
368
- * @see https://eslint.org/docs/latest/rules/max-nested-callbacks
369
- */
370
- 'max-nested-callbacks'?: Linter.RuleEntry<MaxNestedCallbacks>;
371
- /**
372
- * Enforce a maximum number of parameters in function definitions
373
- * @see https://eslint.org/docs/latest/rules/max-params
374
- */
375
- 'max-params'?: Linter.RuleEntry<MaxParams>;
376
- /**
377
- * Enforce a maximum number of statements allowed in function blocks
378
- * @see https://eslint.org/docs/latest/rules/max-statements
379
- */
380
- 'max-statements'?: Linter.RuleEntry<MaxStatements>;
381
- /**
382
- * Enforce a maximum number of statements allowed per line
383
- * @see https://eslint.org/docs/latest/rules/max-statements-per-line
384
- * @deprecated
385
- */
386
- 'max-statements-per-line'?: Linter.RuleEntry<MaxStatementsPerLine>;
387
- /**
388
- * Enforce a particular style for multiline comments
389
- * @see https://eslint.org/docs/latest/rules/multiline-comment-style
390
- * @deprecated
391
- */
392
- 'multiline-comment-style'?: Linter.RuleEntry<MultilineCommentStyle>;
393
- /**
394
- * Enforce newlines between operands of ternary expressions
395
- * @see https://eslint.org/docs/latest/rules/multiline-ternary
396
- * @deprecated
397
- */
398
- 'multiline-ternary'?: Linter.RuleEntry<MultilineTernary>;
399
- /**
400
- * Require constructor names to begin with a capital letter
401
- * @see https://eslint.org/docs/latest/rules/new-cap
402
- */
403
- 'new-cap'?: Linter.RuleEntry<NewCap>;
404
- /**
405
- * Enforce or disallow parentheses when invoking a constructor with no arguments
406
- * @see https://eslint.org/docs/latest/rules/new-parens
407
- * @deprecated
408
- */
409
- 'new-parens'?: Linter.RuleEntry<NewParens>;
410
- /**
411
- * Require or disallow an empty line after variable declarations
412
- * @see https://eslint.org/docs/latest/rules/newline-after-var
413
- * @deprecated
414
- */
415
- 'newline-after-var'?: Linter.RuleEntry<NewlineAfterVar>;
416
- /**
417
- * Require an empty line before `return` statements
418
- * @see https://eslint.org/docs/latest/rules/newline-before-return
419
- * @deprecated
420
- */
421
- 'newline-before-return'?: Linter.RuleEntry<[]>;
422
- /**
423
- * Require a newline after each call in a method chain
424
- * @see https://eslint.org/docs/latest/rules/newline-per-chained-call
425
- * @deprecated
426
- */
427
- 'newline-per-chained-call'?: Linter.RuleEntry<NewlinePerChainedCall>;
428
- /**
429
- * Disallow the use of `alert`, `confirm`, and `prompt`
430
- * @see https://eslint.org/docs/latest/rules/no-alert
431
- */
432
- 'no-alert'?: Linter.RuleEntry<[]>;
433
- /**
434
- * Disallow `Array` constructors
435
- * @see https://eslint.org/docs/latest/rules/no-array-constructor
436
- */
437
- 'no-array-constructor'?: Linter.RuleEntry<[]>;
438
- /**
439
- * Disallow using an async function as a Promise executor
440
- * @see https://eslint.org/docs/latest/rules/no-async-promise-executor
441
- */
442
- 'no-async-promise-executor'?: Linter.RuleEntry<[]>;
443
- /**
444
- * Disallow `await` inside of loops
445
- * @see https://eslint.org/docs/latest/rules/no-await-in-loop
446
- */
447
- 'no-await-in-loop'?: Linter.RuleEntry<[]>;
448
- /**
449
- * Disallow bitwise operators
450
- * @see https://eslint.org/docs/latest/rules/no-bitwise
451
- */
452
- 'no-bitwise'?: Linter.RuleEntry<NoBitwise>;
453
- /**
454
- * Disallow use of the `Buffer()` constructor
455
- * @see https://eslint.org/docs/latest/rules/no-buffer-constructor
456
- * @deprecated
457
- */
458
- 'no-buffer-constructor'?: Linter.RuleEntry<[]>;
459
- /**
460
- * Disallow the use of `arguments.caller` or `arguments.callee`
461
- * @see https://eslint.org/docs/latest/rules/no-caller
462
- */
463
- 'no-caller'?: Linter.RuleEntry<[]>;
464
- /**
465
- * Disallow lexical declarations in case clauses
466
- * @see https://eslint.org/docs/latest/rules/no-case-declarations
467
- */
468
- 'no-case-declarations'?: Linter.RuleEntry<[]>;
469
- /**
470
- * Disallow `catch` clause parameters from shadowing variables in the outer scope
471
- * @see https://eslint.org/docs/latest/rules/no-catch-shadow
472
- * @deprecated
473
- */
474
- 'no-catch-shadow'?: Linter.RuleEntry<[]>;
475
- /**
476
- * Disallow reassigning class members
477
- * @see https://eslint.org/docs/latest/rules/no-class-assign
478
- */
479
- 'no-class-assign'?: Linter.RuleEntry<[]>;
480
- /**
481
- * Disallow comparing against -0
482
- * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
483
- */
484
- 'no-compare-neg-zero'?: Linter.RuleEntry<[]>;
485
- /**
486
- * Disallow assignment operators in conditional expressions
487
- * @see https://eslint.org/docs/latest/rules/no-cond-assign
488
- */
489
- 'no-cond-assign'?: Linter.RuleEntry<NoCondAssign>;
490
- /**
491
- * Disallow arrow functions where they could be confused with comparisons
492
- * @see https://eslint.org/docs/latest/rules/no-confusing-arrow
493
- * @deprecated
494
- */
495
- 'no-confusing-arrow'?: Linter.RuleEntry<NoConfusingArrow>;
496
- /**
497
- * Disallow the use of `console`
498
- * @see https://eslint.org/docs/latest/rules/no-console
499
- */
500
- 'no-console'?: Linter.RuleEntry<NoConsole>;
501
- /**
502
- * Disallow reassigning `const` variables
503
- * @see https://eslint.org/docs/latest/rules/no-const-assign
504
- */
505
- 'no-const-assign'?: Linter.RuleEntry<[]>;
506
- /**
507
- * Disallow expressions where the operation doesn't affect the value
508
- * @see https://eslint.org/docs/latest/rules/no-constant-binary-expression
509
- */
510
- 'no-constant-binary-expression'?: Linter.RuleEntry<[]>;
511
- /**
512
- * Disallow constant expressions in conditions
513
- * @see https://eslint.org/docs/latest/rules/no-constant-condition
514
- */
515
- 'no-constant-condition'?: Linter.RuleEntry<NoConstantCondition>;
516
- /**
517
- * Disallow returning value from constructor
518
- * @see https://eslint.org/docs/latest/rules/no-constructor-return
519
- */
520
- 'no-constructor-return'?: Linter.RuleEntry<[]>;
521
- /**
522
- * Disallow `continue` statements
523
- * @see https://eslint.org/docs/latest/rules/no-continue
524
- */
525
- 'no-continue'?: Linter.RuleEntry<[]>;
526
- /**
527
- * Disallow control characters in regular expressions
528
- * @see https://eslint.org/docs/latest/rules/no-control-regex
529
- */
530
- 'no-control-regex'?: Linter.RuleEntry<[]>;
531
- /**
532
- * Disallow the use of `debugger`
533
- * @see https://eslint.org/docs/latest/rules/no-debugger
534
- */
535
- 'no-debugger'?: Linter.RuleEntry<[]>;
536
- /**
537
- * Disallow deleting variables
538
- * @see https://eslint.org/docs/latest/rules/no-delete-var
539
- */
540
- 'no-delete-var'?: Linter.RuleEntry<[]>;
541
- /**
542
- * Disallow equal signs explicitly at the beginning of regular expressions
543
- * @see https://eslint.org/docs/latest/rules/no-div-regex
544
- */
545
- 'no-div-regex'?: Linter.RuleEntry<[]>;
546
- /**
547
- * Disallow duplicate arguments in `function` definitions
548
- * @see https://eslint.org/docs/latest/rules/no-dupe-args
549
- */
550
- 'no-dupe-args'?: Linter.RuleEntry<[]>;
551
- /**
552
- * Disallow duplicate class members
553
- * @see https://eslint.org/docs/latest/rules/no-dupe-class-members
554
- */
555
- 'no-dupe-class-members'?: Linter.RuleEntry<[]>;
556
- /**
557
- * Disallow duplicate conditions in if-else-if chains
558
- * @see https://eslint.org/docs/latest/rules/no-dupe-else-if
559
- */
560
- 'no-dupe-else-if'?: Linter.RuleEntry<[]>;
561
- /**
562
- * Disallow duplicate keys in object literals
563
- * @see https://eslint.org/docs/latest/rules/no-dupe-keys
564
- */
565
- 'no-dupe-keys'?: Linter.RuleEntry<[]>;
566
- /**
567
- * Disallow duplicate case labels
568
- * @see https://eslint.org/docs/latest/rules/no-duplicate-case
569
- */
570
- 'no-duplicate-case'?: Linter.RuleEntry<[]>;
571
- /**
572
- * Disallow duplicate module imports
573
- * @see https://eslint.org/docs/latest/rules/no-duplicate-imports
574
- */
575
- 'no-duplicate-imports'?: Linter.RuleEntry<NoDuplicateImports>;
576
- /**
577
- * Disallow `else` blocks after `return` statements in `if` statements
578
- * @see https://eslint.org/docs/latest/rules/no-else-return
579
- */
580
- 'no-else-return'?: Linter.RuleEntry<NoElseReturn>;
581
- /**
582
- * Disallow empty block statements
583
- * @see https://eslint.org/docs/latest/rules/no-empty
584
- */
585
- 'no-empty'?: Linter.RuleEntry<NoEmpty>;
586
- /**
587
- * Disallow empty character classes in regular expressions
588
- * @see https://eslint.org/docs/latest/rules/no-empty-character-class
589
- */
590
- 'no-empty-character-class'?: Linter.RuleEntry<[]>;
591
- /**
592
- * Disallow empty functions
593
- * @see https://eslint.org/docs/latest/rules/no-empty-function
594
- */
595
- 'no-empty-function'?: Linter.RuleEntry<NoEmptyFunction>;
596
- /**
597
- * Disallow empty destructuring patterns
598
- * @see https://eslint.org/docs/latest/rules/no-empty-pattern
599
- */
600
- 'no-empty-pattern'?: Linter.RuleEntry<NoEmptyPattern>;
601
- /**
602
- * Disallow empty static blocks
603
- * @see https://eslint.org/docs/latest/rules/no-empty-static-block
604
- */
605
- 'no-empty-static-block'?: Linter.RuleEntry<[]>;
606
- /**
607
- * Disallow `null` comparisons without type-checking operators
608
- * @see https://eslint.org/docs/latest/rules/no-eq-null
609
- */
610
- 'no-eq-null'?: Linter.RuleEntry<[]>;
611
- /**
612
- * Disallow the use of `eval()`
613
- * @see https://eslint.org/docs/latest/rules/no-eval
614
- */
615
- 'no-eval'?: Linter.RuleEntry<NoEval>;
616
- /**
617
- * Disallow reassigning exceptions in `catch` clauses
618
- * @see https://eslint.org/docs/latest/rules/no-ex-assign
619
- */
620
- 'no-ex-assign'?: Linter.RuleEntry<[]>;
621
- /**
622
- * Disallow extending native types
623
- * @see https://eslint.org/docs/latest/rules/no-extend-native
624
- */
625
- 'no-extend-native'?: Linter.RuleEntry<NoExtendNative>;
626
- /**
627
- * Disallow unnecessary calls to `.bind()`
628
- * @see https://eslint.org/docs/latest/rules/no-extra-bind
629
- */
630
- 'no-extra-bind'?: Linter.RuleEntry<[]>;
631
- /**
632
- * Disallow unnecessary boolean casts
633
- * @see https://eslint.org/docs/latest/rules/no-extra-boolean-cast
634
- */
635
- 'no-extra-boolean-cast'?: Linter.RuleEntry<NoExtraBooleanCast>;
636
- /**
637
- * Disallow unnecessary labels
638
- * @see https://eslint.org/docs/latest/rules/no-extra-label
639
- */
640
- 'no-extra-label'?: Linter.RuleEntry<[]>;
641
- /**
642
- * Disallow unnecessary parentheses
643
- * @see https://eslint.org/docs/latest/rules/no-extra-parens
644
- * @deprecated
645
- */
646
- 'no-extra-parens'?: Linter.RuleEntry<NoExtraParens>;
647
- /**
648
- * Disallow unnecessary semicolons
649
- * @see https://eslint.org/docs/latest/rules/no-extra-semi
650
- * @deprecated
651
- */
652
- 'no-extra-semi'?: Linter.RuleEntry<[]>;
653
- /**
654
- * Disallow fallthrough of `case` statements
655
- * @see https://eslint.org/docs/latest/rules/no-fallthrough
656
- */
657
- 'no-fallthrough'?: Linter.RuleEntry<NoFallthrough>;
658
- /**
659
- * Disallow leading or trailing decimal points in numeric literals
660
- * @see https://eslint.org/docs/latest/rules/no-floating-decimal
661
- * @deprecated
662
- */
663
- 'no-floating-decimal'?: Linter.RuleEntry<[]>;
664
- /**
665
- * Disallow reassigning `function` declarations
666
- * @see https://eslint.org/docs/latest/rules/no-func-assign
667
- */
668
- 'no-func-assign'?: Linter.RuleEntry<[]>;
669
- /**
670
- * Disallow assignments to native objects or read-only global variables
671
- * @see https://eslint.org/docs/latest/rules/no-global-assign
672
- */
673
- 'no-global-assign'?: Linter.RuleEntry<NoGlobalAssign>;
674
- /**
675
- * Disallow shorthand type conversions
676
- * @see https://eslint.org/docs/latest/rules/no-implicit-coercion
677
- */
678
- 'no-implicit-coercion'?: Linter.RuleEntry<NoImplicitCoercion>;
679
- /**
680
- * Disallow declarations in the global scope
681
- * @see https://eslint.org/docs/latest/rules/no-implicit-globals
682
- */
683
- 'no-implicit-globals'?: Linter.RuleEntry<NoImplicitGlobals>;
684
- /**
685
- * Disallow the use of `eval()`-like methods
686
- * @see https://eslint.org/docs/latest/rules/no-implied-eval
687
- */
688
- 'no-implied-eval'?: Linter.RuleEntry<[]>;
689
- /**
690
- * Disallow assigning to imported bindings
691
- * @see https://eslint.org/docs/latest/rules/no-import-assign
692
- */
693
- 'no-import-assign'?: Linter.RuleEntry<[]>;
694
- /**
695
- * Disallow inline comments after code
696
- * @see https://eslint.org/docs/latest/rules/no-inline-comments
697
- */
698
- 'no-inline-comments'?: Linter.RuleEntry<NoInlineComments>;
699
- /**
700
- * Disallow variable or `function` declarations in nested blocks
701
- * @see https://eslint.org/docs/latest/rules/no-inner-declarations
702
- */
703
- 'no-inner-declarations'?: Linter.RuleEntry<NoInnerDeclarations>;
704
- /**
705
- * Disallow invalid regular expression strings in `RegExp` constructors
706
- * @see https://eslint.org/docs/latest/rules/no-invalid-regexp
707
- */
708
- 'no-invalid-regexp'?: Linter.RuleEntry<NoInvalidRegexp>;
709
- /**
710
- * Disallow use of `this` in contexts where the value of `this` is `undefined`
711
- * @see https://eslint.org/docs/latest/rules/no-invalid-this
712
- */
713
- 'no-invalid-this'?: Linter.RuleEntry<NoInvalidThis>;
714
- /**
715
- * Disallow irregular whitespace
716
- * @see https://eslint.org/docs/latest/rules/no-irregular-whitespace
717
- */
718
- 'no-irregular-whitespace'?: Linter.RuleEntry<NoIrregularWhitespace>;
719
- /**
720
- * Disallow the use of the `__iterator__` property
721
- * @see https://eslint.org/docs/latest/rules/no-iterator
722
- */
723
- 'no-iterator'?: Linter.RuleEntry<[]>;
724
- /**
725
- * Disallow labels that share a name with a variable
726
- * @see https://eslint.org/docs/latest/rules/no-label-var
727
- */
728
- 'no-label-var'?: Linter.RuleEntry<[]>;
729
- /**
730
- * Disallow labeled statements
731
- * @see https://eslint.org/docs/latest/rules/no-labels
732
- */
733
- 'no-labels'?: Linter.RuleEntry<NoLabels>;
734
- /**
735
- * Disallow unnecessary nested blocks
736
- * @see https://eslint.org/docs/latest/rules/no-lone-blocks
737
- */
738
- 'no-lone-blocks'?: Linter.RuleEntry<[]>;
739
- /**
740
- * Disallow `if` statements as the only statement in `else` blocks
741
- * @see https://eslint.org/docs/latest/rules/no-lonely-if
742
- */
743
- 'no-lonely-if'?: Linter.RuleEntry<[]>;
744
- /**
745
- * Disallow function declarations that contain unsafe references inside loop statements
746
- * @see https://eslint.org/docs/latest/rules/no-loop-func
747
- */
748
- 'no-loop-func'?: Linter.RuleEntry<[]>;
749
- /**
750
- * Disallow literal numbers that lose precision
751
- * @see https://eslint.org/docs/latest/rules/no-loss-of-precision
752
- */
753
- 'no-loss-of-precision'?: Linter.RuleEntry<[]>;
754
- /**
755
- * Disallow magic numbers
756
- * @see https://eslint.org/docs/latest/rules/no-magic-numbers
757
- */
758
- 'no-magic-numbers'?: Linter.RuleEntry<NoMagicNumbers>;
759
- /**
760
- * Disallow characters which are made with multiple code points in character class syntax
761
- * @see https://eslint.org/docs/latest/rules/no-misleading-character-class
762
- */
763
- 'no-misleading-character-class'?: Linter.RuleEntry<NoMisleadingCharacterClass>;
764
- /**
765
- * Disallow mixed binary operators
766
- * @see https://eslint.org/docs/latest/rules/no-mixed-operators
767
- * @deprecated
768
- */
769
- 'no-mixed-operators'?: Linter.RuleEntry<NoMixedOperators>;
770
- /**
771
- * Disallow `require` calls to be mixed with regular variable declarations
772
- * @see https://eslint.org/docs/latest/rules/no-mixed-requires
773
- * @deprecated
774
- */
775
- 'no-mixed-requires'?: Linter.RuleEntry<NoMixedRequires>;
776
- /**
777
- * Disallow mixed spaces and tabs for indentation
778
- * @see https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs
779
- * @deprecated
780
- */
781
- 'no-mixed-spaces-and-tabs'?: Linter.RuleEntry<NoMixedSpacesAndTabs>;
782
- /**
783
- * Disallow use of chained assignment expressions
784
- * @see https://eslint.org/docs/latest/rules/no-multi-assign
785
- */
786
- 'no-multi-assign'?: Linter.RuleEntry<NoMultiAssign>;
787
- /**
788
- * Disallow multiple spaces
789
- * @see https://eslint.org/docs/latest/rules/no-multi-spaces
790
- * @deprecated
791
- */
792
- 'no-multi-spaces'?: Linter.RuleEntry<NoMultiSpaces>;
793
- /**
794
- * Disallow multiline strings
795
- * @see https://eslint.org/docs/latest/rules/no-multi-str
796
- */
797
- 'no-multi-str'?: Linter.RuleEntry<[]>;
798
- /**
799
- * Disallow multiple empty lines
800
- * @see https://eslint.org/docs/latest/rules/no-multiple-empty-lines
801
- * @deprecated
802
- */
803
- 'no-multiple-empty-lines'?: Linter.RuleEntry<NoMultipleEmptyLines>;
804
- /**
805
- * Disallow assignments to native objects or read-only global variables
806
- * @see https://eslint.org/docs/latest/rules/no-native-reassign
807
- * @deprecated
808
- */
809
- 'no-native-reassign'?: Linter.RuleEntry<NoNativeReassign>;
810
- /**
811
- * Disallow negated conditions
812
- * @see https://eslint.org/docs/latest/rules/no-negated-condition
813
- */
814
- 'no-negated-condition'?: Linter.RuleEntry<[]>;
815
- /**
816
- * Disallow negating the left operand in `in` expressions
817
- * @see https://eslint.org/docs/latest/rules/no-negated-in-lhs
818
- * @deprecated
819
- */
820
- 'no-negated-in-lhs'?: Linter.RuleEntry<[]>;
821
- /**
822
- * Disallow nested ternary expressions
823
- * @see https://eslint.org/docs/latest/rules/no-nested-ternary
824
- */
825
- 'no-nested-ternary'?: Linter.RuleEntry<[]>;
826
- /**
827
- * Disallow `new` operators outside of assignments or comparisons
828
- * @see https://eslint.org/docs/latest/rules/no-new
829
- */
830
- 'no-new'?: Linter.RuleEntry<[]>;
831
- /**
832
- * Disallow `new` operators with the `Function` object
833
- * @see https://eslint.org/docs/latest/rules/no-new-func
834
- */
835
- 'no-new-func'?: Linter.RuleEntry<[]>;
836
- /**
837
- * Disallow `new` operators with global non-constructor functions
838
- * @see https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
839
- */
840
- 'no-new-native-nonconstructor'?: Linter.RuleEntry<[]>;
841
- /**
842
- * Disallow `Object` constructors
843
- * @see https://eslint.org/docs/latest/rules/no-new-object
844
- * @deprecated
845
- */
846
- 'no-new-object'?: Linter.RuleEntry<[]>;
847
- /**
848
- * Disallow `new` operators with calls to `require`
849
- * @see https://eslint.org/docs/latest/rules/no-new-require
850
- * @deprecated
851
- */
852
- 'no-new-require'?: Linter.RuleEntry<[]>;
853
- /**
854
- * Disallow `new` operators with the `Symbol` object
855
- * @see https://eslint.org/docs/latest/rules/no-new-symbol
856
- * @deprecated
857
- */
858
- 'no-new-symbol'?: Linter.RuleEntry<[]>;
859
- /**
860
- * Disallow `new` operators with the `String`, `Number`, and `Boolean` objects
861
- * @see https://eslint.org/docs/latest/rules/no-new-wrappers
862
- */
863
- 'no-new-wrappers'?: Linter.RuleEntry<[]>;
864
- /**
865
- * Disallow `\8` and `\9` escape sequences in string literals
866
- * @see https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape
867
- */
868
- 'no-nonoctal-decimal-escape'?: Linter.RuleEntry<[]>;
869
- /**
870
- * Disallow calling global object properties as functions
871
- * @see https://eslint.org/docs/latest/rules/no-obj-calls
872
- */
873
- 'no-obj-calls'?: Linter.RuleEntry<[]>;
874
- /**
875
- * Disallow calls to the `Object` constructor without an argument
876
- * @see https://eslint.org/docs/latest/rules/no-object-constructor
877
- */
878
- 'no-object-constructor'?: Linter.RuleEntry<[]>;
879
- /**
880
- * Disallow octal literals
881
- * @see https://eslint.org/docs/latest/rules/no-octal
882
- */
883
- 'no-octal'?: Linter.RuleEntry<[]>;
884
- /**
885
- * Disallow octal escape sequences in string literals
886
- * @see https://eslint.org/docs/latest/rules/no-octal-escape
887
- */
888
- 'no-octal-escape'?: Linter.RuleEntry<[]>;
889
- /**
890
- * Disallow reassigning `function` parameters
891
- * @see https://eslint.org/docs/latest/rules/no-param-reassign
892
- */
893
- 'no-param-reassign'?: Linter.RuleEntry<NoParamReassign>;
894
- /**
895
- * Disallow string concatenation with `__dirname` and `__filename`
896
- * @see https://eslint.org/docs/latest/rules/no-path-concat
897
- * @deprecated
898
- */
899
- 'no-path-concat'?: Linter.RuleEntry<[]>;
900
- /**
901
- * Disallow the unary operators `++` and `--`
902
- * @see https://eslint.org/docs/latest/rules/no-plusplus
903
- */
904
- 'no-plusplus'?: Linter.RuleEntry<NoPlusplus>;
905
- /**
906
- * Disallow the use of `process.env`
907
- * @see https://eslint.org/docs/latest/rules/no-process-env
908
- * @deprecated
909
- */
910
- 'no-process-env'?: Linter.RuleEntry<[]>;
911
- /**
912
- * Disallow the use of `process.exit()`
913
- * @see https://eslint.org/docs/latest/rules/no-process-exit
914
- * @deprecated
915
- */
916
- 'no-process-exit'?: Linter.RuleEntry<[]>;
917
- /**
918
- * Disallow returning values from Promise executor functions
919
- * @see https://eslint.org/docs/latest/rules/no-promise-executor-return
920
- */
921
- 'no-promise-executor-return'?: Linter.RuleEntry<NoPromiseExecutorReturn>;
922
- /**
923
- * Disallow the use of the `__proto__` property
924
- * @see https://eslint.org/docs/latest/rules/no-proto
925
- */
926
- 'no-proto'?: Linter.RuleEntry<[]>;
927
- /**
928
- * Disallow calling some `Object.prototype` methods directly on objects
929
- * @see https://eslint.org/docs/latest/rules/no-prototype-builtins
930
- */
931
- 'no-prototype-builtins'?: Linter.RuleEntry<[]>;
932
- /**
933
- * Disallow variable redeclaration
934
- * @see https://eslint.org/docs/latest/rules/no-redeclare
935
- */
936
- 'no-redeclare'?: Linter.RuleEntry<NoRedeclare>;
937
- /**
938
- * Disallow multiple spaces in regular expressions
939
- * @see https://eslint.org/docs/latest/rules/no-regex-spaces
940
- */
941
- 'no-regex-spaces'?: Linter.RuleEntry<[]>;
942
- /**
943
- * Disallow specified names in exports
944
- * @see https://eslint.org/docs/latest/rules/no-restricted-exports
945
- */
946
- 'no-restricted-exports'?: Linter.RuleEntry<NoRestrictedExports>;
947
- /**
948
- * Disallow specified global variables
949
- * @see https://eslint.org/docs/latest/rules/no-restricted-globals
950
- */
951
- 'no-restricted-globals'?: Linter.RuleEntry<NoRestrictedGlobals>;
952
- /**
953
- * Disallow specified modules when loaded by `import`
954
- * @see https://eslint.org/docs/latest/rules/no-restricted-imports
955
- */
956
- 'no-restricted-imports'?: Linter.RuleEntry<NoRestrictedImports>;
957
- /**
958
- * Disallow specified modules when loaded by `require`
959
- * @see https://eslint.org/docs/latest/rules/no-restricted-modules
960
- * @deprecated
961
- */
962
- 'no-restricted-modules'?: Linter.RuleEntry<NoRestrictedModules>;
963
- /**
964
- * Disallow certain properties on certain objects
965
- * @see https://eslint.org/docs/latest/rules/no-restricted-properties
966
- */
967
- 'no-restricted-properties'?: Linter.RuleEntry<NoRestrictedProperties>;
968
- /**
969
- * Disallow specified syntax
970
- * @see https://eslint.org/docs/latest/rules/no-restricted-syntax
971
- */
972
- 'no-restricted-syntax'?: Linter.RuleEntry<NoRestrictedSyntax>;
973
- /**
974
- * Disallow assignment operators in `return` statements
975
- * @see https://eslint.org/docs/latest/rules/no-return-assign
976
- */
977
- 'no-return-assign'?: Linter.RuleEntry<NoReturnAssign>;
978
- /**
979
- * Disallow unnecessary `return await`
980
- * @see https://eslint.org/docs/latest/rules/no-return-await
981
- * @deprecated
982
- */
983
- 'no-return-await'?: Linter.RuleEntry<[]>;
984
- /**
985
- * Disallow `javascript:` urls
986
- * @see https://eslint.org/docs/latest/rules/no-script-url
987
- */
988
- 'no-script-url'?: Linter.RuleEntry<[]>;
989
- /**
990
- * Disallow assignments where both sides are exactly the same
991
- * @see https://eslint.org/docs/latest/rules/no-self-assign
992
- */
993
- 'no-self-assign'?: Linter.RuleEntry<NoSelfAssign>;
994
- /**
995
- * Disallow comparisons where both sides are exactly the same
996
- * @see https://eslint.org/docs/latest/rules/no-self-compare
997
- */
998
- 'no-self-compare'?: Linter.RuleEntry<[]>;
999
- /**
1000
- * Disallow comma operators
1001
- * @see https://eslint.org/docs/latest/rules/no-sequences
1002
- */
1003
- 'no-sequences'?: Linter.RuleEntry<NoSequences>;
1004
- /**
1005
- * Disallow returning values from setters
1006
- * @see https://eslint.org/docs/latest/rules/no-setter-return
1007
- */
1008
- 'no-setter-return'?: Linter.RuleEntry<[]>;
1009
- /**
1010
- * Disallow variable declarations from shadowing variables declared in the outer scope
1011
- * @see https://eslint.org/docs/latest/rules/no-shadow
1012
- */
1013
- 'no-shadow'?: Linter.RuleEntry<NoShadow>;
1014
- /**
1015
- * Disallow identifiers from shadowing restricted names
1016
- * @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
1017
- */
1018
- 'no-shadow-restricted-names'?: Linter.RuleEntry<[]>;
1019
- /**
1020
- * Disallow spacing between function identifiers and their applications (deprecated)
1021
- * @see https://eslint.org/docs/latest/rules/no-spaced-func
1022
- * @deprecated
1023
- */
1024
- 'no-spaced-func'?: Linter.RuleEntry<[]>;
1025
- /**
1026
- * Disallow sparse arrays
1027
- * @see https://eslint.org/docs/latest/rules/no-sparse-arrays
1028
- */
1029
- 'no-sparse-arrays'?: Linter.RuleEntry<[]>;
1030
- /**
1031
- * Disallow synchronous methods
1032
- * @see https://eslint.org/docs/latest/rules/no-sync
1033
- * @deprecated
1034
- */
1035
- 'no-sync'?: Linter.RuleEntry<NoSync>;
1036
- /**
1037
- * Disallow all tabs
1038
- * @see https://eslint.org/docs/latest/rules/no-tabs
1039
- * @deprecated
1040
- */
1041
- 'no-tabs'?: Linter.RuleEntry<NoTabs>;
1042
- /**
1043
- * Disallow template literal placeholder syntax in regular strings
1044
- * @see https://eslint.org/docs/latest/rules/no-template-curly-in-string
1045
- */
1046
- 'no-template-curly-in-string'?: Linter.RuleEntry<[]>;
1047
- /**
1048
- * Disallow ternary operators
1049
- * @see https://eslint.org/docs/latest/rules/no-ternary
1050
- */
1051
- 'no-ternary'?: Linter.RuleEntry<[]>;
1052
- /**
1053
- * Disallow `this`/`super` before calling `super()` in constructors
1054
- * @see https://eslint.org/docs/latest/rules/no-this-before-super
1055
- */
1056
- 'no-this-before-super'?: Linter.RuleEntry<[]>;
1057
- /**
1058
- * Disallow throwing literals as exceptions
1059
- * @see https://eslint.org/docs/latest/rules/no-throw-literal
1060
- */
1061
- 'no-throw-literal'?: Linter.RuleEntry<[]>;
1062
- /**
1063
- * Disallow trailing whitespace at the end of lines
1064
- * @see https://eslint.org/docs/latest/rules/no-trailing-spaces
1065
- * @deprecated
1066
- */
1067
- 'no-trailing-spaces'?: Linter.RuleEntry<NoTrailingSpaces>;
1068
- /**
1069
- * Disallow the use of undeclared variables unless mentioned in `/*global *\/` comments
1070
- * @see https://eslint.org/docs/latest/rules/no-undef
1071
- */
1072
- 'no-undef'?: Linter.RuleEntry<NoUndef>;
1073
- /**
1074
- * Disallow initializing variables to `undefined`
1075
- * @see https://eslint.org/docs/latest/rules/no-undef-init
1076
- */
1077
- 'no-undef-init'?: Linter.RuleEntry<[]>;
1078
- /**
1079
- * Disallow the use of `undefined` as an identifier
1080
- * @see https://eslint.org/docs/latest/rules/no-undefined
1081
- */
1082
- 'no-undefined'?: Linter.RuleEntry<[]>;
1083
- /**
1084
- * Disallow dangling underscores in identifiers
1085
- * @see https://eslint.org/docs/latest/rules/no-underscore-dangle
1086
- */
1087
- 'no-underscore-dangle'?: Linter.RuleEntry<NoUnderscoreDangle>;
1088
- /**
1089
- * Disallow confusing multiline expressions
1090
- * @see https://eslint.org/docs/latest/rules/no-unexpected-multiline
1091
- */
1092
- 'no-unexpected-multiline'?: Linter.RuleEntry<[]>;
1093
- /**
1094
- * Disallow unmodified loop conditions
1095
- * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
1096
- */
1097
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
1098
- /**
1099
- * Disallow ternary operators when simpler alternatives exist
1100
- * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
1101
- */
1102
- 'no-unneeded-ternary'?: Linter.RuleEntry<NoUnneededTernary>;
1103
- /**
1104
- * Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements
1105
- * @see https://eslint.org/docs/latest/rules/no-unreachable
1106
- */
1107
- 'no-unreachable'?: Linter.RuleEntry<[]>;
1108
- /**
1109
- * Disallow loops with a body that allows only one iteration
1110
- * @see https://eslint.org/docs/latest/rules/no-unreachable-loop
1111
- */
1112
- 'no-unreachable-loop'?: Linter.RuleEntry<NoUnreachableLoop>;
1113
- /**
1114
- * Disallow control flow statements in `finally` blocks
1115
- * @see https://eslint.org/docs/latest/rules/no-unsafe-finally
1116
- */
1117
- 'no-unsafe-finally'?: Linter.RuleEntry<[]>;
1118
- /**
1119
- * Disallow negating the left operand of relational operators
1120
- * @see https://eslint.org/docs/latest/rules/no-unsafe-negation
1121
- */
1122
- 'no-unsafe-negation'?: Linter.RuleEntry<NoUnsafeNegation>;
1123
- /**
1124
- * Disallow use of optional chaining in contexts where the `undefined` value is not allowed
1125
- * @see https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining
1126
- */
1127
- 'no-unsafe-optional-chaining'?: Linter.RuleEntry<NoUnsafeOptionalChaining>;
1128
- /**
1129
- * Disallow unused expressions
1130
- * @see https://eslint.org/docs/latest/rules/no-unused-expressions
1131
- */
1132
- 'no-unused-expressions'?: Linter.RuleEntry<NoUnusedExpressions>;
1133
- /**
1134
- * Disallow unused labels
1135
- * @see https://eslint.org/docs/latest/rules/no-unused-labels
1136
- */
1137
- 'no-unused-labels'?: Linter.RuleEntry<[]>;
1138
- /**
1139
- * Disallow unused private class members
1140
- * @see https://eslint.org/docs/latest/rules/no-unused-private-class-members
1141
- */
1142
- 'no-unused-private-class-members'?: Linter.RuleEntry<[]>;
1143
- /**
1144
- * Disallow unused variables
1145
- * @see https://eslint.org/docs/latest/rules/no-unused-vars
1146
- */
1147
- 'no-unused-vars'?: Linter.RuleEntry<NoUnusedVars>;
1148
- /**
1149
- * Disallow the use of variables before they are defined
1150
- * @see https://eslint.org/docs/latest/rules/no-use-before-define
1151
- */
1152
- 'no-use-before-define'?: Linter.RuleEntry<NoUseBeforeDefine>;
1153
- /**
1154
- * Disallow variable assignments when the value is not used
1155
- * @see https://eslint.org/docs/latest/rules/no-useless-assignment
1156
- */
1157
- 'no-useless-assignment'?: Linter.RuleEntry<[]>;
1158
- /**
1159
- * Disallow useless backreferences in regular expressions
1160
- * @see https://eslint.org/docs/latest/rules/no-useless-backreference
1161
- */
1162
- 'no-useless-backreference'?: Linter.RuleEntry<[]>;
1163
- /**
1164
- * Disallow unnecessary calls to `.call()` and `.apply()`
1165
- * @see https://eslint.org/docs/latest/rules/no-useless-call
1166
- */
1167
- 'no-useless-call'?: Linter.RuleEntry<[]>;
1168
- /**
1169
- * Disallow unnecessary `catch` clauses
1170
- * @see https://eslint.org/docs/latest/rules/no-useless-catch
1171
- */
1172
- 'no-useless-catch'?: Linter.RuleEntry<[]>;
1173
- /**
1174
- * Disallow unnecessary computed property keys in objects and classes
1175
- * @see https://eslint.org/docs/latest/rules/no-useless-computed-key
1176
- */
1177
- 'no-useless-computed-key'?: Linter.RuleEntry<NoUselessComputedKey>;
1178
- /**
1179
- * Disallow unnecessary concatenation of literals or template literals
1180
- * @see https://eslint.org/docs/latest/rules/no-useless-concat
1181
- */
1182
- 'no-useless-concat'?: Linter.RuleEntry<[]>;
1183
- /**
1184
- * Disallow unnecessary constructors
1185
- * @see https://eslint.org/docs/latest/rules/no-useless-constructor
1186
- */
1187
- 'no-useless-constructor'?: Linter.RuleEntry<[]>;
1188
- /**
1189
- * Disallow unnecessary escape characters
1190
- * @see https://eslint.org/docs/latest/rules/no-useless-escape
1191
- */
1192
- 'no-useless-escape'?: Linter.RuleEntry<[]>;
1193
- /**
1194
- * Disallow renaming import, export, and destructured assignments to the same name
1195
- * @see https://eslint.org/docs/latest/rules/no-useless-rename
1196
- */
1197
- 'no-useless-rename'?: Linter.RuleEntry<NoUselessRename>;
1198
- /**
1199
- * Disallow redundant return statements
1200
- * @see https://eslint.org/docs/latest/rules/no-useless-return
1201
- */
1202
- 'no-useless-return'?: Linter.RuleEntry<[]>;
1203
- /**
1204
- * Require `let` or `const` instead of `var`
1205
- * @see https://eslint.org/docs/latest/rules/no-var
1206
- */
1207
- 'no-var'?: Linter.RuleEntry<[]>;
1208
- /**
1209
- * Disallow `void` operators
1210
- * @see https://eslint.org/docs/latest/rules/no-void
1211
- */
1212
- 'no-void'?: Linter.RuleEntry<NoVoid>;
1213
- /**
1214
- * Disallow specified warning terms in comments
1215
- * @see https://eslint.org/docs/latest/rules/no-warning-comments
1216
- */
1217
- 'no-warning-comments'?: Linter.RuleEntry<NoWarningComments>;
1218
- /**
1219
- * Disallow whitespace before properties
1220
- * @see https://eslint.org/docs/latest/rules/no-whitespace-before-property
1221
- * @deprecated
1222
- */
1223
- 'no-whitespace-before-property'?: Linter.RuleEntry<[]>;
1224
- /**
1225
- * Disallow `with` statements
1226
- * @see https://eslint.org/docs/latest/rules/no-with
1227
- */
1228
- 'no-with'?: Linter.RuleEntry<[]>;
1229
- /**
1230
- * Enforce the location of single-line statements
1231
- * @see https://eslint.org/docs/latest/rules/nonblock-statement-body-position
1232
- * @deprecated
1233
- */
1234
- 'nonblock-statement-body-position'?: Linter.RuleEntry<NonblockStatementBodyPosition>;
1235
- /**
1236
- * Enforce consistent line breaks after opening and before closing braces
1237
- * @see https://eslint.org/docs/latest/rules/object-curly-newline
1238
- * @deprecated
1239
- */
1240
- 'object-curly-newline'?: Linter.RuleEntry<ObjectCurlyNewline>;
1241
- /**
1242
- * Enforce consistent spacing inside braces
1243
- * @see https://eslint.org/docs/latest/rules/object-curly-spacing
1244
- * @deprecated
1245
- */
1246
- 'object-curly-spacing'?: Linter.RuleEntry<ObjectCurlySpacing>;
1247
- /**
1248
- * Enforce placing object properties on separate lines
1249
- * @see https://eslint.org/docs/latest/rules/object-property-newline
1250
- * @deprecated
1251
- */
1252
- 'object-property-newline'?: Linter.RuleEntry<ObjectPropertyNewline>;
1253
- /**
1254
- * Require or disallow method and property shorthand syntax for object literals
1255
- * @see https://eslint.org/docs/latest/rules/object-shorthand
1256
- */
1257
- 'object-shorthand'?: Linter.RuleEntry<ObjectShorthand>;
1258
- /**
1259
- * Enforce variables to be declared either together or separately in functions
1260
- * @see https://eslint.org/docs/latest/rules/one-var
1261
- */
1262
- 'one-var'?: Linter.RuleEntry<OneVar>;
1263
- /**
1264
- * Require or disallow newlines around variable declarations
1265
- * @see https://eslint.org/docs/latest/rules/one-var-declaration-per-line
1266
- * @deprecated
1267
- */
1268
- 'one-var-declaration-per-line'?: Linter.RuleEntry<OneVarDeclarationPerLine>;
1269
- /**
1270
- * Require or disallow assignment operator shorthand where possible
1271
- * @see https://eslint.org/docs/latest/rules/operator-assignment
1272
- */
1273
- 'operator-assignment'?: Linter.RuleEntry<OperatorAssignment>;
1274
- /**
1275
- * Enforce consistent linebreak style for operators
1276
- * @see https://eslint.org/docs/latest/rules/operator-linebreak
1277
- * @deprecated
1278
- */
1279
- 'operator-linebreak'?: Linter.RuleEntry<OperatorLinebreak>;
1280
- /**
1281
- * Require or disallow padding within blocks
1282
- * @see https://eslint.org/docs/latest/rules/padded-blocks
1283
- * @deprecated
1284
- */
1285
- 'padded-blocks'?: Linter.RuleEntry<PaddedBlocks>;
1286
- /**
1287
- * Require or disallow padding lines between statements
1288
- * @see https://eslint.org/docs/latest/rules/padding-line-between-statements
1289
- * @deprecated
1290
- */
1291
- 'padding-line-between-statements'?: Linter.RuleEntry<PaddingLineBetweenStatements>;
1292
- /**
1293
- * Require using arrow functions for callbacks
1294
- * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
1295
- */
1296
- 'prefer-arrow-callback'?: Linter.RuleEntry<PreferArrowCallback>;
1297
- /**
1298
- * Require `const` declarations for variables that are never reassigned after declared
1299
- * @see https://eslint.org/docs/latest/rules/prefer-const
1300
- */
1301
- 'prefer-const'?: Linter.RuleEntry<PreferConst>;
1302
- /**
1303
- * Require destructuring from arrays and/or objects
1304
- * @see https://eslint.org/docs/latest/rules/prefer-destructuring
1305
- */
1306
- 'prefer-destructuring'?: Linter.RuleEntry<PreferDestructuring>;
1307
- /**
1308
- * Disallow the use of `Math.pow` in favor of the `**` operator
1309
- * @see https://eslint.org/docs/latest/rules/prefer-exponentiation-operator
1310
- */
1311
- 'prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
1312
- /**
1313
- * Enforce using named capture group in regular expression
1314
- * @see https://eslint.org/docs/latest/rules/prefer-named-capture-group
1315
- */
1316
- 'prefer-named-capture-group'?: Linter.RuleEntry<[]>;
1317
- /**
1318
- * Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals
1319
- * @see https://eslint.org/docs/latest/rules/prefer-numeric-literals
1320
- */
1321
- 'prefer-numeric-literals'?: Linter.RuleEntry<[]>;
1322
- /**
1323
- * Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`
1324
- * @see https://eslint.org/docs/latest/rules/prefer-object-has-own
1325
- */
1326
- 'prefer-object-has-own'?: Linter.RuleEntry<[]>;
1327
- /**
1328
- * Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead
1329
- * @see https://eslint.org/docs/latest/rules/prefer-object-spread
1330
- */
1331
- 'prefer-object-spread'?: Linter.RuleEntry<[]>;
1332
- /**
1333
- * Require using Error objects as Promise rejection reasons
1334
- * @see https://eslint.org/docs/latest/rules/prefer-promise-reject-errors
1335
- */
1336
- 'prefer-promise-reject-errors'?: Linter.RuleEntry<PreferPromiseRejectErrors>;
1337
- /**
1338
- * Require `Reflect` methods where applicable
1339
- * @see https://eslint.org/docs/latest/rules/prefer-reflect
1340
- * @deprecated
1341
- */
1342
- 'prefer-reflect'?: Linter.RuleEntry<PreferReflect>;
1343
- /**
1344
- * Disallow use of the `RegExp` constructor in favor of regular expression literals
1345
- * @see https://eslint.org/docs/latest/rules/prefer-regex-literals
1346
- */
1347
- 'prefer-regex-literals'?: Linter.RuleEntry<PreferRegexLiterals>;
1348
- /**
1349
- * Require rest parameters instead of `arguments`
1350
- * @see https://eslint.org/docs/latest/rules/prefer-rest-params
1351
- */
1352
- 'prefer-rest-params'?: Linter.RuleEntry<[]>;
1353
- /**
1354
- * Require spread operators instead of `.apply()`
1355
- * @see https://eslint.org/docs/latest/rules/prefer-spread
1356
- */
1357
- 'prefer-spread'?: Linter.RuleEntry<[]>;
1358
- /**
1359
- * Require template literals instead of string concatenation
1360
- * @see https://eslint.org/docs/latest/rules/prefer-template
1361
- */
1362
- 'prefer-template'?: Linter.RuleEntry<[]>;
1363
- /**
1364
- * Require quotes around object literal property names
1365
- * @see https://eslint.org/docs/latest/rules/quote-props
1366
- * @deprecated
1367
- */
1368
- 'quote-props'?: Linter.RuleEntry<QuoteProps>;
1369
- /**
1370
- * Enforce the consistent use of either backticks, double, or single quotes
1371
- * @see https://eslint.org/docs/latest/rules/quotes
1372
- * @deprecated
1373
- */
1374
- 'quotes'?: Linter.RuleEntry<Quotes>;
1375
- /**
1376
- * Enforce the consistent use of the radix argument when using `parseInt()`
1377
- * @see https://eslint.org/docs/latest/rules/radix
1378
- */
1379
- 'radix'?: Linter.RuleEntry<Radix>;
1380
- /**
1381
- * Disallow assignments that can lead to race conditions due to usage of `await` or `yield`
1382
- * @see https://eslint.org/docs/latest/rules/require-atomic-updates
1383
- */
1384
- 'require-atomic-updates'?: Linter.RuleEntry<RequireAtomicUpdates>;
1385
- /**
1386
- * Disallow async functions which have no `await` expression
1387
- * @see https://eslint.org/docs/latest/rules/require-await
1388
- */
1389
- 'require-await'?: Linter.RuleEntry<[]>;
1390
- /**
1391
- * Enforce the use of `u` or `v` flag on RegExp
1392
- * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
1393
- */
1394
- 'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>;
1395
- /**
1396
- * Require generator functions to contain `yield`
1397
- * @see https://eslint.org/docs/latest/rules/require-yield
1398
- */
1399
- 'require-yield'?: Linter.RuleEntry<[]>;
1400
- /**
1401
- * Enforce spacing between rest and spread operators and their expressions
1402
- * @see https://eslint.org/docs/latest/rules/rest-spread-spacing
1403
- * @deprecated
1404
- */
1405
- 'rest-spread-spacing'?: Linter.RuleEntry<RestSpreadSpacing>;
1406
- /**
1407
- * Require or disallow semicolons instead of ASI
1408
- * @see https://eslint.org/docs/latest/rules/semi
1409
- * @deprecated
1410
- */
1411
- 'semi'?: Linter.RuleEntry<Semi>;
1412
- /**
1413
- * Enforce consistent spacing before and after semicolons
1414
- * @see https://eslint.org/docs/latest/rules/semi-spacing
1415
- * @deprecated
1416
- */
1417
- 'semi-spacing'?: Linter.RuleEntry<SemiSpacing>;
1418
- /**
1419
- * Enforce location of semicolons
1420
- * @see https://eslint.org/docs/latest/rules/semi-style
1421
- * @deprecated
1422
- */
1423
- 'semi-style'?: Linter.RuleEntry<SemiStyle>;
1424
- /**
1425
- * Enforce sorted import declarations within modules
1426
- * @see https://eslint.org/docs/latest/rules/sort-imports
1427
- */
1428
- 'sort-imports'?: Linter.RuleEntry<SortImports>;
1429
- /**
1430
- * Require object keys to be sorted
1431
- * @see https://eslint.org/docs/latest/rules/sort-keys
1432
- */
1433
- 'sort-keys'?: Linter.RuleEntry<SortKeys>;
1434
- /**
1435
- * Require variables within the same declaration block to be sorted
1436
- * @see https://eslint.org/docs/latest/rules/sort-vars
1437
- */
1438
- 'sort-vars'?: Linter.RuleEntry<SortVars>;
1439
- /**
1440
- * Enforce consistent spacing before blocks
1441
- * @see https://eslint.org/docs/latest/rules/space-before-blocks
1442
- * @deprecated
1443
- */
1444
- 'space-before-blocks'?: Linter.RuleEntry<SpaceBeforeBlocks>;
1445
- /**
1446
- * Enforce consistent spacing before `function` definition opening parenthesis
1447
- * @see https://eslint.org/docs/latest/rules/space-before-function-paren
1448
- * @deprecated
1449
- */
1450
- 'space-before-function-paren'?: Linter.RuleEntry<SpaceBeforeFunctionParen>;
1451
- /**
1452
- * Enforce consistent spacing inside parentheses
1453
- * @see https://eslint.org/docs/latest/rules/space-in-parens
1454
- * @deprecated
1455
- */
1456
- 'space-in-parens'?: Linter.RuleEntry<SpaceInParens>;
1457
- /**
1458
- * Require spacing around infix operators
1459
- * @see https://eslint.org/docs/latest/rules/space-infix-ops
1460
- * @deprecated
1461
- */
1462
- 'space-infix-ops'?: Linter.RuleEntry<SpaceInfixOps>;
1463
- /**
1464
- * Enforce consistent spacing before or after unary operators
1465
- * @see https://eslint.org/docs/latest/rules/space-unary-ops
1466
- * @deprecated
1467
- */
1468
- 'space-unary-ops'?: Linter.RuleEntry<SpaceUnaryOps>;
1469
- /**
1470
- * Enforce consistent spacing after the `//` or `/*` in a comment
1471
- * @see https://eslint.org/docs/latest/rules/spaced-comment
1472
- * @deprecated
1473
- */
1474
- 'spaced-comment'?: Linter.RuleEntry<SpacedComment>;
1475
- /**
1476
- * Require or disallow strict mode directives
1477
- * @see https://eslint.org/docs/latest/rules/strict
1478
- */
1479
- 'strict'?: Linter.RuleEntry<Strict>;
1480
- /**
1481
- * Enforce spacing around colons of switch statements
1482
- * @see https://eslint.org/docs/latest/rules/switch-colon-spacing
1483
- * @deprecated
1484
- */
1485
- 'switch-colon-spacing'?: Linter.RuleEntry<SwitchColonSpacing>;
1486
- /**
1487
- * Require symbol descriptions
1488
- * @see https://eslint.org/docs/latest/rules/symbol-description
1489
- */
1490
- 'symbol-description'?: Linter.RuleEntry<[]>;
1491
- /**
1492
- * Require or disallow spacing around embedded expressions of template strings
1493
- * @see https://eslint.org/docs/latest/rules/template-curly-spacing
1494
- * @deprecated
1495
- */
1496
- 'template-curly-spacing'?: Linter.RuleEntry<TemplateCurlySpacing>;
1497
- /**
1498
- * Require or disallow spacing between template tags and their literals
1499
- * @see https://eslint.org/docs/latest/rules/template-tag-spacing
1500
- * @deprecated
1501
- */
1502
- 'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
1503
- /**
1504
- * Require or disallow Unicode byte order mark (BOM)
1505
- * @see https://eslint.org/docs/latest/rules/unicode-bom
1506
- */
1507
- 'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
1508
- /**
1509
- * Require calls to `isNaN()` when checking for `NaN`
1510
- * @see https://eslint.org/docs/latest/rules/use-isnan
1511
- */
1512
- 'use-isnan'?: Linter.RuleEntry<UseIsnan>;
1513
- /**
1514
- * Enforce comparing `typeof` expressions against valid strings
1515
- * @see https://eslint.org/docs/latest/rules/valid-typeof
1516
- */
1517
- 'valid-typeof'?: Linter.RuleEntry<ValidTypeof>;
1518
- /**
1519
- * Require `var` declarations be placed at the top of their containing scope
1520
- * @see https://eslint.org/docs/latest/rules/vars-on-top
1521
- */
1522
- 'vars-on-top'?: Linter.RuleEntry<[]>;
1523
- /**
1524
- * Require parentheses around immediate `function` invocations
1525
- * @see https://eslint.org/docs/latest/rules/wrap-iife
1526
- * @deprecated
1527
- */
1528
- 'wrap-iife'?: Linter.RuleEntry<WrapIife>;
1529
- /**
1530
- * Require parenthesis around regex literals
1531
- * @see https://eslint.org/docs/latest/rules/wrap-regex
1532
- * @deprecated
1533
- */
1534
- 'wrap-regex'?: Linter.RuleEntry<[]>;
1535
- /**
1536
- * Require or disallow spacing around the `*` in `yield*` expressions
1537
- * @see https://eslint.org/docs/latest/rules/yield-star-spacing
1538
- * @deprecated
1539
- */
1540
- 'yield-star-spacing'?: Linter.RuleEntry<YieldStarSpacing>;
1541
- /**
1542
- * Require or disallow "Yoda" conditions
1543
- * @see https://eslint.org/docs/latest/rules/yoda
1544
- */
1545
- 'yoda'?: Linter.RuleEntry<Yoda>;
1546
- }
1547
- type AccessorPairs = [] | [
1548
- {
1549
- getWithoutSet?: boolean;
1550
- setWithoutGet?: boolean;
1551
- enforceForClassMembers?: boolean;
1552
- }
1553
- ];
1554
- type ArrayBracketNewline = [] | [
1555
- (("always" | "never" | "consistent") | {
1556
- multiline?: boolean;
1557
- minItems?: (number | null);
1558
- })
1559
- ];
1560
- type ArrayBracketSpacing = [] | [("always" | "never")] | [
1561
- ("always" | "never"),
1562
- {
1563
- singleValue?: boolean;
1564
- objectsInArrays?: boolean;
1565
- arraysInArrays?: boolean;
1566
- }
1567
- ];
1568
- type ArrayCallbackReturn = [] | [
1569
- {
1570
- allowImplicit?: boolean;
1571
- checkForEach?: boolean;
1572
- allowVoid?: boolean;
1573
- }
1574
- ];
1575
- type ArrayElementNewline = [] | [
1576
- (_ArrayElementNewlineBasicConfig | {
1577
- ArrayExpression?: _ArrayElementNewlineBasicConfig;
1578
- ArrayPattern?: _ArrayElementNewlineBasicConfig;
1579
- })
1580
- ];
1581
- type _ArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
1582
- multiline?: boolean;
1583
- minItems?: (number | null);
1584
- });
1585
- type ArrowBodyStyle = ([] | [("always" | "never")] | [] | ["as-needed"] | [
1586
- "as-needed",
1587
- {
1588
- requireReturnForObjectLiteral?: boolean;
1589
- }
1590
- ]);
1591
- type ArrowParens = [] | [("always" | "as-needed")] | [
1592
- ("always" | "as-needed"),
1593
- {
1594
- requireForBlockBody?: boolean;
1595
- }
1596
- ];
1597
- type ArrowSpacing = [] | [
1598
- {
1599
- before?: boolean;
1600
- after?: boolean;
1601
- }
1602
- ];
1603
- type BlockSpacing = [] | [("always" | "never")];
1604
- type BraceStyle = [] | [("1tbs" | "stroustrup" | "allman")] | [
1605
- ("1tbs" | "stroustrup" | "allman"),
1606
- {
1607
- allowSingleLine?: boolean;
1608
- }
1609
- ];
1610
- type CallbackReturn = [] | [string[]];
1611
- type Camelcase = [] | [
1612
- {
1613
- ignoreDestructuring?: boolean;
1614
- ignoreImports?: boolean;
1615
- ignoreGlobals?: boolean;
1616
- properties?: ("always" | "never");
1617
- allow?: string[];
1618
- }
1619
- ];
1620
- type CapitalizedComments = [] | [("always" | "never")] | [
1621
- ("always" | "never"),
1622
- ({
1623
- ignorePattern?: string;
1624
- ignoreInlineComments?: boolean;
1625
- ignoreConsecutiveComments?: boolean;
1626
- } | {
1627
- line?: {
1628
- ignorePattern?: string;
1629
- ignoreInlineComments?: boolean;
1630
- ignoreConsecutiveComments?: boolean;
1631
- };
1632
- block?: {
1633
- ignorePattern?: string;
1634
- ignoreInlineComments?: boolean;
1635
- ignoreConsecutiveComments?: boolean;
1636
- };
1637
- })
1638
- ];
1639
- type ClassMethodsUseThis = [] | [
1640
- {
1641
- exceptMethods?: string[];
1642
- enforceForClassFields?: boolean;
1643
- }
1644
- ];
1645
- type CommaDangle = [] | [
1646
- (_CommaDangleValue | {
1647
- arrays?: _CommaDangleValueWithIgnore;
1648
- objects?: _CommaDangleValueWithIgnore;
1649
- imports?: _CommaDangleValueWithIgnore;
1650
- exports?: _CommaDangleValueWithIgnore;
1651
- functions?: _CommaDangleValueWithIgnore;
1652
- })
1653
- ];
1654
- type _CommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline");
1655
- type _CommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline");
1656
- type CommaSpacing = [] | [
1657
- {
1658
- before?: boolean;
1659
- after?: boolean;
1660
- }
1661
- ];
1662
- type CommaStyle = [] | [("first" | "last")] | [
1663
- ("first" | "last"),
1664
- {
1665
- exceptions?: {
1666
- [k: string]: boolean | undefined;
1667
- };
1668
- }
1669
- ];
1670
- type Complexity = [] | [
1671
- (number | {
1672
- maximum?: number;
1673
- max?: number;
1674
- })
1675
- ];
1676
- type ComputedPropertySpacing = [] | [("always" | "never")] | [
1677
- ("always" | "never"),
1678
- {
1679
- enforceForClassMembers?: boolean;
1680
- }
1681
- ];
1682
- type ConsistentReturn = [] | [
1683
- {
1684
- treatUndefinedAsUnspecified?: boolean;
1685
- }
1686
- ];
1687
- type ConsistentThis = string[];
1688
- type Curly = ([] | ["all"] | [] | [("multi" | "multi-line" | "multi-or-nest")] | [("multi" | "multi-line" | "multi-or-nest"), "consistent"]);
1689
- type DefaultCase = [] | [
1690
- {
1691
- commentPattern?: string;
1692
- }
1693
- ];
1694
- type DotLocation = [] | [("object" | "property")];
1695
- type DotNotation = [] | [
1696
- {
1697
- allowKeywords?: boolean;
1698
- allowPattern?: string;
1699
- }
1700
- ];
1701
- type EolLast = [] | [("always" | "never" | "unix" | "windows")];
1702
- type Eqeqeq = ([] | ["always"] | [
1703
- "always",
1704
- {
1705
- null?: ("always" | "never" | "ignore");
1706
- }
1707
- ] | [] | [("smart" | "allow-null")]);
1708
- type FuncCallSpacing = ([] | ["never"] | [] | ["always"] | [
1709
- "always",
1710
- {
1711
- allowNewlines?: boolean;
1712
- }
1713
- ]);
1714
- type FuncNameMatching = ([] | [("always" | "never")] | [
1715
- ("always" | "never"),
1716
- {
1717
- considerPropertyDescriptor?: boolean;
1718
- includeCommonJSModuleExports?: boolean;
1719
- }
1720
- ] | [] | [
1721
- {
1722
- considerPropertyDescriptor?: boolean;
1723
- includeCommonJSModuleExports?: boolean;
1724
- }
1725
- ]);
1726
- type FuncNames = [] | [_FuncNamesValue] | [
1727
- _FuncNamesValue,
1728
- {
1729
- generators?: _FuncNamesValue;
1730
- }
1731
- ];
1732
- type _FuncNamesValue = ("always" | "as-needed" | "never");
1733
- type FuncStyle = [] | [("declaration" | "expression")] | [
1734
- ("declaration" | "expression"),
1735
- {
1736
- allowArrowFunctions?: boolean;
1737
- overrides?: {
1738
- namedExports?: ("declaration" | "expression" | "ignore");
1739
- };
1740
- }
1741
- ];
1742
- type FunctionCallArgumentNewline = [] | [("always" | "never" | "consistent")];
1743
- type FunctionParenNewline = [] | [
1744
- (("always" | "never" | "consistent" | "multiline" | "multiline-arguments") | {
1745
- minItems?: number;
1746
- })
1747
- ];
1748
- type GeneratorStarSpacing = [] | [
1749
- (("before" | "after" | "both" | "neither") | {
1750
- before?: boolean;
1751
- after?: boolean;
1752
- named?: (("before" | "after" | "both" | "neither") | {
1753
- before?: boolean;
1754
- after?: boolean;
1755
- });
1756
- anonymous?: (("before" | "after" | "both" | "neither") | {
1757
- before?: boolean;
1758
- after?: boolean;
1759
- });
1760
- method?: (("before" | "after" | "both" | "neither") | {
1761
- before?: boolean;
1762
- after?: boolean;
1763
- });
1764
- })
1765
- ];
1766
- type GetterReturn = [] | [
1767
- {
1768
- allowImplicit?: boolean;
1769
- }
1770
- ];
1771
- type GroupedAccessorPairs = [] | [("anyOrder" | "getBeforeSet" | "setBeforeGet")];
1772
- type HandleCallbackErr = [] | [string];
1773
- type IdBlacklist = string[];
1774
- type IdDenylist = string[];
1775
- type IdLength = [] | [
1776
- {
1777
- min?: number;
1778
- max?: number;
1779
- exceptions?: string[];
1780
- exceptionPatterns?: string[];
1781
- properties?: ("always" | "never");
1782
- }
1783
- ];
1784
- type IdMatch = [] | [string] | [
1785
- string,
1786
- {
1787
- properties?: boolean;
1788
- classFields?: boolean;
1789
- onlyDeclarations?: boolean;
1790
- ignoreDestructuring?: boolean;
1791
- }
1792
- ];
1793
- type ImplicitArrowLinebreak = [] | [("beside" | "below")];
1794
- type Indent = [] | [("tab" | number)] | [
1795
- ("tab" | number),
1796
- {
1797
- SwitchCase?: number;
1798
- VariableDeclarator?: ((number | ("first" | "off")) | {
1799
- var?: (number | ("first" | "off"));
1800
- let?: (number | ("first" | "off"));
1801
- const?: (number | ("first" | "off"));
1802
- });
1803
- outerIIFEBody?: (number | "off");
1804
- MemberExpression?: (number | "off");
1805
- FunctionDeclaration?: {
1806
- parameters?: (number | ("first" | "off"));
1807
- body?: number;
1808
- };
1809
- FunctionExpression?: {
1810
- parameters?: (number | ("first" | "off"));
1811
- body?: number;
1812
- };
1813
- StaticBlock?: {
1814
- body?: number;
1815
- };
1816
- CallExpression?: {
1817
- arguments?: (number | ("first" | "off"));
1818
- };
1819
- ArrayExpression?: (number | ("first" | "off"));
1820
- ObjectExpression?: (number | ("first" | "off"));
1821
- ImportDeclaration?: (number | ("first" | "off"));
1822
- flatTernaryExpressions?: boolean;
1823
- offsetTernaryExpressions?: boolean;
1824
- ignoredNodes?: string[];
1825
- ignoreComments?: boolean;
1826
- }
1827
- ];
1828
- type IndentLegacy = [] | [("tab" | number)] | [
1829
- ("tab" | number),
1830
- {
1831
- SwitchCase?: number;
1832
- VariableDeclarator?: (number | {
1833
- var?: number;
1834
- let?: number;
1835
- const?: number;
1836
- [k: string]: unknown | undefined;
1837
- });
1838
- outerIIFEBody?: number;
1839
- MemberExpression?: number;
1840
- FunctionDeclaration?: {
1841
- parameters?: (number | "first");
1842
- body?: number;
1843
- [k: string]: unknown | undefined;
1844
- };
1845
- FunctionExpression?: {
1846
- parameters?: (number | "first");
1847
- body?: number;
1848
- [k: string]: unknown | undefined;
1849
- };
1850
- CallExpression?: {
1851
- parameters?: (number | "first");
1852
- [k: string]: unknown | undefined;
1853
- };
1854
- ArrayExpression?: (number | "first");
1855
- ObjectExpression?: (number | "first");
1856
- }
1857
- ];
1858
- type InitDeclarations = ([] | ["always"] | [] | ["never"] | [
1859
- "never",
1860
- {
1861
- ignoreForLoopInit?: boolean;
1862
- }
1863
- ]);
1864
- type JsxQuotes = [] | [("prefer-single" | "prefer-double")];
1865
- type KeySpacing = [] | [
1866
- ({
1867
- align?: (("colon" | "value") | {
1868
- mode?: ("strict" | "minimum");
1869
- on?: ("colon" | "value");
1870
- beforeColon?: boolean;
1871
- afterColon?: boolean;
1872
- });
1873
- mode?: ("strict" | "minimum");
1874
- beforeColon?: boolean;
1875
- afterColon?: boolean;
1876
- } | {
1877
- singleLine?: {
1878
- mode?: ("strict" | "minimum");
1879
- beforeColon?: boolean;
1880
- afterColon?: boolean;
1881
- };
1882
- multiLine?: {
1883
- align?: (("colon" | "value") | {
1884
- mode?: ("strict" | "minimum");
1885
- on?: ("colon" | "value");
1886
- beforeColon?: boolean;
1887
- afterColon?: boolean;
1888
- });
1889
- mode?: ("strict" | "minimum");
1890
- beforeColon?: boolean;
1891
- afterColon?: boolean;
1892
- };
1893
- } | {
1894
- singleLine?: {
1895
- mode?: ("strict" | "minimum");
1896
- beforeColon?: boolean;
1897
- afterColon?: boolean;
1898
- };
1899
- multiLine?: {
1900
- mode?: ("strict" | "minimum");
1901
- beforeColon?: boolean;
1902
- afterColon?: boolean;
1903
- };
1904
- align?: {
1905
- mode?: ("strict" | "minimum");
1906
- on?: ("colon" | "value");
1907
- beforeColon?: boolean;
1908
- afterColon?: boolean;
1909
- };
1910
- })
1911
- ];
1912
- type KeywordSpacing = [] | [
1913
- {
1914
- before?: boolean;
1915
- after?: boolean;
1916
- overrides?: {
1917
- abstract?: {
1918
- before?: boolean;
1919
- after?: boolean;
1920
- };
1921
- as?: {
1922
- before?: boolean;
1923
- after?: boolean;
1924
- };
1925
- async?: {
1926
- before?: boolean;
1927
- after?: boolean;
1928
- };
1929
- await?: {
1930
- before?: boolean;
1931
- after?: boolean;
1932
- };
1933
- boolean?: {
1934
- before?: boolean;
1935
- after?: boolean;
1936
- };
1937
- break?: {
1938
- before?: boolean;
1939
- after?: boolean;
1940
- };
1941
- byte?: {
1942
- before?: boolean;
1943
- after?: boolean;
1944
- };
1945
- case?: {
1946
- before?: boolean;
1947
- after?: boolean;
1948
- };
1949
- catch?: {
1950
- before?: boolean;
1951
- after?: boolean;
1952
- };
1953
- char?: {
1954
- before?: boolean;
1955
- after?: boolean;
1956
- };
1957
- class?: {
1958
- before?: boolean;
1959
- after?: boolean;
1960
- };
1961
- const?: {
1962
- before?: boolean;
1963
- after?: boolean;
1964
- };
1965
- continue?: {
1966
- before?: boolean;
1967
- after?: boolean;
1968
- };
1969
- debugger?: {
1970
- before?: boolean;
1971
- after?: boolean;
1972
- };
1973
- default?: {
1974
- before?: boolean;
1975
- after?: boolean;
1976
- };
1977
- delete?: {
1978
- before?: boolean;
1979
- after?: boolean;
1980
- };
1981
- do?: {
1982
- before?: boolean;
1983
- after?: boolean;
1984
- };
1985
- double?: {
1986
- before?: boolean;
1987
- after?: boolean;
1988
- };
1989
- else?: {
1990
- before?: boolean;
1991
- after?: boolean;
1992
- };
1993
- enum?: {
1994
- before?: boolean;
1995
- after?: boolean;
1996
- };
1997
- export?: {
1998
- before?: boolean;
1999
- after?: boolean;
2000
- };
2001
- extends?: {
2002
- before?: boolean;
2003
- after?: boolean;
2004
- };
2005
- false?: {
2006
- before?: boolean;
2007
- after?: boolean;
2008
- };
2009
- final?: {
2010
- before?: boolean;
2011
- after?: boolean;
2012
- };
2013
- finally?: {
2014
- before?: boolean;
2015
- after?: boolean;
2016
- };
2017
- float?: {
2018
- before?: boolean;
2019
- after?: boolean;
2020
- };
2021
- for?: {
2022
- before?: boolean;
2023
- after?: boolean;
2024
- };
2025
- from?: {
2026
- before?: boolean;
2027
- after?: boolean;
2028
- };
2029
- function?: {
2030
- before?: boolean;
2031
- after?: boolean;
2032
- };
2033
- get?: {
2034
- before?: boolean;
2035
- after?: boolean;
2036
- };
2037
- goto?: {
2038
- before?: boolean;
2039
- after?: boolean;
2040
- };
2041
- if?: {
2042
- before?: boolean;
2043
- after?: boolean;
2044
- };
2045
- implements?: {
2046
- before?: boolean;
2047
- after?: boolean;
2048
- };
2049
- import?: {
2050
- before?: boolean;
2051
- after?: boolean;
2052
- };
2053
- in?: {
2054
- before?: boolean;
2055
- after?: boolean;
2056
- };
2057
- instanceof?: {
2058
- before?: boolean;
2059
- after?: boolean;
2060
- };
2061
- int?: {
2062
- before?: boolean;
2063
- after?: boolean;
2064
- };
2065
- interface?: {
2066
- before?: boolean;
2067
- after?: boolean;
2068
- };
2069
- let?: {
2070
- before?: boolean;
2071
- after?: boolean;
2072
- };
2073
- long?: {
2074
- before?: boolean;
2075
- after?: boolean;
2076
- };
2077
- native?: {
2078
- before?: boolean;
2079
- after?: boolean;
2080
- };
2081
- new?: {
2082
- before?: boolean;
2083
- after?: boolean;
2084
- };
2085
- null?: {
2086
- before?: boolean;
2087
- after?: boolean;
2088
- };
2089
- of?: {
2090
- before?: boolean;
2091
- after?: boolean;
2092
- };
2093
- package?: {
2094
- before?: boolean;
2095
- after?: boolean;
2096
- };
2097
- private?: {
2098
- before?: boolean;
2099
- after?: boolean;
2100
- };
2101
- protected?: {
2102
- before?: boolean;
2103
- after?: boolean;
2104
- };
2105
- public?: {
2106
- before?: boolean;
2107
- after?: boolean;
2108
- };
2109
- return?: {
2110
- before?: boolean;
2111
- after?: boolean;
2112
- };
2113
- set?: {
2114
- before?: boolean;
2115
- after?: boolean;
2116
- };
2117
- short?: {
2118
- before?: boolean;
2119
- after?: boolean;
2120
- };
2121
- static?: {
2122
- before?: boolean;
2123
- after?: boolean;
2124
- };
2125
- super?: {
2126
- before?: boolean;
2127
- after?: boolean;
2128
- };
2129
- switch?: {
2130
- before?: boolean;
2131
- after?: boolean;
2132
- };
2133
- synchronized?: {
2134
- before?: boolean;
2135
- after?: boolean;
2136
- };
2137
- this?: {
2138
- before?: boolean;
2139
- after?: boolean;
2140
- };
2141
- throw?: {
2142
- before?: boolean;
2143
- after?: boolean;
2144
- };
2145
- throws?: {
2146
- before?: boolean;
2147
- after?: boolean;
2148
- };
2149
- transient?: {
2150
- before?: boolean;
2151
- after?: boolean;
2152
- };
2153
- true?: {
2154
- before?: boolean;
2155
- after?: boolean;
2156
- };
2157
- try?: {
2158
- before?: boolean;
2159
- after?: boolean;
2160
- };
2161
- typeof?: {
2162
- before?: boolean;
2163
- after?: boolean;
2164
- };
2165
- var?: {
2166
- before?: boolean;
2167
- after?: boolean;
2168
- };
2169
- void?: {
2170
- before?: boolean;
2171
- after?: boolean;
2172
- };
2173
- volatile?: {
2174
- before?: boolean;
2175
- after?: boolean;
2176
- };
2177
- while?: {
2178
- before?: boolean;
2179
- after?: boolean;
2180
- };
2181
- with?: {
2182
- before?: boolean;
2183
- after?: boolean;
2184
- };
2185
- yield?: {
2186
- before?: boolean;
2187
- after?: boolean;
2188
- };
2189
- };
2190
- }
2191
- ];
2192
- type LineCommentPosition = [] | [
2193
- (("above" | "beside") | {
2194
- position?: ("above" | "beside");
2195
- ignorePattern?: string;
2196
- applyDefaultPatterns?: boolean;
2197
- applyDefaultIgnorePatterns?: boolean;
2198
- })
2199
- ];
2200
- type LinebreakStyle = [] | [("unix" | "windows")];
2201
- type LinesAroundComment = [] | [
2202
- {
2203
- beforeBlockComment?: boolean;
2204
- afterBlockComment?: boolean;
2205
- beforeLineComment?: boolean;
2206
- afterLineComment?: boolean;
2207
- allowBlockStart?: boolean;
2208
- allowBlockEnd?: boolean;
2209
- allowClassStart?: boolean;
2210
- allowClassEnd?: boolean;
2211
- allowObjectStart?: boolean;
2212
- allowObjectEnd?: boolean;
2213
- allowArrayStart?: boolean;
2214
- allowArrayEnd?: boolean;
2215
- ignorePattern?: string;
2216
- applyDefaultIgnorePatterns?: boolean;
2217
- afterHashbangComment?: boolean;
2218
- }
2219
- ];
2220
- type LinesAroundDirective = [] | [
2221
- (("always" | "never") | {
2222
- before?: ("always" | "never");
2223
- after?: ("always" | "never");
2224
- })
2225
- ];
2226
- type LinesBetweenClassMembers = [] | [
2227
- ({
2228
- enforce: [
2229
- {
2230
- blankLine: ("always" | "never");
2231
- prev: ("method" | "field" | "*");
2232
- next: ("method" | "field" | "*");
2233
- },
2234
- ...({
2235
- blankLine: ("always" | "never");
2236
- prev: ("method" | "field" | "*");
2237
- next: ("method" | "field" | "*");
2238
- })[]
2239
- ];
2240
- } | ("always" | "never"))
2241
- ] | [
2242
- ({
2243
- enforce: [
2244
- {
2245
- blankLine: ("always" | "never");
2246
- prev: ("method" | "field" | "*");
2247
- next: ("method" | "field" | "*");
2248
- },
2249
- ...({
2250
- blankLine: ("always" | "never");
2251
- prev: ("method" | "field" | "*");
2252
- next: ("method" | "field" | "*");
2253
- })[]
2254
- ];
2255
- } | ("always" | "never")),
2256
- {
2257
- exceptAfterSingleLine?: boolean;
2258
- }
2259
- ];
2260
- type LogicalAssignmentOperators = (([] | ["always"] | [
2261
- "always",
2262
- {
2263
- enforceForIfStatements?: boolean;
2264
- }
2265
- ] | ["never"]) & unknown[]);
2266
- type MaxClassesPerFile = [] | [
2267
- (number | {
2268
- ignoreExpressions?: boolean;
2269
- max?: number;
2270
- })
2271
- ];
2272
- type MaxDepth = [] | [
2273
- (number | {
2274
- maximum?: number;
2275
- max?: number;
2276
- })
2277
- ];
2278
- type MaxLen = [] | [
2279
- ({
2280
- code?: number;
2281
- comments?: number;
2282
- tabWidth?: number;
2283
- ignorePattern?: string;
2284
- ignoreComments?: boolean;
2285
- ignoreStrings?: boolean;
2286
- ignoreUrls?: boolean;
2287
- ignoreTemplateLiterals?: boolean;
2288
- ignoreRegExpLiterals?: boolean;
2289
- ignoreTrailingComments?: boolean;
2290
- } | number)
2291
- ] | [
2292
- ({
2293
- code?: number;
2294
- comments?: number;
2295
- tabWidth?: number;
2296
- ignorePattern?: string;
2297
- ignoreComments?: boolean;
2298
- ignoreStrings?: boolean;
2299
- ignoreUrls?: boolean;
2300
- ignoreTemplateLiterals?: boolean;
2301
- ignoreRegExpLiterals?: boolean;
2302
- ignoreTrailingComments?: boolean;
2303
- } | number),
2304
- ({
2305
- code?: number;
2306
- comments?: number;
2307
- tabWidth?: number;
2308
- ignorePattern?: string;
2309
- ignoreComments?: boolean;
2310
- ignoreStrings?: boolean;
2311
- ignoreUrls?: boolean;
2312
- ignoreTemplateLiterals?: boolean;
2313
- ignoreRegExpLiterals?: boolean;
2314
- ignoreTrailingComments?: boolean;
2315
- } | number)
2316
- ] | [
2317
- ({
2318
- code?: number;
2319
- comments?: number;
2320
- tabWidth?: number;
2321
- ignorePattern?: string;
2322
- ignoreComments?: boolean;
2323
- ignoreStrings?: boolean;
2324
- ignoreUrls?: boolean;
2325
- ignoreTemplateLiterals?: boolean;
2326
- ignoreRegExpLiterals?: boolean;
2327
- ignoreTrailingComments?: boolean;
2328
- } | number),
2329
- ({
2330
- code?: number;
2331
- comments?: number;
2332
- tabWidth?: number;
2333
- ignorePattern?: string;
2334
- ignoreComments?: boolean;
2335
- ignoreStrings?: boolean;
2336
- ignoreUrls?: boolean;
2337
- ignoreTemplateLiterals?: boolean;
2338
- ignoreRegExpLiterals?: boolean;
2339
- ignoreTrailingComments?: boolean;
2340
- } | number),
2341
- {
2342
- code?: number;
2343
- comments?: number;
2344
- tabWidth?: number;
2345
- ignorePattern?: string;
2346
- ignoreComments?: boolean;
2347
- ignoreStrings?: boolean;
2348
- ignoreUrls?: boolean;
2349
- ignoreTemplateLiterals?: boolean;
2350
- ignoreRegExpLiterals?: boolean;
2351
- ignoreTrailingComments?: boolean;
2352
- }
2353
- ];
2354
- type MaxLines = [] | [
2355
- (number | {
2356
- max?: number;
2357
- skipComments?: boolean;
2358
- skipBlankLines?: boolean;
2359
- })
2360
- ];
2361
- type MaxLinesPerFunction = [] | [
2362
- ({
2363
- max?: number;
2364
- skipComments?: boolean;
2365
- skipBlankLines?: boolean;
2366
- IIFEs?: boolean;
2367
- } | number)
2368
- ];
2369
- type MaxNestedCallbacks = [] | [
2370
- (number | {
2371
- maximum?: number;
2372
- max?: number;
2373
- })
2374
- ];
2375
- type MaxParams = [] | [
2376
- (number | {
2377
- maximum?: number;
2378
- max?: number;
2379
- })
2380
- ];
2381
- type MaxStatements = [] | [
2382
- (number | {
2383
- maximum?: number;
2384
- max?: number;
2385
- })
2386
- ] | [
2387
- (number | {
2388
- maximum?: number;
2389
- max?: number;
2390
- }),
2391
- {
2392
- ignoreTopLevelFunctions?: boolean;
2393
- }
2394
- ];
2395
- type MaxStatementsPerLine = [] | [
2396
- {
2397
- max?: number;
2398
- }
2399
- ];
2400
- type MultilineCommentStyle = ([] | [("starred-block" | "bare-block")] | [] | ["separate-lines"] | [
2401
- "separate-lines",
2402
- {
2403
- checkJSDoc?: boolean;
2404
- }
2405
- ]);
2406
- type MultilineTernary = [] | [("always" | "always-multiline" | "never")];
2407
- type NewCap = [] | [
2408
- {
2409
- newIsCap?: boolean;
2410
- capIsNew?: boolean;
2411
- newIsCapExceptions?: string[];
2412
- newIsCapExceptionPattern?: string;
2413
- capIsNewExceptions?: string[];
2414
- capIsNewExceptionPattern?: string;
2415
- properties?: boolean;
2416
- }
2417
- ];
2418
- type NewParens = [] | [("always" | "never")];
2419
- type NewlineAfterVar = [] | [("never" | "always")];
2420
- type NewlinePerChainedCall = [] | [
2421
- {
2422
- ignoreChainWithDepth?: number;
2423
- }
2424
- ];
2425
- type NoBitwise = [] | [
2426
- {
2427
- allow?: ("^" | "|" | "&" | "<<" | ">>" | ">>>" | "^=" | "|=" | "&=" | "<<=" | ">>=" | ">>>=" | "~")[];
2428
- int32Hint?: boolean;
2429
- }
2430
- ];
2431
- type NoCondAssign = [] | [("except-parens" | "always")];
2432
- type NoConfusingArrow = [] | [
2433
- {
2434
- allowParens?: boolean;
2435
- onlyOneSimpleParam?: boolean;
2436
- }
2437
- ];
2438
- type NoConsole = [] | [
2439
- {
2440
- allow?: [string, ...(string)[]];
2441
- }
2442
- ];
2443
- type NoConstantCondition = [] | [
2444
- {
2445
- checkLoops?: ("all" | "allExceptWhileTrue" | "none" | true | false);
2446
- }
2447
- ];
2448
- type NoDuplicateImports = [] | [
2449
- {
2450
- includeExports?: boolean;
2451
- }
2452
- ];
2453
- type NoElseReturn = [] | [
2454
- {
2455
- allowElseIf?: boolean;
2456
- }
2457
- ];
2458
- type NoEmpty = [] | [
2459
- {
2460
- allowEmptyCatch?: boolean;
2461
- }
2462
- ];
2463
- type NoEmptyFunction = [] | [
2464
- {
2465
- allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[];
2466
- }
2467
- ];
2468
- type NoEmptyPattern = [] | [
2469
- {
2470
- allowObjectPatternsAsParameters?: boolean;
2471
- }
2472
- ];
2473
- type NoEval = [] | [
2474
- {
2475
- allowIndirect?: boolean;
2476
- }
2477
- ];
2478
- type NoExtendNative = [] | [
2479
- {
2480
- exceptions?: string[];
2481
- }
2482
- ];
2483
- type NoExtraBooleanCast = [] | [
2484
- ({
2485
- enforceForInnerExpressions?: boolean;
2486
- } | {
2487
- enforceForLogicalOperands?: boolean;
2488
- })
2489
- ];
2490
- type NoExtraParens = ([] | ["functions"] | [] | ["all"] | [
2491
- "all",
2492
- {
2493
- conditionalAssign?: boolean;
2494
- ternaryOperandBinaryExpressions?: boolean;
2495
- nestedBinaryExpressions?: boolean;
2496
- returnAssign?: boolean;
2497
- ignoreJSX?: ("none" | "all" | "single-line" | "multi-line");
2498
- enforceForArrowConditionals?: boolean;
2499
- enforceForSequenceExpressions?: boolean;
2500
- enforceForNewInMemberExpressions?: boolean;
2501
- enforceForFunctionPrototypeMethods?: boolean;
2502
- allowParensAfterCommentPattern?: string;
2503
- }
2504
- ]);
2505
- type NoFallthrough = [] | [
2506
- {
2507
- commentPattern?: string;
2508
- allowEmptyCase?: boolean;
2509
- reportUnusedFallthroughComment?: boolean;
2510
- }
2511
- ];
2512
- type NoGlobalAssign = [] | [
2513
- {
2514
- exceptions?: string[];
2515
- }
2516
- ];
2517
- type NoImplicitCoercion = [] | [
2518
- {
2519
- boolean?: boolean;
2520
- number?: boolean;
2521
- string?: boolean;
2522
- disallowTemplateShorthand?: boolean;
2523
- allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[];
2524
- }
2525
- ];
2526
- type NoImplicitGlobals = [] | [
2527
- {
2528
- lexicalBindings?: boolean;
2529
- }
2530
- ];
2531
- type NoInlineComments = [] | [
2532
- {
2533
- ignorePattern?: string;
2534
- }
2535
- ];
2536
- type NoInnerDeclarations = [] | [("functions" | "both")] | [
2537
- ("functions" | "both"),
2538
- {
2539
- blockScopedFunctions?: ("allow" | "disallow");
2540
- }
2541
- ];
2542
- type NoInvalidRegexp = [] | [
2543
- {
2544
- allowConstructorFlags?: string[];
2545
- }
2546
- ];
2547
- type NoInvalidThis = [] | [
2548
- {
2549
- capIsConstructor?: boolean;
2550
- }
2551
- ];
2552
- type NoIrregularWhitespace = [] | [
2553
- {
2554
- skipComments?: boolean;
2555
- skipStrings?: boolean;
2556
- skipTemplates?: boolean;
2557
- skipRegExps?: boolean;
2558
- skipJSXText?: boolean;
2559
- }
2560
- ];
2561
- type NoLabels = [] | [
2562
- {
2563
- allowLoop?: boolean;
2564
- allowSwitch?: boolean;
2565
- }
2566
- ];
2567
- type NoMagicNumbers = [] | [
2568
- {
2569
- detectObjects?: boolean;
2570
- enforceConst?: boolean;
2571
- ignore?: (number | string)[];
2572
- ignoreArrayIndexes?: boolean;
2573
- ignoreDefaultValues?: boolean;
2574
- ignoreClassFieldInitialValues?: boolean;
2575
- }
2576
- ];
2577
- type NoMisleadingCharacterClass = [] | [
2578
- {
2579
- allowEscape?: boolean;
2580
- }
2581
- ];
2582
- type NoMixedOperators = [] | [
2583
- {
2584
- groups?: [("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"), ...(("+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "~" | "<<" | ">>" | ">>>" | "==" | "!=" | "===" | "!==" | ">" | ">=" | "<" | "<=" | "&&" | "||" | "in" | "instanceof" | "?:" | "??"))[]][];
2585
- allowSamePrecedence?: boolean;
2586
- }
2587
- ];
2588
- type NoMixedRequires = [] | [
2589
- (boolean | {
2590
- grouping?: boolean;
2591
- allowCall?: boolean;
2592
- })
2593
- ];
2594
- type NoMixedSpacesAndTabs = [] | [("smart-tabs" | true | false)];
2595
- type NoMultiAssign = [] | [
2596
- {
2597
- ignoreNonDeclaration?: boolean;
2598
- }
2599
- ];
2600
- type NoMultiSpaces = [] | [
2601
- {
2602
- exceptions?: {
2603
- [k: string]: boolean;
2604
- };
2605
- ignoreEOLComments?: boolean;
2606
- }
2607
- ];
2608
- type NoMultipleEmptyLines = [] | [
2609
- {
2610
- max: number;
2611
- maxEOF?: number;
2612
- maxBOF?: number;
2613
- }
2614
- ];
2615
- type NoNativeReassign = [] | [
2616
- {
2617
- exceptions?: string[];
2618
- }
2619
- ];
2620
- type NoParamReassign = [] | [
2621
- ({
2622
- props?: false;
2623
- } | {
2624
- props?: true;
2625
- ignorePropertyModificationsFor?: string[];
2626
- ignorePropertyModificationsForRegex?: string[];
2627
- })
2628
- ];
2629
- type NoPlusplus = [] | [
2630
- {
2631
- allowForLoopAfterthoughts?: boolean;
2632
- }
2633
- ];
2634
- type NoPromiseExecutorReturn = [] | [
2635
- {
2636
- allowVoid?: boolean;
2637
- }
2638
- ];
2639
- type NoRedeclare = [] | [
2640
- {
2641
- builtinGlobals?: boolean;
2642
- }
2643
- ];
2644
- type NoRestrictedExports = [] | [
2645
- ({
2646
- restrictedNamedExports?: string[];
2647
- restrictedNamedExportsPattern?: string;
2648
- } | {
2649
- restrictedNamedExports?: string[];
2650
- restrictedNamedExportsPattern?: string;
2651
- restrictDefaultExports?: {
2652
- direct?: boolean;
2653
- named?: boolean;
2654
- defaultFrom?: boolean;
2655
- namedFrom?: boolean;
2656
- namespaceFrom?: boolean;
2657
- };
2658
- })
2659
- ];
2660
- type NoRestrictedGlobals = (string | {
2661
- name: string;
2662
- message?: string;
2663
- })[];
2664
- type NoRestrictedImports = ((string | {
2665
- name: string;
2666
- message?: string;
2667
- importNames?: string[];
2668
- allowImportNames?: string[];
2669
- })[] | [] | [
2670
- {
2671
- paths?: (string | {
2672
- name: string;
2673
- message?: string;
2674
- importNames?: string[];
2675
- allowImportNames?: string[];
2676
- })[];
2677
- patterns?: (string[] | ({
2678
- [k: string]: unknown | undefined;
2679
- } | {
2680
- [k: string]: unknown | undefined;
2681
- })[]);
2682
- }
2683
- ]);
2684
- type NoRestrictedModules = ((string | {
2685
- name: string;
2686
- message?: string;
2687
- })[] | {
2688
- paths?: (string | {
2689
- name: string;
2690
- message?: string;
2691
- })[];
2692
- patterns?: string[];
2693
- }[]);
2694
- type NoRestrictedProperties = ({
2695
- object: string;
2696
- property?: string;
2697
- message?: string;
2698
- } | {
2699
- object?: string;
2700
- property: string;
2701
- message?: string;
2702
- })[];
2703
- type NoRestrictedSyntax = (string | {
2704
- selector: string;
2705
- message?: string;
2706
- })[];
2707
- type NoReturnAssign = [] | [("except-parens" | "always")];
2708
- type NoSelfAssign = [] | [
2709
- {
2710
- props?: boolean;
2711
- }
2712
- ];
2713
- type NoSequences = [] | [
2714
- {
2715
- allowInParentheses?: boolean;
2716
- }
2717
- ];
2718
- type NoShadow = [] | [
2719
- {
2720
- builtinGlobals?: boolean;
2721
- hoist?: ("all" | "functions" | "never");
2722
- allow?: string[];
2723
- ignoreOnInitialization?: boolean;
2724
- }
2725
- ];
2726
- type NoSync = [] | [
2727
- {
2728
- allowAtRootLevel?: boolean;
2729
- }
2730
- ];
2731
- type NoTabs = [] | [
2732
- {
2733
- allowIndentationTabs?: boolean;
2734
- }
2735
- ];
2736
- type NoTrailingSpaces = [] | [
2737
- {
2738
- skipBlankLines?: boolean;
2739
- ignoreComments?: boolean;
2740
- }
2741
- ];
2742
- type NoUndef = [] | [
2743
- {
2744
- typeof?: boolean;
2745
- }
2746
- ];
2747
- type NoUnderscoreDangle = [] | [
2748
- {
2749
- allow?: string[];
2750
- allowAfterThis?: boolean;
2751
- allowAfterSuper?: boolean;
2752
- allowAfterThisConstructor?: boolean;
2753
- enforceInMethodNames?: boolean;
2754
- allowFunctionParams?: boolean;
2755
- enforceInClassFields?: boolean;
2756
- allowInArrayDestructuring?: boolean;
2757
- allowInObjectDestructuring?: boolean;
2758
- }
2759
- ];
2760
- type NoUnneededTernary = [] | [
2761
- {
2762
- defaultAssignment?: boolean;
2763
- }
2764
- ];
2765
- type NoUnreachableLoop = [] | [
2766
- {
2767
- ignore?: ("WhileStatement" | "DoWhileStatement" | "ForStatement" | "ForInStatement" | "ForOfStatement")[];
2768
- }
2769
- ];
2770
- type NoUnsafeNegation = [] | [
2771
- {
2772
- enforceForOrderingRelations?: boolean;
2773
- }
2774
- ];
2775
- type NoUnsafeOptionalChaining = [] | [
2776
- {
2777
- disallowArithmeticOperators?: boolean;
2778
- }
2779
- ];
2780
- type NoUnusedExpressions = [] | [
2781
- {
2782
- allowShortCircuit?: boolean;
2783
- allowTernary?: boolean;
2784
- allowTaggedTemplates?: boolean;
2785
- enforceForJSX?: boolean;
2786
- }
2787
- ];
2788
- type NoUnusedVars = [] | [
2789
- (("all" | "local") | {
2790
- vars?: ("all" | "local");
2791
- varsIgnorePattern?: string;
2792
- args?: ("all" | "after-used" | "none");
2793
- ignoreRestSiblings?: boolean;
2794
- argsIgnorePattern?: string;
2795
- caughtErrors?: ("all" | "none");
2796
- caughtErrorsIgnorePattern?: string;
2797
- destructuredArrayIgnorePattern?: string;
2798
- ignoreClassWithStaticInitBlock?: boolean;
2799
- reportUsedIgnorePattern?: boolean;
2800
- })
2801
- ];
2802
- type NoUseBeforeDefine = [] | [
2803
- ("nofunc" | {
2804
- functions?: boolean;
2805
- classes?: boolean;
2806
- variables?: boolean;
2807
- allowNamedExports?: boolean;
2808
- })
2809
- ];
2810
- type NoUselessComputedKey = [] | [
2811
- {
2812
- enforceForClassMembers?: boolean;
2813
- }
2814
- ];
2815
- type NoUselessRename = [] | [
2816
- {
2817
- ignoreDestructuring?: boolean;
2818
- ignoreImport?: boolean;
2819
- ignoreExport?: boolean;
2820
- }
2821
- ];
2822
- type NoVoid = [] | [
2823
- {
2824
- allowAsStatement?: boolean;
2825
- }
2826
- ];
2827
- type NoWarningComments = [] | [
2828
- {
2829
- terms?: string[];
2830
- location?: ("start" | "anywhere");
2831
- decoration?: [string, ...(string)[]];
2832
- }
2833
- ];
2834
- type NonblockStatementBodyPosition = [] | [("beside" | "below" | "any")] | [
2835
- ("beside" | "below" | "any"),
2836
- {
2837
- overrides?: {
2838
- if?: ("beside" | "below" | "any");
2839
- else?: ("beside" | "below" | "any");
2840
- while?: ("beside" | "below" | "any");
2841
- do?: ("beside" | "below" | "any");
2842
- for?: ("beside" | "below" | "any");
2843
- };
2844
- }
2845
- ];
2846
- type ObjectCurlyNewline = [] | [
2847
- ((("always" | "never") | {
2848
- multiline?: boolean;
2849
- minProperties?: number;
2850
- consistent?: boolean;
2851
- }) | {
2852
- ObjectExpression?: (("always" | "never") | {
2853
- multiline?: boolean;
2854
- minProperties?: number;
2855
- consistent?: boolean;
2856
- });
2857
- ObjectPattern?: (("always" | "never") | {
2858
- multiline?: boolean;
2859
- minProperties?: number;
2860
- consistent?: boolean;
2861
- });
2862
- ImportDeclaration?: (("always" | "never") | {
2863
- multiline?: boolean;
2864
- minProperties?: number;
2865
- consistent?: boolean;
2866
- });
2867
- ExportDeclaration?: (("always" | "never") | {
2868
- multiline?: boolean;
2869
- minProperties?: number;
2870
- consistent?: boolean;
2871
- });
2872
- })
2873
- ];
2874
- type ObjectCurlySpacing = [] | [("always" | "never")] | [
2875
- ("always" | "never"),
2876
- {
2877
- arraysInObjects?: boolean;
2878
- objectsInObjects?: boolean;
2879
- }
2880
- ];
2881
- type ObjectPropertyNewline = [] | [
2882
- {
2883
- allowAllPropertiesOnSameLine?: boolean;
2884
- allowMultiplePropertiesPerLine?: boolean;
2885
- }
2886
- ];
2887
- type ObjectShorthand = ([] | [("always" | "methods" | "properties" | "never" | "consistent" | "consistent-as-needed")] | [] | [("always" | "methods" | "properties")] | [
2888
- ("always" | "methods" | "properties"),
2889
- {
2890
- avoidQuotes?: boolean;
2891
- }
2892
- ] | [] | [("always" | "methods")] | [
2893
- ("always" | "methods"),
2894
- {
2895
- ignoreConstructors?: boolean;
2896
- methodsIgnorePattern?: string;
2897
- avoidQuotes?: boolean;
2898
- avoidExplicitReturnArrows?: boolean;
2899
- }
2900
- ]);
2901
- type OneVar = [] | [
2902
- (("always" | "never" | "consecutive") | {
2903
- separateRequires?: boolean;
2904
- var?: ("always" | "never" | "consecutive");
2905
- let?: ("always" | "never" | "consecutive");
2906
- const?: ("always" | "never" | "consecutive");
2907
- } | {
2908
- initialized?: ("always" | "never" | "consecutive");
2909
- uninitialized?: ("always" | "never" | "consecutive");
2910
- })
2911
- ];
2912
- type OneVarDeclarationPerLine = [] | [("always" | "initializations")];
2913
- type OperatorAssignment = [] | [("always" | "never")];
2914
- type OperatorLinebreak = [] | [("after" | "before" | "none" | null)] | [
2915
- ("after" | "before" | "none" | null),
2916
- {
2917
- overrides?: {
2918
- [k: string]: ("after" | "before" | "none" | "ignore") | undefined;
2919
- };
2920
- }
2921
- ];
2922
- type PaddedBlocks = [] | [
2923
- (("always" | "never") | {
2924
- blocks?: ("always" | "never");
2925
- switches?: ("always" | "never");
2926
- classes?: ("always" | "never");
2927
- })
2928
- ] | [
2929
- (("always" | "never") | {
2930
- blocks?: ("always" | "never");
2931
- switches?: ("always" | "never");
2932
- classes?: ("always" | "never");
2933
- }),
2934
- {
2935
- allowSingleLineBlocks?: boolean;
2936
- }
2937
- ];
2938
- type _PaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
2939
- type _PaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "cjs-export" | "cjs-import" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with") | [("*" | "block-like" | "cjs-export" | "cjs-import" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with"), ...(("*" | "block-like" | "cjs-export" | "cjs-import" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with"))[]]);
2940
- type PaddingLineBetweenStatements = {
2941
- blankLine: _PaddingLineBetweenStatementsPaddingType;
2942
- prev: _PaddingLineBetweenStatementsStatementType;
2943
- next: _PaddingLineBetweenStatementsStatementType;
2944
- }[];
2945
- type PreferArrowCallback = [] | [
2946
- {
2947
- allowNamedFunctions?: boolean;
2948
- allowUnboundThis?: boolean;
2949
- }
2950
- ];
2951
- type PreferConst = [] | [
2952
- {
2953
- destructuring?: ("any" | "all");
2954
- ignoreReadBeforeAssign?: boolean;
2955
- }
2956
- ];
2957
- type PreferDestructuring = [] | [
2958
- ({
2959
- VariableDeclarator?: {
2960
- array?: boolean;
2961
- object?: boolean;
2962
- };
2963
- AssignmentExpression?: {
2964
- array?: boolean;
2965
- object?: boolean;
2966
- };
2967
- } | {
2968
- array?: boolean;
2969
- object?: boolean;
2970
- })
2971
- ] | [
2972
- ({
2973
- VariableDeclarator?: {
2974
- array?: boolean;
2975
- object?: boolean;
2976
- };
2977
- AssignmentExpression?: {
2978
- array?: boolean;
2979
- object?: boolean;
2980
- };
2981
- } | {
2982
- array?: boolean;
2983
- object?: boolean;
2984
- }),
2985
- {
2986
- enforceForRenamedProperties?: boolean;
2987
- }
2988
- ];
2989
- type PreferPromiseRejectErrors = [] | [
2990
- {
2991
- allowEmptyReject?: boolean;
2992
- }
2993
- ];
2994
- type PreferReflect = [] | [
2995
- {
2996
- exceptions?: ("apply" | "call" | "delete" | "defineProperty" | "getOwnPropertyDescriptor" | "getPrototypeOf" | "setPrototypeOf" | "isExtensible" | "getOwnPropertyNames" | "preventExtensions")[];
2997
- }
2998
- ];
2999
- type PreferRegexLiterals = [] | [
3000
- {
3001
- disallowRedundantWrapping?: boolean;
3002
- }
3003
- ];
3004
- type QuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [
3005
- ("always" | "as-needed" | "consistent" | "consistent-as-needed"),
3006
- {
3007
- keywords?: boolean;
3008
- unnecessary?: boolean;
3009
- numbers?: boolean;
3010
- }
3011
- ]);
3012
- type Quotes = [] | [("single" | "double" | "backtick")] | [
3013
- ("single" | "double" | "backtick"),
3014
- ("avoid-escape" | {
3015
- avoidEscape?: boolean;
3016
- allowTemplateLiterals?: boolean;
3017
- })
3018
- ];
3019
- type Radix = [] | [("always" | "as-needed")];
3020
- type RequireAtomicUpdates = [] | [
3021
- {
3022
- allowProperties?: boolean;
3023
- }
3024
- ];
3025
- type RequireUnicodeRegexp = [] | [
3026
- {
3027
- requireFlag?: ("u" | "v");
3028
- }
3029
- ];
3030
- type RestSpreadSpacing = [] | [("always" | "never")];
3031
- type Semi = ([] | ["never"] | [
3032
- "never",
3033
- {
3034
- beforeStatementContinuationChars?: ("always" | "any" | "never");
3035
- }
3036
- ] | [] | ["always"] | [
3037
- "always",
3038
- {
3039
- omitLastInOneLineBlock?: boolean;
3040
- omitLastInOneLineClassBody?: boolean;
3041
- }
3042
- ]);
3043
- type SemiSpacing = [] | [
3044
- {
3045
- before?: boolean;
3046
- after?: boolean;
3047
- }
3048
- ];
3049
- type SemiStyle = [] | [("last" | "first")];
3050
- type SortImports = [] | [
3051
- {
3052
- ignoreCase?: boolean;
3053
- memberSyntaxSortOrder?: [("none" | "all" | "multiple" | "single"), ("none" | "all" | "multiple" | "single"), ("none" | "all" | "multiple" | "single"), ("none" | "all" | "multiple" | "single")];
3054
- ignoreDeclarationSort?: boolean;
3055
- ignoreMemberSort?: boolean;
3056
- allowSeparatedGroups?: boolean;
3057
- }
3058
- ];
3059
- type SortKeys = [] | [("asc" | "desc")] | [
3060
- ("asc" | "desc"),
3061
- {
3062
- caseSensitive?: boolean;
3063
- natural?: boolean;
3064
- minKeys?: number;
3065
- allowLineSeparatedGroups?: boolean;
3066
- }
3067
- ];
3068
- type SortVars = [] | [
3069
- {
3070
- ignoreCase?: boolean;
3071
- }
3072
- ];
3073
- type SpaceBeforeBlocks = [] | [
3074
- (("always" | "never") | {
3075
- keywords?: ("always" | "never" | "off");
3076
- functions?: ("always" | "never" | "off");
3077
- classes?: ("always" | "never" | "off");
3078
- })
3079
- ];
3080
- type SpaceBeforeFunctionParen = [] | [
3081
- (("always" | "never") | {
3082
- anonymous?: ("always" | "never" | "ignore");
3083
- named?: ("always" | "never" | "ignore");
3084
- asyncArrow?: ("always" | "never" | "ignore");
3085
- })
3086
- ];
3087
- type SpaceInParens = [] | [("always" | "never")] | [
3088
- ("always" | "never"),
3089
- {
3090
- exceptions?: ("{}" | "[]" | "()" | "empty")[];
3091
- }
3092
- ];
3093
- type SpaceInfixOps = [] | [
3094
- {
3095
- int32Hint?: boolean;
3096
- }
3097
- ];
3098
- type SpaceUnaryOps = [] | [
3099
- {
3100
- words?: boolean;
3101
- nonwords?: boolean;
3102
- overrides?: {
3103
- [k: string]: boolean | undefined;
3104
- };
3105
- }
3106
- ];
3107
- type SpacedComment = [] | [("always" | "never")] | [
3108
- ("always" | "never"),
3109
- {
3110
- exceptions?: string[];
3111
- markers?: string[];
3112
- line?: {
3113
- exceptions?: string[];
3114
- markers?: string[];
3115
- };
3116
- block?: {
3117
- exceptions?: string[];
3118
- markers?: string[];
3119
- balanced?: boolean;
3120
- };
3121
- }
3122
- ];
3123
- type Strict = [] | [("never" | "global" | "function" | "safe")];
3124
- type SwitchColonSpacing = [] | [
3125
- {
3126
- before?: boolean;
3127
- after?: boolean;
3128
- }
3129
- ];
3130
- type TemplateCurlySpacing = [] | [("always" | "never")];
3131
- type TemplateTagSpacing = [] | [("always" | "never")];
3132
- type UnicodeBom = [] | [("always" | "never")];
3133
- type UseIsnan = [] | [
3134
- {
3135
- enforceForSwitchCase?: boolean;
3136
- enforceForIndexOf?: boolean;
3137
- }
3138
- ];
3139
- type ValidTypeof = [] | [
3140
- {
3141
- requireStringLiterals?: boolean;
3142
- }
3143
- ];
3144
- type WrapIife = [] | [("outside" | "inside" | "any")] | [
3145
- ("outside" | "inside" | "any"),
3146
- {
3147
- functionPrototypeMethods?: boolean;
3148
- }
3149
- ];
3150
- type YieldStarSpacing = [] | [
3151
- (("before" | "after" | "both" | "neither") | {
3152
- before?: boolean;
3153
- after?: boolean;
3154
- })
3155
- ];
3156
- type Yoda = [] | [("always" | "never")] | [
3157
- ("always" | "never"),
3158
- {
3159
- exceptRange?: boolean;
3160
- onlyEquality?: boolean;
3161
- }
3162
- ];
3163
- export {};