@eienjs/eslint-config 1.4.2 → 1.5.1
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/cli/{constants_generated.js → constants_generated.mjs} +3 -3
- package/dist/cli/{index.js → index.mjs} +2 -2
- package/dist/cli/{run.js → run.mjs} +5 -5
- package/dist/cli/stages/{update_eslint_files.js → update_eslint_files.mjs} +1 -1
- package/dist/cli/stages/{update_package_json.js → update_package_json.mjs} +3 -3
- package/dist/cli/stages/{update_vscode_settings.js → update_vscode_settings.mjs} +1 -1
- package/dist/configs/{adonisjs.d.ts → adonisjs.d.mts} +1 -1
- package/dist/configs/{adonisjs.js → adonisjs.mjs} +2 -2
- package/dist/configs/{astro.d.ts → astro.d.mts} +1 -1
- package/dist/configs/{astro.js → astro.mjs} +2 -2
- package/dist/configs/{command.d.ts → command.d.mts} +1 -1
- package/dist/configs/{comments.d.ts → comments.d.mts} +1 -1
- package/dist/configs/{comments.js → comments.mjs} +1 -1
- package/dist/configs/{disables.d.ts → disables.d.mts} +1 -1
- package/dist/configs/{disables.js → disables.mjs} +10 -1
- package/dist/configs/{formatters.d.ts → formatters.d.mts} +1 -1
- package/dist/configs/{formatters.js → formatters.mjs} +3 -3
- package/dist/configs/ignores.d.mts +6 -0
- package/dist/configs/ignores.mjs +14 -0
- package/dist/configs/{imports.d.ts → imports.d.mts} +1 -1
- package/dist/configs/{imports.js → imports.mjs} +1 -1
- package/dist/configs/index.d.mts +26 -0
- package/dist/configs/index.mjs +27 -0
- package/dist/configs/{javascript.d.ts → javascript.d.mts} +1 -1
- package/dist/configs/{javascript.js → javascript.mjs} +1 -1
- package/dist/configs/{jsdoc.d.ts → jsdoc.d.mts} +1 -1
- package/dist/configs/{jsdoc.js → jsdoc.mjs} +1 -1
- package/dist/configs/{jsonc.d.ts → jsonc.d.mts} +1 -1
- package/dist/configs/{jsonc.js → jsonc.mjs} +2 -2
- package/dist/configs/{markdown.d.ts → markdown.d.mts} +1 -1
- package/dist/configs/{markdown.js → markdown.mjs} +2 -2
- package/dist/configs/{node.d.ts → node.d.mts} +1 -1
- package/dist/configs/{node.js → node.mjs} +1 -1
- package/dist/configs/{nuxt.d.ts → nuxt.d.mts} +1 -1
- package/dist/configs/{nuxt.js → nuxt.mjs} +2 -2
- package/dist/configs/{perfectionist.d.ts → perfectionist.d.mts} +1 -1
- package/dist/configs/{perfectionist.js → perfectionist.mjs} +1 -1
- package/dist/configs/{pnpm.d.ts → pnpm.d.mts} +1 -1
- package/dist/configs/{pnpm.js → pnpm.mjs} +1 -1
- package/dist/configs/{regexp.d.ts → regexp.d.mts} +1 -1
- package/dist/configs/{sort.d.ts → sort.d.mts} +1 -1
- package/dist/configs/{stylistic.d.ts → stylistic.d.mts} +1 -1
- package/dist/configs/{stylistic.js → stylistic.mjs} +2 -2
- package/dist/configs/{test.d.ts → test.d.mts} +1 -1
- package/dist/configs/{test.js → test.mjs} +2 -2
- package/dist/configs/{toml.d.ts → toml.d.mts} +1 -1
- package/dist/configs/{toml.js → toml.mjs} +2 -2
- package/dist/configs/{typescript.d.ts → typescript.d.mts} +1 -1
- package/dist/configs/{typescript.js → typescript.mjs} +3 -3
- package/dist/configs/{unicorn.d.ts → unicorn.d.mts} +1 -1
- package/dist/configs/{unicorn.js → unicorn.mjs} +2 -2
- package/dist/configs/{vue.d.ts → vue.d.mts} +1 -1
- package/dist/configs/{vue.js → vue.mjs} +2 -2
- package/dist/configs/{yaml.d.ts → yaml.d.mts} +1 -1
- package/dist/configs/{yaml.js → yaml.mjs} +2 -2
- package/dist/{factory.d.ts → factory.d.mts} +2 -2
- package/dist/{factory.js → factory.mjs} +29 -29
- package/dist/{globs.js → globs.mjs} +2 -1
- package/dist/{index.d.ts → index.d.mts} +5 -5
- package/dist/{index.js → index.mjs} +3 -3
- package/dist/package.mjs +5 -0
- package/dist/{typegen.d.ts → typegen.d.mts} +265 -144
- package/dist/{types.d.ts → types.d.mts} +11 -2
- package/dist/{utils.d.ts → utils.d.mts} +1 -1
- package/package.json +24 -24
- package/dist/configs/ignores.d.ts +0 -6
- package/dist/configs/ignores.js +0 -12
- package/dist/configs/index.d.ts +0 -26
- package/dist/configs/index.js +0 -27
- package/dist/package.js +0 -5
- /package/dist/cli/{constants.js → constants.mjs} +0 -0
- /package/dist/cli/{index.d.ts → index.d.mts} +0 -0
- /package/dist/cli/{utils.js → utils.mjs} +0 -0
- /package/dist/configs/{command.js → command.mjs} +0 -0
- /package/dist/configs/{regexp.js → regexp.mjs} +0 -0
- /package/dist/configs/{sort.js → sort.mjs} +0 -0
- /package/dist/{globs.d.ts → globs.d.mts} +0 -0
- /package/dist/{plugins.js → plugins.mjs} +0 -0
- /package/dist/{utils.js → utils.mjs} +0 -0
- /package/dist/vendored/{prettier_types.d.ts → prettier_types.d.mts} +0 -0
|
@@ -1527,6 +1527,11 @@ interface RuleOptions {
|
|
|
1527
1527
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
1528
1528
|
*/
|
|
1529
1529
|
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
|
|
1530
|
+
/**
|
|
1531
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
1532
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
1533
|
+
*/
|
|
1534
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
|
|
1530
1535
|
/**
|
|
1531
1536
|
* disallow selectors defined in `style` tag that don't use in HTML
|
|
1532
1537
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
@@ -1623,6 +1628,11 @@ interface RuleOptions {
|
|
|
1623
1628
|
* @deprecated
|
|
1624
1629
|
*/
|
|
1625
1630
|
'comma-style'?: Linter.RuleEntry<CommaStyle>;
|
|
1631
|
+
/**
|
|
1632
|
+
* Comment-as-command for one-off codemod with ESLint
|
|
1633
|
+
* @see https://github.com/antfu/eslint-plugin-command
|
|
1634
|
+
*/
|
|
1635
|
+
'command/command'?: Linter.RuleEntry<[]>;
|
|
1626
1636
|
/**
|
|
1627
1637
|
* Enforce a maximum cyclomatic complexity allowed in a program
|
|
1628
1638
|
* @see https://eslint.org/docs/latest/rules/complexity
|
|
@@ -1691,6 +1701,26 @@ interface RuleOptions {
|
|
|
1691
1701
|
* @see https://eslint.org/docs/latest/rules/eqeqeq
|
|
1692
1702
|
*/
|
|
1693
1703
|
'eqeqeq'?: Linter.RuleEntry<Eqeqeq>;
|
|
1704
|
+
/**
|
|
1705
|
+
* Avoid using TypeScript's enums.
|
|
1706
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
|
|
1707
|
+
*/
|
|
1708
|
+
'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
|
|
1709
|
+
/**
|
|
1710
|
+
* Avoid using TypeScript's import aliases.
|
|
1711
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
|
|
1712
|
+
*/
|
|
1713
|
+
'erasable-syntax-only/import-aliases'?: Linter.RuleEntry<[]>;
|
|
1714
|
+
/**
|
|
1715
|
+
* Avoid using TypeScript's namespaces.
|
|
1716
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/namespaces.md
|
|
1717
|
+
*/
|
|
1718
|
+
'erasable-syntax-only/namespaces'?: Linter.RuleEntry<[]>;
|
|
1719
|
+
/**
|
|
1720
|
+
* Avoid using TypeScript's class parameter properties.
|
|
1721
|
+
* @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/parameter-properties.md
|
|
1722
|
+
*/
|
|
1723
|
+
'erasable-syntax-only/parameter-properties'?: Linter.RuleEntry<[]>;
|
|
1694
1724
|
/**
|
|
1695
1725
|
* Enforce `for` loop update clause moving the counter in the right direction
|
|
1696
1726
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
@@ -3866,6 +3896,36 @@ interface RuleOptions {
|
|
|
3866
3896
|
* @see https://perfectionist.dev/rules/sort-variable-declarations
|
|
3867
3897
|
*/
|
|
3868
3898
|
'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
|
|
3899
|
+
/**
|
|
3900
|
+
* Enforce using "catalog:" in `package.json`
|
|
3901
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
|
|
3902
|
+
*/
|
|
3903
|
+
'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
|
|
3904
|
+
/**
|
|
3905
|
+
* 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.
|
|
3906
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
|
|
3907
|
+
*/
|
|
3908
|
+
'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
|
|
3909
|
+
/**
|
|
3910
|
+
* Enforce using valid catalog in `package.json`
|
|
3911
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
|
|
3912
|
+
*/
|
|
3913
|
+
'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
|
|
3914
|
+
/**
|
|
3915
|
+
* Disallow duplicate catalog items in `pnpm-workspace.yaml`
|
|
3916
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
|
|
3917
|
+
*/
|
|
3918
|
+
'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
|
|
3919
|
+
/**
|
|
3920
|
+
* Disallow unused catalogs in `pnpm-workspace.yaml`
|
|
3921
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
|
|
3922
|
+
*/
|
|
3923
|
+
'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
|
|
3924
|
+
/**
|
|
3925
|
+
* Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
|
|
3926
|
+
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
|
|
3927
|
+
*/
|
|
3928
|
+
'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
|
|
3869
3929
|
/**
|
|
3870
3930
|
* Require using arrow functions for callbacks
|
|
3871
3931
|
* @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
|
|
@@ -4823,6 +4883,11 @@ interface RuleOptions {
|
|
|
4823
4883
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
4824
4884
|
*/
|
|
4825
4885
|
'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
4886
|
+
/**
|
|
4887
|
+
* ensure that every `expect.poll` call is awaited
|
|
4888
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
4889
|
+
*/
|
|
4890
|
+
'test/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
4826
4891
|
/**
|
|
4827
4892
|
* require setup and teardown to be within a hook
|
|
4828
4893
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -4991,710 +5056,725 @@ interface RuleOptions {
|
|
|
4991
5056
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
4992
5057
|
/**
|
|
4993
5058
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
4995
5060
|
*/
|
|
4996
5061
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
4997
5062
|
/**
|
|
4998
5063
|
* Enforce a specific parameter name in catch clauses.
|
|
4999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
5000
5065
|
*/
|
|
5001
5066
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
5002
5067
|
/**
|
|
5003
5068
|
* Enforce consistent assertion style with `node:assert`.
|
|
5004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
5005
5070
|
*/
|
|
5006
5071
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
5007
5072
|
/**
|
|
5008
5073
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
5010
5075
|
*/
|
|
5011
5076
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
5012
5077
|
/**
|
|
5013
5078
|
* Use destructured variables over properties.
|
|
5014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
5015
5080
|
*/
|
|
5016
5081
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
5017
5082
|
/**
|
|
5018
5083
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5020
5085
|
*/
|
|
5021
5086
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
5022
5087
|
/**
|
|
5023
5088
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
5025
5090
|
*/
|
|
5026
5091
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
5027
5092
|
/**
|
|
5028
5093
|
* Move function definitions to the highest possible scope.
|
|
5029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
5030
5095
|
*/
|
|
5031
5096
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
5032
5097
|
/**
|
|
5033
5098
|
* Enforce correct `Error` subclassing.
|
|
5034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
5035
5100
|
*/
|
|
5036
5101
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
5037
5102
|
/**
|
|
5038
5103
|
* Enforce no spaces between braces.
|
|
5039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
5040
5105
|
*/
|
|
5041
5106
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
5042
5107
|
/**
|
|
5043
5108
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
5045
5110
|
*/
|
|
5046
5111
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
5047
5112
|
/**
|
|
5048
5113
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
5050
5115
|
*/
|
|
5051
5116
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
5052
5117
|
/**
|
|
5053
5118
|
* Add expiration conditions to TODO comments.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
5055
5120
|
*/
|
|
5056
5121
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
5057
5122
|
/**
|
|
5058
5123
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
5060
5125
|
*/
|
|
5061
5126
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
5062
5127
|
/**
|
|
5063
5128
|
* Enforce a case style for filenames.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
5065
5130
|
*/
|
|
5066
5131
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
5067
5132
|
/**
|
|
5068
5133
|
* Enforce specific import styles per module.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
5070
5135
|
*/
|
|
5071
5136
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5072
5137
|
/**
|
|
5073
5138
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
5075
5140
|
*/
|
|
5076
5141
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
5077
5142
|
/**
|
|
5078
5143
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5080
5145
|
*/
|
|
5081
5146
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
5082
5147
|
/**
|
|
5083
5148
|
* Disallow recursive access to `this` within getters and setters.
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
5085
5150
|
*/
|
|
5086
5151
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5087
5152
|
/**
|
|
5088
5153
|
* Disallow anonymous functions and classes as the default export.
|
|
5089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
5090
5155
|
*/
|
|
5091
5156
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5092
5157
|
/**
|
|
5093
5158
|
* Prevent passing a function reference directly to iterator methods.
|
|
5094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
5095
5160
|
*/
|
|
5096
5161
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
5097
5162
|
/**
|
|
5098
5163
|
* Prefer `for…of` over the `forEach` method.
|
|
5099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
5100
5165
|
*/
|
|
5101
5166
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
5102
5167
|
/**
|
|
5103
5168
|
* Disallow using the `this` argument in array methods.
|
|
5104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
5105
5170
|
*/
|
|
5106
5171
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5107
5172
|
/**
|
|
5108
5173
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
5110
5175
|
* @deprecated
|
|
5111
5176
|
*/
|
|
5112
5177
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5113
5178
|
/**
|
|
5114
5179
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
5116
5181
|
*/
|
|
5117
5182
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5118
5183
|
/**
|
|
5119
5184
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5120
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
5121
5186
|
*/
|
|
5122
5187
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5123
5188
|
/**
|
|
5124
5189
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
5126
5191
|
*/
|
|
5127
5192
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
5128
5193
|
/**
|
|
5129
5194
|
* Disallow member access from await expression.
|
|
5130
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
5131
5196
|
*/
|
|
5132
5197
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5133
5198
|
/**
|
|
5134
5199
|
* Disallow using `await` in `Promise` method parameters.
|
|
5135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5136
5201
|
*/
|
|
5137
5202
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5138
5203
|
/**
|
|
5139
5204
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5140
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
5141
5206
|
*/
|
|
5142
5207
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5143
5208
|
/**
|
|
5144
5209
|
* Do not use `document.cookie` directly.
|
|
5145
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
5146
5211
|
*/
|
|
5147
5212
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5148
5213
|
/**
|
|
5149
5214
|
* Disallow empty files.
|
|
5150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
5151
5216
|
*/
|
|
5152
5217
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
5153
5218
|
/**
|
|
5154
5219
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5155
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
5156
5221
|
*/
|
|
5157
5222
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5158
5223
|
/**
|
|
5159
5224
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5160
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
5161
5226
|
*/
|
|
5162
5227
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5228
|
+
/**
|
|
5229
|
+
* Disallow immediate mutation after variable assignment.
|
|
5230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
5231
|
+
*/
|
|
5232
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
5163
5233
|
/**
|
|
5164
5234
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5165
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5166
5236
|
* @deprecated
|
|
5167
5237
|
*/
|
|
5168
5238
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5169
5239
|
/**
|
|
5170
5240
|
* Disallow `instanceof` with built-in objects
|
|
5171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
5172
5242
|
*/
|
|
5173
5243
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5174
5244
|
/**
|
|
5175
5245
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5177
5247
|
*/
|
|
5178
5248
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5179
5249
|
/**
|
|
5180
5250
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5182
5252
|
*/
|
|
5183
5253
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5184
5254
|
/**
|
|
5185
5255
|
* Disallow identifiers starting with `new` or `class`.
|
|
5186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
5187
5257
|
*/
|
|
5188
5258
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5189
5259
|
/**
|
|
5190
5260
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
5192
5262
|
* @deprecated
|
|
5193
5263
|
*/
|
|
5194
5264
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5195
5265
|
/**
|
|
5196
5266
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
5198
5268
|
*/
|
|
5199
5269
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5200
5270
|
/**
|
|
5201
5271
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5203
5273
|
*/
|
|
5204
5274
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5205
5275
|
/**
|
|
5206
5276
|
* Disallow named usage of default import and export.
|
|
5207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
5208
5278
|
*/
|
|
5209
5279
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5210
5280
|
/**
|
|
5211
5281
|
* Disallow negated conditions.
|
|
5212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
5213
5283
|
*/
|
|
5214
5284
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5215
5285
|
/**
|
|
5216
5286
|
* Disallow negated expression in equality check.
|
|
5217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5218
5288
|
*/
|
|
5219
5289
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5220
5290
|
/**
|
|
5221
5291
|
* Disallow nested ternary expressions.
|
|
5222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
5223
5293
|
*/
|
|
5224
5294
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5225
5295
|
/**
|
|
5226
5296
|
* Disallow `new Array()`.
|
|
5227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
5228
5298
|
*/
|
|
5229
5299
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5230
5300
|
/**
|
|
5231
5301
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
5233
5303
|
*/
|
|
5234
5304
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5235
5305
|
/**
|
|
5236
5306
|
* Disallow the use of the `null` literal.
|
|
5237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
5238
5308
|
*/
|
|
5239
5309
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5240
5310
|
/**
|
|
5241
5311
|
* Disallow the use of objects as default parameters.
|
|
5242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5243
5313
|
*/
|
|
5244
5314
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5245
5315
|
/**
|
|
5246
5316
|
* Disallow `process.exit()`.
|
|
5247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
5248
5318
|
*/
|
|
5249
5319
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5250
5320
|
/**
|
|
5251
5321
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5253
5323
|
*/
|
|
5254
5324
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5255
5325
|
/**
|
|
5256
5326
|
* Disallow classes that only have static members.
|
|
5257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
5258
5328
|
*/
|
|
5259
5329
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5260
5330
|
/**
|
|
5261
5331
|
* Disallow `then` property.
|
|
5262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
5263
5333
|
*/
|
|
5264
5334
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5265
5335
|
/**
|
|
5266
5336
|
* Disallow assigning `this` to a variable.
|
|
5267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
5268
5338
|
*/
|
|
5269
5339
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5270
5340
|
/**
|
|
5271
5341
|
* Disallow comparing `undefined` using `typeof`.
|
|
5272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
5273
5343
|
*/
|
|
5274
5344
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5275
5345
|
/**
|
|
5276
5346
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5278
5348
|
*/
|
|
5279
5349
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5280
5350
|
/**
|
|
5281
5351
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5283
5353
|
*/
|
|
5284
5354
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5285
5355
|
/**
|
|
5286
5356
|
* Disallow awaiting non-promise values.
|
|
5287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
5288
5358
|
*/
|
|
5289
5359
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5290
5360
|
/**
|
|
5291
5361
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5293
5363
|
*/
|
|
5294
5364
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5295
5365
|
/**
|
|
5296
5366
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5298
5368
|
*/
|
|
5299
5369
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5300
5370
|
/**
|
|
5301
5371
|
* Disallow unreadable array destructuring.
|
|
5302
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5303
5373
|
*/
|
|
5304
5374
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
5305
5375
|
/**
|
|
5306
5376
|
* Disallow unreadable IIFEs.
|
|
5307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
5308
5378
|
*/
|
|
5309
5379
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5310
5380
|
/**
|
|
5311
5381
|
* Disallow unused object properties.
|
|
5312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
5313
5383
|
*/
|
|
5314
5384
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5385
|
+
/**
|
|
5386
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
5388
|
+
*/
|
|
5389
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5315
5390
|
/**
|
|
5316
5391
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5318
5393
|
*/
|
|
5319
5394
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5320
5395
|
/**
|
|
5321
5396
|
* Disallow useless fallback when spreading in object literals.
|
|
5322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5323
5398
|
*/
|
|
5324
5399
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5325
5400
|
/**
|
|
5326
5401
|
* Disallow useless array length check.
|
|
5327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
5328
5403
|
*/
|
|
5329
5404
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5330
5405
|
/**
|
|
5331
5406
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5333
5408
|
*/
|
|
5334
5409
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5335
5410
|
/**
|
|
5336
5411
|
* Disallow unnecessary spread.
|
|
5337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
5338
5413
|
*/
|
|
5339
5414
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5340
5415
|
/**
|
|
5341
5416
|
* Disallow useless case in switch statements.
|
|
5342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
5343
5418
|
*/
|
|
5344
5419
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5345
5420
|
/**
|
|
5346
5421
|
* Disallow useless `undefined`.
|
|
5347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
5348
5423
|
*/
|
|
5349
5424
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5350
5425
|
/**
|
|
5351
5426
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
5353
5428
|
*/
|
|
5354
5429
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5355
5430
|
/**
|
|
5356
5431
|
* Enforce proper case for numeric literals.
|
|
5357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
5358
5433
|
*/
|
|
5359
5434
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5360
5435
|
/**
|
|
5361
5436
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
5363
5438
|
*/
|
|
5364
5439
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5365
5440
|
/**
|
|
5366
5441
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
5368
5443
|
*/
|
|
5369
5444
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5370
5445
|
/**
|
|
5371
5446
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
5373
5448
|
*/
|
|
5374
5449
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5375
5450
|
/**
|
|
5376
5451
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
5378
5453
|
*/
|
|
5379
5454
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5380
5455
|
/**
|
|
5381
5456
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
5383
5458
|
*/
|
|
5384
5459
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5385
5460
|
/**
|
|
5386
5461
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
5388
5463
|
*/
|
|
5389
5464
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5390
5465
|
/**
|
|
5391
5466
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
5393
5468
|
*/
|
|
5394
5469
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5395
5470
|
/**
|
|
5396
5471
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
5398
5473
|
*/
|
|
5399
5474
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5400
5475
|
/**
|
|
5401
5476
|
* Prefer `BigInt` literals over the constructor.
|
|
5402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
5403
5478
|
*/
|
|
5404
5479
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5405
5480
|
/**
|
|
5406
5481
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5408
5483
|
*/
|
|
5409
5484
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5410
5485
|
/**
|
|
5411
5486
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
5413
5488
|
*/
|
|
5414
5489
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5415
5490
|
/**
|
|
5416
5491
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5418
5493
|
*/
|
|
5419
5494
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5420
5495
|
/**
|
|
5421
5496
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
5423
5498
|
*/
|
|
5424
5499
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5425
5500
|
/**
|
|
5426
5501
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
5428
5503
|
*/
|
|
5429
5504
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5430
5505
|
/**
|
|
5431
5506
|
* Prefer default parameters over reassignment.
|
|
5432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
5433
5508
|
*/
|
|
5434
5509
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5435
5510
|
/**
|
|
5436
5511
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
5438
5513
|
*/
|
|
5439
5514
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5440
5515
|
/**
|
|
5441
5516
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5443
5518
|
*/
|
|
5444
5519
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5445
5520
|
/**
|
|
5446
5521
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5448
5523
|
*/
|
|
5449
5524
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5450
5525
|
/**
|
|
5451
5526
|
* Prefer `.textContent` over `.innerText`.
|
|
5452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5453
5528
|
*/
|
|
5454
5529
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5455
5530
|
/**
|
|
5456
5531
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
5458
5533
|
*/
|
|
5459
5534
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5460
5535
|
/**
|
|
5461
5536
|
* Prefer `export…from` when re-exporting.
|
|
5462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
5463
5538
|
*/
|
|
5464
5539
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5465
5540
|
/**
|
|
5466
5541
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
5468
5543
|
*/
|
|
5469
5544
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5470
5545
|
/**
|
|
5471
5546
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5473
5548
|
*/
|
|
5474
5549
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5475
5550
|
/**
|
|
5476
5551
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
5478
5553
|
*/
|
|
5479
5554
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5480
5555
|
/**
|
|
5481
5556
|
* Prefer reading a JSON file as a buffer.
|
|
5482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5483
5558
|
*/
|
|
5484
5559
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5485
5560
|
/**
|
|
5486
5561
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5488
5563
|
*/
|
|
5489
5564
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5490
5565
|
/**
|
|
5491
5566
|
* Prefer using a logical operator over a ternary.
|
|
5492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5493
5568
|
*/
|
|
5494
5569
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5495
5570
|
/**
|
|
5496
5571
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
5498
5573
|
*/
|
|
5499
5574
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5500
5575
|
/**
|
|
5501
5576
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
5503
5578
|
*/
|
|
5504
5579
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5505
5580
|
/**
|
|
5506
5581
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5508
5583
|
*/
|
|
5509
5584
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5510
5585
|
/**
|
|
5511
5586
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5513
5588
|
*/
|
|
5514
5589
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5515
5590
|
/**
|
|
5516
5591
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
5518
5593
|
*/
|
|
5519
5594
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5520
5595
|
/**
|
|
5521
5596
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5523
5598
|
*/
|
|
5524
5599
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5525
5600
|
/**
|
|
5526
5601
|
* Prefer negative index over `.length - index` when possible.
|
|
5527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
5528
5603
|
*/
|
|
5529
5604
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5530
5605
|
/**
|
|
5531
5606
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5607
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
5533
5608
|
*/
|
|
5534
5609
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5535
5610
|
/**
|
|
5536
5611
|
* Prefer `Number` static properties over global ones.
|
|
5537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5612
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
5538
5613
|
*/
|
|
5539
5614
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5540
5615
|
/**
|
|
5541
5616
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5617
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
5543
5618
|
*/
|
|
5544
5619
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5545
5620
|
/**
|
|
5546
5621
|
* Prefer omitting the `catch` binding parameter.
|
|
5547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5548
5623
|
*/
|
|
5549
5624
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5550
5625
|
/**
|
|
5551
5626
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5627
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
5553
5628
|
*/
|
|
5554
5629
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5555
5630
|
/**
|
|
5556
5631
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5632
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
5558
5633
|
*/
|
|
5559
5634
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5560
5635
|
/**
|
|
5561
5636
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
5563
5638
|
*/
|
|
5564
5639
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5565
5640
|
/**
|
|
5566
5641
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5642
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
5568
5643
|
*/
|
|
5569
5644
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5645
|
+
/**
|
|
5646
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5647
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
5648
|
+
*/
|
|
5649
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5570
5650
|
/**
|
|
5571
5651
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5652
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
5573
5653
|
*/
|
|
5574
5654
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5575
5655
|
/**
|
|
5576
5656
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
5578
5658
|
*/
|
|
5579
5659
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5580
5660
|
/**
|
|
5581
5661
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
5583
5663
|
*/
|
|
5584
5664
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5585
5665
|
/**
|
|
5586
5666
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
5588
5668
|
*/
|
|
5589
5669
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5590
5670
|
/**
|
|
5591
5671
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
5593
5673
|
*/
|
|
5594
5674
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5595
5675
|
/**
|
|
5596
5676
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
5598
5678
|
*/
|
|
5599
5679
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5600
5680
|
/**
|
|
5601
5681
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
5603
5683
|
*/
|
|
5604
5684
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5605
5685
|
/**
|
|
5606
5686
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5608
5688
|
*/
|
|
5609
5689
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5610
5690
|
/**
|
|
5611
5691
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5613
5693
|
*/
|
|
5614
5694
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5615
5695
|
/**
|
|
5616
5696
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
5618
5698
|
*/
|
|
5619
5699
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5620
5700
|
/**
|
|
5621
5701
|
* Prefer `switch` over multiple `else-if`.
|
|
5622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
5623
5703
|
*/
|
|
5624
5704
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5625
5705
|
/**
|
|
5626
5706
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
5628
5708
|
*/
|
|
5629
5709
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5630
5710
|
/**
|
|
5631
5711
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
5633
5713
|
*/
|
|
5634
5714
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5635
5715
|
/**
|
|
5636
5716
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
5638
5718
|
*/
|
|
5639
5719
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5640
5720
|
/**
|
|
5641
5721
|
* Prevent abbreviations.
|
|
5642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
5643
5723
|
*/
|
|
5644
5724
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5645
5725
|
/**
|
|
5646
5726
|
* Enforce consistent relative URL style.
|
|
5647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
5648
5728
|
*/
|
|
5649
5729
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5650
5730
|
/**
|
|
5651
5731
|
* Enforce using the separator argument with `Array#join()`.
|
|
5652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
5653
5733
|
*/
|
|
5654
5734
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5655
5735
|
/**
|
|
5656
5736
|
* Require non-empty module attributes for imports and exports
|
|
5657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
5658
5738
|
*/
|
|
5659
5739
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5660
5740
|
/**
|
|
5661
5741
|
* Require non-empty specifier list in import and export statements.
|
|
5662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
5663
5743
|
*/
|
|
5664
5744
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5665
5745
|
/**
|
|
5666
5746
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5668
5748
|
*/
|
|
5669
5749
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5670
5750
|
/**
|
|
5671
5751
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
5673
5753
|
*/
|
|
5674
5754
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5675
5755
|
/**
|
|
5676
5756
|
* Enforce better string content.
|
|
5677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
5678
5758
|
*/
|
|
5679
5759
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5680
5760
|
/**
|
|
5681
5761
|
* Enforce consistent brace style for `case` clauses.
|
|
5682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
5683
5763
|
*/
|
|
5684
5764
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5685
5765
|
/**
|
|
5686
5766
|
* Fix whitespace-insensitive template indentation.
|
|
5687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
5688
5768
|
*/
|
|
5689
5769
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5690
5770
|
/**
|
|
5691
5771
|
* Enforce consistent case for text encoding identifiers.
|
|
5692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5693
5773
|
*/
|
|
5694
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
5774
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5695
5775
|
/**
|
|
5696
5776
|
* Require `new` when creating an error.
|
|
5697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
5698
5778
|
*/
|
|
5699
5779
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5700
5780
|
/**
|
|
@@ -9409,6 +9489,13 @@ type ArrowSpacing = [] | [{
|
|
|
9409
9489
|
before?: boolean;
|
|
9410
9490
|
after?: boolean;
|
|
9411
9491
|
}];
|
|
9492
|
+
// ----- astro/no-unsafe-inline-scripts -----
|
|
9493
|
+
type AstroNoUnsafeInlineScripts = [] | [{
|
|
9494
|
+
allowDefineVars?: boolean;
|
|
9495
|
+
allowModuleScripts?: boolean;
|
|
9496
|
+
allowNonExecutingTypes?: string[];
|
|
9497
|
+
allowNonce?: boolean;
|
|
9498
|
+
}];
|
|
9412
9499
|
// ----- astro/prefer-split-class-list -----
|
|
9413
9500
|
type AstroPreferSplitClassList = [] | [{
|
|
9414
9501
|
splitLiteral?: boolean;
|
|
@@ -10156,6 +10243,9 @@ type JsdocSortTags = [] | [{
|
|
|
10156
10243
|
linesBetween?: number;
|
|
10157
10244
|
reportIntraTagGroupSpacing?: boolean;
|
|
10158
10245
|
reportTagGroupSpacing?: boolean;
|
|
10246
|
+
tagExceptions?: {
|
|
10247
|
+
[k: string]: number;
|
|
10248
|
+
};
|
|
10159
10249
|
tagSequence?: {
|
|
10160
10250
|
tags?: string[];
|
|
10161
10251
|
}[];
|
|
@@ -13537,6 +13627,33 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13537
13627
|
commentAbove?: string;
|
|
13538
13628
|
})[];
|
|
13539
13629
|
}];
|
|
13630
|
+
// ----- pnpm/json-enforce-catalog -----
|
|
13631
|
+
type PnpmJsonEnforceCatalog = [] | [{
|
|
13632
|
+
allowedProtocols?: string[];
|
|
13633
|
+
autofix?: boolean;
|
|
13634
|
+
defaultCatalog?: string;
|
|
13635
|
+
reuseExistingCatalog?: boolean;
|
|
13636
|
+
conflicts?: ("new-catalog" | "overrides" | "error");
|
|
13637
|
+
fields?: string[];
|
|
13638
|
+
ignores?: string[];
|
|
13639
|
+
}];
|
|
13640
|
+
// ----- pnpm/json-prefer-workspace-settings -----
|
|
13641
|
+
type PnpmJsonPreferWorkspaceSettings = [] | [{
|
|
13642
|
+
autofix?: boolean;
|
|
13643
|
+
}];
|
|
13644
|
+
// ----- pnpm/json-valid-catalog -----
|
|
13645
|
+
type PnpmJsonValidCatalog = [] | [{
|
|
13646
|
+
autoInsert?: boolean;
|
|
13647
|
+
autoInsertDefaultSpecifier?: string;
|
|
13648
|
+
autofix?: boolean;
|
|
13649
|
+
enforceNoConflict?: boolean;
|
|
13650
|
+
fields?: unknown[];
|
|
13651
|
+
}];
|
|
13652
|
+
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
13653
|
+
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
13654
|
+
allow?: string[];
|
|
13655
|
+
checkDuplicates?: ("name-only" | "exact-version");
|
|
13656
|
+
}];
|
|
13540
13657
|
// ----- prefer-arrow-callback -----
|
|
13541
13658
|
type PreferArrowCallback = [] | [{
|
|
13542
13659
|
allowNamedFunctions?: boolean;
|
|
@@ -13855,7 +13972,7 @@ type TestNoFocusedTests = [] | [{
|
|
|
13855
13972
|
}];
|
|
13856
13973
|
// ----- test/no-hooks -----
|
|
13857
13974
|
type TestNoHooks = [] | [{
|
|
13858
|
-
allow?:
|
|
13975
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
13859
13976
|
}];
|
|
13860
13977
|
// ----- test/no-large-snapshots -----
|
|
13861
13978
|
type TestNoLargeSnapshots = [] | [{
|
|
@@ -14271,6 +14388,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
14271
14388
|
selectors?: string[];
|
|
14272
14389
|
comments?: string[];
|
|
14273
14390
|
}];
|
|
14391
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
14392
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
14393
|
+
withDash?: boolean;
|
|
14394
|
+
}];
|
|
14274
14395
|
// ----- unused-imports/no-unused-imports -----
|
|
14275
14396
|
type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
14276
14397
|
args?: ("all" | "after-used" | "none");
|
|
@@ -15717,6 +15838,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
15717
15838
|
onlyEquality?: boolean;
|
|
15718
15839
|
}];
|
|
15719
15840
|
// Names of all the configs
|
|
15720
|
-
type ConfigNames = 'eienjs/
|
|
15841
|
+
type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/node/rules' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/imports/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/yaml/pnpm-workspace' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/disables' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro' | 'eienjs/disables/deploy-tools';
|
|
15721
15842
|
//#endregion
|
|
15722
15843
|
export { ConfigNames, RuleOptions };
|