@lntvow/eslint-config 9.29.0 → 9.30.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.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1199 -267
- package/dist/index.mjs +1 -1
- package/package.json +24 -27
package/dist/index.d.ts
CHANGED
|
@@ -276,233 +276,238 @@ interface RuleOptions {
|
|
|
276
276
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
277
277
|
/**
|
|
278
278
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
279
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
279
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
|
|
280
280
|
*/
|
|
281
281
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
282
282
|
/**
|
|
283
283
|
* Ensure a default export is present, given a default import.
|
|
284
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
284
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
285
285
|
*/
|
|
286
286
|
'import/default'?: Linter.RuleEntry<[]>
|
|
287
287
|
/**
|
|
288
288
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
289
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
289
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
290
290
|
*/
|
|
291
291
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
292
292
|
/**
|
|
293
293
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
294
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
294
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
295
295
|
*/
|
|
296
296
|
'import/export'?: Linter.RuleEntry<[]>
|
|
297
297
|
/**
|
|
298
298
|
* Ensure all exports appear after other statements.
|
|
299
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
299
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
300
300
|
*/
|
|
301
301
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
302
302
|
/**
|
|
303
303
|
* Ensure consistent use of file extension within the import path.
|
|
304
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
304
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
305
305
|
*/
|
|
306
306
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
307
307
|
/**
|
|
308
308
|
* Ensure all imports appear before other statements.
|
|
309
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
309
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
|
|
310
310
|
*/
|
|
311
311
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
312
312
|
/**
|
|
313
313
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
314
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
314
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
315
315
|
*/
|
|
316
316
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
317
317
|
/**
|
|
318
318
|
* Replaced by `import-x/first`.
|
|
319
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
319
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
320
320
|
* @deprecated
|
|
321
321
|
*/
|
|
322
322
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
323
323
|
/**
|
|
324
324
|
* Enforce the maximum number of dependencies a module can have.
|
|
325
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
325
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
326
326
|
*/
|
|
327
327
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
328
328
|
/**
|
|
329
329
|
* Ensure named imports correspond to a named export in the remote file.
|
|
330
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
330
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
331
331
|
*/
|
|
332
332
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
333
333
|
/**
|
|
334
334
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
335
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
335
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
336
336
|
*/
|
|
337
337
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
338
338
|
/**
|
|
339
339
|
* Enforce a newline after import statements.
|
|
340
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
340
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
|
|
341
341
|
*/
|
|
342
342
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
343
343
|
/**
|
|
344
344
|
* Forbid import of modules using absolute paths.
|
|
345
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
345
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
346
346
|
*/
|
|
347
347
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
348
348
|
/**
|
|
349
349
|
* Forbid AMD `require` and `define` calls.
|
|
350
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
350
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
351
351
|
*/
|
|
352
352
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
353
353
|
/**
|
|
354
354
|
* Forbid anonymous values as default exports.
|
|
355
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
355
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
356
356
|
*/
|
|
357
357
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
358
358
|
/**
|
|
359
359
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
360
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
360
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
361
361
|
*/
|
|
362
362
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
363
363
|
/**
|
|
364
364
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
365
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
365
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
366
366
|
*/
|
|
367
367
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
368
368
|
/**
|
|
369
369
|
* Forbid default exports.
|
|
370
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
370
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
|
|
371
371
|
*/
|
|
372
372
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
373
373
|
/**
|
|
374
374
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
375
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
375
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
376
376
|
*/
|
|
377
377
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
378
378
|
/**
|
|
379
379
|
* Forbid repeated import of the same module in multiple places.
|
|
380
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
380
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
|
|
381
381
|
*/
|
|
382
382
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
383
383
|
/**
|
|
384
384
|
* Forbid `require()` calls with expressions.
|
|
385
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
385
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
386
386
|
*/
|
|
387
387
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
388
388
|
/**
|
|
389
389
|
* Forbid empty named import blocks.
|
|
390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
390
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
391
391
|
*/
|
|
392
392
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
393
393
|
/**
|
|
394
394
|
* Forbid the use of extraneous packages.
|
|
395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
396
396
|
*/
|
|
397
397
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
398
398
|
/**
|
|
399
399
|
* Forbid import statements with CommonJS module.exports.
|
|
400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
401
401
|
*/
|
|
402
402
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
403
403
|
/**
|
|
404
404
|
* Forbid importing the submodules of other modules.
|
|
405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
406
406
|
*/
|
|
407
407
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
408
408
|
/**
|
|
409
409
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
|
|
411
411
|
*/
|
|
412
412
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
413
413
|
/**
|
|
414
414
|
* Forbid use of exported name as identifier of default export.
|
|
415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
416
416
|
*/
|
|
417
417
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
418
418
|
/**
|
|
419
419
|
* Forbid use of exported name as property of default export.
|
|
420
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
421
421
|
*/
|
|
422
422
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
423
423
|
/**
|
|
424
424
|
* Forbid named default exports.
|
|
425
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
425
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
|
|
426
426
|
*/
|
|
427
427
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
428
428
|
/**
|
|
429
429
|
* Forbid named exports.
|
|
430
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
430
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
431
431
|
*/
|
|
432
432
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
433
433
|
/**
|
|
434
434
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
436
436
|
*/
|
|
437
437
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
438
438
|
/**
|
|
439
439
|
* Forbid Node.js builtin modules.
|
|
440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
441
441
|
*/
|
|
442
442
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
443
443
|
/**
|
|
444
444
|
* Forbid importing packages through relative paths.
|
|
445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
446
446
|
*/
|
|
447
447
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
448
448
|
/**
|
|
449
449
|
* Forbid importing modules from parent directories.
|
|
450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
451
451
|
*/
|
|
452
452
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
453
453
|
/**
|
|
454
454
|
* Forbid importing a default export by a different name.
|
|
455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
456
456
|
*/
|
|
457
457
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
458
458
|
/**
|
|
459
459
|
* Enforce which files can be imported in a given folder.
|
|
460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
461
461
|
*/
|
|
462
462
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
463
463
|
/**
|
|
464
464
|
* Forbid a module from importing itself.
|
|
465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
466
466
|
*/
|
|
467
467
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
468
468
|
/**
|
|
469
469
|
* Forbid unassigned imports.
|
|
470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
471
471
|
*/
|
|
472
472
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
473
473
|
/**
|
|
474
474
|
* Ensure imports point to a file/module that can be resolved.
|
|
475
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
476
476
|
*/
|
|
477
477
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
478
478
|
/**
|
|
479
479
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
480
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
481
481
|
*/
|
|
482
482
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
483
483
|
/**
|
|
484
484
|
* Forbid unnecessary path segments in import and require statements.
|
|
485
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
486
486
|
*/
|
|
487
487
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
488
488
|
/**
|
|
489
489
|
* Forbid webpack loader syntax in imports.
|
|
490
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
491
491
|
*/
|
|
492
492
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
493
493
|
/**
|
|
494
494
|
* Enforce a convention in module import order.
|
|
495
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
496
496
|
*/
|
|
497
497
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
498
498
|
/**
|
|
499
499
|
* Prefer a default export if module exports a single name or multiple names.
|
|
500
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
501
501
|
*/
|
|
502
502
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
503
|
+
/**
|
|
504
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
506
|
+
*/
|
|
507
|
+
'import/prefer-namespace-import'?: Linter.RuleEntry<ImportPreferNamespaceImport>
|
|
503
508
|
/**
|
|
504
509
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
505
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
506
511
|
*/
|
|
507
512
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
508
513
|
/**
|
|
@@ -1943,7 +1948,7 @@ interface RuleOptions {
|
|
|
1943
1948
|
* enforce using quantifier
|
|
1944
1949
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
1945
1950
|
*/
|
|
1946
|
-
'regexp/prefer-quantifier'?: Linter.RuleEntry<
|
|
1951
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>
|
|
1947
1952
|
/**
|
|
1948
1953
|
* enforce using `?` quantifier
|
|
1949
1954
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
@@ -2141,483 +2146,478 @@ interface RuleOptions {
|
|
|
2141
2146
|
'strict'?: Linter.RuleEntry<Strict>
|
|
2142
2147
|
/**
|
|
2143
2148
|
* Enforce linebreaks after opening and before closing array brackets
|
|
2144
|
-
* @see https://eslint.style/rules/
|
|
2149
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
2145
2150
|
*/
|
|
2146
2151
|
'style/array-bracket-newline'?: Linter.RuleEntry<StyleArrayBracketNewline>
|
|
2147
2152
|
/**
|
|
2148
2153
|
* Enforce consistent spacing inside array brackets
|
|
2149
|
-
* @see https://eslint.style/rules/
|
|
2154
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
2150
2155
|
*/
|
|
2151
2156
|
'style/array-bracket-spacing'?: Linter.RuleEntry<StyleArrayBracketSpacing>
|
|
2152
2157
|
/**
|
|
2153
2158
|
* Enforce line breaks after each array element
|
|
2154
|
-
* @see https://eslint.style/rules/
|
|
2159
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
2155
2160
|
*/
|
|
2156
2161
|
'style/array-element-newline'?: Linter.RuleEntry<StyleArrayElementNewline>
|
|
2157
2162
|
/**
|
|
2158
2163
|
* Require parentheses around arrow function arguments
|
|
2159
|
-
* @see https://eslint.style/rules/
|
|
2164
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
2160
2165
|
*/
|
|
2161
2166
|
'style/arrow-parens'?: Linter.RuleEntry<StyleArrowParens>
|
|
2162
2167
|
/**
|
|
2163
2168
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
2164
|
-
* @see https://eslint.style/rules/
|
|
2169
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
2165
2170
|
*/
|
|
2166
2171
|
'style/arrow-spacing'?: Linter.RuleEntry<StyleArrowSpacing>
|
|
2167
2172
|
/**
|
|
2168
2173
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
2169
|
-
* @see https://eslint.style/rules/
|
|
2174
|
+
* @see https://eslint.style/rules/block-spacing
|
|
2170
2175
|
*/
|
|
2171
2176
|
'style/block-spacing'?: Linter.RuleEntry<StyleBlockSpacing>
|
|
2172
2177
|
/**
|
|
2173
2178
|
* Enforce consistent brace style for blocks
|
|
2174
|
-
* @see https://eslint.style/rules/
|
|
2179
|
+
* @see https://eslint.style/rules/brace-style
|
|
2175
2180
|
*/
|
|
2176
2181
|
'style/brace-style'?: Linter.RuleEntry<StyleBraceStyle>
|
|
2177
2182
|
/**
|
|
2178
2183
|
* Require or disallow trailing commas
|
|
2179
|
-
* @see https://eslint.style/rules/
|
|
2184
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
2180
2185
|
*/
|
|
2181
2186
|
'style/comma-dangle'?: Linter.RuleEntry<StyleCommaDangle>
|
|
2182
2187
|
/**
|
|
2183
2188
|
* Enforce consistent spacing before and after commas
|
|
2184
|
-
* @see https://eslint.style/rules/
|
|
2189
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
2185
2190
|
*/
|
|
2186
2191
|
'style/comma-spacing'?: Linter.RuleEntry<StyleCommaSpacing>
|
|
2187
2192
|
/**
|
|
2188
2193
|
* Enforce consistent comma style
|
|
2189
|
-
* @see https://eslint.style/rules/
|
|
2194
|
+
* @see https://eslint.style/rules/comma-style
|
|
2190
2195
|
*/
|
|
2191
2196
|
'style/comma-style'?: Linter.RuleEntry<StyleCommaStyle>
|
|
2192
2197
|
/**
|
|
2193
2198
|
* Enforce consistent spacing inside computed property brackets
|
|
2194
|
-
* @see https://eslint.style/rules/
|
|
2199
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
2195
2200
|
*/
|
|
2196
2201
|
'style/computed-property-spacing'?: Linter.RuleEntry<StyleComputedPropertySpacing>
|
|
2197
2202
|
/**
|
|
2198
2203
|
* Enforce consistent line breaks after opening and before closing braces
|
|
2199
|
-
* @see https://eslint.style/rules/
|
|
2204
|
+
* @see https://eslint.style/rules/curly-newline
|
|
2200
2205
|
*/
|
|
2201
2206
|
'style/curly-newline'?: Linter.RuleEntry<StyleCurlyNewline>
|
|
2202
2207
|
/**
|
|
2203
2208
|
* Enforce consistent newlines before and after dots
|
|
2204
|
-
* @see https://eslint.style/rules/
|
|
2209
|
+
* @see https://eslint.style/rules/dot-location
|
|
2205
2210
|
*/
|
|
2206
2211
|
'style/dot-location'?: Linter.RuleEntry<StyleDotLocation>
|
|
2207
2212
|
/**
|
|
2208
2213
|
* Require or disallow newline at the end of files
|
|
2209
|
-
* @see https://eslint.style/rules/
|
|
2214
|
+
* @see https://eslint.style/rules/eol-last
|
|
2210
2215
|
*/
|
|
2211
2216
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>
|
|
2212
|
-
/**
|
|
2213
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
2214
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
2215
|
-
*/
|
|
2216
|
-
'style/func-call-spacing'?: Linter.RuleEntry<StyleFuncCallSpacing>
|
|
2217
2217
|
/**
|
|
2218
2218
|
* Enforce line breaks between arguments of a function call
|
|
2219
|
-
* @see https://eslint.style/rules/
|
|
2219
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
2220
2220
|
*/
|
|
2221
2221
|
'style/function-call-argument-newline'?: Linter.RuleEntry<StyleFunctionCallArgumentNewline>
|
|
2222
2222
|
/**
|
|
2223
2223
|
* Require or disallow spacing between function identifiers and their invocations
|
|
2224
|
-
* @see https://eslint.style/rules/
|
|
2224
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
2225
2225
|
*/
|
|
2226
2226
|
'style/function-call-spacing'?: Linter.RuleEntry<StyleFunctionCallSpacing>
|
|
2227
2227
|
/**
|
|
2228
2228
|
* Enforce consistent line breaks inside function parentheses
|
|
2229
|
-
* @see https://eslint.style/rules/
|
|
2229
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
2230
2230
|
*/
|
|
2231
2231
|
'style/function-paren-newline'?: Linter.RuleEntry<StyleFunctionParenNewline>
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
2234
|
-
* @see https://eslint.style/rules/
|
|
2234
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
2235
2235
|
*/
|
|
2236
2236
|
'style/generator-star-spacing'?: Linter.RuleEntry<StyleGeneratorStarSpacing>
|
|
2237
2237
|
/**
|
|
2238
2238
|
* Enforce the location of arrow function bodies
|
|
2239
|
-
* @see https://eslint.style/rules/
|
|
2239
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
2240
2240
|
*/
|
|
2241
2241
|
'style/implicit-arrow-linebreak'?: Linter.RuleEntry<StyleImplicitArrowLinebreak>
|
|
2242
2242
|
/**
|
|
2243
2243
|
* Enforce consistent indentation
|
|
2244
|
-
* @see https://eslint.style/rules/
|
|
2244
|
+
* @see https://eslint.style/rules/indent
|
|
2245
2245
|
*/
|
|
2246
2246
|
'style/indent'?: Linter.RuleEntry<StyleIndent>
|
|
2247
2247
|
/**
|
|
2248
2248
|
* Indentation for binary operators
|
|
2249
|
-
* @see https://eslint.style/rules/
|
|
2249
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
2250
2250
|
*/
|
|
2251
2251
|
'style/indent-binary-ops'?: Linter.RuleEntry<StyleIndentBinaryOps>
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
2254
|
-
* @see https://eslint.style/rules/jsx
|
|
2254
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
2255
2255
|
*/
|
|
2256
2256
|
'style/jsx-child-element-spacing'?: Linter.RuleEntry<[]>
|
|
2257
2257
|
/**
|
|
2258
2258
|
* Enforce closing bracket location in JSX
|
|
2259
|
-
* @see https://eslint.style/rules/jsx
|
|
2259
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
2260
2260
|
*/
|
|
2261
2261
|
'style/jsx-closing-bracket-location'?: Linter.RuleEntry<StyleJsxClosingBracketLocation>
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Enforce closing tag location for multiline JSX
|
|
2264
|
-
* @see https://eslint.style/rules/jsx
|
|
2264
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
2265
2265
|
*/
|
|
2266
2266
|
'style/jsx-closing-tag-location'?: Linter.RuleEntry<StyleJsxClosingTagLocation>
|
|
2267
2267
|
/**
|
|
2268
2268
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
2269
|
-
* @see https://eslint.style/rules/jsx
|
|
2269
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
2270
2270
|
*/
|
|
2271
2271
|
'style/jsx-curly-brace-presence'?: Linter.RuleEntry<StyleJsxCurlyBracePresence>
|
|
2272
2272
|
/**
|
|
2273
2273
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
2274
|
-
* @see https://eslint.style/rules/jsx
|
|
2274
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
2275
2275
|
*/
|
|
2276
2276
|
'style/jsx-curly-newline'?: Linter.RuleEntry<StyleJsxCurlyNewline>
|
|
2277
2277
|
/**
|
|
2278
2278
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
2279
|
-
* @see https://eslint.style/rules/jsx
|
|
2279
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
2280
2280
|
*/
|
|
2281
2281
|
'style/jsx-curly-spacing'?: Linter.RuleEntry<StyleJsxCurlySpacing>
|
|
2282
2282
|
/**
|
|
2283
2283
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
2284
|
-
* @see https://eslint.style/rules/jsx
|
|
2284
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
2285
2285
|
*/
|
|
2286
2286
|
'style/jsx-equals-spacing'?: Linter.RuleEntry<StyleJsxEqualsSpacing>
|
|
2287
2287
|
/**
|
|
2288
2288
|
* Enforce proper position of the first property in JSX
|
|
2289
|
-
* @see https://eslint.style/rules/jsx
|
|
2289
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
2290
2290
|
*/
|
|
2291
2291
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>
|
|
2292
2292
|
/**
|
|
2293
2293
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
2294
|
-
* @see https://eslint.style/rules/jsx
|
|
2294
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
2295
2295
|
*/
|
|
2296
2296
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
2297
2297
|
/**
|
|
2298
2298
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
2299
|
-
* @see https://eslint.style/rules/jsx
|
|
2299
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
2300
2300
|
* @deprecated
|
|
2301
2301
|
*/
|
|
2302
2302
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
2303
2303
|
/**
|
|
2304
2304
|
* Enforce props indentation in JSX
|
|
2305
|
-
* @see https://eslint.style/rules/jsx
|
|
2305
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
2306
2306
|
*/
|
|
2307
2307
|
'style/jsx-indent-props'?: Linter.RuleEntry<StyleJsxIndentProps>
|
|
2308
2308
|
/**
|
|
2309
2309
|
* Enforce maximum of props on a single line in JSX
|
|
2310
|
-
* @see https://eslint.style/rules/jsx
|
|
2310
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
2311
2311
|
*/
|
|
2312
2312
|
'style/jsx-max-props-per-line'?: Linter.RuleEntry<StyleJsxMaxPropsPerLine>
|
|
2313
2313
|
/**
|
|
2314
2314
|
* Require or prevent a new line after jsx elements and expressions.
|
|
2315
|
-
* @see https://eslint.style/rules/jsx
|
|
2315
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
2316
2316
|
*/
|
|
2317
2317
|
'style/jsx-newline'?: Linter.RuleEntry<StyleJsxNewline>
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Require one JSX element per line
|
|
2320
|
-
* @see https://eslint.style/rules/jsx
|
|
2320
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
2321
2321
|
*/
|
|
2322
2322
|
'style/jsx-one-expression-per-line'?: Linter.RuleEntry<StyleJsxOneExpressionPerLine>
|
|
2323
2323
|
/**
|
|
2324
2324
|
* Enforce PascalCase for user-defined JSX components
|
|
2325
|
-
* @see https://eslint.style/rules/jsx
|
|
2325
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
2326
2326
|
*/
|
|
2327
2327
|
'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>
|
|
2328
2328
|
/**
|
|
2329
2329
|
* Disallow multiple spaces between inline JSX props
|
|
2330
|
-
* @see https://eslint.style/rules/jsx
|
|
2330
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
2331
2331
|
*/
|
|
2332
2332
|
'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
|
|
2333
2333
|
/**
|
|
2334
2334
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
2335
|
-
* @see https://eslint.style/rules/
|
|
2335
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
2336
2336
|
*/
|
|
2337
2337
|
'style/jsx-quotes'?: Linter.RuleEntry<StyleJsxQuotes>
|
|
2338
2338
|
/**
|
|
2339
2339
|
* Disallow extra closing tags for components without children
|
|
2340
|
-
* @see https://eslint.style/rules/jsx
|
|
2340
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
2341
2341
|
*/
|
|
2342
2342
|
'style/jsx-self-closing-comp'?: Linter.RuleEntry<StyleJsxSelfClosingComp>
|
|
2343
2343
|
/**
|
|
2344
2344
|
* Enforce props alphabetical sorting
|
|
2345
|
-
* @see https://eslint.style/rules/jsx
|
|
2345
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
2346
2346
|
*/
|
|
2347
2347
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>
|
|
2348
2348
|
/**
|
|
2349
2349
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
2350
|
-
* @see https://eslint.style/rules/jsx
|
|
2350
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
2351
2351
|
*/
|
|
2352
2352
|
'style/jsx-tag-spacing'?: Linter.RuleEntry<StyleJsxTagSpacing>
|
|
2353
2353
|
/**
|
|
2354
2354
|
* Disallow missing parentheses around multiline JSX
|
|
2355
|
-
* @see https://eslint.style/rules/jsx
|
|
2355
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
2356
2356
|
*/
|
|
2357
2357
|
'style/jsx-wrap-multilines'?: Linter.RuleEntry<StyleJsxWrapMultilines>
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
2360
|
-
* @see https://eslint.style/rules/
|
|
2360
|
+
* @see https://eslint.style/rules/key-spacing
|
|
2361
2361
|
*/
|
|
2362
2362
|
'style/key-spacing'?: Linter.RuleEntry<StyleKeySpacing>
|
|
2363
2363
|
/**
|
|
2364
2364
|
* Enforce consistent spacing before and after keywords
|
|
2365
|
-
* @see https://eslint.style/rules/
|
|
2365
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
2366
2366
|
*/
|
|
2367
2367
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>
|
|
2368
2368
|
/**
|
|
2369
2369
|
* Enforce position of line comments
|
|
2370
|
-
* @see https://eslint.style/rules/
|
|
2370
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
2371
2371
|
*/
|
|
2372
2372
|
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Enforce consistent linebreak style
|
|
2375
|
-
* @see https://eslint.style/rules/
|
|
2375
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
2376
2376
|
*/
|
|
2377
2377
|
'style/linebreak-style'?: Linter.RuleEntry<StyleLinebreakStyle>
|
|
2378
2378
|
/**
|
|
2379
2379
|
* Require empty lines around comments
|
|
2380
|
-
* @see https://eslint.style/rules/
|
|
2380
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
2381
2381
|
*/
|
|
2382
2382
|
'style/lines-around-comment'?: Linter.RuleEntry<StyleLinesAroundComment>
|
|
2383
2383
|
/**
|
|
2384
2384
|
* Require or disallow an empty line between class members
|
|
2385
|
-
* @see https://eslint.style/rules/
|
|
2385
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
2386
2386
|
*/
|
|
2387
2387
|
'style/lines-between-class-members'?: Linter.RuleEntry<StyleLinesBetweenClassMembers>
|
|
2388
2388
|
/**
|
|
2389
2389
|
* Enforce a maximum line length
|
|
2390
|
-
* @see https://eslint.style/rules/
|
|
2390
|
+
* @see https://eslint.style/rules/max-len
|
|
2391
2391
|
*/
|
|
2392
2392
|
'style/max-len'?: Linter.RuleEntry<StyleMaxLen>
|
|
2393
2393
|
/**
|
|
2394
2394
|
* Enforce a maximum number of statements allowed per line
|
|
2395
|
-
* @see https://eslint.style/rules/
|
|
2395
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
2396
2396
|
*/
|
|
2397
2397
|
'style/max-statements-per-line'?: Linter.RuleEntry<StyleMaxStatementsPerLine>
|
|
2398
2398
|
/**
|
|
2399
2399
|
* Require a specific member delimiter style for interfaces and type literals
|
|
2400
|
-
* @see https://eslint.style/rules/
|
|
2400
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
2401
2401
|
*/
|
|
2402
2402
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>
|
|
2403
2403
|
/**
|
|
2404
2404
|
* Enforce a particular style for multiline comments
|
|
2405
|
-
* @see https://eslint.style/rules/
|
|
2405
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
2406
2406
|
*/
|
|
2407
2407
|
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>
|
|
2408
2408
|
/**
|
|
2409
2409
|
* Enforce newlines between operands of ternary expressions
|
|
2410
|
-
* @see https://eslint.style/rules/
|
|
2410
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
2411
2411
|
*/
|
|
2412
2412
|
'style/multiline-ternary'?: Linter.RuleEntry<StyleMultilineTernary>
|
|
2413
2413
|
/**
|
|
2414
2414
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
2415
|
-
* @see https://eslint.style/rules/
|
|
2415
|
+
* @see https://eslint.style/rules/new-parens
|
|
2416
2416
|
*/
|
|
2417
2417
|
'style/new-parens'?: Linter.RuleEntry<StyleNewParens>
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Require a newline after each call in a method chain
|
|
2420
|
-
* @see https://eslint.style/rules/
|
|
2420
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
2421
2421
|
*/
|
|
2422
2422
|
'style/newline-per-chained-call'?: Linter.RuleEntry<StyleNewlinePerChainedCall>
|
|
2423
2423
|
/**
|
|
2424
2424
|
* Disallow arrow functions where they could be confused with comparisons
|
|
2425
|
-
* @see https://eslint.style/rules/
|
|
2425
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
2426
2426
|
*/
|
|
2427
2427
|
'style/no-confusing-arrow'?: Linter.RuleEntry<StyleNoConfusingArrow>
|
|
2428
2428
|
/**
|
|
2429
2429
|
* Disallow unnecessary parentheses
|
|
2430
|
-
* @see https://eslint.style/rules/
|
|
2430
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
2431
2431
|
*/
|
|
2432
2432
|
'style/no-extra-parens'?: Linter.RuleEntry<StyleNoExtraParens>
|
|
2433
2433
|
/**
|
|
2434
2434
|
* Disallow unnecessary semicolons
|
|
2435
|
-
* @see https://eslint.style/rules/
|
|
2435
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
2436
2436
|
*/
|
|
2437
2437
|
'style/no-extra-semi'?: Linter.RuleEntry<[]>
|
|
2438
2438
|
/**
|
|
2439
2439
|
* Disallow leading or trailing decimal points in numeric literals
|
|
2440
|
-
* @see https://eslint.style/rules/
|
|
2440
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
2441
2441
|
*/
|
|
2442
2442
|
'style/no-floating-decimal'?: Linter.RuleEntry<[]>
|
|
2443
2443
|
/**
|
|
2444
2444
|
* Disallow mixed binary operators
|
|
2445
|
-
* @see https://eslint.style/rules/
|
|
2445
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
2446
2446
|
*/
|
|
2447
2447
|
'style/no-mixed-operators'?: Linter.RuleEntry<StyleNoMixedOperators>
|
|
2448
2448
|
/**
|
|
2449
2449
|
* Disallow mixed spaces and tabs for indentation
|
|
2450
|
-
* @see https://eslint.style/rules/
|
|
2450
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
2451
2451
|
*/
|
|
2452
2452
|
'style/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StyleNoMixedSpacesAndTabs>
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Disallow multiple spaces
|
|
2455
|
-
* @see https://eslint.style/rules/
|
|
2455
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
2456
2456
|
*/
|
|
2457
2457
|
'style/no-multi-spaces'?: Linter.RuleEntry<StyleNoMultiSpaces>
|
|
2458
2458
|
/**
|
|
2459
2459
|
* Disallow multiple empty lines
|
|
2460
|
-
* @see https://eslint.style/rules/
|
|
2460
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
2461
2461
|
*/
|
|
2462
2462
|
'style/no-multiple-empty-lines'?: Linter.RuleEntry<StyleNoMultipleEmptyLines>
|
|
2463
2463
|
/**
|
|
2464
2464
|
* Disallow all tabs
|
|
2465
|
-
* @see https://eslint.style/rules/
|
|
2465
|
+
* @see https://eslint.style/rules/no-tabs
|
|
2466
2466
|
*/
|
|
2467
2467
|
'style/no-tabs'?: Linter.RuleEntry<StyleNoTabs>
|
|
2468
2468
|
/**
|
|
2469
2469
|
* Disallow trailing whitespace at the end of lines
|
|
2470
|
-
* @see https://eslint.style/rules/
|
|
2470
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
2471
2471
|
*/
|
|
2472
2472
|
'style/no-trailing-spaces'?: Linter.RuleEntry<StyleNoTrailingSpaces>
|
|
2473
2473
|
/**
|
|
2474
2474
|
* Disallow whitespace before properties
|
|
2475
|
-
* @see https://eslint.style/rules/
|
|
2475
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
2476
2476
|
*/
|
|
2477
2477
|
'style/no-whitespace-before-property'?: Linter.RuleEntry<[]>
|
|
2478
2478
|
/**
|
|
2479
2479
|
* Enforce the location of single-line statements
|
|
2480
|
-
* @see https://eslint.style/rules/
|
|
2480
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
2481
2481
|
*/
|
|
2482
2482
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Enforce consistent line breaks after opening and before closing braces
|
|
2485
|
-
* @see https://eslint.style/rules/
|
|
2485
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
2486
2486
|
*/
|
|
2487
2487
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
2488
2488
|
/**
|
|
2489
2489
|
* Enforce consistent spacing inside braces
|
|
2490
|
-
* @see https://eslint.style/rules/
|
|
2490
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
2491
2491
|
*/
|
|
2492
2492
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
2493
2493
|
/**
|
|
2494
2494
|
* Enforce placing object properties on separate lines
|
|
2495
|
-
* @see https://eslint.style/rules/
|
|
2495
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
2496
2496
|
*/
|
|
2497
2497
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
2498
2498
|
/**
|
|
2499
2499
|
* Require or disallow newlines around variable declarations
|
|
2500
|
-
* @see https://eslint.style/rules/
|
|
2500
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
2501
2501
|
*/
|
|
2502
2502
|
'style/one-var-declaration-per-line'?: Linter.RuleEntry<StyleOneVarDeclarationPerLine>
|
|
2503
2503
|
/**
|
|
2504
2504
|
* Enforce consistent linebreak style for operators
|
|
2505
|
-
* @see https://eslint.style/rules/
|
|
2505
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
2506
2506
|
*/
|
|
2507
2507
|
'style/operator-linebreak'?: Linter.RuleEntry<StyleOperatorLinebreak>
|
|
2508
2508
|
/**
|
|
2509
2509
|
* Require or disallow padding within blocks
|
|
2510
|
-
* @see https://eslint.style/rules/
|
|
2510
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
2511
2511
|
*/
|
|
2512
2512
|
'style/padded-blocks'?: Linter.RuleEntry<StylePaddedBlocks>
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Require or disallow padding lines between statements
|
|
2515
|
-
* @see https://eslint.style/rules/
|
|
2515
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
2516
2516
|
*/
|
|
2517
2517
|
'style/padding-line-between-statements'?: Linter.RuleEntry<StylePaddingLineBetweenStatements>
|
|
2518
2518
|
/**
|
|
2519
2519
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
2520
|
-
* @see https://eslint.style/rules/
|
|
2520
|
+
* @see https://eslint.style/rules/quote-props
|
|
2521
2521
|
*/
|
|
2522
2522
|
'style/quote-props'?: Linter.RuleEntry<StyleQuoteProps>
|
|
2523
2523
|
/**
|
|
2524
2524
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
2525
|
-
* @see https://eslint.style/rules/
|
|
2525
|
+
* @see https://eslint.style/rules/quotes
|
|
2526
2526
|
*/
|
|
2527
2527
|
'style/quotes'?: Linter.RuleEntry<StyleQuotes>
|
|
2528
2528
|
/**
|
|
2529
2529
|
* Enforce spacing between rest and spread operators and their expressions
|
|
2530
|
-
* @see https://eslint.style/rules/
|
|
2530
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
2531
2531
|
*/
|
|
2532
2532
|
'style/rest-spread-spacing'?: Linter.RuleEntry<StyleRestSpreadSpacing>
|
|
2533
2533
|
/**
|
|
2534
2534
|
* Require or disallow semicolons instead of ASI
|
|
2535
|
-
* @see https://eslint.style/rules/
|
|
2535
|
+
* @see https://eslint.style/rules/semi
|
|
2536
2536
|
*/
|
|
2537
2537
|
'style/semi'?: Linter.RuleEntry<StyleSemi>
|
|
2538
2538
|
/**
|
|
2539
2539
|
* Enforce consistent spacing before and after semicolons
|
|
2540
|
-
* @see https://eslint.style/rules/
|
|
2540
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
2541
2541
|
*/
|
|
2542
2542
|
'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
|
|
2543
2543
|
/**
|
|
2544
2544
|
* Enforce location of semicolons
|
|
2545
|
-
* @see https://eslint.style/rules/
|
|
2545
|
+
* @see https://eslint.style/rules/semi-style
|
|
2546
2546
|
*/
|
|
2547
2547
|
'style/semi-style'?: Linter.RuleEntry<StyleSemiStyle>
|
|
2548
2548
|
/**
|
|
2549
2549
|
* Enforce consistent spacing before blocks
|
|
2550
|
-
* @see https://eslint.style/rules/
|
|
2550
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
2551
2551
|
*/
|
|
2552
2552
|
'style/space-before-blocks'?: Linter.RuleEntry<StyleSpaceBeforeBlocks>
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Enforce consistent spacing before function parenthesis
|
|
2555
|
-
* @see https://eslint.style/rules/
|
|
2555
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
2556
2556
|
*/
|
|
2557
2557
|
'style/space-before-function-paren'?: Linter.RuleEntry<StyleSpaceBeforeFunctionParen>
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Enforce consistent spacing inside parentheses
|
|
2560
|
-
* @see https://eslint.style/rules/
|
|
2560
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
2561
2561
|
*/
|
|
2562
2562
|
'style/space-in-parens'?: Linter.RuleEntry<StyleSpaceInParens>
|
|
2563
2563
|
/**
|
|
2564
2564
|
* Require spacing around infix operators
|
|
2565
|
-
* @see https://eslint.style/rules/
|
|
2565
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
2566
2566
|
*/
|
|
2567
2567
|
'style/space-infix-ops'?: Linter.RuleEntry<StyleSpaceInfixOps>
|
|
2568
2568
|
/**
|
|
2569
2569
|
* Enforce consistent spacing before or after unary operators
|
|
2570
|
-
* @see https://eslint.style/rules/
|
|
2570
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
2571
2571
|
*/
|
|
2572
2572
|
'style/space-unary-ops'?: Linter.RuleEntry<StyleSpaceUnaryOps>
|
|
2573
2573
|
/**
|
|
2574
2574
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
2575
|
-
* @see https://eslint.style/rules/
|
|
2575
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
2576
2576
|
*/
|
|
2577
2577
|
'style/spaced-comment'?: Linter.RuleEntry<StyleSpacedComment>
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Enforce spacing around colons of switch statements
|
|
2580
|
-
* @see https://eslint.style/rules/
|
|
2580
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
2581
2581
|
*/
|
|
2582
2582
|
'style/switch-colon-spacing'?: Linter.RuleEntry<StyleSwitchColonSpacing>
|
|
2583
2583
|
/**
|
|
2584
2584
|
* Require or disallow spacing around embedded expressions of template strings
|
|
2585
|
-
* @see https://eslint.style/rules/
|
|
2585
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
2586
2586
|
*/
|
|
2587
2587
|
'style/template-curly-spacing'?: Linter.RuleEntry<StyleTemplateCurlySpacing>
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Require or disallow spacing between template tags and their literals
|
|
2590
|
-
* @see https://eslint.style/rules/
|
|
2590
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
2591
2591
|
*/
|
|
2592
2592
|
'style/template-tag-spacing'?: Linter.RuleEntry<StyleTemplateTagSpacing>
|
|
2593
2593
|
/**
|
|
2594
2594
|
* Require consistent spacing around type annotations
|
|
2595
|
-
* @see https://eslint.style/rules/
|
|
2595
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
2596
2596
|
*/
|
|
2597
2597
|
'style/type-annotation-spacing'?: Linter.RuleEntry<StyleTypeAnnotationSpacing>
|
|
2598
2598
|
/**
|
|
2599
2599
|
* Enforces consistent spacing inside TypeScript type generics
|
|
2600
|
-
* @see https://eslint.style/rules/
|
|
2600
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
2601
2601
|
*/
|
|
2602
2602
|
'style/type-generic-spacing'?: Linter.RuleEntry<[]>
|
|
2603
2603
|
/**
|
|
2604
2604
|
* Expect space before the type declaration in the named tuple
|
|
2605
|
-
* @see https://eslint.style/rules/
|
|
2605
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
2606
2606
|
*/
|
|
2607
2607
|
'style/type-named-tuple-spacing'?: Linter.RuleEntry<[]>
|
|
2608
2608
|
/**
|
|
2609
2609
|
* Require parentheses around immediate `function` invocations
|
|
2610
|
-
* @see https://eslint.style/rules/
|
|
2610
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
2611
2611
|
*/
|
|
2612
2612
|
'style/wrap-iife'?: Linter.RuleEntry<StyleWrapIife>
|
|
2613
2613
|
/**
|
|
2614
2614
|
* Require parenthesis around regex literals
|
|
2615
|
-
* @see https://eslint.style/rules/
|
|
2615
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
2616
2616
|
*/
|
|
2617
2617
|
'style/wrap-regex'?: Linter.RuleEntry<[]>
|
|
2618
2618
|
/**
|
|
2619
2619
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
2620
|
-
* @see https://eslint.style/rules/
|
|
2620
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
2621
2621
|
*/
|
|
2622
2622
|
'style/yield-star-spacing'?: Linter.RuleEntry<StyleYieldStarSpacing>
|
|
2623
2623
|
/**
|
|
@@ -3282,6 +3282,11 @@ interface RuleOptions {
|
|
|
3282
3282
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
3283
3283
|
*/
|
|
3284
3284
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
3285
|
+
/**
|
|
3286
|
+
* Disallow conversion idioms when they do not change the type or value of the expression
|
|
3287
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
|
|
3288
|
+
*/
|
|
3289
|
+
'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
|
|
3285
3290
|
/**
|
|
3286
3291
|
* Disallow type parameters that aren't used multiple times
|
|
3287
3292
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
@@ -3543,6 +3548,7 @@ interface RuleOptions {
|
|
|
3543
3548
|
/**
|
|
3544
3549
|
* Require type annotations in certain places
|
|
3545
3550
|
* @see https://typescript-eslint.io/rules/typedef
|
|
3551
|
+
* @deprecated
|
|
3546
3552
|
*/
|
|
3547
3553
|
'ts/typedef'?: Linter.RuleEntry<TsTypedef>
|
|
3548
3554
|
/**
|
|
@@ -3565,6 +3571,694 @@ interface RuleOptions {
|
|
|
3565
3571
|
* @see https://eslint.org/docs/latest/rules/unicode-bom
|
|
3566
3572
|
*/
|
|
3567
3573
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
3574
|
+
/**
|
|
3575
|
+
* Improve regexes by making them shorter, consistent, and safer.
|
|
3576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
|
|
3577
|
+
*/
|
|
3578
|
+
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
3579
|
+
/**
|
|
3580
|
+
* Enforce a specific parameter name in catch clauses.
|
|
3581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
|
|
3582
|
+
*/
|
|
3583
|
+
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
3584
|
+
/**
|
|
3585
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
3586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
|
|
3587
|
+
*/
|
|
3588
|
+
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
3589
|
+
/**
|
|
3590
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
3591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
|
|
3592
|
+
*/
|
|
3593
|
+
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
3594
|
+
/**
|
|
3595
|
+
* Use destructured variables over properties.
|
|
3596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
|
|
3597
|
+
*/
|
|
3598
|
+
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
3599
|
+
/**
|
|
3600
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
3601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
|
|
3602
|
+
*/
|
|
3603
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
3604
|
+
/**
|
|
3605
|
+
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
3606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
|
|
3607
|
+
*/
|
|
3608
|
+
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
3609
|
+
/**
|
|
3610
|
+
* Move function definitions to the highest possible scope.
|
|
3611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
|
|
3612
|
+
*/
|
|
3613
|
+
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
3614
|
+
/**
|
|
3615
|
+
* Enforce correct `Error` subclassing.
|
|
3616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
|
|
3617
|
+
*/
|
|
3618
|
+
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
3619
|
+
/**
|
|
3620
|
+
* Enforce no spaces between braces.
|
|
3621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
|
|
3622
|
+
*/
|
|
3623
|
+
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
3624
|
+
/**
|
|
3625
|
+
* Enforce passing a `message` value when creating a built-in error.
|
|
3626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
|
|
3627
|
+
*/
|
|
3628
|
+
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
3629
|
+
/**
|
|
3630
|
+
* Require escape sequences to use uppercase or lowercase values.
|
|
3631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
|
|
3632
|
+
*/
|
|
3633
|
+
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
3634
|
+
/**
|
|
3635
|
+
* Add expiration conditions to TODO comments.
|
|
3636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
|
|
3637
|
+
*/
|
|
3638
|
+
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
3639
|
+
/**
|
|
3640
|
+
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
3641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
|
|
3642
|
+
*/
|
|
3643
|
+
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
3644
|
+
/**
|
|
3645
|
+
* Enforce a case style for filenames.
|
|
3646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
|
|
3647
|
+
*/
|
|
3648
|
+
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
3649
|
+
/**
|
|
3650
|
+
* Enforce specific import styles per module.
|
|
3651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
|
|
3652
|
+
*/
|
|
3653
|
+
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
3654
|
+
/**
|
|
3655
|
+
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
3656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
|
|
3657
|
+
*/
|
|
3658
|
+
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
3659
|
+
/**
|
|
3660
|
+
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
3661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
3662
|
+
*/
|
|
3663
|
+
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
3664
|
+
/**
|
|
3665
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
3666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
|
|
3667
|
+
*/
|
|
3668
|
+
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
3669
|
+
/**
|
|
3670
|
+
* Disallow anonymous functions and classes as the default export.
|
|
3671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
|
|
3672
|
+
*/
|
|
3673
|
+
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
3674
|
+
/**
|
|
3675
|
+
* Prevent passing a function reference directly to iterator methods.
|
|
3676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
|
|
3677
|
+
*/
|
|
3678
|
+
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
3679
|
+
/**
|
|
3680
|
+
* Prefer `for…of` over the `forEach` method.
|
|
3681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
|
|
3682
|
+
*/
|
|
3683
|
+
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
3684
|
+
/**
|
|
3685
|
+
* Disallow using the `this` argument in array methods.
|
|
3686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
|
|
3687
|
+
*/
|
|
3688
|
+
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
3689
|
+
/**
|
|
3690
|
+
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
3691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
3692
|
+
* @deprecated
|
|
3693
|
+
*/
|
|
3694
|
+
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
3695
|
+
/**
|
|
3696
|
+
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
3697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
|
|
3698
|
+
*/
|
|
3699
|
+
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
3700
|
+
/**
|
|
3701
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
3702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
|
|
3703
|
+
*/
|
|
3704
|
+
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
|
|
3705
|
+
/**
|
|
3706
|
+
* Disallow member access from await expression.
|
|
3707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
|
|
3708
|
+
*/
|
|
3709
|
+
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
3710
|
+
/**
|
|
3711
|
+
* Disallow using `await` in `Promise` method parameters.
|
|
3712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
|
|
3713
|
+
*/
|
|
3714
|
+
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
3715
|
+
/**
|
|
3716
|
+
* Do not use leading/trailing space between `console.log` parameters.
|
|
3717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
|
|
3718
|
+
*/
|
|
3719
|
+
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
3720
|
+
/**
|
|
3721
|
+
* Do not use `document.cookie` directly.
|
|
3722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
|
|
3723
|
+
*/
|
|
3724
|
+
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
3725
|
+
/**
|
|
3726
|
+
* Disallow empty files.
|
|
3727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
|
|
3728
|
+
*/
|
|
3729
|
+
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
3730
|
+
/**
|
|
3731
|
+
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
3732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
|
|
3733
|
+
*/
|
|
3734
|
+
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
3735
|
+
/**
|
|
3736
|
+
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
3737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
|
|
3738
|
+
*/
|
|
3739
|
+
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
3740
|
+
/**
|
|
3741
|
+
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
3742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
3743
|
+
* @deprecated
|
|
3744
|
+
*/
|
|
3745
|
+
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
3746
|
+
/**
|
|
3747
|
+
* Disallow `instanceof` with built-in objects
|
|
3748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
|
|
3749
|
+
*/
|
|
3750
|
+
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
3751
|
+
/**
|
|
3752
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
3753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
|
|
3754
|
+
*/
|
|
3755
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
3756
|
+
/**
|
|
3757
|
+
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
3758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
3759
|
+
*/
|
|
3760
|
+
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
3761
|
+
/**
|
|
3762
|
+
* Disallow identifiers starting with `new` or `class`.
|
|
3763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
|
|
3764
|
+
*/
|
|
3765
|
+
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
3766
|
+
/**
|
|
3767
|
+
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
3768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
3769
|
+
* @deprecated
|
|
3770
|
+
*/
|
|
3771
|
+
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
3772
|
+
/**
|
|
3773
|
+
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
3774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
|
|
3775
|
+
*/
|
|
3776
|
+
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
3777
|
+
/**
|
|
3778
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
3779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
3780
|
+
*/
|
|
3781
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
3782
|
+
/**
|
|
3783
|
+
* Disallow named usage of default import and export.
|
|
3784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
|
|
3785
|
+
*/
|
|
3786
|
+
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
3787
|
+
/**
|
|
3788
|
+
* Disallow negated conditions.
|
|
3789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
|
|
3790
|
+
*/
|
|
3791
|
+
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
3792
|
+
/**
|
|
3793
|
+
* Disallow negated expression in equality check.
|
|
3794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
|
|
3795
|
+
*/
|
|
3796
|
+
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
3797
|
+
/**
|
|
3798
|
+
* Disallow nested ternary expressions.
|
|
3799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
|
|
3800
|
+
*/
|
|
3801
|
+
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
3802
|
+
/**
|
|
3803
|
+
* Disallow `new Array()`.
|
|
3804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
|
|
3805
|
+
*/
|
|
3806
|
+
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
3807
|
+
/**
|
|
3808
|
+
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
3809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
|
|
3810
|
+
*/
|
|
3811
|
+
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
3812
|
+
/**
|
|
3813
|
+
* Disallow the use of the `null` literal.
|
|
3814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
|
|
3815
|
+
*/
|
|
3816
|
+
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
3817
|
+
/**
|
|
3818
|
+
* Disallow the use of objects as default parameters.
|
|
3819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
|
|
3820
|
+
*/
|
|
3821
|
+
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
3822
|
+
/**
|
|
3823
|
+
* Disallow `process.exit()`.
|
|
3824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
|
|
3825
|
+
*/
|
|
3826
|
+
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
3827
|
+
/**
|
|
3828
|
+
* Disallow passing single-element arrays to `Promise` methods.
|
|
3829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
3830
|
+
*/
|
|
3831
|
+
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
3832
|
+
/**
|
|
3833
|
+
* Disallow classes that only have static members.
|
|
3834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
|
|
3835
|
+
*/
|
|
3836
|
+
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
3837
|
+
/**
|
|
3838
|
+
* Disallow `then` property.
|
|
3839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
|
|
3840
|
+
*/
|
|
3841
|
+
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
3842
|
+
/**
|
|
3843
|
+
* Disallow assigning `this` to a variable.
|
|
3844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
|
|
3845
|
+
*/
|
|
3846
|
+
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
3847
|
+
/**
|
|
3848
|
+
* Disallow comparing `undefined` using `typeof`.
|
|
3849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
|
|
3850
|
+
*/
|
|
3851
|
+
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
3852
|
+
/**
|
|
3853
|
+
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
3854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
3855
|
+
*/
|
|
3856
|
+
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
3857
|
+
/**
|
|
3858
|
+
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
3859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
3860
|
+
*/
|
|
3861
|
+
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
3862
|
+
/**
|
|
3863
|
+
* Disallow awaiting non-promise values.
|
|
3864
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
|
|
3865
|
+
*/
|
|
3866
|
+
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
3867
|
+
/**
|
|
3868
|
+
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
3869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
3870
|
+
*/
|
|
3871
|
+
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
3872
|
+
/**
|
|
3873
|
+
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
3874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
3875
|
+
*/
|
|
3876
|
+
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
3877
|
+
/**
|
|
3878
|
+
* Disallow unreadable array destructuring.
|
|
3879
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
3880
|
+
*/
|
|
3881
|
+
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
3882
|
+
/**
|
|
3883
|
+
* Disallow unreadable IIFEs.
|
|
3884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
|
|
3885
|
+
*/
|
|
3886
|
+
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
3887
|
+
/**
|
|
3888
|
+
* Disallow unused object properties.
|
|
3889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
|
|
3890
|
+
*/
|
|
3891
|
+
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
3892
|
+
/**
|
|
3893
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
3894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
3895
|
+
*/
|
|
3896
|
+
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
|
|
3897
|
+
/**
|
|
3898
|
+
* Disallow useless fallback when spreading in object literals.
|
|
3899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
3900
|
+
*/
|
|
3901
|
+
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
3902
|
+
/**
|
|
3903
|
+
* Disallow useless array length check.
|
|
3904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
|
|
3905
|
+
*/
|
|
3906
|
+
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
3907
|
+
/**
|
|
3908
|
+
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
3909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
3910
|
+
*/
|
|
3911
|
+
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
3912
|
+
/**
|
|
3913
|
+
* Disallow unnecessary spread.
|
|
3914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
|
|
3915
|
+
*/
|
|
3916
|
+
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
3917
|
+
/**
|
|
3918
|
+
* Disallow useless case in switch statements.
|
|
3919
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
|
|
3920
|
+
*/
|
|
3921
|
+
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
3922
|
+
/**
|
|
3923
|
+
* Disallow useless `undefined`.
|
|
3924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
|
|
3925
|
+
*/
|
|
3926
|
+
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
3927
|
+
/**
|
|
3928
|
+
* Disallow number literals with zero fractions or dangling dots.
|
|
3929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
|
|
3930
|
+
*/
|
|
3931
|
+
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
3932
|
+
/**
|
|
3933
|
+
* Enforce proper case for numeric literals.
|
|
3934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
|
|
3935
|
+
*/
|
|
3936
|
+
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
3937
|
+
/**
|
|
3938
|
+
* Enforce the style of numeric separators by correctly grouping digits.
|
|
3939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
|
|
3940
|
+
*/
|
|
3941
|
+
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
3942
|
+
/**
|
|
3943
|
+
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
3944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
|
|
3945
|
+
*/
|
|
3946
|
+
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
3947
|
+
/**
|
|
3948
|
+
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
3949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
|
|
3950
|
+
*/
|
|
3951
|
+
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
3952
|
+
/**
|
|
3953
|
+
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
3954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
|
|
3955
|
+
*/
|
|
3956
|
+
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
3957
|
+
/**
|
|
3958
|
+
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
3959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
|
|
3960
|
+
*/
|
|
3961
|
+
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
3962
|
+
/**
|
|
3963
|
+
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
3964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
|
|
3965
|
+
*/
|
|
3966
|
+
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
3967
|
+
/**
|
|
3968
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
3969
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
|
|
3970
|
+
*/
|
|
3971
|
+
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
3972
|
+
/**
|
|
3973
|
+
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
3974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
|
|
3975
|
+
*/
|
|
3976
|
+
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
3977
|
+
/**
|
|
3978
|
+
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
3979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
3980
|
+
*/
|
|
3981
|
+
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
3982
|
+
/**
|
|
3983
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
3984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
|
|
3985
|
+
*/
|
|
3986
|
+
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
|
|
3987
|
+
/**
|
|
3988
|
+
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
3989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
|
|
3990
|
+
*/
|
|
3991
|
+
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
3992
|
+
/**
|
|
3993
|
+
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
3994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
|
|
3995
|
+
*/
|
|
3996
|
+
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
3997
|
+
/**
|
|
3998
|
+
* Prefer default parameters over reassignment.
|
|
3999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
|
|
4000
|
+
*/
|
|
4001
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4002
|
+
/**
|
|
4003
|
+
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
|
|
4005
|
+
*/
|
|
4006
|
+
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4007
|
+
/**
|
|
4008
|
+
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4010
|
+
*/
|
|
4011
|
+
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4012
|
+
/**
|
|
4013
|
+
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4015
|
+
*/
|
|
4016
|
+
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4017
|
+
/**
|
|
4018
|
+
* Prefer `.textContent` over `.innerText`.
|
|
4019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4020
|
+
*/
|
|
4021
|
+
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4022
|
+
/**
|
|
4023
|
+
* Prefer `EventTarget` over `EventEmitter`.
|
|
4024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
|
|
4025
|
+
*/
|
|
4026
|
+
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4027
|
+
/**
|
|
4028
|
+
* Prefer `export…from` when re-exporting.
|
|
4029
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
|
|
4030
|
+
*/
|
|
4031
|
+
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4032
|
+
/**
|
|
4033
|
+
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
4034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
|
|
4035
|
+
*/
|
|
4036
|
+
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
4037
|
+
/**
|
|
4038
|
+
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
4039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
|
|
4040
|
+
*/
|
|
4041
|
+
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
4042
|
+
/**
|
|
4043
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
|
|
4045
|
+
*/
|
|
4046
|
+
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4047
|
+
/**
|
|
4048
|
+
* Prefer reading a JSON file as a buffer.
|
|
4049
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4050
|
+
*/
|
|
4051
|
+
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4052
|
+
/**
|
|
4053
|
+
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4055
|
+
*/
|
|
4056
|
+
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4057
|
+
/**
|
|
4058
|
+
* Prefer using a logical operator over a ternary.
|
|
4059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4060
|
+
*/
|
|
4061
|
+
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4062
|
+
/**
|
|
4063
|
+
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
4064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
|
|
4065
|
+
*/
|
|
4066
|
+
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
4067
|
+
/**
|
|
4068
|
+
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
|
|
4070
|
+
*/
|
|
4071
|
+
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4072
|
+
/**
|
|
4073
|
+
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4075
|
+
*/
|
|
4076
|
+
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4077
|
+
/**
|
|
4078
|
+
* Prefer modern `Math` APIs over legacy patterns.
|
|
4079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4080
|
+
*/
|
|
4081
|
+
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4082
|
+
/**
|
|
4083
|
+
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
|
|
4085
|
+
*/
|
|
4086
|
+
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
4087
|
+
/**
|
|
4088
|
+
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4090
|
+
*/
|
|
4091
|
+
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
4092
|
+
/**
|
|
4093
|
+
* Prefer negative index over `.length - index` when possible.
|
|
4094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
|
|
4095
|
+
*/
|
|
4096
|
+
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
4097
|
+
/**
|
|
4098
|
+
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
|
|
4100
|
+
*/
|
|
4101
|
+
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
4102
|
+
/**
|
|
4103
|
+
* Prefer `Number` static properties over global ones.
|
|
4104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
|
|
4105
|
+
*/
|
|
4106
|
+
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
4107
|
+
/**
|
|
4108
|
+
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
4109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
|
|
4110
|
+
*/
|
|
4111
|
+
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
4112
|
+
/**
|
|
4113
|
+
* Prefer omitting the `catch` binding parameter.
|
|
4114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
4115
|
+
*/
|
|
4116
|
+
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
4117
|
+
/**
|
|
4118
|
+
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
|
|
4120
|
+
*/
|
|
4121
|
+
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
4122
|
+
/**
|
|
4123
|
+
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
4124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
|
|
4125
|
+
*/
|
|
4126
|
+
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
4127
|
+
/**
|
|
4128
|
+
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
|
|
4130
|
+
*/
|
|
4131
|
+
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
4132
|
+
/**
|
|
4133
|
+
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
|
|
4135
|
+
*/
|
|
4136
|
+
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
4137
|
+
/**
|
|
4138
|
+
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
|
|
4140
|
+
*/
|
|
4141
|
+
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
4142
|
+
/**
|
|
4143
|
+
* Prefer using `Set#size` instead of `Array#length`.
|
|
4144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
|
|
4145
|
+
*/
|
|
4146
|
+
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
4147
|
+
/**
|
|
4148
|
+
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
4149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
|
|
4150
|
+
*/
|
|
4151
|
+
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
4152
|
+
/**
|
|
4153
|
+
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
4154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
|
|
4155
|
+
*/
|
|
4156
|
+
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
4157
|
+
/**
|
|
4158
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
4159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
|
|
4160
|
+
*/
|
|
4161
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
4162
|
+
/**
|
|
4163
|
+
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
|
|
4165
|
+
*/
|
|
4166
|
+
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
4167
|
+
/**
|
|
4168
|
+
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
|
|
4170
|
+
*/
|
|
4171
|
+
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
4172
|
+
/**
|
|
4173
|
+
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
4175
|
+
*/
|
|
4176
|
+
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
4177
|
+
/**
|
|
4178
|
+
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
4179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
4180
|
+
*/
|
|
4181
|
+
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
4182
|
+
/**
|
|
4183
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
4184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
|
|
4185
|
+
*/
|
|
4186
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
4187
|
+
/**
|
|
4188
|
+
* Prefer `switch` over multiple `else-if`.
|
|
4189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
|
|
4190
|
+
*/
|
|
4191
|
+
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
4192
|
+
/**
|
|
4193
|
+
* Prefer ternary expressions over simple `if-else` statements.
|
|
4194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
|
|
4195
|
+
*/
|
|
4196
|
+
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
4197
|
+
/**
|
|
4198
|
+
* Prefer top-level await over top-level promises and async function calls.
|
|
4199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
|
|
4200
|
+
*/
|
|
4201
|
+
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
4202
|
+
/**
|
|
4203
|
+
* Enforce throwing `TypeError` in type checking conditions.
|
|
4204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
|
|
4205
|
+
*/
|
|
4206
|
+
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
4207
|
+
/**
|
|
4208
|
+
* Prevent abbreviations.
|
|
4209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
|
|
4210
|
+
*/
|
|
4211
|
+
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
4212
|
+
/**
|
|
4213
|
+
* Enforce consistent relative URL style.
|
|
4214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
|
|
4215
|
+
*/
|
|
4216
|
+
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
4217
|
+
/**
|
|
4218
|
+
* Enforce using the separator argument with `Array#join()`.
|
|
4219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
|
|
4220
|
+
*/
|
|
4221
|
+
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
4222
|
+
/**
|
|
4223
|
+
* Require non-empty specifier list in import and export statements.
|
|
4224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
|
|
4225
|
+
*/
|
|
4226
|
+
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
|
|
4227
|
+
/**
|
|
4228
|
+
* Enforce using the digits argument with `Number#toFixed()`.
|
|
4229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
4230
|
+
*/
|
|
4231
|
+
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
4232
|
+
/**
|
|
4233
|
+
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
4234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
|
|
4235
|
+
*/
|
|
4236
|
+
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
4237
|
+
/**
|
|
4238
|
+
* Enforce better string content.
|
|
4239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
|
|
4240
|
+
*/
|
|
4241
|
+
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
4242
|
+
/**
|
|
4243
|
+
* Enforce consistent brace style for `case` clauses.
|
|
4244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
|
|
4245
|
+
*/
|
|
4246
|
+
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
4247
|
+
/**
|
|
4248
|
+
* Fix whitespace-insensitive template indentation.
|
|
4249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
|
|
4250
|
+
*/
|
|
4251
|
+
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
4252
|
+
/**
|
|
4253
|
+
* Enforce consistent case for text encoding identifiers.
|
|
4254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
|
|
4255
|
+
*/
|
|
4256
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
4257
|
+
/**
|
|
4258
|
+
* Require `new` when creating an error.
|
|
4259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
|
|
4260
|
+
*/
|
|
4261
|
+
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
3568
4262
|
/**
|
|
3569
4263
|
* Require calls to `isNaN()` when checking for `NaN`
|
|
3570
4264
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
@@ -3792,7 +4486,7 @@ interface RuleOptions {
|
|
|
3792
4486
|
*/
|
|
3793
4487
|
'vue/jsx-uses-vars'?: Linter.RuleEntry<[]>
|
|
3794
4488
|
/**
|
|
3795
|
-
* Enforce consistent spacing between
|
|
4489
|
+
* Enforce consistent spacing between keys and values in object literal properties in `<template>`
|
|
3796
4490
|
* @see https://eslint.vuejs.org/rules/key-spacing.html
|
|
3797
4491
|
*/
|
|
3798
4492
|
'vue/key-spacing'?: Linter.RuleEntry<VueKeySpacing>
|
|
@@ -4490,7 +5184,7 @@ interface RuleOptions {
|
|
|
4490
5184
|
*/
|
|
4491
5185
|
'vue/prop-name-casing'?: Linter.RuleEntry<VuePropNameCasing>
|
|
4492
5186
|
/**
|
|
4493
|
-
* Require quotes around object literal
|
|
5187
|
+
* Require quotes around object literal property names in `<template>`
|
|
4494
5188
|
* @see https://eslint.vuejs.org/rules/quote-props.html
|
|
4495
5189
|
*/
|
|
4496
5190
|
'vue/quote-props'?: Linter.RuleEntry<VueQuoteProps>
|
|
@@ -5095,6 +5789,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
5095
5789
|
}
|
|
5096
5790
|
ignorePackages?: boolean
|
|
5097
5791
|
checkTypeImports?: boolean
|
|
5792
|
+
pathGroupOverrides?: {
|
|
5793
|
+
pattern: string
|
|
5794
|
+
patternOptions?: {
|
|
5795
|
+
[k: string]: unknown | undefined
|
|
5796
|
+
}
|
|
5797
|
+
action: ("enforce" | "ignore")
|
|
5798
|
+
}[]
|
|
5799
|
+
fix?: boolean
|
|
5098
5800
|
[k: string]: unknown | undefined
|
|
5099
5801
|
}] | []|[{
|
|
5100
5802
|
pattern?: {
|
|
@@ -5102,6 +5804,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
5102
5804
|
}
|
|
5103
5805
|
ignorePackages?: boolean
|
|
5104
5806
|
checkTypeImports?: boolean
|
|
5807
|
+
pathGroupOverrides?: {
|
|
5808
|
+
pattern: string
|
|
5809
|
+
patternOptions?: {
|
|
5810
|
+
[k: string]: unknown | undefined
|
|
5811
|
+
}
|
|
5812
|
+
action: ("enforce" | "ignore")
|
|
5813
|
+
}[]
|
|
5814
|
+
fix?: boolean
|
|
5105
5815
|
[k: string]: unknown | undefined
|
|
5106
5816
|
}] | []|[("always" | "ignorePackages" | "never")]|[("always" | "ignorePackages" | "never"), {
|
|
5107
5817
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
@@ -5322,6 +6032,10 @@ type ImportOrder = []|[{
|
|
|
5322
6032
|
type ImportPreferDefaultExport = []|[{
|
|
5323
6033
|
target?: ("single" | "any")
|
|
5324
6034
|
}]
|
|
6035
|
+
// ----- import/prefer-namespace-import -----
|
|
6036
|
+
type ImportPreferNamespaceImport = []|[{
|
|
6037
|
+
patterns?: string[]
|
|
6038
|
+
}]
|
|
5325
6039
|
// ----- indent -----
|
|
5326
6040
|
type Indent = []|[("tab" | number)]|[("tab" | number), {
|
|
5327
6041
|
SwitchCase?: number
|
|
@@ -6557,6 +7271,10 @@ type RegexpPreferLookaround = []|[{
|
|
|
6557
7271
|
type RegexpPreferNamedReplacement = []|[{
|
|
6558
7272
|
strictTypes?: boolean
|
|
6559
7273
|
}]
|
|
7274
|
+
// ----- regexp/prefer-quantifier -----
|
|
7275
|
+
type RegexpPreferQuantifier = []|[{
|
|
7276
|
+
allows?: string[]
|
|
7277
|
+
}]
|
|
6560
7278
|
// ----- regexp/prefer-range -----
|
|
6561
7279
|
type RegexpPreferRange = []|[{
|
|
6562
7280
|
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]])
|
|
@@ -6838,16 +7556,6 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
|
|
|
6838
7556
|
minElements?: number
|
|
6839
7557
|
consistent?: boolean
|
|
6840
7558
|
})
|
|
6841
|
-
TSEnumBody?: (("always" | "never") | {
|
|
6842
|
-
multiline?: boolean
|
|
6843
|
-
minElements?: number
|
|
6844
|
-
consistent?: boolean
|
|
6845
|
-
})
|
|
6846
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
6847
|
-
multiline?: boolean
|
|
6848
|
-
minElements?: number
|
|
6849
|
-
consistent?: boolean
|
|
6850
|
-
})
|
|
6851
7559
|
TSModuleBlock?: (("always" | "never") | {
|
|
6852
7560
|
multiline?: boolean
|
|
6853
7561
|
minElements?: number
|
|
@@ -6861,14 +7569,6 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
|
|
|
6861
7569
|
type StyleDotLocation = []|[("object" | "property")]
|
|
6862
7570
|
// ----- style/eol-last -----
|
|
6863
7571
|
type StyleEolLast = []|[("always" | "never" | "unix" | "windows")]
|
|
6864
|
-
// ----- style/func-call-spacing -----
|
|
6865
|
-
type StyleFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
6866
|
-
allowNewlines?: boolean
|
|
6867
|
-
optionalChain?: {
|
|
6868
|
-
before?: boolean
|
|
6869
|
-
after?: boolean
|
|
6870
|
-
}
|
|
6871
|
-
}])
|
|
6872
7572
|
// ----- style/function-call-argument-newline -----
|
|
6873
7573
|
type StyleFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
6874
7574
|
// ----- style/function-call-spacing -----
|
|
@@ -6909,16 +7609,19 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
6909
7609
|
var?: (number | ("first" | "off"))
|
|
6910
7610
|
let?: (number | ("first" | "off"))
|
|
6911
7611
|
const?: (number | ("first" | "off"))
|
|
7612
|
+
using?: (number | ("first" | "off"))
|
|
6912
7613
|
})
|
|
6913
7614
|
outerIIFEBody?: (number | "off")
|
|
6914
7615
|
MemberExpression?: (number | "off")
|
|
6915
7616
|
FunctionDeclaration?: {
|
|
6916
7617
|
parameters?: (number | ("first" | "off"))
|
|
6917
7618
|
body?: number
|
|
7619
|
+
returnType?: number
|
|
6918
7620
|
}
|
|
6919
7621
|
FunctionExpression?: {
|
|
6920
7622
|
parameters?: (number | ("first" | "off"))
|
|
6921
7623
|
body?: number
|
|
7624
|
+
returnType?: number
|
|
6922
7625
|
}
|
|
6923
7626
|
StaticBlock?: {
|
|
6924
7627
|
body?: number
|
|
@@ -6959,31 +7662,52 @@ type StyleJsxCurlyNewline = []|[(("consistent" | "never") | {
|
|
|
6959
7662
|
multiline?: ("consistent" | "require" | "forbid")
|
|
6960
7663
|
})]
|
|
6961
7664
|
// ----- style/jsx-curly-spacing -----
|
|
6962
|
-
type StyleJsxCurlySpacing = []|[(
|
|
6963
|
-
|
|
6964
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
6965
|
-
[k: string]: unknown | undefined
|
|
6966
|
-
}) | ("always" | "never"))]|[((_StyleJsxCurlySpacing_BasicConfig & {
|
|
6967
|
-
attributes?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
6968
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
6969
|
-
[k: string]: unknown | undefined
|
|
6970
|
-
}) | ("always" | "never")), {
|
|
7665
|
+
type StyleJsxCurlySpacing = []|[({
|
|
7666
|
+
when?: ("always" | "never")
|
|
6971
7667
|
allowMultiline?: boolean
|
|
6972
7668
|
spacing?: {
|
|
6973
7669
|
objectLiterals?: ("always" | "never")
|
|
6974
|
-
[k: string]: unknown | undefined
|
|
6975
7670
|
}
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
7671
|
+
attributes?: ({
|
|
7672
|
+
when?: ("always" | "never")
|
|
7673
|
+
allowMultiline?: boolean
|
|
7674
|
+
spacing?: {
|
|
7675
|
+
objectLiterals?: ("always" | "never")
|
|
7676
|
+
}
|
|
7677
|
+
} | boolean)
|
|
7678
|
+
children?: ({
|
|
7679
|
+
when?: ("always" | "never")
|
|
7680
|
+
allowMultiline?: boolean
|
|
7681
|
+
spacing?: {
|
|
7682
|
+
objectLiterals?: ("always" | "never")
|
|
7683
|
+
}
|
|
7684
|
+
} | boolean)
|
|
7685
|
+
} | ("always" | "never"))]|[({
|
|
6979
7686
|
when?: ("always" | "never")
|
|
6980
7687
|
allowMultiline?: boolean
|
|
6981
7688
|
spacing?: {
|
|
6982
7689
|
objectLiterals?: ("always" | "never")
|
|
6983
|
-
[k: string]: unknown | undefined
|
|
6984
7690
|
}
|
|
6985
|
-
|
|
6986
|
-
|
|
7691
|
+
attributes?: ({
|
|
7692
|
+
when?: ("always" | "never")
|
|
7693
|
+
allowMultiline?: boolean
|
|
7694
|
+
spacing?: {
|
|
7695
|
+
objectLiterals?: ("always" | "never")
|
|
7696
|
+
}
|
|
7697
|
+
} | boolean)
|
|
7698
|
+
children?: ({
|
|
7699
|
+
when?: ("always" | "never")
|
|
7700
|
+
allowMultiline?: boolean
|
|
7701
|
+
spacing?: {
|
|
7702
|
+
objectLiterals?: ("always" | "never")
|
|
7703
|
+
}
|
|
7704
|
+
} | boolean)
|
|
7705
|
+
} | ("always" | "never")), {
|
|
7706
|
+
allowMultiline?: boolean
|
|
7707
|
+
spacing?: {
|
|
7708
|
+
objectLiterals?: ("always" | "never")
|
|
7709
|
+
}
|
|
7710
|
+
}]
|
|
6987
7711
|
// ----- style/jsx-equals-spacing -----
|
|
6988
7712
|
type StyleJsxEqualsSpacing = []|[("always" | "never")]
|
|
6989
7713
|
// ----- style/jsx-first-prop-new-line -----
|
|
@@ -6999,14 +7723,12 @@ type StyleJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
6999
7723
|
type StyleJsxIndentProps = []|[(("tab" | "first") | number | {
|
|
7000
7724
|
indentMode?: (("tab" | "first") | number)
|
|
7001
7725
|
ignoreTernaryOperator?: boolean
|
|
7002
|
-
[k: string]: unknown | undefined
|
|
7003
7726
|
})]
|
|
7004
7727
|
// ----- style/jsx-max-props-per-line -----
|
|
7005
7728
|
type StyleJsxMaxPropsPerLine = []|[({
|
|
7006
7729
|
maximum?: {
|
|
7007
7730
|
single?: number
|
|
7008
7731
|
multi?: number
|
|
7009
|
-
[k: string]: unknown | undefined
|
|
7010
7732
|
}
|
|
7011
7733
|
} | {
|
|
7012
7734
|
maximum?: number
|
|
@@ -7043,7 +7765,8 @@ type StyleJsxSortProps = []|[{
|
|
|
7043
7765
|
multiline?: ("ignore" | "first" | "last")
|
|
7044
7766
|
ignoreCase?: boolean
|
|
7045
7767
|
noSortAlphabetically?: boolean
|
|
7046
|
-
reservedFirst?: (
|
|
7768
|
+
reservedFirst?: (string[] | boolean)
|
|
7769
|
+
reservedLast?: string[]
|
|
7047
7770
|
locale?: string
|
|
7048
7771
|
}]
|
|
7049
7772
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -7120,18 +7843,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7120
7843
|
before?: boolean
|
|
7121
7844
|
after?: boolean
|
|
7122
7845
|
}
|
|
7123
|
-
as?: {
|
|
7124
|
-
before?: boolean
|
|
7125
|
-
after?: boolean
|
|
7126
|
-
}
|
|
7127
|
-
async?: {
|
|
7128
|
-
before?: boolean
|
|
7129
|
-
after?: boolean
|
|
7130
|
-
}
|
|
7131
|
-
await?: {
|
|
7132
|
-
before?: boolean
|
|
7133
|
-
after?: boolean
|
|
7134
|
-
}
|
|
7135
7846
|
boolean?: {
|
|
7136
7847
|
before?: boolean
|
|
7137
7848
|
after?: boolean
|
|
@@ -7224,18 +7935,10 @@ type StyleKeywordSpacing = []|[{
|
|
|
7224
7935
|
before?: boolean
|
|
7225
7936
|
after?: boolean
|
|
7226
7937
|
}
|
|
7227
|
-
from?: {
|
|
7228
|
-
before?: boolean
|
|
7229
|
-
after?: boolean
|
|
7230
|
-
}
|
|
7231
7938
|
function?: {
|
|
7232
7939
|
before?: boolean
|
|
7233
7940
|
after?: boolean
|
|
7234
7941
|
}
|
|
7235
|
-
get?: {
|
|
7236
|
-
before?: boolean
|
|
7237
|
-
after?: boolean
|
|
7238
|
-
}
|
|
7239
7942
|
goto?: {
|
|
7240
7943
|
before?: boolean
|
|
7241
7944
|
after?: boolean
|
|
@@ -7268,10 +7971,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7268
7971
|
before?: boolean
|
|
7269
7972
|
after?: boolean
|
|
7270
7973
|
}
|
|
7271
|
-
let?: {
|
|
7272
|
-
before?: boolean
|
|
7273
|
-
after?: boolean
|
|
7274
|
-
}
|
|
7275
7974
|
long?: {
|
|
7276
7975
|
before?: boolean
|
|
7277
7976
|
after?: boolean
|
|
@@ -7288,10 +7987,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7288
7987
|
before?: boolean
|
|
7289
7988
|
after?: boolean
|
|
7290
7989
|
}
|
|
7291
|
-
of?: {
|
|
7292
|
-
before?: boolean
|
|
7293
|
-
after?: boolean
|
|
7294
|
-
}
|
|
7295
7990
|
package?: {
|
|
7296
7991
|
before?: boolean
|
|
7297
7992
|
after?: boolean
|
|
@@ -7312,14 +8007,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
7312
8007
|
before?: boolean
|
|
7313
8008
|
after?: boolean
|
|
7314
8009
|
}
|
|
7315
|
-
satisfies?: {
|
|
7316
|
-
before?: boolean
|
|
7317
|
-
after?: boolean
|
|
7318
|
-
}
|
|
7319
|
-
set?: {
|
|
7320
|
-
before?: boolean
|
|
7321
|
-
after?: boolean
|
|
7322
|
-
}
|
|
7323
8010
|
short?: {
|
|
7324
8011
|
before?: boolean
|
|
7325
8012
|
after?: boolean
|
|
@@ -7388,6 +8075,50 @@ type StyleKeywordSpacing = []|[{
|
|
|
7388
8075
|
before?: boolean
|
|
7389
8076
|
after?: boolean
|
|
7390
8077
|
}
|
|
8078
|
+
accessor?: {
|
|
8079
|
+
before?: boolean
|
|
8080
|
+
after?: boolean
|
|
8081
|
+
}
|
|
8082
|
+
as?: {
|
|
8083
|
+
before?: boolean
|
|
8084
|
+
after?: boolean
|
|
8085
|
+
}
|
|
8086
|
+
async?: {
|
|
8087
|
+
before?: boolean
|
|
8088
|
+
after?: boolean
|
|
8089
|
+
}
|
|
8090
|
+
await?: {
|
|
8091
|
+
before?: boolean
|
|
8092
|
+
after?: boolean
|
|
8093
|
+
}
|
|
8094
|
+
from?: {
|
|
8095
|
+
before?: boolean
|
|
8096
|
+
after?: boolean
|
|
8097
|
+
}
|
|
8098
|
+
get?: {
|
|
8099
|
+
before?: boolean
|
|
8100
|
+
after?: boolean
|
|
8101
|
+
}
|
|
8102
|
+
let?: {
|
|
8103
|
+
before?: boolean
|
|
8104
|
+
after?: boolean
|
|
8105
|
+
}
|
|
8106
|
+
of?: {
|
|
8107
|
+
before?: boolean
|
|
8108
|
+
after?: boolean
|
|
8109
|
+
}
|
|
8110
|
+
satisfies?: {
|
|
8111
|
+
before?: boolean
|
|
8112
|
+
after?: boolean
|
|
8113
|
+
}
|
|
8114
|
+
set?: {
|
|
8115
|
+
before?: boolean
|
|
8116
|
+
after?: boolean
|
|
8117
|
+
}
|
|
8118
|
+
using?: {
|
|
8119
|
+
before?: boolean
|
|
8120
|
+
after?: boolean
|
|
8121
|
+
}
|
|
7391
8122
|
yield?: {
|
|
7392
8123
|
before?: boolean
|
|
7393
8124
|
after?: boolean
|
|
@@ -7562,11 +8293,11 @@ interface _StyleMemberDelimiterStyle_DelimiterConfig {
|
|
|
7562
8293
|
// ----- style/multiline-comment-style -----
|
|
7563
8294
|
type StyleMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
|
|
7564
8295
|
checkJSDoc?: boolean
|
|
8296
|
+
checkExclamation?: boolean
|
|
7565
8297
|
}])
|
|
7566
8298
|
// ----- style/multiline-ternary -----
|
|
7567
8299
|
type StyleMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
|
|
7568
8300
|
ignoreJSX?: boolean
|
|
7569
|
-
[k: string]: unknown | undefined
|
|
7570
8301
|
}]
|
|
7571
8302
|
// ----- style/new-parens -----
|
|
7572
8303
|
type StyleNewParens = []|[("always" | "never")]
|
|
@@ -7592,6 +8323,11 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
7592
8323
|
enforceForFunctionPrototypeMethods?: boolean
|
|
7593
8324
|
allowParensAfterCommentPattern?: string
|
|
7594
8325
|
nestedConditionalExpressions?: boolean
|
|
8326
|
+
allowNodesInSpreadElement?: {
|
|
8327
|
+
ConditionalExpression?: boolean
|
|
8328
|
+
LogicalExpression?: boolean
|
|
8329
|
+
AwaitExpression?: boolean
|
|
8330
|
+
}
|
|
7595
8331
|
}])
|
|
7596
8332
|
// ----- style/no-mixed-operators -----
|
|
7597
8333
|
type StyleNoMixedOperators = []|[{
|
|
@@ -7669,6 +8405,11 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
7669
8405
|
minProperties?: number
|
|
7670
8406
|
consistent?: boolean
|
|
7671
8407
|
})
|
|
8408
|
+
TSEnumBody?: (("always" | "never") | {
|
|
8409
|
+
multiline?: boolean
|
|
8410
|
+
minProperties?: number
|
|
8411
|
+
consistent?: boolean
|
|
8412
|
+
})
|
|
7672
8413
|
})]
|
|
7673
8414
|
// ----- style/object-curly-spacing -----
|
|
7674
8415
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -7678,7 +8419,6 @@ type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"),
|
|
|
7678
8419
|
// ----- style/object-property-newline -----
|
|
7679
8420
|
type StyleObjectPropertyNewline = []|[{
|
|
7680
8421
|
allowAllPropertiesOnSameLine?: boolean
|
|
7681
|
-
allowMultiplePropertiesPerLine?: boolean
|
|
7682
8422
|
}]
|
|
7683
8423
|
// ----- style/one-var-declaration-per-line -----
|
|
7684
8424
|
type StyleOneVarDeclarationPerLine = []|[("always" | "initializations")]
|
|
@@ -7702,11 +8442,12 @@ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
|
7702
8442
|
}]
|
|
7703
8443
|
// ----- style/padding-line-between-statements -----
|
|
7704
8444
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
7705
|
-
type
|
|
8445
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]])
|
|
8446
|
+
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using")
|
|
7706
8447
|
type StylePaddingLineBetweenStatements = {
|
|
7707
8448
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
7708
|
-
prev:
|
|
7709
|
-
next:
|
|
8449
|
+
prev: _StylePaddingLineBetweenStatementsStatementOption
|
|
8450
|
+
next: _StylePaddingLineBetweenStatementsStatementOption
|
|
7710
8451
|
}[]
|
|
7711
8452
|
// ----- style/quote-props -----
|
|
7712
8453
|
type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
@@ -7717,7 +8458,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
7717
8458
|
// ----- style/quotes -----
|
|
7718
8459
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
7719
8460
|
avoidEscape?: boolean
|
|
7720
|
-
allowTemplateLiterals?: boolean
|
|
8461
|
+
allowTemplateLiterals?: (boolean | ("never" | "avoidEscape" | "always"))
|
|
7721
8462
|
ignoreStringLiterals?: boolean
|
|
7722
8463
|
})]
|
|
7723
8464
|
// ----- style/rest-spread-spacing -----
|
|
@@ -7741,12 +8482,14 @@ type StyleSpaceBeforeBlocks = []|[(("always" | "never") | {
|
|
|
7741
8482
|
keywords?: ("always" | "never" | "off")
|
|
7742
8483
|
functions?: ("always" | "never" | "off")
|
|
7743
8484
|
classes?: ("always" | "never" | "off")
|
|
8485
|
+
modules?: ("always" | "never" | "off")
|
|
7744
8486
|
})]
|
|
7745
8487
|
// ----- style/space-before-function-paren -----
|
|
7746
8488
|
type StyleSpaceBeforeFunctionParen = []|[(("always" | "never") | {
|
|
7747
8489
|
anonymous?: ("always" | "never" | "ignore")
|
|
7748
8490
|
named?: ("always" | "never" | "ignore")
|
|
7749
8491
|
asyncArrow?: ("always" | "never" | "ignore")
|
|
8492
|
+
catch?: ("always" | "never" | "ignore")
|
|
7750
8493
|
})]
|
|
7751
8494
|
// ----- style/space-in-parens -----
|
|
7752
8495
|
type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -7755,6 +8498,7 @@ type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
7755
8498
|
// ----- style/space-infix-ops -----
|
|
7756
8499
|
type StyleSpaceInfixOps = []|[{
|
|
7757
8500
|
int32Hint?: boolean
|
|
8501
|
+
ignoreTypes?: boolean
|
|
7758
8502
|
}]
|
|
7759
8503
|
// ----- style/space-unary-ops -----
|
|
7760
8504
|
type StyleSpaceUnaryOps = []|[{
|
|
@@ -8412,6 +9156,8 @@ interface _TsNamingConvention_MatchRegexConfig {
|
|
|
8412
9156
|
// ----- ts/no-base-to-string -----
|
|
8413
9157
|
type TsNoBaseToString = []|[{
|
|
8414
9158
|
|
|
9159
|
+
checkUnknown?: boolean
|
|
9160
|
+
|
|
8415
9161
|
ignoredTypeNames?: string[]
|
|
8416
9162
|
}]
|
|
8417
9163
|
// ----- ts/no-confusing-void-expression -----
|
|
@@ -8726,6 +9472,8 @@ type TsNoUnnecessaryCondition = []|[{
|
|
|
8726
9472
|
// ----- ts/no-unnecessary-type-assertion -----
|
|
8727
9473
|
type TsNoUnnecessaryTypeAssertion = []|[{
|
|
8728
9474
|
|
|
9475
|
+
checkLiteralConstAssertions?: boolean
|
|
9476
|
+
|
|
8729
9477
|
typesToIgnore?: string[]
|
|
8730
9478
|
}]
|
|
8731
9479
|
// ----- ts/no-unused-expressions -----
|
|
@@ -8797,6 +9545,8 @@ type TsOnlyThrowError = []|[{
|
|
|
8797
9545
|
package: string
|
|
8798
9546
|
})[]
|
|
8799
9547
|
|
|
9548
|
+
allowRethrowing?: boolean
|
|
9549
|
+
|
|
8800
9550
|
allowThrowingAny?: boolean
|
|
8801
9551
|
|
|
8802
9552
|
allowThrowingUnknown?: boolean
|
|
@@ -8838,7 +9588,6 @@ type TsPreferDestructuring = []|[({
|
|
|
8838
9588
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
8839
9589
|
|
|
8840
9590
|
enforceForRenamedProperties?: boolean
|
|
8841
|
-
[k: string]: unknown | undefined
|
|
8842
9591
|
}]
|
|
8843
9592
|
// ----- ts/prefer-literal-enum-member -----
|
|
8844
9593
|
type TsPreferLiteralEnumMember = []|[{
|
|
@@ -8854,6 +9603,8 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
8854
9603
|
|
|
8855
9604
|
ignoreConditionalTests?: boolean
|
|
8856
9605
|
|
|
9606
|
+
ignoreIfStatements?: boolean
|
|
9607
|
+
|
|
8857
9608
|
ignoreMixedLogicalExpressions?: boolean
|
|
8858
9609
|
|
|
8859
9610
|
ignorePrimitives?: ({
|
|
@@ -8865,7 +9616,6 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
8865
9616
|
number?: boolean
|
|
8866
9617
|
|
|
8867
9618
|
string?: boolean
|
|
8868
|
-
[k: string]: unknown | undefined
|
|
8869
9619
|
} | true)
|
|
8870
9620
|
|
|
8871
9621
|
ignoreTernaryTests?: boolean
|
|
@@ -9082,6 +9832,221 @@ type TsUnifiedSignatures = []|[{
|
|
|
9082
9832
|
}]
|
|
9083
9833
|
// ----- unicode-bom -----
|
|
9084
9834
|
type UnicodeBom = []|[("always" | "never")]
|
|
9835
|
+
// ----- unicorn/better-regex -----
|
|
9836
|
+
type UnicornBetterRegex = []|[{
|
|
9837
|
+
sortCharacterClasses?: boolean
|
|
9838
|
+
}]
|
|
9839
|
+
// ----- unicorn/catch-error-name -----
|
|
9840
|
+
type UnicornCatchErrorName = []|[{
|
|
9841
|
+
name?: string
|
|
9842
|
+
ignore?: unknown[]
|
|
9843
|
+
}]
|
|
9844
|
+
// ----- unicorn/consistent-function-scoping -----
|
|
9845
|
+
type UnicornConsistentFunctionScoping = []|[{
|
|
9846
|
+
checkArrowFunctions?: boolean
|
|
9847
|
+
}]
|
|
9848
|
+
// ----- unicorn/escape-case -----
|
|
9849
|
+
type UnicornEscapeCase = []|[("uppercase" | "lowercase")]
|
|
9850
|
+
// ----- unicorn/expiring-todo-comments -----
|
|
9851
|
+
type UnicornExpiringTodoComments = []|[{
|
|
9852
|
+
terms?: string[]
|
|
9853
|
+
ignore?: unknown[]
|
|
9854
|
+
ignoreDatesOnPullRequests?: boolean
|
|
9855
|
+
allowWarningComments?: boolean
|
|
9856
|
+
date?: string
|
|
9857
|
+
}]
|
|
9858
|
+
// ----- unicorn/explicit-length-check -----
|
|
9859
|
+
type UnicornExplicitLengthCheck = []|[{
|
|
9860
|
+
"non-zero"?: ("greater-than" | "not-equal")
|
|
9861
|
+
}]
|
|
9862
|
+
// ----- unicorn/filename-case -----
|
|
9863
|
+
type UnicornFilenameCase = []|[({
|
|
9864
|
+
case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase")
|
|
9865
|
+
ignore?: unknown[]
|
|
9866
|
+
multipleFileExtensions?: boolean
|
|
9867
|
+
} | {
|
|
9868
|
+
cases?: {
|
|
9869
|
+
camelCase?: boolean
|
|
9870
|
+
snakeCase?: boolean
|
|
9871
|
+
kebabCase?: boolean
|
|
9872
|
+
pascalCase?: boolean
|
|
9873
|
+
}
|
|
9874
|
+
ignore?: unknown[]
|
|
9875
|
+
multipleFileExtensions?: boolean
|
|
9876
|
+
})]
|
|
9877
|
+
// ----- unicorn/import-style -----
|
|
9878
|
+
type UnicornImportStyle = []|[{
|
|
9879
|
+
checkImport?: boolean
|
|
9880
|
+
checkDynamicImport?: boolean
|
|
9881
|
+
checkExportFrom?: boolean
|
|
9882
|
+
checkRequire?: boolean
|
|
9883
|
+
extendDefaultStyles?: boolean
|
|
9884
|
+
styles?: _UnicornImportStyle_ModuleStyles
|
|
9885
|
+
}]
|
|
9886
|
+
type _UnicornImportStyleStyles = (false | _UnicornImportStyle_BooleanObject) | undefined
|
|
9887
|
+
interface _UnicornImportStyle_ModuleStyles {
|
|
9888
|
+
[k: string]: _UnicornImportStyleStyles | undefined
|
|
9889
|
+
}
|
|
9890
|
+
interface _UnicornImportStyle_BooleanObject {
|
|
9891
|
+
[k: string]: boolean | undefined
|
|
9892
|
+
}
|
|
9893
|
+
// ----- unicorn/no-array-reduce -----
|
|
9894
|
+
type UnicornNoArrayReduce = []|[{
|
|
9895
|
+
allowSimpleOperations?: boolean
|
|
9896
|
+
}]
|
|
9897
|
+
// ----- unicorn/no-array-reverse -----
|
|
9898
|
+
type UnicornNoArrayReverse = []|[{
|
|
9899
|
+
allowExpressionStatement?: boolean
|
|
9900
|
+
}]
|
|
9901
|
+
// ----- unicorn/no-instanceof-builtins -----
|
|
9902
|
+
type UnicornNoInstanceofBuiltins = []|[{
|
|
9903
|
+
useErrorIsError?: boolean
|
|
9904
|
+
strategy?: ("loose" | "strict")
|
|
9905
|
+
include?: string[]
|
|
9906
|
+
exclude?: string[]
|
|
9907
|
+
}]
|
|
9908
|
+
// ----- unicorn/no-keyword-prefix -----
|
|
9909
|
+
type UnicornNoKeywordPrefix = []|[{
|
|
9910
|
+
|
|
9911
|
+
disallowedPrefixes?: []|[string]
|
|
9912
|
+
checkProperties?: boolean
|
|
9913
|
+
onlyCamelCase?: boolean
|
|
9914
|
+
}]
|
|
9915
|
+
// ----- unicorn/no-null -----
|
|
9916
|
+
type UnicornNoNull = []|[{
|
|
9917
|
+
checkStrictEquality?: boolean
|
|
9918
|
+
}]
|
|
9919
|
+
// ----- unicorn/no-typeof-undefined -----
|
|
9920
|
+
type UnicornNoTypeofUndefined = []|[{
|
|
9921
|
+
checkGlobalVariables?: boolean
|
|
9922
|
+
}]
|
|
9923
|
+
// ----- unicorn/no-unnecessary-polyfills -----
|
|
9924
|
+
type UnicornNoUnnecessaryPolyfills = []|[{
|
|
9925
|
+
targets: (string | unknown[] | {
|
|
9926
|
+
[k: string]: unknown | undefined
|
|
9927
|
+
})
|
|
9928
|
+
}]
|
|
9929
|
+
// ----- unicorn/no-useless-undefined -----
|
|
9930
|
+
type UnicornNoUselessUndefined = []|[{
|
|
9931
|
+
checkArguments?: boolean
|
|
9932
|
+
checkArrowFunctionBody?: boolean
|
|
9933
|
+
}]
|
|
9934
|
+
// ----- unicorn/number-literal-case -----
|
|
9935
|
+
type UnicornNumberLiteralCase = []|[{
|
|
9936
|
+
hexadecimalValue?: ("uppercase" | "lowercase")
|
|
9937
|
+
}]
|
|
9938
|
+
// ----- unicorn/numeric-separators-style -----
|
|
9939
|
+
type UnicornNumericSeparatorsStyle = []|[{
|
|
9940
|
+
binary?: {
|
|
9941
|
+
onlyIfContainsSeparator?: boolean
|
|
9942
|
+
minimumDigits?: number
|
|
9943
|
+
groupLength?: number
|
|
9944
|
+
}
|
|
9945
|
+
octal?: {
|
|
9946
|
+
onlyIfContainsSeparator?: boolean
|
|
9947
|
+
minimumDigits?: number
|
|
9948
|
+
groupLength?: number
|
|
9949
|
+
}
|
|
9950
|
+
hexadecimal?: {
|
|
9951
|
+
onlyIfContainsSeparator?: boolean
|
|
9952
|
+
minimumDigits?: number
|
|
9953
|
+
groupLength?: number
|
|
9954
|
+
}
|
|
9955
|
+
number?: {
|
|
9956
|
+
onlyIfContainsSeparator?: boolean
|
|
9957
|
+
minimumDigits?: number
|
|
9958
|
+
groupLength?: number
|
|
9959
|
+
}
|
|
9960
|
+
onlyIfContainsSeparator?: boolean
|
|
9961
|
+
}]
|
|
9962
|
+
// ----- unicorn/prefer-add-event-listener -----
|
|
9963
|
+
type UnicornPreferAddEventListener = []|[{
|
|
9964
|
+
excludedPackages?: string[]
|
|
9965
|
+
}]
|
|
9966
|
+
// ----- unicorn/prefer-array-find -----
|
|
9967
|
+
type UnicornPreferArrayFind = []|[{
|
|
9968
|
+
checkFromLast?: boolean
|
|
9969
|
+
}]
|
|
9970
|
+
// ----- unicorn/prefer-array-flat -----
|
|
9971
|
+
type UnicornPreferArrayFlat = []|[{
|
|
9972
|
+
functions?: unknown[]
|
|
9973
|
+
}]
|
|
9974
|
+
// ----- unicorn/prefer-at -----
|
|
9975
|
+
type UnicornPreferAt = []|[{
|
|
9976
|
+
getLastElementFunctions?: unknown[]
|
|
9977
|
+
checkAllIndexAccess?: boolean
|
|
9978
|
+
}]
|
|
9979
|
+
// ----- unicorn/prefer-export-from -----
|
|
9980
|
+
type UnicornPreferExportFrom = []|[{
|
|
9981
|
+
ignoreUsedVariables?: boolean
|
|
9982
|
+
}]
|
|
9983
|
+
// ----- unicorn/prefer-number-properties -----
|
|
9984
|
+
type UnicornPreferNumberProperties = []|[{
|
|
9985
|
+
checkInfinity?: boolean
|
|
9986
|
+
checkNaN?: boolean
|
|
9987
|
+
}]
|
|
9988
|
+
// ----- unicorn/prefer-object-from-entries -----
|
|
9989
|
+
type UnicornPreferObjectFromEntries = []|[{
|
|
9990
|
+
functions?: unknown[]
|
|
9991
|
+
}]
|
|
9992
|
+
// ----- unicorn/prefer-single-call -----
|
|
9993
|
+
type UnicornPreferSingleCall = []|[{
|
|
9994
|
+
ignore?: unknown[]
|
|
9995
|
+
}]
|
|
9996
|
+
// ----- unicorn/prefer-structured-clone -----
|
|
9997
|
+
type UnicornPreferStructuredClone = []|[{
|
|
9998
|
+
functions?: unknown[]
|
|
9999
|
+
}]
|
|
10000
|
+
// ----- unicorn/prefer-switch -----
|
|
10001
|
+
type UnicornPreferSwitch = []|[{
|
|
10002
|
+
minimumCases?: number
|
|
10003
|
+
emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case")
|
|
10004
|
+
}]
|
|
10005
|
+
// ----- unicorn/prefer-ternary -----
|
|
10006
|
+
type UnicornPreferTernary = []|[("always" | "only-single-line")]
|
|
10007
|
+
// ----- unicorn/prevent-abbreviations -----
|
|
10008
|
+
type UnicornPreventAbbreviations = []|[{
|
|
10009
|
+
checkProperties?: boolean
|
|
10010
|
+
checkVariables?: boolean
|
|
10011
|
+
checkDefaultAndNamespaceImports?: (boolean | string)
|
|
10012
|
+
checkShorthandImports?: (boolean | string)
|
|
10013
|
+
checkShorthandProperties?: boolean
|
|
10014
|
+
checkFilenames?: boolean
|
|
10015
|
+
extendDefaultReplacements?: boolean
|
|
10016
|
+
replacements?: _UnicornPreventAbbreviations_Abbreviations
|
|
10017
|
+
extendDefaultAllowList?: boolean
|
|
10018
|
+
allowList?: _UnicornPreventAbbreviations_BooleanObject
|
|
10019
|
+
ignore?: unknown[]
|
|
10020
|
+
}]
|
|
10021
|
+
type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined
|
|
10022
|
+
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
10023
|
+
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined
|
|
10024
|
+
}
|
|
10025
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
10026
|
+
[k: string]: boolean | undefined
|
|
10027
|
+
}
|
|
10028
|
+
// ----- unicorn/relative-url-style -----
|
|
10029
|
+
type UnicornRelativeUrlStyle = []|[("never" | "always")]
|
|
10030
|
+
// ----- unicorn/string-content -----
|
|
10031
|
+
type UnicornStringContent = []|[{
|
|
10032
|
+
patterns?: {
|
|
10033
|
+
[k: string]: (string | {
|
|
10034
|
+
suggest: string
|
|
10035
|
+
fix?: boolean
|
|
10036
|
+
message?: string
|
|
10037
|
+
}) | undefined
|
|
10038
|
+
}
|
|
10039
|
+
}]
|
|
10040
|
+
// ----- unicorn/switch-case-braces -----
|
|
10041
|
+
type UnicornSwitchCaseBraces = []|[("always" | "avoid")]
|
|
10042
|
+
// ----- unicorn/template-indent -----
|
|
10043
|
+
type UnicornTemplateIndent = []|[{
|
|
10044
|
+
indent?: (string | number)
|
|
10045
|
+
tags?: string[]
|
|
10046
|
+
functions?: string[]
|
|
10047
|
+
selectors?: string[]
|
|
10048
|
+
comments?: string[]
|
|
10049
|
+
}]
|
|
9085
10050
|
// ----- use-isnan -----
|
|
9086
10051
|
type UseIsnan = []|[{
|
|
9087
10052
|
enforceForSwitchCase?: boolean
|
|
@@ -9108,7 +10073,6 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
9108
10073
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
9109
10074
|
})]
|
|
9110
10075
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
9111
|
-
consistent?: boolean
|
|
9112
10076
|
multiline?: boolean
|
|
9113
10077
|
minItems?: (number | null)
|
|
9114
10078
|
})
|
|
@@ -9177,14 +10141,9 @@ type VueCommaDangle = []|[(_VueCommaDangleValue | {
|
|
|
9177
10141
|
imports?: _VueCommaDangleValueWithIgnore
|
|
9178
10142
|
exports?: _VueCommaDangleValueWithIgnore
|
|
9179
10143
|
functions?: _VueCommaDangleValueWithIgnore
|
|
9180
|
-
importAttributes?: _VueCommaDangleValueWithIgnore
|
|
9181
|
-
dynamicImports?: _VueCommaDangleValueWithIgnore
|
|
9182
|
-
enums?: _VueCommaDangleValueWithIgnore
|
|
9183
|
-
generics?: _VueCommaDangleValueWithIgnore
|
|
9184
|
-
tuples?: _VueCommaDangleValueWithIgnore
|
|
9185
10144
|
})]
|
|
9186
10145
|
type _VueCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
|
|
9187
|
-
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "
|
|
10146
|
+
type _VueCommaDangleValueWithIgnore = ("always-multiline" | "always" | "ignore" | "never" | "only-multiline")
|
|
9188
10147
|
// ----- vue/comma-spacing -----
|
|
9189
10148
|
type VueCommaSpacing = []|[{
|
|
9190
10149
|
before?: boolean
|
|
@@ -9255,10 +10214,6 @@ type VueFirstAttributeLinebreak = []|[{
|
|
|
9255
10214
|
// ----- vue/func-call-spacing -----
|
|
9256
10215
|
type VueFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
9257
10216
|
allowNewlines?: boolean
|
|
9258
|
-
optionalChain?: {
|
|
9259
|
-
before?: boolean
|
|
9260
|
-
after?: boolean
|
|
9261
|
-
}
|
|
9262
10217
|
}])
|
|
9263
10218
|
// ----- vue/html-button-has-type -----
|
|
9264
10219
|
type VueHtmlButtonHasType = []|[{
|
|
@@ -9340,7 +10295,6 @@ type VueKeySpacing = []|[({
|
|
|
9340
10295
|
mode?: ("strict" | "minimum")
|
|
9341
10296
|
beforeColon?: boolean
|
|
9342
10297
|
afterColon?: boolean
|
|
9343
|
-
ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
|
|
9344
10298
|
} | {
|
|
9345
10299
|
singleLine?: {
|
|
9346
10300
|
mode?: ("strict" | "minimum")
|
|
@@ -9577,10 +10531,6 @@ type VueKeywordSpacing = []|[{
|
|
|
9577
10531
|
before?: boolean
|
|
9578
10532
|
after?: boolean
|
|
9579
10533
|
}
|
|
9580
|
-
satisfies?: {
|
|
9581
|
-
before?: boolean
|
|
9582
|
-
after?: boolean
|
|
9583
|
-
}
|
|
9584
10534
|
set?: {
|
|
9585
10535
|
before?: boolean
|
|
9586
10536
|
after?: boolean
|
|
@@ -9657,10 +10607,6 @@ type VueKeywordSpacing = []|[{
|
|
|
9657
10607
|
before?: boolean
|
|
9658
10608
|
after?: boolean
|
|
9659
10609
|
}
|
|
9660
|
-
type?: {
|
|
9661
|
-
before?: boolean
|
|
9662
|
-
after?: boolean
|
|
9663
|
-
}
|
|
9664
10610
|
}
|
|
9665
10611
|
}]
|
|
9666
10612
|
// ----- vue/match-component-file-name -----
|
|
@@ -9789,10 +10735,7 @@ type VueMultilineHtmlElementContentNewline = []|[{
|
|
|
9789
10735
|
allowEmptyLines?: boolean
|
|
9790
10736
|
}]
|
|
9791
10737
|
// ----- vue/multiline-ternary -----
|
|
9792
|
-
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
9793
|
-
ignoreJSX?: boolean
|
|
9794
|
-
[k: string]: unknown | undefined
|
|
9795
|
-
}]
|
|
10738
|
+
type VueMultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
9796
10739
|
// ----- vue/mustache-interpolation-spacing -----
|
|
9797
10740
|
type VueMustacheInterpolationSpacing = []|[("always" | "never")]
|
|
9798
10741
|
// ----- vue/new-line-between-multi-line-property -----
|
|
@@ -9867,7 +10810,6 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
9867
10810
|
enforceForNewInMemberExpressions?: boolean
|
|
9868
10811
|
enforceForFunctionPrototypeMethods?: boolean
|
|
9869
10812
|
allowParensAfterCommentPattern?: string
|
|
9870
|
-
nestedConditionalExpressions?: boolean
|
|
9871
10813
|
}])
|
|
9872
10814
|
// ----- vue/no-implicit-coercion -----
|
|
9873
10815
|
type VueNoImplicitCoercion = []|[{
|
|
@@ -10118,16 +11060,6 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
10118
11060
|
minProperties?: number
|
|
10119
11061
|
consistent?: boolean
|
|
10120
11062
|
})
|
|
10121
|
-
TSTypeLiteral?: (("always" | "never") | {
|
|
10122
|
-
multiline?: boolean
|
|
10123
|
-
minProperties?: number
|
|
10124
|
-
consistent?: boolean
|
|
10125
|
-
})
|
|
10126
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
10127
|
-
multiline?: boolean
|
|
10128
|
-
minProperties?: number
|
|
10129
|
-
consistent?: boolean
|
|
10130
|
-
})
|
|
10131
11063
|
})]
|
|
10132
11064
|
// ----- vue/object-curly-spacing -----
|
|
10133
11065
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -10149,7 +11081,7 @@ type VueObjectShorthand = ([]|[("always" | "methods" | "properties" | "never" |
|
|
|
10149
11081
|
avoidExplicitReturnArrows?: boolean
|
|
10150
11082
|
}])
|
|
10151
11083
|
// ----- vue/operator-linebreak -----
|
|
10152
|
-
type VueOperatorLinebreak = []|[(
|
|
11084
|
+
type VueOperatorLinebreak = []|[("after" | "before" | "none" | null)]|[("after" | "before" | "none" | null), {
|
|
10153
11085
|
overrides?: {
|
|
10154
11086
|
[k: string]: ("after" | "before" | "none" | "ignore") | undefined
|
|
10155
11087
|
}
|
|
@@ -10324,7 +11256,7 @@ type Yoda = []|[("always" | "never")]|[("always" | "never"), {
|
|
|
10324
11256
|
onlyEquality?: boolean
|
|
10325
11257
|
}]
|
|
10326
11258
|
// Names of all the configs
|
|
10327
|
-
type ConfigNames = 'lntvow/custom/setup' | 'lntvow/javascript/setup' | 'lntvow/javascript/rules' | 'lntvow/prettier/setup' | 'lntvow/prettier/rules' | 'lntvow/imports/setup' | 'lntvow/imports/rules' | 'lntvow/typescript/setup' | 'lntvow/typescript/rules' | 'lntvow/vue/setup' | 'lntvow/vue/rules' | 'lntvow/regexp/setup' | 'lntvow/regexp/rules' | 'lntvow/test/setup' | 'lntvow/test/rules' | 'lntvow/
|
|
11259
|
+
type ConfigNames = 'lntvow/custom/setup' | 'lntvow/javascript/setup' | 'lntvow/javascript/rules' | 'lntvow/prettier/setup' | 'lntvow/prettier/rules' | 'lntvow/imports/setup' | 'lntvow/imports/rules' | 'lntvow/unicorn/setup' | 'lntvow/unicorn/rules' | 'lntvow/typescript/setup' | 'lntvow/typescript/rules' | 'lntvow/vue/setup' | 'lntvow/vue/rules' | 'lntvow/regexp/setup' | 'lntvow/regexp/rules' | 'lntvow/test/setup' | 'lntvow/test/rules' | 'lntvow/prettier/setup' | 'lntvow/prettier/rules' | 'lntvow/disables/scripts' | 'lntvow/disables/cli' | 'lntvow/disables/dts' | 'lntvow/disables/test' | 'lntvow/disables/cjs' | 'lntvow/stylistic/setup' | 'lntvow/stylistic/rules'
|
|
10328
11260
|
|
|
10329
11261
|
type Awaitable<T> = T | Promise<T>;
|
|
10330
11262
|
type Rules = RuleOptions;
|