@vinicunca/eslint-config 4.5.0 → 4.7.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.d.mts +1092 -181
- package/dist/index.mjs +64 -20
- package/dist/{lib-DHxUIJ7x.mjs → lib-ok3LDcYL.mjs} +289 -264
- package/package.json +46 -47
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
1
|
+
import { ConfigWithExtends, FlatConfigComposer } from "eslint-flat-config-utils";
|
|
2
2
|
import pluginComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
3
3
|
import pluginAntfu from "eslint-plugin-antfu";
|
|
4
4
|
import pluginImportLite from "eslint-plugin-import-lite";
|
|
@@ -441,6 +441,11 @@ interface RuleOptions {
|
|
|
441
441
|
* @deprecated
|
|
442
442
|
*/
|
|
443
443
|
'comma-style'?: Linter.RuleEntry<CommaStyle>;
|
|
444
|
+
/**
|
|
445
|
+
* Comment-as-command for one-off codemod with ESLint
|
|
446
|
+
* @see https://github.com/antfu/eslint-plugin-command
|
|
447
|
+
*/
|
|
448
|
+
'command/command'?: Linter.RuleEntry<[]>;
|
|
444
449
|
/**
|
|
445
450
|
* Enforce a maximum cyclomatic complexity allowed in a program
|
|
446
451
|
* @see https://eslint.org/docs/latest/rules/complexity
|
|
@@ -509,6 +514,26 @@ interface RuleOptions {
|
|
|
509
514
|
* @see https://eslint.org/docs/latest/rules/eqeqeq
|
|
510
515
|
*/
|
|
511
516
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>;
|
|
517
|
+
/**
|
|
518
|
+
* Avoid using TypeScript's enums.
|
|
519
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
|
|
520
|
+
*/
|
|
521
|
+
'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
|
|
522
|
+
/**
|
|
523
|
+
* Avoid using TypeScript's import aliases.
|
|
524
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
|
|
525
|
+
*/
|
|
526
|
+
'erasable-syntax-only/import-aliases'?: Linter.RuleEntry<[]>;
|
|
527
|
+
/**
|
|
528
|
+
* Avoid using TypeScript's namespaces.
|
|
529
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/namespaces.md
|
|
530
|
+
*/
|
|
531
|
+
'erasable-syntax-only/namespaces'?: Linter.RuleEntry<[]>;
|
|
532
|
+
/**
|
|
533
|
+
* Avoid using TypeScript's class parameter properties.
|
|
534
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/parameter-properties.md
|
|
535
|
+
*/
|
|
536
|
+
'erasable-syntax-only/parameter-properties'?: Linter.RuleEntry<[]>;
|
|
512
537
|
/**
|
|
513
538
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
514
539
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
@@ -563,6 +588,10 @@ interface RuleOptions {
|
|
|
563
588
|
* Use dprint to format code
|
|
564
589
|
*/
|
|
565
590
|
'format/dprint'?: Linter.RuleEntry<FormatDprint>;
|
|
591
|
+
/**
|
|
592
|
+
* Use oxfmt to format code
|
|
593
|
+
*/
|
|
594
|
+
'format/oxfmt'?: Linter.RuleEntry<FormatOxfmt>;
|
|
566
595
|
/**
|
|
567
596
|
* Use Prettier to format code
|
|
568
597
|
*/
|
|
@@ -1317,6 +1346,204 @@ interface RuleOptions {
|
|
|
1317
1346
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/vue-custom-block/no-parsing-error.html
|
|
1318
1347
|
*/
|
|
1319
1348
|
'jsonc/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Enforce emojis are wrapped in `<span>` and provide screen reader access.
|
|
1351
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/accessible-emoji.md
|
|
1352
|
+
* @deprecated
|
|
1353
|
+
*/
|
|
1354
|
+
'jsx-a11y/accessible-emoji'?: Linter.RuleEntry<JsxA11YAccessibleEmoji>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Enforce all elements that require alternative text have meaningful information to relay back to end user.
|
|
1357
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/alt-text.md
|
|
1358
|
+
*/
|
|
1359
|
+
'jsx-a11y/alt-text'?: Linter.RuleEntry<JsxA11YAltText>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Enforce `<a>` text to not exactly match "click here", "here", "link", or "a link".
|
|
1362
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-ambiguous-text.md
|
|
1363
|
+
*/
|
|
1364
|
+
'jsx-a11y/anchor-ambiguous-text'?: Linter.RuleEntry<JsxA11YAnchorAmbiguousText>;
|
|
1365
|
+
/**
|
|
1366
|
+
* Enforce all anchors to contain accessible content.
|
|
1367
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-has-content.md
|
|
1368
|
+
*/
|
|
1369
|
+
'jsx-a11y/anchor-has-content'?: Linter.RuleEntry<JsxA11YAnchorHasContent>;
|
|
1370
|
+
/**
|
|
1371
|
+
* Enforce all anchors are valid, navigable elements.
|
|
1372
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-is-valid.md
|
|
1373
|
+
*/
|
|
1374
|
+
'jsx-a11y/anchor-is-valid'?: Linter.RuleEntry<JsxA11YAnchorIsValid>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Enforce elements with aria-activedescendant are tabbable.
|
|
1377
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-activedescendant-has-tabindex.md
|
|
1378
|
+
*/
|
|
1379
|
+
'jsx-a11y/aria-activedescendant-has-tabindex'?: Linter.RuleEntry<JsxA11YAriaActivedescendantHasTabindex>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Enforce all `aria-*` props are valid.
|
|
1382
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-props.md
|
|
1383
|
+
*/
|
|
1384
|
+
'jsx-a11y/aria-props'?: Linter.RuleEntry<JsxA11YAriaProps>;
|
|
1385
|
+
/**
|
|
1386
|
+
* Enforce ARIA state and property values are valid.
|
|
1387
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-proptypes.md
|
|
1388
|
+
*/
|
|
1389
|
+
'jsx-a11y/aria-proptypes'?: Linter.RuleEntry<JsxA11YAriaProptypes>;
|
|
1390
|
+
/**
|
|
1391
|
+
* Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
1392
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-role.md
|
|
1393
|
+
*/
|
|
1394
|
+
'jsx-a11y/aria-role'?: Linter.RuleEntry<JsxA11YAriaRole>;
|
|
1395
|
+
/**
|
|
1396
|
+
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
1397
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-unsupported-elements.md
|
|
1398
|
+
*/
|
|
1399
|
+
'jsx-a11y/aria-unsupported-elements'?: Linter.RuleEntry<JsxA11YAriaUnsupportedElements>;
|
|
1400
|
+
/**
|
|
1401
|
+
* Enforce that autocomplete attributes are used correctly.
|
|
1402
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/autocomplete-valid.md
|
|
1403
|
+
*/
|
|
1404
|
+
'jsx-a11y/autocomplete-valid'?: Linter.RuleEntry<JsxA11YAutocompleteValid>;
|
|
1405
|
+
/**
|
|
1406
|
+
* Enforce a clickable non-interactive element has at least one keyboard event listener.
|
|
1407
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/click-events-have-key-events.md
|
|
1408
|
+
*/
|
|
1409
|
+
'jsx-a11y/click-events-have-key-events'?: Linter.RuleEntry<JsxA11YClickEventsHaveKeyEvents>;
|
|
1410
|
+
/**
|
|
1411
|
+
* Enforce that a control (an interactive element) has a text label.
|
|
1412
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/control-has-associated-label.md
|
|
1413
|
+
*/
|
|
1414
|
+
'jsx-a11y/control-has-associated-label'?: Linter.RuleEntry<JsxA11YControlHasAssociatedLabel>;
|
|
1415
|
+
/**
|
|
1416
|
+
* Enforce heading (`h1`, `h2`, etc) elements contain accessible content.
|
|
1417
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/heading-has-content.md
|
|
1418
|
+
*/
|
|
1419
|
+
'jsx-a11y/heading-has-content'?: Linter.RuleEntry<JsxA11YHeadingHasContent>;
|
|
1420
|
+
/**
|
|
1421
|
+
* Enforce `<html>` element has `lang` prop.
|
|
1422
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/html-has-lang.md
|
|
1423
|
+
*/
|
|
1424
|
+
'jsx-a11y/html-has-lang'?: Linter.RuleEntry<JsxA11YHtmlHasLang>;
|
|
1425
|
+
/**
|
|
1426
|
+
* Enforce iframe elements have a title attribute.
|
|
1427
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/iframe-has-title.md
|
|
1428
|
+
*/
|
|
1429
|
+
'jsx-a11y/iframe-has-title'?: Linter.RuleEntry<JsxA11YIframeHasTitle>;
|
|
1430
|
+
/**
|
|
1431
|
+
* Enforce `<img>` alt prop does not contain the word "image", "picture", or "photo".
|
|
1432
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/img-redundant-alt.md
|
|
1433
|
+
*/
|
|
1434
|
+
'jsx-a11y/img-redundant-alt'?: Linter.RuleEntry<JsxA11YImgRedundantAlt>;
|
|
1435
|
+
/**
|
|
1436
|
+
* Enforce that elements with interactive handlers like `onClick` must be focusable.
|
|
1437
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/interactive-supports-focus.md
|
|
1438
|
+
*/
|
|
1439
|
+
'jsx-a11y/interactive-supports-focus'?: Linter.RuleEntry<JsxA11YInteractiveSupportsFocus>;
|
|
1440
|
+
/**
|
|
1441
|
+
* Enforce that a `label` tag has a text label and an associated control.
|
|
1442
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/label-has-associated-control.md
|
|
1443
|
+
*/
|
|
1444
|
+
'jsx-a11y/label-has-associated-control'?: Linter.RuleEntry<JsxA11YLabelHasAssociatedControl>;
|
|
1445
|
+
/**
|
|
1446
|
+
* Enforce that `<label>` elements have the `htmlFor` prop.
|
|
1447
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/label-has-for.md
|
|
1448
|
+
* @deprecated
|
|
1449
|
+
*/
|
|
1450
|
+
'jsx-a11y/label-has-for'?: Linter.RuleEntry<JsxA11YLabelHasFor>;
|
|
1451
|
+
/**
|
|
1452
|
+
* Enforce lang attribute has a valid value.
|
|
1453
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/lang.md
|
|
1454
|
+
*/
|
|
1455
|
+
'jsx-a11y/lang'?: Linter.RuleEntry<JsxA11YLang>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Enforces that `<audio>` and `<video>` elements must have a `<track>` for captions.
|
|
1458
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/media-has-caption.md
|
|
1459
|
+
*/
|
|
1460
|
+
'jsx-a11y/media-has-caption'?: Linter.RuleEntry<JsxA11YMediaHasCaption>;
|
|
1461
|
+
/**
|
|
1462
|
+
* Enforce that `onMouseOver`/`onMouseOut` are accompanied by `onFocus`/`onBlur` for keyboard-only users.
|
|
1463
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/mouse-events-have-key-events.md
|
|
1464
|
+
*/
|
|
1465
|
+
'jsx-a11y/mouse-events-have-key-events'?: Linter.RuleEntry<JsxA11YMouseEventsHaveKeyEvents>;
|
|
1466
|
+
/**
|
|
1467
|
+
* Enforce that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader.
|
|
1468
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-access-key.md
|
|
1469
|
+
*/
|
|
1470
|
+
'jsx-a11y/no-access-key'?: Linter.RuleEntry<JsxA11YNoAccessKey>;
|
|
1471
|
+
/**
|
|
1472
|
+
* Disallow `aria-hidden="true"` from being set on focusable elements.
|
|
1473
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-aria-hidden-on-focusable.md
|
|
1474
|
+
*/
|
|
1475
|
+
'jsx-a11y/no-aria-hidden-on-focusable'?: Linter.RuleEntry<JsxA11YNoAriaHiddenOnFocusable>;
|
|
1476
|
+
/**
|
|
1477
|
+
* Enforce autoFocus prop is not used.
|
|
1478
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-autofocus.md
|
|
1479
|
+
*/
|
|
1480
|
+
'jsx-a11y/no-autofocus'?: Linter.RuleEntry<JsxA11YNoAutofocus>;
|
|
1481
|
+
/**
|
|
1482
|
+
* Enforce distracting elements are not used.
|
|
1483
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-distracting-elements.md
|
|
1484
|
+
*/
|
|
1485
|
+
'jsx-a11y/no-distracting-elements'?: Linter.RuleEntry<JsxA11YNoDistractingElements>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Interactive elements should not be assigned non-interactive roles.
|
|
1488
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-interactive-element-to-noninteractive-role.md
|
|
1489
|
+
*/
|
|
1490
|
+
'jsx-a11y/no-interactive-element-to-noninteractive-role'?: Linter.RuleEntry<JsxA11YNoInteractiveElementToNoninteractiveRole>;
|
|
1491
|
+
/**
|
|
1492
|
+
* Non-interactive elements should not be assigned mouse or keyboard event listeners.
|
|
1493
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-interactions.md
|
|
1494
|
+
*/
|
|
1495
|
+
'jsx-a11y/no-noninteractive-element-interactions'?: Linter.RuleEntry<JsxA11YNoNoninteractiveElementInteractions>;
|
|
1496
|
+
/**
|
|
1497
|
+
* Non-interactive elements should not be assigned interactive roles.
|
|
1498
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-to-interactive-role.md
|
|
1499
|
+
*/
|
|
1500
|
+
'jsx-a11y/no-noninteractive-element-to-interactive-role'?: Linter.RuleEntry<JsxA11YNoNoninteractiveElementToInteractiveRole>;
|
|
1501
|
+
/**
|
|
1502
|
+
* `tabIndex` should only be declared on interactive elements.
|
|
1503
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-tabindex.md
|
|
1504
|
+
*/
|
|
1505
|
+
'jsx-a11y/no-noninteractive-tabindex'?: Linter.RuleEntry<JsxA11YNoNoninteractiveTabindex>;
|
|
1506
|
+
/**
|
|
1507
|
+
* Enforce usage of `onBlur` over `onChange` on select menus for accessibility.
|
|
1508
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-onchange.md
|
|
1509
|
+
* @deprecated
|
|
1510
|
+
*/
|
|
1511
|
+
'jsx-a11y/no-onchange'?: Linter.RuleEntry<JsxA11YNoOnchange>;
|
|
1512
|
+
/**
|
|
1513
|
+
* Enforce explicit role property is not the same as implicit/default role property on element.
|
|
1514
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-redundant-roles.md
|
|
1515
|
+
*/
|
|
1516
|
+
'jsx-a11y/no-redundant-roles'?: Linter.RuleEntry<JsxA11YNoRedundantRoles>;
|
|
1517
|
+
/**
|
|
1518
|
+
* Enforce that non-interactive, visible elements (such as `<div>`) that have click handlers use the role attribute.
|
|
1519
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-static-element-interactions.md
|
|
1520
|
+
*/
|
|
1521
|
+
'jsx-a11y/no-static-element-interactions'?: Linter.RuleEntry<JsxA11YNoStaticElementInteractions>;
|
|
1522
|
+
/**
|
|
1523
|
+
* Enforces using semantic DOM elements over the ARIA `role` property.
|
|
1524
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md
|
|
1525
|
+
*/
|
|
1526
|
+
'jsx-a11y/prefer-tag-over-role'?: Linter.RuleEntry<JsxA11YPreferTagOverRole>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Enforce that elements with ARIA roles must have all required attributes for that role.
|
|
1529
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-has-required-aria-props.md
|
|
1530
|
+
*/
|
|
1531
|
+
'jsx-a11y/role-has-required-aria-props'?: Linter.RuleEntry<JsxA11YRoleHasRequiredAriaProps>;
|
|
1532
|
+
/**
|
|
1533
|
+
* Enforce that elements with explicit or implicit roles defined contain only `aria-*` properties supported by that `role`.
|
|
1534
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-supports-aria-props.md
|
|
1535
|
+
*/
|
|
1536
|
+
'jsx-a11y/role-supports-aria-props'?: Linter.RuleEntry<JsxA11YRoleSupportsAriaProps>;
|
|
1537
|
+
/**
|
|
1538
|
+
* Enforce `scope` prop is only used on `<th>` elements.
|
|
1539
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/scope.md
|
|
1540
|
+
*/
|
|
1541
|
+
'jsx-a11y/scope'?: Linter.RuleEntry<JsxA11YScope>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Enforce `tabIndex` value is not greater than zero.
|
|
1544
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/tabindex-no-positive.md
|
|
1545
|
+
*/
|
|
1546
|
+
'jsx-a11y/tabindex-no-positive'?: Linter.RuleEntry<JsxA11YTabindexNoPositive>;
|
|
1320
1547
|
/**
|
|
1321
1548
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
1322
1549
|
* @see https://eslint.org/docs/latest/rules/jsx-quotes
|
|
@@ -1558,6 +1785,110 @@ interface RuleOptions {
|
|
|
1558
1785
|
* @deprecated
|
|
1559
1786
|
*/
|
|
1560
1787
|
'newline-per-chained-call'?: Linter.RuleEntry<NewlinePerChainedCall>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Enforce font-display behavior with Google Fonts.
|
|
1790
|
+
* @see https://nextjs.org/docs/messages/google-font-display
|
|
1791
|
+
*/
|
|
1792
|
+
'next/google-font-display'?: Linter.RuleEntry<[]>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Ensure `preconnect` is used with Google Fonts.
|
|
1795
|
+
* @see https://nextjs.org/docs/messages/google-font-preconnect
|
|
1796
|
+
*/
|
|
1797
|
+
'next/google-font-preconnect'?: Linter.RuleEntry<[]>;
|
|
1798
|
+
/**
|
|
1799
|
+
* Enforce `id` attribute on `next/script` components with inline content.
|
|
1800
|
+
* @see https://nextjs.org/docs/messages/inline-script-id
|
|
1801
|
+
*/
|
|
1802
|
+
'next/inline-script-id'?: Linter.RuleEntry<[]>;
|
|
1803
|
+
/**
|
|
1804
|
+
* Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
|
|
1805
|
+
* @see https://nextjs.org/docs/messages/next-script-for-ga
|
|
1806
|
+
*/
|
|
1807
|
+
'next/next-script-for-ga'?: Linter.RuleEntry<[]>;
|
|
1808
|
+
/**
|
|
1809
|
+
* Prevent assignment to the `module` variable.
|
|
1810
|
+
* @see https://nextjs.org/docs/messages/no-assign-module-variable
|
|
1811
|
+
*/
|
|
1812
|
+
'next/no-assign-module-variable'?: Linter.RuleEntry<[]>;
|
|
1813
|
+
/**
|
|
1814
|
+
* Prevent Client Components from being async functions.
|
|
1815
|
+
* @see https://nextjs.org/docs/messages/no-async-client-component
|
|
1816
|
+
*/
|
|
1817
|
+
'next/no-async-client-component'?: Linter.RuleEntry<[]>;
|
|
1818
|
+
/**
|
|
1819
|
+
* Prevent usage of `next/script`'s `beforeInteractive` strategy outside of `pages/_document.js`.
|
|
1820
|
+
* @see https://nextjs.org/docs/messages/no-before-interactive-script-outside-document
|
|
1821
|
+
*/
|
|
1822
|
+
'next/no-before-interactive-script-outside-document'?: Linter.RuleEntry<[]>;
|
|
1823
|
+
/**
|
|
1824
|
+
* Prevent manual stylesheet tags.
|
|
1825
|
+
* @see https://nextjs.org/docs/messages/no-css-tags
|
|
1826
|
+
*/
|
|
1827
|
+
'next/no-css-tags'?: Linter.RuleEntry<[]>;
|
|
1828
|
+
/**
|
|
1829
|
+
* Prevent importing `next/document` outside of `pages/_document.js`.
|
|
1830
|
+
* @see https://nextjs.org/docs/messages/no-document-import-in-page
|
|
1831
|
+
*/
|
|
1832
|
+
'next/no-document-import-in-page'?: Linter.RuleEntry<[]>;
|
|
1833
|
+
/**
|
|
1834
|
+
* Prevent duplicate usage of `<Head>` in `pages/_document.js`.
|
|
1835
|
+
* @see https://nextjs.org/docs/messages/no-duplicate-head
|
|
1836
|
+
*/
|
|
1837
|
+
'next/no-duplicate-head'?: Linter.RuleEntry<[]>;
|
|
1838
|
+
/**
|
|
1839
|
+
* Prevent usage of `<head>` element.
|
|
1840
|
+
* @see https://nextjs.org/docs/messages/no-head-element
|
|
1841
|
+
*/
|
|
1842
|
+
'next/no-head-element'?: Linter.RuleEntry<[]>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Prevent usage of `next/head` in `pages/_document.js`.
|
|
1845
|
+
* @see https://nextjs.org/docs/messages/no-head-import-in-document
|
|
1846
|
+
*/
|
|
1847
|
+
'next/no-head-import-in-document'?: Linter.RuleEntry<[]>;
|
|
1848
|
+
/**
|
|
1849
|
+
* Prevent usage of `<a>` elements to navigate to internal Next.js pages.
|
|
1850
|
+
* @see https://nextjs.org/docs/messages/no-html-link-for-pages
|
|
1851
|
+
*/
|
|
1852
|
+
'next/no-html-link-for-pages'?: Linter.RuleEntry<NextNoHtmlLinkForPages>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Prevent usage of `<img>` element due to slower LCP and higher bandwidth.
|
|
1855
|
+
* @see https://nextjs.org/docs/messages/no-img-element
|
|
1856
|
+
*/
|
|
1857
|
+
'next/no-img-element'?: Linter.RuleEntry<[]>;
|
|
1858
|
+
/**
|
|
1859
|
+
* Prevent page-only custom fonts.
|
|
1860
|
+
* @see https://nextjs.org/docs/messages/no-page-custom-font
|
|
1861
|
+
*/
|
|
1862
|
+
'next/no-page-custom-font'?: Linter.RuleEntry<[]>;
|
|
1863
|
+
/**
|
|
1864
|
+
* Prevent usage of `next/script` in `next/head` component.
|
|
1865
|
+
* @see https://nextjs.org/docs/messages/no-script-component-in-head
|
|
1866
|
+
*/
|
|
1867
|
+
'next/no-script-component-in-head'?: Linter.RuleEntry<[]>;
|
|
1868
|
+
/**
|
|
1869
|
+
* Prevent usage of `styled-jsx` in `pages/_document.js`.
|
|
1870
|
+
* @see https://nextjs.org/docs/messages/no-styled-jsx-in-document
|
|
1871
|
+
*/
|
|
1872
|
+
'next/no-styled-jsx-in-document'?: Linter.RuleEntry<[]>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Prevent synchronous scripts.
|
|
1875
|
+
* @see https://nextjs.org/docs/messages/no-sync-scripts
|
|
1876
|
+
*/
|
|
1877
|
+
'next/no-sync-scripts'?: Linter.RuleEntry<[]>;
|
|
1878
|
+
/**
|
|
1879
|
+
* Prevent usage of `<title>` with `Head` component from `next/document`.
|
|
1880
|
+
* @see https://nextjs.org/docs/messages/no-title-in-document-head
|
|
1881
|
+
*/
|
|
1882
|
+
'next/no-title-in-document-head'?: Linter.RuleEntry<[]>;
|
|
1883
|
+
/**
|
|
1884
|
+
* Prevent common typos in Next.js data fetching functions.
|
|
1885
|
+
*/
|
|
1886
|
+
'next/no-typos'?: Linter.RuleEntry<[]>;
|
|
1887
|
+
/**
|
|
1888
|
+
* Prevent duplicate polyfills from Polyfill.io.
|
|
1889
|
+
* @see https://nextjs.org/docs/messages/no-unwanted-polyfillio
|
|
1890
|
+
*/
|
|
1891
|
+
'next/no-unwanted-polyfillio'?: Linter.RuleEntry<[]>;
|
|
1561
1892
|
/**
|
|
1562
1893
|
* Disallow the use of `alert`, `confirm`, and `prompt`
|
|
1563
1894
|
* @see https://eslint.org/docs/latest/rules/no-alert
|
|
@@ -2520,6 +2851,11 @@ interface RuleOptions {
|
|
|
2520
2851
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
2521
2852
|
*/
|
|
2522
2853
|
'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>;
|
|
2854
|
+
/**
|
|
2855
|
+
* enforce either `crypto` or `require("crypto").webcrypto`
|
|
2856
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
2857
|
+
*/
|
|
2858
|
+
'node/prefer-global/crypto'?: Linter.RuleEntry<NodePreferGlobalCrypto>;
|
|
2523
2859
|
/**
|
|
2524
2860
|
* enforce either `process` or `require("process")`
|
|
2525
2861
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
@@ -2535,6 +2871,11 @@ interface RuleOptions {
|
|
|
2535
2871
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
2536
2872
|
*/
|
|
2537
2873
|
'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>;
|
|
2874
|
+
/**
|
|
2875
|
+
* enforce either global timer functions or `require("timers")`
|
|
2876
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
2877
|
+
*/
|
|
2878
|
+
'node/prefer-global/timers'?: Linter.RuleEntry<NodePreferGlobalTimers>;
|
|
2538
2879
|
/**
|
|
2539
2880
|
* enforce either `URL` or `require("url").URL`
|
|
2540
2881
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
@@ -2744,6 +3085,41 @@ interface RuleOptions {
|
|
|
2744
3085
|
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
2745
3086
|
*/
|
|
2746
3087
|
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
|
|
3088
|
+
/**
|
|
3089
|
+
* Enforce using "catalog:" in `package.json`
|
|
3090
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
|
|
3091
|
+
*/
|
|
3092
|
+
'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
|
|
3093
|
+
/**
|
|
3094
|
+
* Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
|
|
3095
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
|
|
3096
|
+
*/
|
|
3097
|
+
'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
|
|
3098
|
+
/**
|
|
3099
|
+
* Enforce using valid catalog in `package.json`
|
|
3100
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
3101
|
+
*/
|
|
3102
|
+
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
3103
|
+
/**
|
|
3104
|
+
* Enforce settings in `pnpm-workspace.yaml`
|
|
3105
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
|
|
3106
|
+
*/
|
|
3107
|
+
'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
|
|
3108
|
+
/**
|
|
3109
|
+
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
3110
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
3111
|
+
*/
|
|
3112
|
+
'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
|
|
3113
|
+
/**
|
|
3114
|
+
* Disallow unused catalogs in `pnpm-workspace.yaml`
|
|
3115
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
|
|
3116
|
+
*/
|
|
3117
|
+
'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
|
|
3118
|
+
/**
|
|
3119
|
+
* Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
|
|
3120
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
|
|
3121
|
+
*/
|
|
3122
|
+
'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
|
|
2747
3123
|
/**
|
|
2748
3124
|
* Require using arrow functions for callbacks
|
|
2749
3125
|
* @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
@@ -2833,7 +3209,7 @@ interface RuleOptions {
|
|
|
2833
3209
|
*/
|
|
2834
3210
|
'quotes'?: Linter.RuleEntry<Quotes>;
|
|
2835
3211
|
/**
|
|
2836
|
-
* Enforce the
|
|
3212
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
2837
3213
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
2838
3214
|
*/
|
|
2839
3215
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
@@ -2903,7 +3279,7 @@ interface RuleOptions {
|
|
|
2903
3279
|
*/
|
|
2904
3280
|
'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>;
|
|
2905
3281
|
/**
|
|
2906
|
-
* Enforces 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
3282
|
+
* Enforces that the 'sandbox' attribute for 'iframe' elements is not set to unsafe combinations.
|
|
2907
3283
|
* @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
|
|
2908
3284
|
*/
|
|
2909
3285
|
'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>;
|
|
@@ -3070,6 +3446,11 @@ interface RuleOptions {
|
|
|
3070
3446
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
3071
3447
|
*/
|
|
3072
3448
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
3449
|
+
/**
|
|
3450
|
+
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
3451
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
3452
|
+
*/
|
|
3453
|
+
'react-naming-convention/id-name'?: Linter.RuleEntry<[]>;
|
|
3073
3454
|
/**
|
|
3074
3455
|
* Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
|
|
3075
3456
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
@@ -3081,6 +3462,11 @@ interface RuleOptions {
|
|
|
3081
3462
|
*/
|
|
3082
3463
|
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
3083
3464
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
3465
|
+
/**
|
|
3466
|
+
* Validate and transform React Client/Server Function definitions.
|
|
3467
|
+
* @see https://eslint-react.xyz/docs/rules/function-definition
|
|
3468
|
+
*/
|
|
3469
|
+
'react-rsc/function-definition'?: Linter.RuleEntry<[]>;
|
|
3084
3470
|
/**
|
|
3085
3471
|
* Enforces that every 'addEventListener' in a component or custom hook has a corresponding 'removeEventListener'.
|
|
3086
3472
|
* @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
|
|
@@ -3102,12 +3488,12 @@ interface RuleOptions {
|
|
|
3102
3488
|
*/
|
|
3103
3489
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3104
3490
|
/**
|
|
3105
|
-
* Prevents
|
|
3491
|
+
* Prevents unintentional '$' sign before expression.
|
|
3106
3492
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
3107
3493
|
*/
|
|
3108
3494
|
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
3109
3495
|
/**
|
|
3110
|
-
* Enforces
|
|
3496
|
+
* Enforces 'key' prop placement before spread props.
|
|
3111
3497
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
3112
3498
|
*/
|
|
3113
3499
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>;
|
|
@@ -3122,7 +3508,7 @@ interface RuleOptions {
|
|
|
3122
3508
|
*/
|
|
3123
3509
|
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>;
|
|
3124
3510
|
/**
|
|
3125
|
-
* Disallows
|
|
3511
|
+
* Disallows immediately-invoked function expressions in JSX.
|
|
3126
3512
|
* @see https://eslint-react.xyz/docs/rules/jsx-no-iife
|
|
3127
3513
|
*/
|
|
3128
3514
|
'react/jsx-no-iife'?: Linter.RuleEntry<[]>;
|
|
@@ -3132,12 +3518,12 @@ interface RuleOptions {
|
|
|
3132
3518
|
*/
|
|
3133
3519
|
'react/jsx-no-undef'?: Linter.RuleEntry<[]>;
|
|
3134
3520
|
/**
|
|
3135
|
-
* Enforces
|
|
3521
|
+
* Enforces shorthand syntax for boolean props.
|
|
3136
3522
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-boolean
|
|
3137
3523
|
*/
|
|
3138
3524
|
'react/jsx-shorthand-boolean'?: Linter.RuleEntry<ReactJsxShorthandBoolean>;
|
|
3139
3525
|
/**
|
|
3140
|
-
* Enforces
|
|
3526
|
+
* Enforces shorthand syntax for fragment elements.
|
|
3141
3527
|
* @see https://eslint-react.xyz/docs/rules/jsx-shorthand-fragment
|
|
3142
3528
|
*/
|
|
3143
3529
|
'react/jsx-shorthand-fragment'?: Linter.RuleEntry<ReactJsxShorthandFragment>;
|
|
@@ -3147,7 +3533,7 @@ interface RuleOptions {
|
|
|
3147
3533
|
*/
|
|
3148
3534
|
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
3149
3535
|
/**
|
|
3150
|
-
* Marks
|
|
3536
|
+
* Marks JSX element variables as used.
|
|
3151
3537
|
* @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
|
|
3152
3538
|
*/
|
|
3153
3539
|
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
@@ -3237,7 +3623,7 @@ interface RuleOptions {
|
|
|
3237
3623
|
*/
|
|
3238
3624
|
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
3239
3625
|
/**
|
|
3240
|
-
*
|
|
3626
|
+
* Prevents duplicate 'key' props on sibling elements when rendering lists.
|
|
3241
3627
|
* @see https://eslint-react.xyz/docs/rules/no-duplicate-key
|
|
3242
3628
|
*/
|
|
3243
3629
|
'react/no-duplicate-key'?: Linter.RuleEntry<[]>;
|
|
@@ -3253,7 +3639,7 @@ interface RuleOptions {
|
|
|
3253
3639
|
*/
|
|
3254
3640
|
'react/no-forward-ref'?: Linter.RuleEntry<[]>;
|
|
3255
3641
|
/**
|
|
3256
|
-
* Prevents
|
|
3642
|
+
* Prevents implicitly passing the 'key' prop to components.
|
|
3257
3643
|
* @see https://eslint-react.xyz/docs/rules/no-implicit-key
|
|
3258
3644
|
*/
|
|
3259
3645
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>;
|
|
@@ -3263,12 +3649,12 @@ interface RuleOptions {
|
|
|
3263
3649
|
*/
|
|
3264
3650
|
'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>;
|
|
3265
3651
|
/**
|
|
3266
|
-
* Enforces that all components have a 'displayName' that can be used in
|
|
3652
|
+
* Enforces that all components have a 'displayName' that can be used in DevTools.
|
|
3267
3653
|
* @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
|
|
3268
3654
|
*/
|
|
3269
3655
|
'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>;
|
|
3270
3656
|
/**
|
|
3271
|
-
* Enforces that all contexts have a 'displayName' that can be used in
|
|
3657
|
+
* Enforces that all contexts have a 'displayName' that can be used in DevTools.
|
|
3272
3658
|
* @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
|
|
3273
3659
|
*/
|
|
3274
3660
|
'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>;
|
|
@@ -3323,7 +3709,7 @@ interface RuleOptions {
|
|
|
3323
3709
|
*/
|
|
3324
3710
|
'react/no-string-refs'?: Linter.RuleEntry<[]>;
|
|
3325
3711
|
/**
|
|
3326
|
-
* Disallows unnecessary 'key' props on elements.
|
|
3712
|
+
* Disallows unnecessary 'key' props on nested child elements when rendering lists.
|
|
3327
3713
|
* @see https://eslint-react.xyz/docs/rules/no-unnecessary-key
|
|
3328
3714
|
*/
|
|
3329
3715
|
'react/no-unnecessary-key'?: Linter.RuleEntry<[]>;
|
|
@@ -5450,6 +5836,11 @@ interface RuleOptions {
|
|
|
5450
5836
|
* @see https://eslint.style/rules/eol-last
|
|
5451
5837
|
*/
|
|
5452
5838
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
5839
|
+
/**
|
|
5840
|
+
* Enforce consistent line break styles for JSX props
|
|
5841
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
5842
|
+
*/
|
|
5843
|
+
'style/exp-jsx-props-style'?: Linter.RuleEntry<StyleExpJsxPropsStyle>;
|
|
5453
5844
|
/**
|
|
5454
5845
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
5455
5846
|
* @see https://eslint.style/rules/list-style
|
|
@@ -6721,11 +7112,21 @@ interface RuleOptions {
|
|
|
6721
7112
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
6722
7113
|
*/
|
|
6723
7114
|
'toml/indent'?: Linter.RuleEntry<TomlIndent>;
|
|
7115
|
+
/**
|
|
7116
|
+
* enforce linebreaks after opening and before closing braces
|
|
7117
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
7118
|
+
*/
|
|
7119
|
+
'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
|
|
6724
7120
|
/**
|
|
6725
7121
|
* enforce consistent spacing inside braces
|
|
6726
7122
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
6727
7123
|
*/
|
|
6728
7124
|
'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
|
|
7125
|
+
/**
|
|
7126
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
7127
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
7128
|
+
*/
|
|
7129
|
+
'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
|
|
6729
7130
|
/**
|
|
6730
7131
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
6731
7132
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -7274,7 +7675,7 @@ interface RuleOptions {
|
|
|
7274
7675
|
* Disallow default values that will never be used
|
|
7275
7676
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
7276
7677
|
*/
|
|
7277
|
-
'ts/no-useless-default-assignment'?: Linter.RuleEntry<
|
|
7678
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<TsNoUselessDefaultAssignment>;
|
|
7278
7679
|
/**
|
|
7279
7680
|
* Disallow empty exports that don't change anything in a module file
|
|
7280
7681
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -7491,725 +7892,730 @@ interface RuleOptions {
|
|
|
7491
7892
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
7492
7893
|
/**
|
|
7493
7894
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
7494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
|
|
7495
7896
|
*/
|
|
7496
7897
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
7497
7898
|
/**
|
|
7498
7899
|
* Enforce a specific parameter name in catch clauses.
|
|
7499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
|
|
7500
7901
|
*/
|
|
7501
7902
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
7502
7903
|
/**
|
|
7503
7904
|
* Enforce consistent assertion style with `node:assert`.
|
|
7504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
|
|
7505
7906
|
*/
|
|
7506
7907
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
7507
7908
|
/**
|
|
7508
7909
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7910
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
|
|
7510
7911
|
*/
|
|
7511
7912
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
7512
7913
|
/**
|
|
7513
7914
|
* Use destructured variables over properties.
|
|
7514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
|
|
7515
7916
|
*/
|
|
7516
7917
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
7517
7918
|
/**
|
|
7518
7919
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
|
|
7520
7921
|
*/
|
|
7521
7922
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
7522
7923
|
/**
|
|
7523
7924
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
|
|
7525
7926
|
*/
|
|
7526
7927
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
7527
7928
|
/**
|
|
7528
7929
|
* Move function definitions to the highest possible scope.
|
|
7529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7930
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
|
|
7530
7931
|
*/
|
|
7531
7932
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
7532
7933
|
/**
|
|
7533
7934
|
* Enforce correct `Error` subclassing.
|
|
7534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7935
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
|
|
7535
7936
|
*/
|
|
7536
7937
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
7537
7938
|
/**
|
|
7538
7939
|
* Enforce no spaces between braces.
|
|
7539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
|
|
7540
7941
|
*/
|
|
7541
7942
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
7542
7943
|
/**
|
|
7543
7944
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
|
|
7545
7946
|
*/
|
|
7546
7947
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
7547
7948
|
/**
|
|
7548
7949
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
|
|
7550
7951
|
*/
|
|
7551
7952
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
7552
7953
|
/**
|
|
7553
7954
|
* Add expiration conditions to TODO comments.
|
|
7554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
|
|
7555
7956
|
*/
|
|
7556
7957
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
7557
7958
|
/**
|
|
7558
7959
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
|
|
7560
7961
|
*/
|
|
7561
7962
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
7562
7963
|
/**
|
|
7563
7964
|
* Enforce a case style for filenames.
|
|
7564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
|
|
7565
7966
|
*/
|
|
7566
7967
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
7567
7968
|
/**
|
|
7568
7969
|
* Enforce specific import styles per module.
|
|
7569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
|
|
7570
7971
|
*/
|
|
7571
7972
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
7973
|
+
/**
|
|
7974
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
7975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
|
|
7976
|
+
*/
|
|
7977
|
+
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
7572
7978
|
/**
|
|
7573
7979
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
7574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
|
|
7575
7981
|
*/
|
|
7576
7982
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
7577
7983
|
/**
|
|
7578
7984
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
7580
7986
|
*/
|
|
7581
7987
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
7582
7988
|
/**
|
|
7583
7989
|
* Disallow recursive access to `this` within getters and setters.
|
|
7584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
|
|
7585
7991
|
*/
|
|
7586
7992
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
7587
7993
|
/**
|
|
7588
7994
|
* Disallow anonymous functions and classes as the default export.
|
|
7589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
|
|
7590
7996
|
*/
|
|
7591
7997
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
7592
7998
|
/**
|
|
7593
7999
|
* Prevent passing a function reference directly to iterator methods.
|
|
7594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
|
|
7595
8001
|
*/
|
|
7596
8002
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
7597
8003
|
/**
|
|
7598
8004
|
* Prefer `for…of` over the `forEach` method.
|
|
7599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
|
|
7600
8006
|
*/
|
|
7601
8007
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
7602
8008
|
/**
|
|
7603
8009
|
* Disallow using the `this` argument in array methods.
|
|
7604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
|
|
7605
8011
|
*/
|
|
7606
8012
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
7607
8013
|
/**
|
|
7608
8014
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
7610
8016
|
* @deprecated
|
|
7611
8017
|
*/
|
|
7612
8018
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
7613
8019
|
/**
|
|
7614
8020
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
|
|
7616
8022
|
*/
|
|
7617
8023
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
7618
8024
|
/**
|
|
7619
8025
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
7620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
|
|
7621
8027
|
*/
|
|
7622
8028
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
7623
8029
|
/**
|
|
7624
8030
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
7625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
|
|
7626
8032
|
*/
|
|
7627
8033
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
7628
8034
|
/**
|
|
7629
8035
|
* Disallow member access from await expression.
|
|
7630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
|
|
7631
8037
|
*/
|
|
7632
8038
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
7633
8039
|
/**
|
|
7634
8040
|
* Disallow using `await` in `Promise` method parameters.
|
|
7635
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
|
|
7636
8042
|
*/
|
|
7637
8043
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7638
8044
|
/**
|
|
7639
8045
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
|
|
7641
8047
|
*/
|
|
7642
8048
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
7643
8049
|
/**
|
|
7644
8050
|
* Do not use `document.cookie` directly.
|
|
7645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
|
|
7646
8052
|
*/
|
|
7647
8053
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
7648
8054
|
/**
|
|
7649
8055
|
* Disallow empty files.
|
|
7650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
|
|
7651
8057
|
*/
|
|
7652
8058
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
7653
8059
|
/**
|
|
7654
8060
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
|
|
7656
8062
|
*/
|
|
7657
8063
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7658
8064
|
/**
|
|
7659
8065
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
7660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
|
|
7661
8067
|
*/
|
|
7662
8068
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7663
8069
|
/**
|
|
7664
8070
|
* Disallow immediate mutation after variable assignment.
|
|
7665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
|
|
7666
8072
|
*/
|
|
7667
8073
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
7668
8074
|
/**
|
|
7669
8075
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7671
8077
|
* @deprecated
|
|
7672
8078
|
*/
|
|
7673
8079
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7674
8080
|
/**
|
|
7675
8081
|
* Disallow `instanceof` with built-in objects
|
|
7676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
|
|
7677
8083
|
*/
|
|
7678
8084
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7679
8085
|
/**
|
|
7680
8086
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7682
8088
|
*/
|
|
7683
8089
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7684
8090
|
/**
|
|
7685
8091
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7687
8093
|
*/
|
|
7688
8094
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7689
8095
|
/**
|
|
7690
8096
|
* Disallow identifiers starting with `new` or `class`.
|
|
7691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
|
|
7692
8098
|
*/
|
|
7693
8099
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7694
8100
|
/**
|
|
7695
8101
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7697
8103
|
* @deprecated
|
|
7698
8104
|
*/
|
|
7699
8105
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7700
8106
|
/**
|
|
7701
8107
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
|
|
7703
8109
|
*/
|
|
7704
8110
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7705
8111
|
/**
|
|
7706
8112
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7708
8114
|
*/
|
|
7709
8115
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7710
8116
|
/**
|
|
7711
8117
|
* Disallow named usage of default import and export.
|
|
7712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
|
|
7713
8119
|
*/
|
|
7714
8120
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7715
8121
|
/**
|
|
7716
8122
|
* Disallow negated conditions.
|
|
7717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
|
|
7718
8124
|
*/
|
|
7719
8125
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7720
8126
|
/**
|
|
7721
8127
|
* Disallow negated expression in equality check.
|
|
7722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7723
8129
|
*/
|
|
7724
8130
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7725
8131
|
/**
|
|
7726
8132
|
* Disallow nested ternary expressions.
|
|
7727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
|
|
7728
8134
|
*/
|
|
7729
8135
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7730
8136
|
/**
|
|
7731
8137
|
* Disallow `new Array()`.
|
|
7732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
|
|
7733
8139
|
*/
|
|
7734
8140
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7735
8141
|
/**
|
|
7736
8142
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
|
|
7738
8144
|
*/
|
|
7739
8145
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7740
8146
|
/**
|
|
7741
8147
|
* Disallow the use of the `null` literal.
|
|
7742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
|
|
7743
8149
|
*/
|
|
7744
8150
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7745
8151
|
/**
|
|
7746
8152
|
* Disallow the use of objects as default parameters.
|
|
7747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7748
8154
|
*/
|
|
7749
8155
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7750
8156
|
/**
|
|
7751
8157
|
* Disallow `process.exit()`.
|
|
7752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
|
|
7753
8159
|
*/
|
|
7754
8160
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7755
8161
|
/**
|
|
7756
8162
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7758
8164
|
*/
|
|
7759
8165
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7760
8166
|
/**
|
|
7761
8167
|
* Disallow classes that only have static members.
|
|
7762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
|
|
7763
8169
|
*/
|
|
7764
8170
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7765
8171
|
/**
|
|
7766
8172
|
* Disallow `then` property.
|
|
7767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
|
|
7768
8174
|
*/
|
|
7769
8175
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7770
8176
|
/**
|
|
7771
8177
|
* Disallow assigning `this` to a variable.
|
|
7772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
|
|
7773
8179
|
*/
|
|
7774
8180
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7775
8181
|
/**
|
|
7776
8182
|
* Disallow comparing `undefined` using `typeof`.
|
|
7777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
|
|
7778
8184
|
*/
|
|
7779
8185
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7780
8186
|
/**
|
|
7781
8187
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7783
8189
|
*/
|
|
7784
8190
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7785
8191
|
/**
|
|
7786
8192
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7788
8194
|
*/
|
|
7789
8195
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7790
8196
|
/**
|
|
7791
8197
|
* Disallow awaiting non-promise values.
|
|
7792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
|
|
7793
8199
|
*/
|
|
7794
8200
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7795
8201
|
/**
|
|
7796
8202
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
7798
8204
|
*/
|
|
7799
8205
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7800
8206
|
/**
|
|
7801
8207
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
7803
8209
|
*/
|
|
7804
8210
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7805
8211
|
/**
|
|
7806
8212
|
* Disallow unreadable array destructuring.
|
|
7807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
7808
8214
|
*/
|
|
7809
8215
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
7810
8216
|
/**
|
|
7811
8217
|
* Disallow unreadable IIFEs.
|
|
7812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
|
|
7813
8219
|
*/
|
|
7814
8220
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
7815
8221
|
/**
|
|
7816
8222
|
* Disallow unused object properties.
|
|
7817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
|
|
7818
8224
|
*/
|
|
7819
8225
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
7820
8226
|
/**
|
|
7821
8227
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
7822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
|
|
7823
8229
|
*/
|
|
7824
8230
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
7825
8231
|
/**
|
|
7826
8232
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
7827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
7828
8234
|
*/
|
|
7829
8235
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
7830
8236
|
/**
|
|
7831
8237
|
* Disallow useless fallback when spreading in object literals.
|
|
7832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
7833
8239
|
*/
|
|
7834
8240
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
7835
8241
|
/**
|
|
7836
8242
|
* Disallow useless array length check.
|
|
7837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
|
|
7838
8244
|
*/
|
|
7839
8245
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
7840
8246
|
/**
|
|
7841
8247
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
7843
8249
|
*/
|
|
7844
8250
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
7845
8251
|
/**
|
|
7846
8252
|
* Disallow unnecessary spread.
|
|
7847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
|
|
7848
8254
|
*/
|
|
7849
8255
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
7850
8256
|
/**
|
|
7851
8257
|
* Disallow useless case in switch statements.
|
|
7852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
|
|
7853
8259
|
*/
|
|
7854
8260
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
7855
8261
|
/**
|
|
7856
8262
|
* Disallow useless `undefined`.
|
|
7857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
|
|
7858
8264
|
*/
|
|
7859
8265
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
7860
8266
|
/**
|
|
7861
8267
|
* Disallow number literals with zero fractions or dangling dots.
|
|
7862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
|
|
7863
8269
|
*/
|
|
7864
8270
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
7865
8271
|
/**
|
|
7866
8272
|
* Enforce proper case for numeric literals.
|
|
7867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
|
|
7868
8274
|
*/
|
|
7869
8275
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
7870
8276
|
/**
|
|
7871
8277
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
|
|
7873
8279
|
*/
|
|
7874
8280
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
7875
8281
|
/**
|
|
7876
8282
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
|
|
7878
8284
|
*/
|
|
7879
8285
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
7880
8286
|
/**
|
|
7881
8287
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
|
|
7883
8289
|
*/
|
|
7884
8290
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
7885
8291
|
/**
|
|
7886
8292
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
|
|
7888
8294
|
*/
|
|
7889
8295
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
7890
8296
|
/**
|
|
7891
8297
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
7892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
|
|
7893
8299
|
*/
|
|
7894
8300
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7895
8301
|
/**
|
|
7896
8302
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
7897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
|
|
7898
8304
|
*/
|
|
7899
8305
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
7900
8306
|
/**
|
|
7901
8307
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
|
|
7903
8309
|
*/
|
|
7904
8310
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
7905
8311
|
/**
|
|
7906
8312
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
|
|
7908
8314
|
*/
|
|
7909
8315
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
7910
8316
|
/**
|
|
7911
8317
|
* Prefer `BigInt` literals over the constructor.
|
|
7912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
|
|
7913
8319
|
*/
|
|
7914
8320
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
7915
8321
|
/**
|
|
7916
8322
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
7918
8324
|
*/
|
|
7919
8325
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
7920
8326
|
/**
|
|
7921
8327
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
7922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
|
|
7923
8329
|
*/
|
|
7924
8330
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
7925
8331
|
/**
|
|
7926
8332
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
7927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
|
|
7928
8334
|
*/
|
|
7929
8335
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
7930
8336
|
/**
|
|
7931
8337
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
|
|
7933
8339
|
*/
|
|
7934
8340
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
7935
8341
|
/**
|
|
7936
8342
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
|
|
7938
8344
|
*/
|
|
7939
8345
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
7940
8346
|
/**
|
|
7941
8347
|
* Prefer default parameters over reassignment.
|
|
7942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
|
|
7943
8349
|
*/
|
|
7944
8350
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
7945
8351
|
/**
|
|
7946
8352
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
7947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
|
|
7948
8354
|
*/
|
|
7949
8355
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
7950
8356
|
/**
|
|
7951
8357
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
7952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
7953
8359
|
*/
|
|
7954
8360
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
7955
8361
|
/**
|
|
7956
8362
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
|
|
7958
8364
|
*/
|
|
7959
8365
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
7960
8366
|
/**
|
|
7961
8367
|
* Prefer `.textContent` over `.innerText`.
|
|
7962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
7963
8369
|
*/
|
|
7964
8370
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
7965
8371
|
/**
|
|
7966
8372
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
|
|
7968
8374
|
*/
|
|
7969
8375
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
7970
8376
|
/**
|
|
7971
8377
|
* Prefer `export…from` when re-exporting.
|
|
7972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
|
|
7973
8379
|
*/
|
|
7974
8380
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
7975
8381
|
/**
|
|
7976
8382
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
|
|
7978
8384
|
*/
|
|
7979
8385
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
7980
8386
|
/**
|
|
7981
8387
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
7982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
|
|
7983
8389
|
*/
|
|
7984
8390
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
7985
8391
|
/**
|
|
7986
8392
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
7987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
|
|
7988
8394
|
*/
|
|
7989
8395
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
7990
8396
|
/**
|
|
7991
8397
|
* Prefer reading a JSON file as a buffer.
|
|
7992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
7993
8399
|
*/
|
|
7994
8400
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
7995
8401
|
/**
|
|
7996
8402
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
7997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
7998
8404
|
*/
|
|
7999
8405
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
8000
8406
|
/**
|
|
8001
8407
|
* Prefer using a logical operator over a ternary.
|
|
8002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
8003
8409
|
*/
|
|
8004
8410
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
8005
8411
|
/**
|
|
8006
8412
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
8007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
|
|
8008
8414
|
*/
|
|
8009
8415
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8010
8416
|
/**
|
|
8011
8417
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
8012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
|
|
8013
8419
|
*/
|
|
8014
8420
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
8015
8421
|
/**
|
|
8016
8422
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
8017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
8018
8424
|
*/
|
|
8019
8425
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
8020
8426
|
/**
|
|
8021
8427
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
8022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
|
|
8023
8429
|
*/
|
|
8024
8430
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
8025
8431
|
/**
|
|
8026
8432
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
8027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
|
|
8028
8434
|
*/
|
|
8029
8435
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
8030
8436
|
/**
|
|
8031
8437
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
8032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
8033
8439
|
*/
|
|
8034
8440
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
8035
8441
|
/**
|
|
8036
8442
|
* Prefer negative index over `.length - index` when possible.
|
|
8037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
|
|
8038
8444
|
*/
|
|
8039
8445
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
8040
8446
|
/**
|
|
8041
8447
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
8042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
|
|
8043
8449
|
*/
|
|
8044
8450
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
8045
8451
|
/**
|
|
8046
8452
|
* Prefer `Number` static properties over global ones.
|
|
8047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
|
|
8048
8454
|
*/
|
|
8049
8455
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
8050
8456
|
/**
|
|
8051
8457
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
8052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
|
|
8053
8459
|
*/
|
|
8054
8460
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
8055
8461
|
/**
|
|
8056
8462
|
* Prefer omitting the `catch` binding parameter.
|
|
8057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
8058
8464
|
*/
|
|
8059
8465
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
8060
8466
|
/**
|
|
8061
8467
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
8062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
|
|
8063
8469
|
*/
|
|
8064
8470
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
8065
8471
|
/**
|
|
8066
8472
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
8067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
|
|
8068
8474
|
*/
|
|
8069
8475
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
8070
8476
|
/**
|
|
8071
8477
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
8072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
|
|
8073
8479
|
*/
|
|
8074
8480
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
8075
8481
|
/**
|
|
8076
8482
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
8077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
|
|
8078
8484
|
*/
|
|
8079
8485
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
8080
8486
|
/**
|
|
8081
8487
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
8082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
|
|
8083
8489
|
*/
|
|
8084
8490
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
8085
8491
|
/**
|
|
8086
8492
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
8087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
|
|
8088
8494
|
*/
|
|
8089
8495
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
8090
8496
|
/**
|
|
8091
8497
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
8092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
|
|
8093
8499
|
*/
|
|
8094
8500
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
8095
8501
|
/**
|
|
8096
8502
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
8097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
|
|
8098
8504
|
*/
|
|
8099
8505
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
8100
8506
|
/**
|
|
8101
8507
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
8102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
|
|
8103
8509
|
*/
|
|
8104
8510
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
8105
8511
|
/**
|
|
8106
8512
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
8107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
|
|
8108
8514
|
*/
|
|
8109
8515
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
8110
8516
|
/**
|
|
8111
8517
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
8112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
|
|
8113
8519
|
*/
|
|
8114
8520
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
8115
8521
|
/**
|
|
8116
8522
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
8117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
|
|
8118
8524
|
*/
|
|
8119
8525
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
8120
8526
|
/**
|
|
8121
8527
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
8122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
8123
8529
|
*/
|
|
8124
8530
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
8125
8531
|
/**
|
|
8126
8532
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
8127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
8128
8534
|
*/
|
|
8129
8535
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
8130
8536
|
/**
|
|
8131
8537
|
* Prefer using `structuredClone` to create a deep clone.
|
|
8132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
|
|
8133
8539
|
*/
|
|
8134
8540
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
8135
8541
|
/**
|
|
8136
8542
|
* Prefer `switch` over multiple `else-if`.
|
|
8137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
|
|
8138
8544
|
*/
|
|
8139
8545
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
8140
8546
|
/**
|
|
8141
8547
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
8142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
|
|
8143
8549
|
*/
|
|
8144
8550
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
8145
8551
|
/**
|
|
8146
8552
|
* Prefer top-level await over top-level promises and async function calls.
|
|
8147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
|
|
8148
8554
|
*/
|
|
8149
8555
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
8150
8556
|
/**
|
|
8151
8557
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
8152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
|
|
8153
8559
|
*/
|
|
8154
8560
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
8155
8561
|
/**
|
|
8156
8562
|
* Prevent abbreviations.
|
|
8157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
|
|
8158
8564
|
*/
|
|
8159
8565
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
8160
8566
|
/**
|
|
8161
8567
|
* Enforce consistent relative URL style.
|
|
8162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
|
|
8163
8569
|
*/
|
|
8164
8570
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
8165
8571
|
/**
|
|
8166
8572
|
* Enforce using the separator argument with `Array#join()`.
|
|
8167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
|
|
8168
8574
|
*/
|
|
8169
8575
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
8170
8576
|
/**
|
|
8171
8577
|
* Require non-empty module attributes for imports and exports
|
|
8172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
|
|
8173
8579
|
*/
|
|
8174
8580
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
8175
8581
|
/**
|
|
8176
8582
|
* Require non-empty specifier list in import and export statements.
|
|
8177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
|
|
8178
8584
|
*/
|
|
8179
8585
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
8180
8586
|
/**
|
|
8181
8587
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
8182
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
8183
8589
|
*/
|
|
8184
8590
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
8185
8591
|
/**
|
|
8186
8592
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
8187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
|
|
8188
8594
|
*/
|
|
8189
8595
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
8190
8596
|
/**
|
|
8191
8597
|
* Enforce better string content.
|
|
8192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
|
|
8193
8599
|
*/
|
|
8194
8600
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
8195
8601
|
/**
|
|
8196
8602
|
* Enforce consistent brace style for `case` clauses.
|
|
8197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
|
|
8198
8604
|
*/
|
|
8199
8605
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
8200
8606
|
/**
|
|
8201
8607
|
* Fix whitespace-insensitive template indentation.
|
|
8202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
|
|
8203
8609
|
*/
|
|
8204
8610
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
8205
8611
|
/**
|
|
8206
8612
|
* Enforce consistent case for text encoding identifiers.
|
|
8207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
|
|
8208
8614
|
*/
|
|
8209
8615
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
8210
8616
|
/**
|
|
8211
8617
|
* Require `new` when creating an error.
|
|
8212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
|
|
8213
8619
|
*/
|
|
8214
8620
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
8215
8621
|
/**
|
|
@@ -8257,6 +8663,99 @@ interface RuleOptions {
|
|
|
8257
8663
|
* @see https://eslint.org/docs/latest/rules/vars-on-top
|
|
8258
8664
|
*/
|
|
8259
8665
|
'vars-on-top'?: Linter.RuleEntry<[]>;
|
|
8666
|
+
/**
|
|
8667
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/alt-text.html
|
|
8668
|
+
*/
|
|
8669
|
+
'vue-a11y/alt-text'?: Linter.RuleEntry<VueA11YAltText>;
|
|
8670
|
+
/**
|
|
8671
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/anchor-has-content.html
|
|
8672
|
+
*/
|
|
8673
|
+
'vue-a11y/anchor-has-content'?: Linter.RuleEntry<VueA11YAnchorHasContent>;
|
|
8674
|
+
/**
|
|
8675
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/aria-props.html
|
|
8676
|
+
*/
|
|
8677
|
+
'vue-a11y/aria-props'?: Linter.RuleEntry<[]>;
|
|
8678
|
+
/**
|
|
8679
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/aria-role.html
|
|
8680
|
+
*/
|
|
8681
|
+
'vue-a11y/aria-role'?: Linter.RuleEntry<VueA11YAriaRole>;
|
|
8682
|
+
/**
|
|
8683
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/aria-unsupported-elements.html
|
|
8684
|
+
*/
|
|
8685
|
+
'vue-a11y/aria-unsupported-elements'?: Linter.RuleEntry<[]>;
|
|
8686
|
+
/**
|
|
8687
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/click-events-have-key-events.html
|
|
8688
|
+
*/
|
|
8689
|
+
'vue-a11y/click-events-have-key-events'?: Linter.RuleEntry<[]>;
|
|
8690
|
+
/**
|
|
8691
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/form-control-has-label.html
|
|
8692
|
+
*/
|
|
8693
|
+
'vue-a11y/form-control-has-label'?: Linter.RuleEntry<VueA11YFormControlHasLabel>;
|
|
8694
|
+
/**
|
|
8695
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/heading-has-content.html
|
|
8696
|
+
*/
|
|
8697
|
+
'vue-a11y/heading-has-content'?: Linter.RuleEntry<VueA11YHeadingHasContent>;
|
|
8698
|
+
/**
|
|
8699
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/iframe-has-title.html
|
|
8700
|
+
*/
|
|
8701
|
+
'vue-a11y/iframe-has-title'?: Linter.RuleEntry<[]>;
|
|
8702
|
+
/**
|
|
8703
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/interactive-supports-focus.html
|
|
8704
|
+
*/
|
|
8705
|
+
'vue-a11y/interactive-supports-focus'?: Linter.RuleEntry<VueA11YInteractiveSupportsFocus>;
|
|
8706
|
+
/**
|
|
8707
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/label-has-for.html
|
|
8708
|
+
*/
|
|
8709
|
+
'vue-a11y/label-has-for'?: Linter.RuleEntry<VueA11YLabelHasFor>;
|
|
8710
|
+
/**
|
|
8711
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/media-has-caption.html
|
|
8712
|
+
*/
|
|
8713
|
+
'vue-a11y/media-has-caption'?: Linter.RuleEntry<VueA11YMediaHasCaption>;
|
|
8714
|
+
/**
|
|
8715
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/mouse-events-have-key-events.html
|
|
8716
|
+
*/
|
|
8717
|
+
'vue-a11y/mouse-events-have-key-events'?: Linter.RuleEntry<[]>;
|
|
8718
|
+
/**
|
|
8719
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-access-key.html
|
|
8720
|
+
*/
|
|
8721
|
+
'vue-a11y/no-access-key'?: Linter.RuleEntry<[]>;
|
|
8722
|
+
/**
|
|
8723
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-aria-hidden-on-focusable.html
|
|
8724
|
+
*/
|
|
8725
|
+
'vue-a11y/no-aria-hidden-on-focusable'?: Linter.RuleEntry<[]>;
|
|
8726
|
+
/**
|
|
8727
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-autofocus.html
|
|
8728
|
+
*/
|
|
8729
|
+
'vue-a11y/no-autofocus'?: Linter.RuleEntry<VueA11YNoAutofocus>;
|
|
8730
|
+
/**
|
|
8731
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-distracting-elements.html
|
|
8732
|
+
*/
|
|
8733
|
+
'vue-a11y/no-distracting-elements'?: Linter.RuleEntry<VueA11YNoDistractingElements>;
|
|
8734
|
+
/**
|
|
8735
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-onchange.html
|
|
8736
|
+
* @deprecated
|
|
8737
|
+
*/
|
|
8738
|
+
'vue-a11y/no-onchange'?: Linter.RuleEntry<[]>;
|
|
8739
|
+
/**
|
|
8740
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-redundant-roles.html
|
|
8741
|
+
*/
|
|
8742
|
+
'vue-a11y/no-redundant-roles'?: Linter.RuleEntry<VueA11YNoRedundantRoles>;
|
|
8743
|
+
/**
|
|
8744
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-role-presentation-on-focusable.html
|
|
8745
|
+
*/
|
|
8746
|
+
'vue-a11y/no-role-presentation-on-focusable'?: Linter.RuleEntry<[]>;
|
|
8747
|
+
/**
|
|
8748
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/no-static-element-interactions.html
|
|
8749
|
+
*/
|
|
8750
|
+
'vue-a11y/no-static-element-interactions'?: Linter.RuleEntry<[]>;
|
|
8751
|
+
/**
|
|
8752
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/role-has-required-aria-props.html
|
|
8753
|
+
*/
|
|
8754
|
+
'vue-a11y/role-has-required-aria-props'?: Linter.RuleEntry<[]>;
|
|
8755
|
+
/**
|
|
8756
|
+
* @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/rules/tabindex-no-positive.html
|
|
8757
|
+
*/
|
|
8758
|
+
'vue-a11y/tabindex-no-positive'?: Linter.RuleEntry<[]>;
|
|
8260
8759
|
/**
|
|
8261
8760
|
* Enforce linebreaks after opening and before closing array brackets in `<template>`
|
|
8262
8761
|
* @see https://eslint.vuejs.org/rules/array-bracket-newline.html
|
|
@@ -8762,6 +9261,11 @@ interface RuleOptions {
|
|
|
8762
9261
|
* @see https://eslint.vuejs.org/rules/no-lifecycle-after-await.html
|
|
8763
9262
|
*/
|
|
8764
9263
|
'vue/no-lifecycle-after-await'?: Linter.RuleEntry<[]>;
|
|
9264
|
+
/**
|
|
9265
|
+
* disallow object, array, and function literals in template
|
|
9266
|
+
* @see https://eslint.vuejs.org/rules/no-literals-in-template.html
|
|
9267
|
+
*/
|
|
9268
|
+
'vue/no-literals-in-template'?: Linter.RuleEntry<[]>;
|
|
8765
9269
|
/**
|
|
8766
9270
|
* disallow unnecessary `<template>`
|
|
8767
9271
|
* @see https://eslint.vuejs.org/rules/no-lone-template.html
|
|
@@ -8972,6 +9476,11 @@ interface RuleOptions {
|
|
|
8972
9476
|
* @see https://eslint.vuejs.org/rules/no-undef-components.html
|
|
8973
9477
|
*/
|
|
8974
9478
|
'vue/no-undef-components'?: Linter.RuleEntry<VueNoUndefComponents>;
|
|
9479
|
+
/**
|
|
9480
|
+
* disallow use of undefined custom directives
|
|
9481
|
+
* @see https://eslint.vuejs.org/rules/no-undef-directives.html
|
|
9482
|
+
*/
|
|
9483
|
+
'vue/no-undef-directives'?: Linter.RuleEntry<VueNoUndefDirectives>;
|
|
8975
9484
|
/**
|
|
8976
9485
|
* disallow undefined properties
|
|
8977
9486
|
* @see https://eslint.vuejs.org/rules/no-undef-properties.html
|
|
@@ -9445,7 +9954,7 @@ interface RuleOptions {
|
|
|
9445
9954
|
* enforce valid `v-for` directives
|
|
9446
9955
|
* @see https://eslint.vuejs.org/rules/valid-v-for.html
|
|
9447
9956
|
*/
|
|
9448
|
-
'vue/valid-v-for'?: Linter.RuleEntry<
|
|
9957
|
+
'vue/valid-v-for'?: Linter.RuleEntry<VueValidVFor>;
|
|
9449
9958
|
/**
|
|
9450
9959
|
* enforce valid `v-html` directives
|
|
9451
9960
|
* @see https://eslint.vuejs.org/rules/valid-v-html.html
|
|
@@ -9686,6 +10195,7 @@ type AntfuConsistentListNewline = [] | [{
|
|
|
9686
10195
|
ExportNamedDeclaration?: boolean;
|
|
9687
10196
|
FunctionDeclaration?: boolean;
|
|
9688
10197
|
FunctionExpression?: boolean;
|
|
10198
|
+
IfStatement?: boolean;
|
|
9689
10199
|
ImportDeclaration?: boolean;
|
|
9690
10200
|
JSONArrayExpression?: boolean;
|
|
9691
10201
|
JSONObjectExpression?: boolean;
|
|
@@ -10069,9 +10579,13 @@ type FormatDprint = [] | [{
|
|
|
10069
10579
|
plugins?: unknown[];
|
|
10070
10580
|
[k: string]: unknown | undefined;
|
|
10071
10581
|
}];
|
|
10582
|
+
// ----- format/oxfmt -----
|
|
10583
|
+
type FormatOxfmt = [] | [{
|
|
10584
|
+
[k: string]: unknown | undefined;
|
|
10585
|
+
}];
|
|
10072
10586
|
// ----- format/prettier -----
|
|
10073
10587
|
type FormatPrettier = [] | [{
|
|
10074
|
-
parser
|
|
10588
|
+
parser: string;
|
|
10075
10589
|
[k: string]: unknown | undefined;
|
|
10076
10590
|
}];
|
|
10077
10591
|
// ----- func-call-spacing -----
|
|
@@ -10723,6 +11237,7 @@ type JsdocTagLines = [] | [("always" | "any" | "never")] | [("always" | "any" |
|
|
|
10723
11237
|
endLines?: (number | null);
|
|
10724
11238
|
maxBlockLines?: (number | null);
|
|
10725
11239
|
startLines?: (number | null);
|
|
11240
|
+
startLinesWithNoTags?: number;
|
|
10726
11241
|
tags?: {
|
|
10727
11242
|
[k: string]: {
|
|
10728
11243
|
count?: number;
|
|
@@ -10770,11 +11285,13 @@ type JsdocTypeFormatting = [] | [{
|
|
|
10770
11285
|
objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak");
|
|
10771
11286
|
objectFieldSeparatorOptionalLinebreak?: boolean;
|
|
10772
11287
|
objectFieldSeparatorTrailingPunctuation?: boolean;
|
|
11288
|
+
objectTypeBracketSpacing?: string;
|
|
10773
11289
|
parameterDefaultValueSpacing?: string;
|
|
10774
11290
|
postMethodNameSpacing?: string;
|
|
10775
11291
|
postNewSpacing?: string;
|
|
10776
11292
|
separatorForSingleObjectField?: boolean;
|
|
10777
11293
|
stringQuotes?: ("double" | "single");
|
|
11294
|
+
trailingPunctuationMultilineOnly?: boolean;
|
|
10778
11295
|
typeBracketSpacing?: string;
|
|
10779
11296
|
unionSpacing?: string;
|
|
10780
11297
|
}];
|
|
@@ -10949,6 +11466,7 @@ type JsoncObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
10949
11466
|
type JsoncObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
10950
11467
|
arraysInObjects?: boolean;
|
|
10951
11468
|
objectsInObjects?: boolean;
|
|
11469
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
10952
11470
|
}];
|
|
10953
11471
|
// ----- jsonc/object-property-newline -----
|
|
10954
11472
|
type JsoncObjectPropertyNewline = [] | [{
|
|
@@ -11047,6 +11565,209 @@ type JsoncSpaceUnaryOps = [] | [{
|
|
|
11047
11565
|
[k: string]: boolean | undefined;
|
|
11048
11566
|
};
|
|
11049
11567
|
}];
|
|
11568
|
+
// ----- jsx-a11y/accessible-emoji -----
|
|
11569
|
+
type JsxA11YAccessibleEmoji = [] | [{
|
|
11570
|
+
[k: string]: unknown | undefined;
|
|
11571
|
+
}];
|
|
11572
|
+
// ----- jsx-a11y/alt-text -----
|
|
11573
|
+
type JsxA11YAltText = [] | [{
|
|
11574
|
+
elements?: string[];
|
|
11575
|
+
img?: string[];
|
|
11576
|
+
object?: string[];
|
|
11577
|
+
area?: string[];
|
|
11578
|
+
"input[type=\"image\"]"?: string[];
|
|
11579
|
+
[k: string]: unknown | undefined;
|
|
11580
|
+
}];
|
|
11581
|
+
// ----- jsx-a11y/anchor-ambiguous-text -----
|
|
11582
|
+
type JsxA11YAnchorAmbiguousText = [] | [{
|
|
11583
|
+
words?: string[];
|
|
11584
|
+
[k: string]: unknown | undefined;
|
|
11585
|
+
}];
|
|
11586
|
+
// ----- jsx-a11y/anchor-has-content -----
|
|
11587
|
+
type JsxA11YAnchorHasContent = [] | [{
|
|
11588
|
+
components?: string[];
|
|
11589
|
+
[k: string]: unknown | undefined;
|
|
11590
|
+
}];
|
|
11591
|
+
// ----- jsx-a11y/anchor-is-valid -----
|
|
11592
|
+
type JsxA11YAnchorIsValid = [] | [{
|
|
11593
|
+
components?: string[];
|
|
11594
|
+
specialLink?: string[];
|
|
11595
|
+
aspects?: [("noHref" | "invalidHref" | "preferButton"), ...(("noHref" | "invalidHref" | "preferButton"))[]];
|
|
11596
|
+
[k: string]: unknown | undefined;
|
|
11597
|
+
}];
|
|
11598
|
+
// ----- jsx-a11y/aria-activedescendant-has-tabindex -----
|
|
11599
|
+
type JsxA11YAriaActivedescendantHasTabindex = [] | [{
|
|
11600
|
+
[k: string]: unknown | undefined;
|
|
11601
|
+
}];
|
|
11602
|
+
// ----- jsx-a11y/aria-props -----
|
|
11603
|
+
type JsxA11YAriaProps = [] | [{
|
|
11604
|
+
[k: string]: unknown | undefined;
|
|
11605
|
+
}];
|
|
11606
|
+
// ----- jsx-a11y/aria-proptypes -----
|
|
11607
|
+
type JsxA11YAriaProptypes = [] | [{
|
|
11608
|
+
[k: string]: unknown | undefined;
|
|
11609
|
+
}];
|
|
11610
|
+
// ----- jsx-a11y/aria-role -----
|
|
11611
|
+
type JsxA11YAriaRole = [] | [{
|
|
11612
|
+
allowedInvalidRoles?: string[];
|
|
11613
|
+
ignoreNonDOM?: boolean;
|
|
11614
|
+
[k: string]: unknown | undefined;
|
|
11615
|
+
}];
|
|
11616
|
+
// ----- jsx-a11y/aria-unsupported-elements -----
|
|
11617
|
+
type JsxA11YAriaUnsupportedElements = [] | [{
|
|
11618
|
+
[k: string]: unknown | undefined;
|
|
11619
|
+
}];
|
|
11620
|
+
// ----- jsx-a11y/autocomplete-valid -----
|
|
11621
|
+
type JsxA11YAutocompleteValid = [] | [{
|
|
11622
|
+
inputComponents?: string[];
|
|
11623
|
+
[k: string]: unknown | undefined;
|
|
11624
|
+
}];
|
|
11625
|
+
// ----- jsx-a11y/click-events-have-key-events -----
|
|
11626
|
+
type JsxA11YClickEventsHaveKeyEvents = [] | [{
|
|
11627
|
+
[k: string]: unknown | undefined;
|
|
11628
|
+
}];
|
|
11629
|
+
// ----- jsx-a11y/control-has-associated-label -----
|
|
11630
|
+
type JsxA11YControlHasAssociatedLabel = [] | [{
|
|
11631
|
+
labelAttributes?: string[];
|
|
11632
|
+
controlComponents?: string[];
|
|
11633
|
+
ignoreElements?: string[];
|
|
11634
|
+
ignoreRoles?: string[];
|
|
11635
|
+
depth?: number;
|
|
11636
|
+
[k: string]: unknown | undefined;
|
|
11637
|
+
}];
|
|
11638
|
+
// ----- jsx-a11y/heading-has-content -----
|
|
11639
|
+
type JsxA11YHeadingHasContent = [] | [{
|
|
11640
|
+
components?: string[];
|
|
11641
|
+
[k: string]: unknown | undefined;
|
|
11642
|
+
}];
|
|
11643
|
+
// ----- jsx-a11y/html-has-lang -----
|
|
11644
|
+
type JsxA11YHtmlHasLang = [] | [{
|
|
11645
|
+
[k: string]: unknown | undefined;
|
|
11646
|
+
}];
|
|
11647
|
+
// ----- jsx-a11y/iframe-has-title -----
|
|
11648
|
+
type JsxA11YIframeHasTitle = [] | [{
|
|
11649
|
+
[k: string]: unknown | undefined;
|
|
11650
|
+
}];
|
|
11651
|
+
// ----- jsx-a11y/img-redundant-alt -----
|
|
11652
|
+
type JsxA11YImgRedundantAlt = [] | [{
|
|
11653
|
+
components?: string[];
|
|
11654
|
+
words?: string[];
|
|
11655
|
+
[k: string]: unknown | undefined;
|
|
11656
|
+
}];
|
|
11657
|
+
// ----- jsx-a11y/interactive-supports-focus -----
|
|
11658
|
+
type JsxA11YInteractiveSupportsFocus = [] | [{
|
|
11659
|
+
tabbable?: ("button" | "checkbox" | "columnheader" | "combobox" | "grid" | "gridcell" | "link" | "listbox" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "radiogroup" | "row" | "rowheader" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tablist" | "textbox" | "tree" | "treegrid" | "treeitem" | "doc-backlink" | "doc-biblioref" | "doc-glossref" | "doc-noteref")[];
|
|
11660
|
+
[k: string]: unknown | undefined;
|
|
11661
|
+
}];
|
|
11662
|
+
// ----- jsx-a11y/label-has-associated-control -----
|
|
11663
|
+
type JsxA11YLabelHasAssociatedControl = [] | [{
|
|
11664
|
+
labelComponents?: string[];
|
|
11665
|
+
labelAttributes?: string[];
|
|
11666
|
+
controlComponents?: string[];
|
|
11667
|
+
assert?: ("htmlFor" | "nesting" | "both" | "either");
|
|
11668
|
+
depth?: number;
|
|
11669
|
+
[k: string]: unknown | undefined;
|
|
11670
|
+
}];
|
|
11671
|
+
// ----- jsx-a11y/label-has-for -----
|
|
11672
|
+
type JsxA11YLabelHasFor = [] | [{
|
|
11673
|
+
components?: string[];
|
|
11674
|
+
required?: (("nesting" | "id") | {
|
|
11675
|
+
some: ("nesting" | "id")[];
|
|
11676
|
+
[k: string]: unknown | undefined;
|
|
11677
|
+
} | {
|
|
11678
|
+
every: ("nesting" | "id")[];
|
|
11679
|
+
[k: string]: unknown | undefined;
|
|
11680
|
+
});
|
|
11681
|
+
allowChildren?: boolean;
|
|
11682
|
+
[k: string]: unknown | undefined;
|
|
11683
|
+
}];
|
|
11684
|
+
// ----- jsx-a11y/lang -----
|
|
11685
|
+
type JsxA11YLang = [] | [{
|
|
11686
|
+
[k: string]: unknown | undefined;
|
|
11687
|
+
}];
|
|
11688
|
+
// ----- jsx-a11y/media-has-caption -----
|
|
11689
|
+
type JsxA11YMediaHasCaption = [] | [{
|
|
11690
|
+
audio?: string[];
|
|
11691
|
+
video?: string[];
|
|
11692
|
+
track?: string[];
|
|
11693
|
+
[k: string]: unknown | undefined;
|
|
11694
|
+
}];
|
|
11695
|
+
// ----- jsx-a11y/mouse-events-have-key-events -----
|
|
11696
|
+
type JsxA11YMouseEventsHaveKeyEvents = [] | [{
|
|
11697
|
+
hoverInHandlers?: string[];
|
|
11698
|
+
hoverOutHandlers?: string[];
|
|
11699
|
+
[k: string]: unknown | undefined;
|
|
11700
|
+
}];
|
|
11701
|
+
// ----- jsx-a11y/no-access-key -----
|
|
11702
|
+
type JsxA11YNoAccessKey = [] | [{
|
|
11703
|
+
[k: string]: unknown | undefined;
|
|
11704
|
+
}];
|
|
11705
|
+
// ----- jsx-a11y/no-aria-hidden-on-focusable -----
|
|
11706
|
+
type JsxA11YNoAriaHiddenOnFocusable = [] | [{
|
|
11707
|
+
[k: string]: unknown | undefined;
|
|
11708
|
+
}];
|
|
11709
|
+
// ----- jsx-a11y/no-autofocus -----
|
|
11710
|
+
type JsxA11YNoAutofocus = [] | [{
|
|
11711
|
+
ignoreNonDOM?: boolean;
|
|
11712
|
+
[k: string]: unknown | undefined;
|
|
11713
|
+
}];
|
|
11714
|
+
// ----- jsx-a11y/no-distracting-elements -----
|
|
11715
|
+
type JsxA11YNoDistractingElements = [] | [{
|
|
11716
|
+
elements?: ("marquee" | "blink")[];
|
|
11717
|
+
[k: string]: unknown | undefined;
|
|
11718
|
+
}];
|
|
11719
|
+
// ----- jsx-a11y/no-interactive-element-to-noninteractive-role -----
|
|
11720
|
+
type JsxA11YNoInteractiveElementToNoninteractiveRole = [] | [{
|
|
11721
|
+
[k: string]: string[] | undefined;
|
|
11722
|
+
}];
|
|
11723
|
+
// ----- jsx-a11y/no-noninteractive-element-interactions -----
|
|
11724
|
+
type JsxA11YNoNoninteractiveElementInteractions = [] | [{
|
|
11725
|
+
handlers?: string[];
|
|
11726
|
+
[k: string]: unknown | undefined;
|
|
11727
|
+
}];
|
|
11728
|
+
// ----- jsx-a11y/no-noninteractive-element-to-interactive-role -----
|
|
11729
|
+
type JsxA11YNoNoninteractiveElementToInteractiveRole = [] | [{
|
|
11730
|
+
[k: string]: string[] | undefined;
|
|
11731
|
+
}];
|
|
11732
|
+
// ----- jsx-a11y/no-noninteractive-tabindex -----
|
|
11733
|
+
type JsxA11YNoNoninteractiveTabindex = [] | [{
|
|
11734
|
+
roles?: string[];
|
|
11735
|
+
tags?: string[];
|
|
11736
|
+
[k: string]: unknown | undefined;
|
|
11737
|
+
}];
|
|
11738
|
+
// ----- jsx-a11y/no-onchange -----
|
|
11739
|
+
type JsxA11YNoOnchange = [] | [{
|
|
11740
|
+
[k: string]: unknown | undefined;
|
|
11741
|
+
}];
|
|
11742
|
+
// ----- jsx-a11y/no-redundant-roles -----
|
|
11743
|
+
type JsxA11YNoRedundantRoles = [] | [{
|
|
11744
|
+
[k: string]: string[] | undefined;
|
|
11745
|
+
}];
|
|
11746
|
+
// ----- jsx-a11y/no-static-element-interactions -----
|
|
11747
|
+
type JsxA11YNoStaticElementInteractions = [] | [{
|
|
11748
|
+
handlers?: string[];
|
|
11749
|
+
[k: string]: unknown | undefined;
|
|
11750
|
+
}];
|
|
11751
|
+
// ----- jsx-a11y/prefer-tag-over-role -----
|
|
11752
|
+
type JsxA11YPreferTagOverRole = [] | [{
|
|
11753
|
+
[k: string]: unknown | undefined;
|
|
11754
|
+
}];
|
|
11755
|
+
// ----- jsx-a11y/role-has-required-aria-props -----
|
|
11756
|
+
type JsxA11YRoleHasRequiredAriaProps = [] | [{
|
|
11757
|
+
[k: string]: unknown | undefined;
|
|
11758
|
+
}];
|
|
11759
|
+
// ----- jsx-a11y/role-supports-aria-props -----
|
|
11760
|
+
type JsxA11YRoleSupportsAriaProps = [] | [{
|
|
11761
|
+
[k: string]: unknown | undefined;
|
|
11762
|
+
}];
|
|
11763
|
+
// ----- jsx-a11y/scope -----
|
|
11764
|
+
type JsxA11YScope = [] | [{
|
|
11765
|
+
[k: string]: unknown | undefined;
|
|
11766
|
+
}];
|
|
11767
|
+
// ----- jsx-a11y/tabindex-no-positive -----
|
|
11768
|
+
type JsxA11YTabindexNoPositive = [] | [{
|
|
11769
|
+
[k: string]: unknown | undefined;
|
|
11770
|
+
}];
|
|
11050
11771
|
// ----- jsx-quotes -----
|
|
11051
11772
|
type JsxQuotes = [] | [("prefer-single" | "prefer-double")];
|
|
11052
11773
|
// ----- key-spacing -----
|
|
@@ -11593,6 +12314,7 @@ type MaxParams = [] | [(number | {
|
|
|
11593
12314
|
maximum?: number;
|
|
11594
12315
|
max?: number;
|
|
11595
12316
|
countVoidThis?: boolean;
|
|
12317
|
+
countThis?: ("never" | "except-void" | "always");
|
|
11596
12318
|
})];
|
|
11597
12319
|
// ----- max-statements -----
|
|
11598
12320
|
type MaxStatements = [] | [(number | {
|
|
@@ -11632,6 +12354,8 @@ type NewlineAfterVar = [] | [("never" | "always")];
|
|
|
11632
12354
|
type NewlinePerChainedCall = [] | [{
|
|
11633
12355
|
ignoreChainWithDepth?: number;
|
|
11634
12356
|
}];
|
|
12357
|
+
// ----- next/no-html-link-for-pages -----
|
|
12358
|
+
type NextNoHtmlLinkForPages = [] | [(string | string[])];
|
|
11635
12359
|
// ----- no-bitwise -----
|
|
11636
12360
|
type NoBitwise = [] | [{
|
|
11637
12361
|
allow?: ("^" | "|" | "&" | "<<" | ">>" | ">>>" | "^=" | "|=" | "&=" | "<<=" | ">>=" | ">>>=" | "~")[];
|
|
@@ -12249,12 +12973,16 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
|
12249
12973
|
type NodePreferGlobalBuffer = [] | [("always" | "never")];
|
|
12250
12974
|
// ----- node/prefer-global/console -----
|
|
12251
12975
|
type NodePreferGlobalConsole = [] | [("always" | "never")];
|
|
12976
|
+
// ----- node/prefer-global/crypto -----
|
|
12977
|
+
type NodePreferGlobalCrypto = [] | [("always" | "never")];
|
|
12252
12978
|
// ----- node/prefer-global/process -----
|
|
12253
12979
|
type NodePreferGlobalProcess = [] | [("always" | "never")];
|
|
12254
12980
|
// ----- node/prefer-global/text-decoder -----
|
|
12255
12981
|
type NodePreferGlobalTextDecoder = [] | [("always" | "never")];
|
|
12256
12982
|
// ----- node/prefer-global/text-encoder -----
|
|
12257
12983
|
type NodePreferGlobalTextEncoder = [] | [("always" | "never")];
|
|
12984
|
+
// ----- node/prefer-global/timers -----
|
|
12985
|
+
type NodePreferGlobalTimers = [] | [("always" | "never")];
|
|
12258
12986
|
// ----- node/prefer-global/url -----
|
|
12259
12987
|
type NodePreferGlobalUrl = [] | [("always" | "never")];
|
|
12260
12988
|
// ----- node/prefer-global/url-search-params -----
|
|
@@ -12409,7 +13137,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12409
13137
|
pattern: string;
|
|
12410
13138
|
flags?: string;
|
|
12411
13139
|
} | string));
|
|
12412
|
-
selector?:
|
|
13140
|
+
selector?: "literal";
|
|
12413
13141
|
}, ...({
|
|
12414
13142
|
elementNamePattern?: (({
|
|
12415
13143
|
pattern: string;
|
|
@@ -12418,7 +13146,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12418
13146
|
pattern: string;
|
|
12419
13147
|
flags?: string;
|
|
12420
13148
|
} | string));
|
|
12421
|
-
selector?:
|
|
13149
|
+
selector?: "literal";
|
|
12422
13150
|
})[]];
|
|
12423
13151
|
} | {
|
|
12424
13152
|
fallbackSort?: {
|
|
@@ -12436,7 +13164,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12436
13164
|
pattern: string;
|
|
12437
13165
|
flags?: string;
|
|
12438
13166
|
} | string));
|
|
12439
|
-
selector?:
|
|
13167
|
+
selector?: "literal";
|
|
12440
13168
|
})[];
|
|
12441
13169
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12442
13170
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -12604,6 +13332,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
12604
13332
|
order?: ("asc" | "desc");
|
|
12605
13333
|
})[];
|
|
12606
13334
|
newlinesBetween?: ("ignore" | number);
|
|
13335
|
+
useExperimentalDependencyDetection?: boolean;
|
|
12607
13336
|
ignoreCallbackDependenciesPatterns?: (({
|
|
12608
13337
|
pattern: string;
|
|
12609
13338
|
flags?: string;
|
|
@@ -12826,6 +13555,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
12826
13555
|
})[];
|
|
12827
13556
|
newlinesBetween?: ("ignore" | number);
|
|
12828
13557
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
13558
|
+
useExperimentalDependencyDetection?: boolean;
|
|
12829
13559
|
partitionByComment?: (boolean | (({
|
|
12830
13560
|
pattern: string;
|
|
12831
13561
|
flags?: string;
|
|
@@ -13323,6 +14053,7 @@ type PerfectionistSortImports = {
|
|
|
13323
14053
|
maxLineLength?: number;
|
|
13324
14054
|
sortSideEffects?: boolean;
|
|
13325
14055
|
environment?: ("node" | "bun");
|
|
14056
|
+
useExperimentalDependencyDetection?: boolean;
|
|
13326
14057
|
partitionByComment?: (boolean | (({
|
|
13327
14058
|
pattern: string;
|
|
13328
14059
|
flags?: string;
|
|
@@ -13923,6 +14654,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
13923
14654
|
order?: ("asc" | "desc");
|
|
13924
14655
|
})[];
|
|
13925
14656
|
newlinesBetween?: ("ignore" | number);
|
|
14657
|
+
useExperimentalDependencyDetection?: boolean;
|
|
13926
14658
|
partitionByComment?: (boolean | (({
|
|
13927
14659
|
pattern: string;
|
|
13928
14660
|
flags?: string;
|
|
@@ -14311,6 +15043,7 @@ type PerfectionistSortObjects = {
|
|
|
14311
15043
|
fallbackSort?: {
|
|
14312
15044
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14313
15045
|
order?: ("asc" | "desc");
|
|
15046
|
+
sortBy?: ("name" | "value");
|
|
14314
15047
|
};
|
|
14315
15048
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14316
15049
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
@@ -14318,15 +15051,18 @@ type PerfectionistSortObjects = {
|
|
|
14318
15051
|
alphabet?: string;
|
|
14319
15052
|
locales?: (string | string[]);
|
|
14320
15053
|
order?: ("asc" | "desc");
|
|
15054
|
+
sortBy?: ("name" | "value");
|
|
14321
15055
|
customGroups?: ({
|
|
14322
15056
|
fallbackSort?: {
|
|
14323
15057
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14324
15058
|
order?: ("asc" | "desc");
|
|
15059
|
+
sortBy?: ("name" | "value");
|
|
14325
15060
|
};
|
|
14326
15061
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14327
15062
|
groupName: string;
|
|
14328
15063
|
newlinesInside?: ("ignore" | number);
|
|
14329
15064
|
order?: ("asc" | "desc");
|
|
15065
|
+
sortBy?: ("name" | "value");
|
|
14330
15066
|
anyOf: [{
|
|
14331
15067
|
elementNamePattern?: (({
|
|
14332
15068
|
pattern: string;
|
|
@@ -14366,11 +15102,13 @@ type PerfectionistSortObjects = {
|
|
|
14366
15102
|
fallbackSort?: {
|
|
14367
15103
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14368
15104
|
order?: ("asc" | "desc");
|
|
15105
|
+
sortBy?: ("name" | "value");
|
|
14369
15106
|
};
|
|
14370
15107
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14371
15108
|
groupName: string;
|
|
14372
15109
|
newlinesInside?: ("ignore" | number);
|
|
14373
15110
|
order?: ("asc" | "desc");
|
|
15111
|
+
sortBy?: ("name" | "value");
|
|
14374
15112
|
elementNamePattern?: (({
|
|
14375
15113
|
pattern: string;
|
|
14376
15114
|
flags?: string;
|
|
@@ -14396,11 +15134,13 @@ type PerfectionistSortObjects = {
|
|
|
14396
15134
|
fallbackSort?: {
|
|
14397
15135
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14398
15136
|
order?: ("asc" | "desc");
|
|
15137
|
+
sortBy?: ("name" | "value");
|
|
14399
15138
|
};
|
|
14400
15139
|
commentAbove?: string;
|
|
14401
15140
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
14402
15141
|
newlinesInside?: ("ignore" | number);
|
|
14403
15142
|
order?: ("asc" | "desc");
|
|
15143
|
+
sortBy?: ("name" | "value");
|
|
14404
15144
|
})[];
|
|
14405
15145
|
newlinesBetween?: ("ignore" | number);
|
|
14406
15146
|
useConfigurationIf?: {
|
|
@@ -14442,6 +15182,7 @@ type PerfectionistSortObjects = {
|
|
|
14442
15182
|
} | string));
|
|
14443
15183
|
};
|
|
14444
15184
|
styledComponents?: boolean;
|
|
15185
|
+
useExperimentalDependencyDetection?: boolean;
|
|
14445
15186
|
partitionByComment?: (boolean | (({
|
|
14446
15187
|
pattern: string;
|
|
14447
15188
|
flags?: string;
|
|
@@ -14495,7 +15236,7 @@ type PerfectionistSortSets = {
|
|
|
14495
15236
|
pattern: string;
|
|
14496
15237
|
flags?: string;
|
|
14497
15238
|
} | string));
|
|
14498
|
-
selector?:
|
|
15239
|
+
selector?: "literal";
|
|
14499
15240
|
}, ...({
|
|
14500
15241
|
elementNamePattern?: (({
|
|
14501
15242
|
pattern: string;
|
|
@@ -14504,7 +15245,7 @@ type PerfectionistSortSets = {
|
|
|
14504
15245
|
pattern: string;
|
|
14505
15246
|
flags?: string;
|
|
14506
15247
|
} | string));
|
|
14507
|
-
selector?:
|
|
15248
|
+
selector?: "literal";
|
|
14508
15249
|
})[]];
|
|
14509
15250
|
} | {
|
|
14510
15251
|
fallbackSort?: {
|
|
@@ -14522,7 +15263,7 @@ type PerfectionistSortSets = {
|
|
|
14522
15263
|
pattern: string;
|
|
14523
15264
|
flags?: string;
|
|
14524
15265
|
} | string));
|
|
14525
|
-
selector?:
|
|
15266
|
+
selector?: "literal";
|
|
14526
15267
|
})[];
|
|
14527
15268
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
14528
15269
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -14755,6 +15496,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14755
15496
|
order?: ("asc" | "desc");
|
|
14756
15497
|
})[];
|
|
14757
15498
|
newlinesBetween?: ("ignore" | number);
|
|
15499
|
+
useExperimentalDependencyDetection?: boolean;
|
|
14758
15500
|
partitionByComment?: (boolean | (({
|
|
14759
15501
|
pattern: string;
|
|
14760
15502
|
flags?: string;
|
|
@@ -14779,6 +15521,42 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
14779
15521
|
});
|
|
14780
15522
|
partitionByNewLine?: boolean;
|
|
14781
15523
|
}];
|
|
15524
|
+
// ----- pnpm/json-enforce-catalog -----
|
|
15525
|
+
type PnpmJsonEnforceCatalog = [] | [{
|
|
15526
|
+
allowedProtocols?: string[];
|
|
15527
|
+
autofix?: boolean;
|
|
15528
|
+
defaultCatalog?: string;
|
|
15529
|
+
reuseExistingCatalog?: boolean;
|
|
15530
|
+
conflicts?: ("new-catalog" | "overrides" | "error");
|
|
15531
|
+
fields?: string[];
|
|
15532
|
+
ignores?: string[];
|
|
15533
|
+
}];
|
|
15534
|
+
// ----- pnpm/json-prefer-workspace-settings -----
|
|
15535
|
+
type PnpmJsonPreferWorkspaceSettings = [] | [{
|
|
15536
|
+
autofix?: boolean;
|
|
15537
|
+
}];
|
|
15538
|
+
// ----- pnpm/json-valid-catalog -----
|
|
15539
|
+
type PnpmJsonValidCatalog = [] | [{
|
|
15540
|
+
autoInsert?: boolean;
|
|
15541
|
+
autoInsertDefaultSpecifier?: string;
|
|
15542
|
+
autofix?: boolean;
|
|
15543
|
+
enforceNoConflict?: boolean;
|
|
15544
|
+
fields?: unknown[];
|
|
15545
|
+
}];
|
|
15546
|
+
// ----- pnpm/yaml-enforce-settings -----
|
|
15547
|
+
type PnpmYamlEnforceSettings = [] | [{
|
|
15548
|
+
autofix?: boolean;
|
|
15549
|
+
settings?: {
|
|
15550
|
+
[k: string]: unknown | undefined;
|
|
15551
|
+
};
|
|
15552
|
+
requiredFields?: string[];
|
|
15553
|
+
forbiddenFields?: string[];
|
|
15554
|
+
}];
|
|
15555
|
+
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
15556
|
+
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
15557
|
+
allow?: string[];
|
|
15558
|
+
checkDuplicates?: ("name-only" | "exact-version");
|
|
15559
|
+
}];
|
|
14782
15560
|
// ----- prefer-arrow-callback -----
|
|
14783
15561
|
type PreferArrowCallback = [] | [{
|
|
14784
15562
|
allowNamedFunctions?: boolean;
|
|
@@ -14995,9 +15773,9 @@ type ReactNamingConventionUseState = [] | [{
|
|
|
14995
15773
|
}];
|
|
14996
15774
|
// ----- react-refresh/only-export-components -----
|
|
14997
15775
|
type ReactRefreshOnlyExportComponents = [] | [{
|
|
15776
|
+
extraHOCs?: string[];
|
|
14998
15777
|
allowExportNames?: string[];
|
|
14999
15778
|
allowConstantExport?: boolean;
|
|
15000
|
-
customHOCs?: string[];
|
|
15001
15779
|
checkJS?: boolean;
|
|
15002
15780
|
}];
|
|
15003
15781
|
// ----- react/jsx-shorthand-boolean -----
|
|
@@ -15562,15 +16340,25 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
15562
16340
|
type StyleDotLocation = [] | [("object" | "property")];
|
|
15563
16341
|
// ----- style/eol-last -----
|
|
15564
16342
|
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")];
|
|
16343
|
+
// ----- style/exp-jsx-props-style -----
|
|
16344
|
+
type StyleExpJsxPropsStyle = [] | [{
|
|
16345
|
+
singleLine?: {
|
|
16346
|
+
maxItems?: number;
|
|
16347
|
+
};
|
|
16348
|
+
multiLine?: {
|
|
16349
|
+
minItems?: number;
|
|
16350
|
+
maxItemsPerLine?: number;
|
|
16351
|
+
};
|
|
16352
|
+
}];
|
|
15565
16353
|
// ----- style/exp-list-style -----
|
|
15566
16354
|
type StyleExpListStyle = [] | [{
|
|
15567
16355
|
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
15568
16356
|
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
15569
16357
|
overrides?: {
|
|
16358
|
+
"()"?: _StyleExpListStyle_BaseConfig;
|
|
15570
16359
|
"[]"?: _StyleExpListStyle_BaseConfig;
|
|
15571
16360
|
"{}"?: _StyleExpListStyle_BaseConfig;
|
|
15572
16361
|
"<>"?: _StyleExpListStyle_BaseConfig;
|
|
15573
|
-
"()"?: _StyleExpListStyle_BaseConfig;
|
|
15574
16362
|
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
15575
16363
|
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
15576
16364
|
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
@@ -15578,21 +16366,22 @@ type StyleExpListStyle = [] | [{
|
|
|
15578
16366
|
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
15579
16367
|
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
15580
16368
|
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
15581
|
-
|
|
16369
|
+
IfStatement?: _StyleExpListStyle_BaseConfig;
|
|
15582
16370
|
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
16371
|
+
ImportDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
16372
|
+
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
16373
|
+
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
15583
16374
|
NewExpression?: _StyleExpListStyle_BaseConfig;
|
|
15584
16375
|
ObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
15585
16376
|
ObjectPattern?: _StyleExpListStyle_BaseConfig;
|
|
15586
16377
|
TSDeclareFunction?: _StyleExpListStyle_BaseConfig;
|
|
16378
|
+
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
15587
16379
|
TSFunctionType?: _StyleExpListStyle_BaseConfig;
|
|
15588
16380
|
TSInterfaceBody?: _StyleExpListStyle_BaseConfig;
|
|
15589
|
-
TSEnumBody?: _StyleExpListStyle_BaseConfig;
|
|
15590
16381
|
TSTupleType?: _StyleExpListStyle_BaseConfig;
|
|
15591
16382
|
TSTypeLiteral?: _StyleExpListStyle_BaseConfig;
|
|
15592
16383
|
TSTypeParameterDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
15593
16384
|
TSTypeParameterInstantiation?: _StyleExpListStyle_BaseConfig;
|
|
15594
|
-
JSONArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
15595
|
-
JSONObjectExpression?: _StyleExpListStyle_BaseConfig;
|
|
15596
16385
|
};
|
|
15597
16386
|
}];
|
|
15598
16387
|
interface _StyleExpListStyle_SingleLineConfig {
|
|
@@ -16508,13 +17297,17 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
16508
17297
|
}];
|
|
16509
17298
|
// ----- style/padding-line-between-statements -----
|
|
16510
17299
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
16511
|
-
type _StylePaddingLineBetweenStatementsStatementOption = (
|
|
17300
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementMatcher | [_StylePaddingLineBetweenStatementsStatementMatcher, ...(_StylePaddingLineBetweenStatementsStatementMatcher)[]]);
|
|
17301
|
+
type _StylePaddingLineBetweenStatementsStatementMatcher = (_StylePaddingLineBetweenStatementsStatementType | _StylePaddingLineBetweenStatements_SelectorOption);
|
|
16512
17302
|
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "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" | "type" | "singleline-type" | "multiline-type");
|
|
16513
17303
|
type StylePaddingLineBetweenStatements = {
|
|
16514
17304
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
16515
17305
|
prev: _StylePaddingLineBetweenStatementsStatementOption;
|
|
16516
17306
|
next: _StylePaddingLineBetweenStatementsStatementOption;
|
|
16517
17307
|
}[];
|
|
17308
|
+
interface _StylePaddingLineBetweenStatements_SelectorOption {
|
|
17309
|
+
selector: string;
|
|
17310
|
+
}
|
|
16518
17311
|
// ----- style/quote-props -----
|
|
16519
17312
|
type StyleQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
16520
17313
|
keywords?: boolean;
|
|
@@ -16982,10 +17775,21 @@ type TomlIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
16982
17775
|
subTables?: number;
|
|
16983
17776
|
keyValuePairs?: number;
|
|
16984
17777
|
}];
|
|
17778
|
+
// ----- toml/inline-table-curly-newline -----
|
|
17779
|
+
type TomlInlineTableCurlyNewline = [] | [(("always" | "never") | {
|
|
17780
|
+
multiline?: boolean;
|
|
17781
|
+
minProperties?: number;
|
|
17782
|
+
consistent?: boolean;
|
|
17783
|
+
})];
|
|
16985
17784
|
// ----- toml/inline-table-curly-spacing -----
|
|
16986
17785
|
type TomlInlineTableCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
16987
17786
|
arraysInObjects?: boolean;
|
|
16988
17787
|
objectsInObjects?: boolean;
|
|
17788
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
17789
|
+
}];
|
|
17790
|
+
// ----- toml/inline-table-key-value-newline -----
|
|
17791
|
+
type TomlInlineTableKeyValueNewline = [] | [{
|
|
17792
|
+
allowAllPropertiesOnSameLine?: boolean;
|
|
16989
17793
|
}];
|
|
16990
17794
|
// ----- toml/key-spacing -----
|
|
16991
17795
|
type TomlKeySpacing = [] | [({
|
|
@@ -17810,6 +18614,10 @@ type TsNoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
17810
18614
|
typedefs?: boolean;
|
|
17811
18615
|
variables?: boolean;
|
|
17812
18616
|
})];
|
|
18617
|
+
// ----- ts/no-useless-default-assignment -----
|
|
18618
|
+
type TsNoUselessDefaultAssignment = [] | [{
|
|
18619
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
18620
|
+
}];
|
|
17813
18621
|
// ----- ts/no-var-requires -----
|
|
17814
18622
|
type TsNoVarRequires = [] | [{
|
|
17815
18623
|
allow?: string[];
|
|
@@ -18090,6 +18898,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
18090
18898
|
interface _UnicornImportStyle_BooleanObject {
|
|
18091
18899
|
[k: string]: boolean | undefined;
|
|
18092
18900
|
}
|
|
18901
|
+
// ----- unicorn/isolated-functions -----
|
|
18902
|
+
type UnicornIsolatedFunctions = [] | [{
|
|
18903
|
+
overrideGlobals?: {
|
|
18904
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
|
|
18905
|
+
};
|
|
18906
|
+
functions?: string[];
|
|
18907
|
+
selectors?: string[];
|
|
18908
|
+
comments?: string[];
|
|
18909
|
+
}];
|
|
18093
18910
|
// ----- unicorn/no-array-reduce -----
|
|
18094
18911
|
type UnicornNoArrayReduce = [] | [{
|
|
18095
18912
|
allowSimpleOperations?: boolean;
|
|
@@ -18307,6 +19124,77 @@ type UseIsnan = [] | [{
|
|
|
18307
19124
|
type ValidTypeof = [] | [{
|
|
18308
19125
|
requireStringLiterals?: boolean;
|
|
18309
19126
|
}];
|
|
19127
|
+
// ----- vue-a11y/alt-text -----
|
|
19128
|
+
type VueA11YAltText = [] | [{
|
|
19129
|
+
elements?: string[];
|
|
19130
|
+
img?: string[];
|
|
19131
|
+
object?: string[];
|
|
19132
|
+
area?: string[];
|
|
19133
|
+
"input[type=\"image\"]"?: string[];
|
|
19134
|
+
[k: string]: unknown | undefined;
|
|
19135
|
+
}];
|
|
19136
|
+
// ----- vue-a11y/anchor-has-content -----
|
|
19137
|
+
type VueA11YAnchorHasContent = [] | [{
|
|
19138
|
+
components?: string[];
|
|
19139
|
+
accessibleChildren?: string[];
|
|
19140
|
+
accessibleDirectives?: string[];
|
|
19141
|
+
[k: string]: unknown | undefined;
|
|
19142
|
+
}];
|
|
19143
|
+
// ----- vue-a11y/aria-role -----
|
|
19144
|
+
type VueA11YAriaRole = [] | [{
|
|
19145
|
+
ignoreNonDOM?: boolean;
|
|
19146
|
+
}];
|
|
19147
|
+
// ----- vue-a11y/form-control-has-label -----
|
|
19148
|
+
type VueA11YFormControlHasLabel = [] | [{
|
|
19149
|
+
labelComponents?: string[];
|
|
19150
|
+
controlComponents?: string[];
|
|
19151
|
+
[k: string]: unknown | undefined;
|
|
19152
|
+
}];
|
|
19153
|
+
// ----- vue-a11y/heading-has-content -----
|
|
19154
|
+
type VueA11YHeadingHasContent = [] | [{
|
|
19155
|
+
components?: string[];
|
|
19156
|
+
accessibleChildren?: string[];
|
|
19157
|
+
accessibleDirectives?: string[];
|
|
19158
|
+
[k: string]: unknown | undefined;
|
|
19159
|
+
}];
|
|
19160
|
+
// ----- vue-a11y/interactive-supports-focus -----
|
|
19161
|
+
type VueA11YInteractiveSupportsFocus = [] | [{
|
|
19162
|
+
tabbable?: ("button" | "checkbox" | "columnheader" | "combobox" | "grid" | "gridcell" | "link" | "listbox" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "radiogroup" | "row" | "rowheader" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tablist" | "textbox" | "tree" | "treegrid" | "treeitem" | "doc-backlink" | "doc-biblioref" | "doc-glossref" | "doc-noteref")[];
|
|
19163
|
+
[k: string]: unknown | undefined;
|
|
19164
|
+
}];
|
|
19165
|
+
// ----- vue-a11y/label-has-for -----
|
|
19166
|
+
type VueA11YLabelHasFor = [] | [{
|
|
19167
|
+
components?: string[];
|
|
19168
|
+
controlComponents?: string[];
|
|
19169
|
+
required?: (("nesting" | "id") | {
|
|
19170
|
+
some: ("nesting" | "id")[];
|
|
19171
|
+
[k: string]: unknown | undefined;
|
|
19172
|
+
} | {
|
|
19173
|
+
every: ("nesting" | "id")[];
|
|
19174
|
+
[k: string]: unknown | undefined;
|
|
19175
|
+
});
|
|
19176
|
+
allowChildren?: boolean;
|
|
19177
|
+
[k: string]: unknown | undefined;
|
|
19178
|
+
}];
|
|
19179
|
+
// ----- vue-a11y/media-has-caption -----
|
|
19180
|
+
type VueA11YMediaHasCaption = [] | [{
|
|
19181
|
+
audio?: string[];
|
|
19182
|
+
track?: string[];
|
|
19183
|
+
video?: string[];
|
|
19184
|
+
[k: string]: unknown | undefined;
|
|
19185
|
+
}];
|
|
19186
|
+
// ----- vue-a11y/no-autofocus -----
|
|
19187
|
+
type VueA11YNoAutofocus = [] | [{
|
|
19188
|
+
ignoreNonDOM?: boolean;
|
|
19189
|
+
}];
|
|
19190
|
+
// ----- vue-a11y/no-distracting-elements -----
|
|
19191
|
+
type VueA11YNoDistractingElements = [] | [{
|
|
19192
|
+
[k: string]: unknown | undefined;
|
|
19193
|
+
}];
|
|
19194
|
+
// ----- vue-a11y/no-redundant-roles -----
|
|
19195
|
+
type VueA11YNoRedundantRoles = [] | [{
|
|
19196
|
+
[k: string]: string[] | undefined;
|
|
19197
|
+
}];
|
|
18310
19198
|
// ----- vue/array-bracket-newline -----
|
|
18311
19199
|
type VueArrayBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
18312
19200
|
multiline?: boolean;
|
|
@@ -18346,6 +19234,7 @@ type VueAttributesOrder = [] | [{
|
|
|
18346
19234
|
order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[];
|
|
18347
19235
|
alphabetical?: boolean;
|
|
18348
19236
|
sortLineLength?: boolean;
|
|
19237
|
+
ignoreVBindObject?: boolean;
|
|
18349
19238
|
}];
|
|
18350
19239
|
// ----- vue/block-lang -----
|
|
18351
19240
|
type VueBlockLang = [] | [{
|
|
@@ -18437,7 +19326,7 @@ type VueDefineMacrosOrder = [] | [{
|
|
|
18437
19326
|
type VueDefinePropsDeclaration = [] | [("type-based" | "runtime")];
|
|
18438
19327
|
// ----- vue/define-props-destructuring -----
|
|
18439
19328
|
type VueDefinePropsDestructuring = [] | [{
|
|
18440
|
-
destructure?: ("always" | "never");
|
|
19329
|
+
destructure?: ("only-when-assigned" | "always" | "never");
|
|
18441
19330
|
}];
|
|
18442
19331
|
// ----- vue/dot-location -----
|
|
18443
19332
|
type VueDotLocation = [] | [("object" | "property")];
|
|
@@ -19085,6 +19974,7 @@ type VueNoLoneTemplate = [] | [{
|
|
|
19085
19974
|
// ----- vue/no-multi-spaces -----
|
|
19086
19975
|
type VueNoMultiSpaces = [] | [{
|
|
19087
19976
|
ignoreProperties?: boolean;
|
|
19977
|
+
ignoreEOLComments?: boolean;
|
|
19088
19978
|
}];
|
|
19089
19979
|
// ----- vue/no-multiple-template-root -----
|
|
19090
19980
|
type VueNoMultipleTemplateRoot = [] | [{
|
|
@@ -19242,6 +20132,10 @@ type VueNoTemplateTargetBlank = [] | [{
|
|
|
19242
20132
|
type VueNoUndefComponents = [] | [{
|
|
19243
20133
|
ignorePatterns?: unknown[];
|
|
19244
20134
|
}];
|
|
20135
|
+
// ----- vue/no-undef-directives -----
|
|
20136
|
+
type VueNoUndefDirectives = [] | [{
|
|
20137
|
+
ignore?: string[];
|
|
20138
|
+
}];
|
|
19245
20139
|
// ----- vue/no-undef-properties -----
|
|
19246
20140
|
type VueNoUndefProperties = [] | [{
|
|
19247
20141
|
ignores?: string[];
|
|
@@ -19485,6 +20379,10 @@ type VueVSlotStyle = [] | [(("shorthand" | "longform") | {
|
|
|
19485
20379
|
default?: ("shorthand" | "longform" | "v-slot");
|
|
19486
20380
|
named?: ("shorthand" | "longform");
|
|
19487
20381
|
})];
|
|
20382
|
+
// ----- vue/valid-v-for -----
|
|
20383
|
+
type VueValidVFor = [] | [{
|
|
20384
|
+
allowEmptyAlias?: boolean;
|
|
20385
|
+
}];
|
|
19488
20386
|
// ----- vue/valid-v-on -----
|
|
19489
20387
|
type VueValidVOn = [] | [{
|
|
19490
20388
|
modifiers?: unknown[];
|
|
@@ -19531,6 +20429,7 @@ type YamlFlowMappingCurlyNewline = [] | [(("always" | "never") | {
|
|
|
19531
20429
|
type YamlFlowMappingCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
19532
20430
|
arraysInObjects?: boolean;
|
|
19533
20431
|
objectsInObjects?: boolean;
|
|
20432
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
19534
20433
|
}];
|
|
19535
20434
|
// ----- yaml/flow-sequence-bracket-newline -----
|
|
19536
20435
|
type YamlFlowSequenceBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
@@ -19716,7 +20615,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
19716
20615
|
onlyEquality?: boolean;
|
|
19717
20616
|
}];
|
|
19718
20617
|
// Names of all the configs
|
|
19719
|
-
type ConfigNames = 'vinicunca/
|
|
20618
|
+
type ConfigNames = 'vinicunca/gitignore' | 'vinicunca/ignores' | 'vinicunca/javascript/setup' | 'vinicunca/javascript/rules' | 'vinicunca/eslint-comments/rules' | 'vinicunca/imports/rules' | 'vinicunca/command/rules' | 'vinicunca/perfectionist/rules' | 'vinicunca/sonar/rules' | 'vinicunca/node/rules' | 'vinicunca/jsdoc/setup' | 'vinicunca/jsdoc/rules' | 'vinicunca/imports/rules' | 'vinicunca/unicorn/rules' | 'antfu/jsx/setup' | 'vinicunca/typescript/setup' | 'vinicunca/typescript/parser' | 'vinicunca/typescript/type-aware-parser' | 'vinicunca/typescript/rules' | 'vinicunca/typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'vinicunca/stylistic/rules' | 'vinicunca/regexp/rules' | 'vinicunca/test/setup' | 'vinicunca/test/rules' | 'vinicunca/vue/setup' | 'vinicunca/vue/rules' | 'vinicunca/react/setup' | 'vinicunca/react/rules' | 'vinicunca/react/typescript' | 'vinicunca/react/type-aware-rules' | 'vinicunca/nextjs/setup' | 'vinicunca/nextjs/rules' | 'vinicunca/solid/setup' | 'vinicunca/solid/rules' | 'vinicunca/svelte/setup' | 'vinicunca/svelte/rules' | 'vinicunca/unocss' | 'vinicunca/astro/setup' | 'vinicunca/astro/rules' | 'vinicunca/jsonc/setup' | 'vinicunca/jsonc/rules' | 'vinicunca/sort/package-json' | 'vinicunca/sort/tsconfig' | 'vinicunca/pnpm/package-json' | 'vinicunca/pnpm/pnpm-workspace-yaml' | 'vinicunca/pnpm/pnpm-workspace-yaml-sort' | 'vinicunca/yaml/setup' | 'vinicunca/yaml/rules' | 'vinicunca/toml/setup' | 'vinicunca/toml/rules' | 'vinicunca/markdown/setup' | 'vinicunca/markdown/processor' | 'vinicunca/markdown/parser' | 'vinicunca/markdown/rules' | 'vinicunca/markdown/disables/markdown' | 'vinicunca/markdown/disables' | 'vinicunca/formatter/setup' | 'vinicunca/formatter/css' | 'vinicunca/formatter/scss' | 'vinicunca/formatter/less' | 'vinicunca/formatter/html' | 'vinicunca/formatter/xml' | 'vinicunca/formatter/svg' | 'vinicunca/formatter/markdown' | 'vinicunca/formatter/astro' | 'vinicunca/formatter/astro/disables' | 'vinicunca/formatter/graphql' | 'vinicunca/disables/scripts' | 'vinicunca/disables/cli' | 'vinicunca/disables/bin' | 'vinicunca/disables/dts' | 'vinicunca/disables/cjs' | 'vinicunca/disables/config-files';
|
|
19720
20619
|
//#endregion
|
|
19721
20620
|
//#region src/vendor/prettier-types.d.ts
|
|
19722
20621
|
/**
|
|
@@ -19846,7 +20745,7 @@ type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
|
|
|
19846
20745
|
* for `rules` and relaxes type limitations for `plugins` and `rules`, because
|
|
19847
20746
|
* many plugins still lack proper type definitions.
|
|
19848
20747
|
*/
|
|
19849
|
-
type TypedFlatConfigItem = Omit<
|
|
20748
|
+
type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
|
|
19850
20749
|
/**
|
|
19851
20750
|
* An object containing a name-value mapping of plugin names to plugin objects.
|
|
19852
20751
|
* When `files` is specified, these plugins are only available to the matching files.
|
|
@@ -19983,6 +20882,18 @@ interface OptionsUnicorn extends OptionsOverrides {
|
|
|
19983
20882
|
*/
|
|
19984
20883
|
allRecommended?: boolean;
|
|
19985
20884
|
}
|
|
20885
|
+
interface OptionsMarkdown extends OptionsOverrides {
|
|
20886
|
+
/**
|
|
20887
|
+
* Enable GFM (GitHub Flavored Markdown) support.
|
|
20888
|
+
*
|
|
20889
|
+
* @default true
|
|
20890
|
+
*/
|
|
20891
|
+
gfm?: boolean;
|
|
20892
|
+
/**
|
|
20893
|
+
* Override rules for markdown itself.
|
|
20894
|
+
*/
|
|
20895
|
+
overridesMarkdown?: TypedFlatConfigItem['rules'];
|
|
20896
|
+
}
|
|
19986
20897
|
interface OptionsTypeScriptParserOptions {
|
|
19987
20898
|
/**
|
|
19988
20899
|
* Additional parser options for TypeScript.
|
|
@@ -20201,13 +21112,13 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
20201
21112
|
*/
|
|
20202
21113
|
astro?: boolean | OptionsOverrides;
|
|
20203
21114
|
/**
|
|
20204
|
-
* Enable linting for **code snippets** in Markdown.
|
|
21115
|
+
* Enable linting for **code snippets** in Markdown and the markdown content itself.
|
|
20205
21116
|
*
|
|
20206
21117
|
* For formatting Markdown content, enable also `formatters.markdown`.
|
|
20207
21118
|
*
|
|
20208
21119
|
* @default true
|
|
20209
21120
|
*/
|
|
20210
|
-
markdown?: boolean |
|
|
21121
|
+
markdown?: boolean | OptionsMarkdown;
|
|
20211
21122
|
/**
|
|
20212
21123
|
* Enable stylistic rules.
|
|
20213
21124
|
*
|
|
@@ -20363,7 +21274,7 @@ declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverri
|
|
|
20363
21274
|
declare function jsx(options?: OptionsJSX): Promise<Array<TypedFlatConfigItem>>;
|
|
20364
21275
|
//#endregion
|
|
20365
21276
|
//#region src/configs/markdown.d.ts
|
|
20366
|
-
declare function markdown(options?: OptionsFiles & OptionsComponentExts &
|
|
21277
|
+
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsMarkdown): Promise<Array<TypedFlatConfigItem>>;
|
|
20367
21278
|
//#endregion
|
|
20368
21279
|
//#region src/configs/nextjs.d.ts
|
|
20369
21280
|
declare function nextjs(options?: OptionsOverrides & OptionsFiles): Promise<Array<TypedFlatConfigItem>>;
|
|
@@ -20546,4 +21457,4 @@ declare function ensurePackages(packages: Array<string | undefined>): Promise<vo
|
|
|
20546
21457
|
declare function isInEditorEnv(): boolean;
|
|
20547
21458
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
20548
21459
|
//#endregion
|
|
20549
|
-
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, STYLISTIC_CONFIG_DEFAULTS, StylisticConfig, StylisticOptions, TypedFlatConfigItem, astro, combineConfigs, command, comments, defaultPluginRenaming, disables, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pluginAntfu, pluginComments, pluginImportLite, pluginNode, pluginPerfectionist, pluginSonar, pluginUnicorn, pluginUnusedImports, pnpm, react, regexp, renamePluginInConfigs, renameRules, solid, sonar, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|
|
21460
|
+
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsMarkdown, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsStylistic, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, type RuleOptions, Rules, STYLISTIC_CONFIG_DEFAULTS, StylisticConfig, StylisticOptions, TypedFlatConfigItem, astro, combineConfigs, command, comments, defaultPluginRenaming, disables, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pluginAntfu, pluginComments, pluginImportLite, pluginNode, pluginPerfectionist, pluginSonar, pluginUnicorn, pluginUnusedImports, pnpm, react, regexp, renamePluginInConfigs, renameRules, solid, sonar, sortPackageJson, sortTsconfig, stylistic, svelte, test, toArray, toml, typescript, unicorn, unocss, vinicuncaESLint, vue, yaml };
|