@jimmy.codes/eslint-config 6.14.3 → 6.15.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/{astro-Cc3Rxusf.js → astro-CYKa1Ijk.js} +3 -2
- package/dist/{globs-CRO5v7xy.js → globs-C5FyFNuk.js} +1 -1
- package/dist/globs.js +1 -1
- package/dist/{has-dependency-7vimNBSE.js → has-dependency-lkRo7x2C.js} +1 -1
- package/dist/index.d.ts +174 -143
- package/dist/index.js +13 -13
- package/dist/{interop-default-D4l3hsYQ.js → interop-default-DQxo_rHy.js} +1 -1
- package/dist/{jest-BCatBVvc.js → jest-DBcw_I7S.js} +2 -2
- package/dist/{nextjs-Dw-jYP2k.js → nextjs-BAZ7sZb7.js} +3 -3
- package/dist/{playwright-Bbcb5Jsi.js → playwright-BXMpcaS7.js} +2 -2
- package/dist/{react-DRiOy59I.js → react-Dmzbj6KF.js} +4 -4
- package/dist/{storybook-BO4plVPp.js → storybook-D3Bkozqd.js} +2 -2
- package/dist/{tanstack-query-DqqVfxJs.js → tanstack-query-C0Pag-TK.js} +2 -2
- package/dist/{testing-library-lJsmjyFo.js → testing-library-DuiSlHeo.js} +2 -2
- package/dist/{typescript-D8AT5dEv.js → typescript-CWevoym8.js} +1 -1
- package/dist/{upwarn-C7t3ub-R.js → upwarn-DItTz7lt.js} +1 -1
- package/dist/{vitest-CADaM8FX.js → vitest-Bs_zrIdp.js} +2 -2
- package/package.json +14 -14
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_ASTRO } from "./globs-
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { t as GLOB_ASTRO } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
import globals from "globals";
|
|
4
4
|
|
|
5
5
|
//#region src/configs/astro.ts
|
|
@@ -42,6 +42,7 @@ async function astroConfig() {
|
|
|
42
42
|
"astro/no-deprecated-astro-resolve": "error",
|
|
43
43
|
"astro/no-deprecated-getentrybyslug": "error",
|
|
44
44
|
"astro/no-exports-from-components": "off",
|
|
45
|
+
"astro/no-unsafe-inline-scripts": "error",
|
|
45
46
|
"astro/no-unused-define-vars-in-style": "error",
|
|
46
47
|
"astro/valid-compile": "error"
|
|
47
48
|
}
|
|
@@ -69,4 +69,4 @@ const GLOB_IGNORES = [
|
|
|
69
69
|
];
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
72
|
-
export {
|
|
72
|
+
export { GLOB_JS as a, GLOB_PLAYWRIGHT as c, GLOB_TSX as d, GLOB_IGNORES as i, GLOB_TESTS as l, GLOB_CJS as n, GLOB_JSX as o, GLOB_E2E as r, GLOB_NEXTJS as s, GLOB_ASTRO as t, GLOB_TS as u };
|
package/dist/globs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as GLOB_JS, c as GLOB_PLAYWRIGHT, d as GLOB_TSX, i as GLOB_IGNORES, l as GLOB_TESTS, n as GLOB_CJS, o as GLOB_JSX, r as GLOB_E2E, s as GLOB_NEXTJS, t as GLOB_ASTRO, u as GLOB_TS } from "./globs-C5FyFNuk.js";
|
|
2
2
|
|
|
3
3
|
export { GLOB_ASTRO, GLOB_CJS, GLOB_E2E, GLOB_IGNORES, GLOB_JS, GLOB_JSX, GLOB_NEXTJS, GLOB_PLAYWRIGHT, GLOB_TESTS, GLOB_TS, GLOB_TSX };
|
|
@@ -38,4 +38,4 @@ const hasVite = () => {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
|
-
export {
|
|
41
|
+
export { hasReact as a, hasTestingLibrary as c, hasVitest as d, hasPlaywright as i, hasTypescript as l, hasJest as n, hasReactQuery as o, hasNext as r, hasStorybook as s, hasAstro as t, hasVite as u };
|
package/dist/index.d.ts
CHANGED
|
@@ -2051,6 +2051,11 @@ interface RuleOptions {
|
|
|
2051
2051
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
2052
2052
|
*/
|
|
2053
2053
|
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
|
|
2054
|
+
/**
|
|
2055
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
2056
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
2057
|
+
*/
|
|
2058
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
|
|
2054
2059
|
/**
|
|
2055
2060
|
* disallow selectors defined in `style` tag that don't use in HTML
|
|
2056
2061
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
@@ -5287,7 +5292,7 @@ interface RuleOptions {
|
|
|
5287
5292
|
*/
|
|
5288
5293
|
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
5289
5294
|
/**
|
|
5290
|
-
* Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
5295
|
+
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
5291
5296
|
*/
|
|
5292
5297
|
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
5293
5298
|
'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
@@ -6046,710 +6051,725 @@ interface RuleOptions {
|
|
|
6046
6051
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
6047
6052
|
/**
|
|
6048
6053
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
6049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
6050
6055
|
*/
|
|
6051
6056
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
6052
6057
|
/**
|
|
6053
6058
|
* Enforce a specific parameter name in catch clauses.
|
|
6054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
6055
6060
|
*/
|
|
6056
6061
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
6057
6062
|
/**
|
|
6058
6063
|
* Enforce consistent assertion style with `node:assert`.
|
|
6059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
6060
6065
|
*/
|
|
6061
6066
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
6062
6067
|
/**
|
|
6063
6068
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
6065
6070
|
*/
|
|
6066
6071
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
6067
6072
|
/**
|
|
6068
6073
|
* Use destructured variables over properties.
|
|
6069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
6070
6075
|
*/
|
|
6071
6076
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
6072
6077
|
/**
|
|
6073
6078
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
6075
6080
|
*/
|
|
6076
6081
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
6077
6082
|
/**
|
|
6078
6083
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
6080
6085
|
*/
|
|
6081
6086
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
6082
6087
|
/**
|
|
6083
6088
|
* Move function definitions to the highest possible scope.
|
|
6084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
6085
6090
|
*/
|
|
6086
6091
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6087
6092
|
/**
|
|
6088
6093
|
* Enforce correct `Error` subclassing.
|
|
6089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
6090
6095
|
*/
|
|
6091
6096
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
6092
6097
|
/**
|
|
6093
6098
|
* Enforce no spaces between braces.
|
|
6094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
6095
6100
|
*/
|
|
6096
6101
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
6097
6102
|
/**
|
|
6098
6103
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6104
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
6100
6105
|
*/
|
|
6101
6106
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
6102
6107
|
/**
|
|
6103
6108
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
6105
6110
|
*/
|
|
6106
6111
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
6107
6112
|
/**
|
|
6108
6113
|
* Add expiration conditions to TODO comments.
|
|
6109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
6110
6115
|
*/
|
|
6111
6116
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
6112
6117
|
/**
|
|
6113
6118
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
6115
6120
|
*/
|
|
6116
6121
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
6117
6122
|
/**
|
|
6118
6123
|
* Enforce a case style for filenames.
|
|
6119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
6120
6125
|
*/
|
|
6121
6126
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
6122
6127
|
/**
|
|
6123
6128
|
* Enforce specific import styles per module.
|
|
6124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
6125
6130
|
*/
|
|
6126
6131
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
6127
6132
|
/**
|
|
6128
6133
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
6129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
6130
6135
|
*/
|
|
6131
6136
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
6132
6137
|
/**
|
|
6133
6138
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
6135
6140
|
*/
|
|
6136
6141
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
6137
6142
|
/**
|
|
6138
6143
|
* Disallow recursive access to `this` within getters and setters.
|
|
6139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
6140
6145
|
*/
|
|
6141
6146
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
6142
6147
|
/**
|
|
6143
6148
|
* Disallow anonymous functions and classes as the default export.
|
|
6144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
6145
6150
|
*/
|
|
6146
6151
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
6147
6152
|
/**
|
|
6148
6153
|
* Prevent passing a function reference directly to iterator methods.
|
|
6149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
6150
6155
|
*/
|
|
6151
6156
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
6152
6157
|
/**
|
|
6153
6158
|
* Prefer `for…of` over the `forEach` method.
|
|
6154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
6155
6160
|
*/
|
|
6156
6161
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
6157
6162
|
/**
|
|
6158
6163
|
* Disallow using the `this` argument in array methods.
|
|
6159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
6160
6165
|
*/
|
|
6161
6166
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
6162
6167
|
/**
|
|
6163
6168
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
6165
6170
|
* @deprecated
|
|
6166
6171
|
*/
|
|
6167
6172
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
6168
6173
|
/**
|
|
6169
6174
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6170
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
6171
6176
|
*/
|
|
6172
6177
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
6173
6178
|
/**
|
|
6174
6179
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6175
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
6176
6181
|
*/
|
|
6177
6182
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
6178
6183
|
/**
|
|
6179
6184
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6180
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
6181
6186
|
*/
|
|
6182
6187
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
6183
6188
|
/**
|
|
6184
6189
|
* Disallow member access from await expression.
|
|
6185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
6186
6191
|
*/
|
|
6187
6192
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
6188
6193
|
/**
|
|
6189
6194
|
* Disallow using `await` in `Promise` method parameters.
|
|
6190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
6191
6196
|
*/
|
|
6192
6197
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6193
6198
|
/**
|
|
6194
6199
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
6196
6201
|
*/
|
|
6197
6202
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
6198
6203
|
/**
|
|
6199
6204
|
* Do not use `document.cookie` directly.
|
|
6200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
6201
6206
|
*/
|
|
6202
6207
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
6203
6208
|
/**
|
|
6204
6209
|
* Disallow empty files.
|
|
6205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
6206
6211
|
*/
|
|
6207
6212
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
6208
6213
|
/**
|
|
6209
6214
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
6210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
6211
6216
|
*/
|
|
6212
6217
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
6213
6218
|
/**
|
|
6214
6219
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
6215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
6216
6221
|
*/
|
|
6217
6222
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
6223
|
+
/**
|
|
6224
|
+
* Disallow immediate mutation after variable assignment.
|
|
6225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
6226
|
+
*/
|
|
6227
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
6218
6228
|
/**
|
|
6219
6229
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
6220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
6221
6231
|
* @deprecated
|
|
6222
6232
|
*/
|
|
6223
6233
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
6224
6234
|
/**
|
|
6225
6235
|
* Disallow `instanceof` with built-in objects
|
|
6226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6236
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
6227
6237
|
*/
|
|
6228
6238
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
6229
6239
|
/**
|
|
6230
6240
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
6231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
6232
6242
|
*/
|
|
6233
6243
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
6234
6244
|
/**
|
|
6235
6245
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
6236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6246
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
6237
6247
|
*/
|
|
6238
6248
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
6239
6249
|
/**
|
|
6240
6250
|
* Disallow identifiers starting with `new` or `class`.
|
|
6241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6251
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
6242
6252
|
*/
|
|
6243
6253
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
6244
6254
|
/**
|
|
6245
6255
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
6246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6256
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
6247
6257
|
* @deprecated
|
|
6248
6258
|
*/
|
|
6249
6259
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
6250
6260
|
/**
|
|
6251
6261
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
6252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
6253
6263
|
*/
|
|
6254
6264
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
6255
6265
|
/**
|
|
6256
6266
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
6257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
6258
6268
|
*/
|
|
6259
6269
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6260
6270
|
/**
|
|
6261
6271
|
* Disallow named usage of default import and export.
|
|
6262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
6263
6273
|
*/
|
|
6264
6274
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
6265
6275
|
/**
|
|
6266
6276
|
* Disallow negated conditions.
|
|
6267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
6268
6278
|
*/
|
|
6269
6279
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
6270
6280
|
/**
|
|
6271
6281
|
* Disallow negated expression in equality check.
|
|
6272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
6273
6283
|
*/
|
|
6274
6284
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
6275
6285
|
/**
|
|
6276
6286
|
* Disallow nested ternary expressions.
|
|
6277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
6278
6288
|
*/
|
|
6279
6289
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
6280
6290
|
/**
|
|
6281
6291
|
* Disallow `new Array()`.
|
|
6282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
6283
6293
|
*/
|
|
6284
6294
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
6285
6295
|
/**
|
|
6286
6296
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
6287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
6288
6298
|
*/
|
|
6289
6299
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
6290
6300
|
/**
|
|
6291
6301
|
* Disallow the use of the `null` literal.
|
|
6292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
6293
6303
|
*/
|
|
6294
6304
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
6295
6305
|
/**
|
|
6296
6306
|
* Disallow the use of objects as default parameters.
|
|
6297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
6298
6308
|
*/
|
|
6299
6309
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
6300
6310
|
/**
|
|
6301
6311
|
* Disallow `process.exit()`.
|
|
6302
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
6303
6313
|
*/
|
|
6304
6314
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
6305
6315
|
/**
|
|
6306
6316
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
6307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
6308
6318
|
*/
|
|
6309
6319
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6310
6320
|
/**
|
|
6311
6321
|
* Disallow classes that only have static members.
|
|
6312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
6313
6323
|
*/
|
|
6314
6324
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
6315
6325
|
/**
|
|
6316
6326
|
* Disallow `then` property.
|
|
6317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
6318
6328
|
*/
|
|
6319
6329
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
6320
6330
|
/**
|
|
6321
6331
|
* Disallow assigning `this` to a variable.
|
|
6322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
6323
6333
|
*/
|
|
6324
6334
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
6325
6335
|
/**
|
|
6326
6336
|
* Disallow comparing `undefined` using `typeof`.
|
|
6327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
6328
6338
|
*/
|
|
6329
6339
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
6330
6340
|
/**
|
|
6331
6341
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
6332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
6333
6343
|
*/
|
|
6334
6344
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6335
6345
|
/**
|
|
6336
6346
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
6337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
6338
6348
|
*/
|
|
6339
6349
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
6340
6350
|
/**
|
|
6341
6351
|
* Disallow awaiting non-promise values.
|
|
6342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
6343
6353
|
*/
|
|
6344
6354
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
6345
6355
|
/**
|
|
6346
6356
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
6347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
6348
6358
|
*/
|
|
6349
6359
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
6350
6360
|
/**
|
|
6351
6361
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
6352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
6353
6363
|
*/
|
|
6354
6364
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
6355
6365
|
/**
|
|
6356
6366
|
* Disallow unreadable array destructuring.
|
|
6357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
6358
6368
|
*/
|
|
6359
6369
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
6360
6370
|
/**
|
|
6361
6371
|
* Disallow unreadable IIFEs.
|
|
6362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
6363
6373
|
*/
|
|
6364
6374
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
6365
6375
|
/**
|
|
6366
6376
|
* Disallow unused object properties.
|
|
6367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
6368
6378
|
*/
|
|
6369
6379
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
6380
|
+
/**
|
|
6381
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
6382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
6383
|
+
*/
|
|
6384
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
6370
6385
|
/**
|
|
6371
6386
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
6372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
6373
6388
|
*/
|
|
6374
6389
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
6375
6390
|
/**
|
|
6376
6391
|
* Disallow useless fallback when spreading in object literals.
|
|
6377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
6378
6393
|
*/
|
|
6379
6394
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
6380
6395
|
/**
|
|
6381
6396
|
* Disallow useless array length check.
|
|
6382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
6383
6398
|
*/
|
|
6384
6399
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
6385
6400
|
/**
|
|
6386
6401
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
6387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
6388
6403
|
*/
|
|
6389
6404
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
6390
6405
|
/**
|
|
6391
6406
|
* Disallow unnecessary spread.
|
|
6392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
6393
6408
|
*/
|
|
6394
6409
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
6395
6410
|
/**
|
|
6396
6411
|
* Disallow useless case in switch statements.
|
|
6397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
6398
6413
|
*/
|
|
6399
6414
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
6400
6415
|
/**
|
|
6401
6416
|
* Disallow useless `undefined`.
|
|
6402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
6403
6418
|
*/
|
|
6404
6419
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
6405
6420
|
/**
|
|
6406
6421
|
* Disallow number literals with zero fractions or dangling dots.
|
|
6407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
6408
6423
|
*/
|
|
6409
6424
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
6410
6425
|
/**
|
|
6411
6426
|
* Enforce proper case for numeric literals.
|
|
6412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
6413
6428
|
*/
|
|
6414
6429
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
6415
6430
|
/**
|
|
6416
6431
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
6418
6433
|
*/
|
|
6419
6434
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
6420
6435
|
/**
|
|
6421
6436
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
6423
6438
|
*/
|
|
6424
6439
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
6425
6440
|
/**
|
|
6426
6441
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
6428
6443
|
*/
|
|
6429
6444
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
6430
6445
|
/**
|
|
6431
6446
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
6433
6448
|
*/
|
|
6434
6449
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
6435
6450
|
/**
|
|
6436
6451
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
6437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
6438
6453
|
*/
|
|
6439
6454
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
6440
6455
|
/**
|
|
6441
6456
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
6443
6458
|
*/
|
|
6444
6459
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
6445
6460
|
/**
|
|
6446
6461
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
6448
6463
|
*/
|
|
6449
6464
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
6450
6465
|
/**
|
|
6451
6466
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
6453
6468
|
*/
|
|
6454
6469
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
6455
6470
|
/**
|
|
6456
6471
|
* Prefer `BigInt` literals over the constructor.
|
|
6457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
6458
6473
|
*/
|
|
6459
6474
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
6460
6475
|
/**
|
|
6461
6476
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
6463
6478
|
*/
|
|
6464
6479
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
6465
6480
|
/**
|
|
6466
6481
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
6467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
6468
6483
|
*/
|
|
6469
6484
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
6470
6485
|
/**
|
|
6471
6486
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
6473
6488
|
*/
|
|
6474
6489
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
6475
6490
|
/**
|
|
6476
6491
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
6478
6493
|
*/
|
|
6479
6494
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
6480
6495
|
/**
|
|
6481
6496
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
6483
6498
|
*/
|
|
6484
6499
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
6485
6500
|
/**
|
|
6486
6501
|
* Prefer default parameters over reassignment.
|
|
6487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
6488
6503
|
*/
|
|
6489
6504
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
6490
6505
|
/**
|
|
6491
6506
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
6493
6508
|
*/
|
|
6494
6509
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
6495
6510
|
/**
|
|
6496
6511
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
6498
6513
|
*/
|
|
6499
6514
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
6500
6515
|
/**
|
|
6501
6516
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6503
6518
|
*/
|
|
6504
6519
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
6505
6520
|
/**
|
|
6506
6521
|
* Prefer `.textContent` over `.innerText`.
|
|
6507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6508
6523
|
*/
|
|
6509
6524
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
6510
6525
|
/**
|
|
6511
6526
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
6513
6528
|
*/
|
|
6514
6529
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
6515
6530
|
/**
|
|
6516
6531
|
* Prefer `export…from` when re-exporting.
|
|
6517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
6518
6533
|
*/
|
|
6519
6534
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
6520
6535
|
/**
|
|
6521
6536
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
6523
6538
|
*/
|
|
6524
6539
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
6525
6540
|
/**
|
|
6526
6541
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
6528
6543
|
*/
|
|
6529
6544
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
6530
6545
|
/**
|
|
6531
6546
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
6533
6548
|
*/
|
|
6534
6549
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
6535
6550
|
/**
|
|
6536
6551
|
* Prefer reading a JSON file as a buffer.
|
|
6537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
6538
6553
|
*/
|
|
6539
6554
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
6540
6555
|
/**
|
|
6541
6556
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6543
6558
|
*/
|
|
6544
6559
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6545
6560
|
/**
|
|
6546
6561
|
* Prefer using a logical operator over a ternary.
|
|
6547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6548
6563
|
*/
|
|
6549
6564
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
6550
6565
|
/**
|
|
6551
6566
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
6553
6568
|
*/
|
|
6554
6569
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6555
6570
|
/**
|
|
6556
6571
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
6558
6573
|
*/
|
|
6559
6574
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
6560
6575
|
/**
|
|
6561
6576
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6563
6578
|
*/
|
|
6564
6579
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
6565
6580
|
/**
|
|
6566
6581
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6568
6583
|
*/
|
|
6569
6584
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
6570
6585
|
/**
|
|
6571
6586
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
6573
6588
|
*/
|
|
6574
6589
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
6575
6590
|
/**
|
|
6576
6591
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6578
6593
|
*/
|
|
6579
6594
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
6580
6595
|
/**
|
|
6581
6596
|
* Prefer negative index over `.length - index` when possible.
|
|
6582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
6583
6598
|
*/
|
|
6584
6599
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
6585
6600
|
/**
|
|
6586
6601
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
6588
6603
|
*/
|
|
6589
6604
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
6590
6605
|
/**
|
|
6591
6606
|
* Prefer `Number` static properties over global ones.
|
|
6592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6607
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
6593
6608
|
*/
|
|
6594
6609
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
6595
6610
|
/**
|
|
6596
6611
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6612
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
6598
6613
|
*/
|
|
6599
6614
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
6600
6615
|
/**
|
|
6601
6616
|
* Prefer omitting the `catch` binding parameter.
|
|
6602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6617
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6603
6618
|
*/
|
|
6604
6619
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
6605
6620
|
/**
|
|
6606
6621
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
6608
6623
|
*/
|
|
6609
6624
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
6610
6625
|
/**
|
|
6611
6626
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6627
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
6613
6628
|
*/
|
|
6614
6629
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
6615
6630
|
/**
|
|
6616
6631
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6632
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
6618
6633
|
*/
|
|
6619
6634
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
6620
6635
|
/**
|
|
6621
6636
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
6623
6638
|
*/
|
|
6624
6639
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
6640
|
+
/**
|
|
6641
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6642
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
6643
|
+
*/
|
|
6644
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
6625
6645
|
/**
|
|
6626
6646
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6647
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
6628
6648
|
*/
|
|
6629
6649
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
6630
6650
|
/**
|
|
6631
6651
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6652
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
6633
6653
|
*/
|
|
6634
6654
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6635
6655
|
/**
|
|
6636
6656
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
6638
6658
|
*/
|
|
6639
6659
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
6640
6660
|
/**
|
|
6641
6661
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
6643
6663
|
*/
|
|
6644
6664
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
6645
6665
|
/**
|
|
6646
6666
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
6648
6668
|
*/
|
|
6649
6669
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
6650
6670
|
/**
|
|
6651
6671
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
6653
6673
|
*/
|
|
6654
6674
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
6655
6675
|
/**
|
|
6656
6676
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
6658
6678
|
*/
|
|
6659
6679
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
6660
6680
|
/**
|
|
6661
6681
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6663
6683
|
*/
|
|
6664
6684
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
6665
6685
|
/**
|
|
6666
6686
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6668
6688
|
*/
|
|
6669
6689
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
6670
6690
|
/**
|
|
6671
6691
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
6673
6693
|
*/
|
|
6674
6694
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
6675
6695
|
/**
|
|
6676
6696
|
* Prefer `switch` over multiple `else-if`.
|
|
6677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
6678
6698
|
*/
|
|
6679
6699
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
6680
6700
|
/**
|
|
6681
6701
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
6683
6703
|
*/
|
|
6684
6704
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
6685
6705
|
/**
|
|
6686
6706
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
6688
6708
|
*/
|
|
6689
6709
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
6690
6710
|
/**
|
|
6691
6711
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
6693
6713
|
*/
|
|
6694
6714
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
6695
6715
|
/**
|
|
6696
6716
|
* Prevent abbreviations.
|
|
6697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
6698
6718
|
*/
|
|
6699
6719
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
6700
6720
|
/**
|
|
6701
6721
|
* Enforce consistent relative URL style.
|
|
6702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
6703
6723
|
*/
|
|
6704
6724
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
6705
6725
|
/**
|
|
6706
6726
|
* Enforce using the separator argument with `Array#join()`.
|
|
6707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
6708
6728
|
*/
|
|
6709
6729
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
6710
6730
|
/**
|
|
6711
6731
|
* Require non-empty module attributes for imports and exports
|
|
6712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
6713
6733
|
*/
|
|
6714
6734
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
6715
6735
|
/**
|
|
6716
6736
|
* Require non-empty specifier list in import and export statements.
|
|
6717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
6718
6738
|
*/
|
|
6719
6739
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
6720
6740
|
/**
|
|
6721
6741
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6723
6743
|
*/
|
|
6724
6744
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
6725
6745
|
/**
|
|
6726
6746
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
6728
6748
|
*/
|
|
6729
6749
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
6730
6750
|
/**
|
|
6731
6751
|
* Enforce better string content.
|
|
6732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
6733
6753
|
*/
|
|
6734
6754
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
6735
6755
|
/**
|
|
6736
6756
|
* Enforce consistent brace style for `case` clauses.
|
|
6737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
6738
6758
|
*/
|
|
6739
6759
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
6740
6760
|
/**
|
|
6741
6761
|
* Fix whitespace-insensitive template indentation.
|
|
6742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
6743
6763
|
*/
|
|
6744
6764
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
6745
6765
|
/**
|
|
6746
6766
|
* Enforce consistent case for text encoding identifiers.
|
|
6747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6748
6768
|
*/
|
|
6749
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
6769
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
6750
6770
|
/**
|
|
6751
6771
|
* Require `new` when creating an error.
|
|
6752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
6753
6773
|
*/
|
|
6754
6774
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
6755
6775
|
/**
|
|
@@ -9644,6 +9664,13 @@ type AstroJsxA11YScope = [] | [{
|
|
|
9644
9664
|
type AstroJsxA11YTabindexNoPositive = [] | [{
|
|
9645
9665
|
[k: string]: unknown | undefined;
|
|
9646
9666
|
}];
|
|
9667
|
+
// ----- astro/no-unsafe-inline-scripts -----
|
|
9668
|
+
type AstroNoUnsafeInlineScripts = [] | [{
|
|
9669
|
+
allowDefineVars?: boolean;
|
|
9670
|
+
allowModuleScripts?: boolean;
|
|
9671
|
+
allowNonExecutingTypes?: string[];
|
|
9672
|
+
allowNonce?: boolean;
|
|
9673
|
+
}];
|
|
9647
9674
|
// ----- astro/prefer-split-class-list -----
|
|
9648
9675
|
type AstroPreferSplitClassList = [] | [{
|
|
9649
9676
|
splitLiteral?: boolean;
|
|
@@ -14748,6 +14775,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
14748
14775
|
selectors?: string[];
|
|
14749
14776
|
comments?: string[];
|
|
14750
14777
|
}];
|
|
14778
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
14779
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
14780
|
+
withDash?: boolean;
|
|
14781
|
+
}];
|
|
14751
14782
|
// ----- use-isnan -----
|
|
14752
14783
|
type UseIsnan = [] | [{
|
|
14753
14784
|
enforceForSwitchCase?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as GLOB_IGNORES, l as GLOB_TESTS, n as GLOB_CJS } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { a as hasReact, c as hasTestingLibrary, d as hasVitest, i as hasPlaywright, l as hasTypescript, n as hasJest, o as hasReactQuery, r as hasNext, s as hasStorybook, t as hasAstro } from "./has-dependency-lkRo7x2C.js";
|
|
3
3
|
import gitignoreConfig from "eslint-config-flat-gitignore";
|
|
4
4
|
import globals from "globals";
|
|
5
5
|
import comments from "@eslint-community/eslint-plugin-eslint-comments/configs";
|
|
@@ -115,7 +115,7 @@ const additionalRules = {
|
|
|
115
115
|
"eqeqeq": "error",
|
|
116
116
|
"no-console": "warn",
|
|
117
117
|
"no-div-regex": "error",
|
|
118
|
-
"no-else-return": "error",
|
|
118
|
+
"no-else-return": ["error", { allowElseIf: false }],
|
|
119
119
|
"no-implicit-coercion": "error",
|
|
120
120
|
"no-implicit-globals": "error",
|
|
121
121
|
"no-lonely-if": "error",
|
|
@@ -478,16 +478,16 @@ const defineConfig = async ({ astro = false, autoDetect = true, gitignore = fals
|
|
|
478
478
|
stylisticConfig()
|
|
479
479
|
];
|
|
480
480
|
const featureConfigs = await Promise.all([
|
|
481
|
-
isTypescriptEnabled && unwrap(import("./typescript-
|
|
482
|
-
isReactEnabled && unwrap(import("./react-
|
|
483
|
-
isTanstackQueryEnabled && unwrap(import("./tanstack-query-
|
|
484
|
-
isAstroEnabled && unwrap(import("./astro-
|
|
485
|
-
isJestEnabled && unwrap(import("./jest-
|
|
486
|
-
isVitestEnabled && unwrap(import("./vitest-
|
|
487
|
-
isTestingLibraryEnabled && unwrap(import("./testing-library-
|
|
488
|
-
isPlaywrightEnabled && unwrap(import("./playwright-
|
|
489
|
-
isStorybookEnabled && unwrap(import("./storybook-
|
|
490
|
-
isNextjsEnabled && unwrap(import("./nextjs-
|
|
481
|
+
isTypescriptEnabled && unwrap(import("./typescript-CWevoym8.js")),
|
|
482
|
+
isReactEnabled && unwrap(import("./react-Dmzbj6KF.js")),
|
|
483
|
+
isTanstackQueryEnabled && unwrap(import("./tanstack-query-C0Pag-TK.js")),
|
|
484
|
+
isAstroEnabled && unwrap(import("./astro-CYKa1Ijk.js")),
|
|
485
|
+
isJestEnabled && unwrap(import("./jest-DBcw_I7S.js")),
|
|
486
|
+
isVitestEnabled && unwrap(import("./vitest-Bs_zrIdp.js")),
|
|
487
|
+
isTestingLibraryEnabled && unwrap(import("./testing-library-DuiSlHeo.js")),
|
|
488
|
+
isPlaywrightEnabled && unwrap(import("./playwright-BXMpcaS7.js")),
|
|
489
|
+
isStorybookEnabled && unwrap(import("./storybook-D3Bkozqd.js")),
|
|
490
|
+
isNextjsEnabled && unwrap(import("./nextjs-BAZ7sZb7.js"))
|
|
491
491
|
]);
|
|
492
492
|
return [
|
|
493
493
|
...gitignore ? [gitignoreConfig({ strict: false })] : [],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { l as GLOB_TESTS, r as GLOB_E2E } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/jest.ts
|
|
5
5
|
const jestRules = async () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GLOB_NEXTJS } from "./globs-
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
3
|
-
import { upwarn } from "./upwarn-
|
|
1
|
+
import { s as GLOB_NEXTJS } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
|
+
import { t as upwarn } from "./upwarn-DItTz7lt.js";
|
|
4
4
|
|
|
5
5
|
//#region src/rules/nextjs.ts
|
|
6
6
|
const nextjsRules = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GLOB_PLAYWRIGHT } from "./globs-
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { c as GLOB_PLAYWRIGHT } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/playwright.ts
|
|
5
5
|
const playwrightRules = async () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { interopDefault } from "./interop-default-
|
|
4
|
-
import { upwarn } from "./upwarn-
|
|
1
|
+
import { d as GLOB_TSX, o as GLOB_JSX } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { l as hasTypescript, r as hasNext, u as hasVite } from "./has-dependency-lkRo7x2C.js";
|
|
3
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
4
|
+
import { t as upwarn } from "./upwarn-DItTz7lt.js";
|
|
5
5
|
import globals from "globals";
|
|
6
6
|
|
|
7
7
|
//#region src/rules/react.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { interopDefault } from "./interop-default-
|
|
2
|
-
import { upwarn } from "./upwarn-
|
|
1
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
2
|
+
import { t as upwarn } from "./upwarn-DItTz7lt.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/storybook.ts
|
|
5
5
|
async function storybookConfig() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { d as GLOB_TSX, o as GLOB_JSX } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/tanstack-query.ts
|
|
5
5
|
async function tanstackQueryConfig() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { l as GLOB_TESTS, r as GLOB_E2E } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/testing-library.ts
|
|
5
5
|
const testingLibraryRules = async () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { interopDefault } from "./interop-default-
|
|
1
|
+
import { l as GLOB_TESTS, r as GLOB_E2E } from "./globs-C5FyFNuk.js";
|
|
2
|
+
import { t as interopDefault } from "./interop-default-DQxo_rHy.js";
|
|
3
3
|
|
|
4
4
|
//#region src/rules/vitest.ts
|
|
5
5
|
const vitestRules = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -40,42 +40,42 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
43
|
-
"@eslint-react/eslint-plugin": "^2.2.
|
|
43
|
+
"@eslint-react/eslint-plugin": "^2.2.4",
|
|
44
44
|
"@eslint/js": "^9.38.0",
|
|
45
45
|
"@next/eslint-plugin-next": "^15.5.6",
|
|
46
46
|
"@stylistic/eslint-plugin": "^5.5.0",
|
|
47
47
|
"@tanstack/eslint-plugin-query": "^5.91.2",
|
|
48
48
|
"@types/eslint": "9.6.1",
|
|
49
|
-
"@typescript-eslint/parser": "^8.46.
|
|
50
|
-
"@typescript-eslint/utils": "^8.46.
|
|
51
|
-
"@vitest/eslint-plugin": "^1.3.
|
|
49
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
50
|
+
"@typescript-eslint/utils": "^8.46.2",
|
|
51
|
+
"@vitest/eslint-plugin": "^1.3.25",
|
|
52
52
|
"astro-eslint-parser": "^1.2.2",
|
|
53
53
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
54
54
|
"eslint-config-prettier": "^10.1.8",
|
|
55
55
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
56
|
-
"eslint-plugin-astro": "^1.
|
|
56
|
+
"eslint-plugin-astro": "^1.4.0",
|
|
57
57
|
"eslint-plugin-import-x": "^4.16.1",
|
|
58
58
|
"eslint-plugin-jest": "^29.0.1",
|
|
59
59
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
60
|
-
"eslint-plugin-jsdoc": "^61.1.
|
|
60
|
+
"eslint-plugin-jsdoc": "^61.1.9",
|
|
61
61
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
62
62
|
"eslint-plugin-n": "^17.23.1",
|
|
63
63
|
"eslint-plugin-perfectionist": "^4.15.1",
|
|
64
64
|
"eslint-plugin-playwright": "^2.2.2",
|
|
65
65
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
66
|
-
"eslint-plugin-react-dom": "^2.2.
|
|
67
|
-
"eslint-plugin-react-hooks": "^7.0.
|
|
68
|
-
"eslint-plugin-react-hooks-extra": "^2.2.
|
|
69
|
-
"eslint-plugin-react-naming-convention": "^2.2.
|
|
66
|
+
"eslint-plugin-react-dom": "^2.2.4",
|
|
67
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
68
|
+
"eslint-plugin-react-hooks-extra": "^2.2.4",
|
|
69
|
+
"eslint-plugin-react-naming-convention": "^2.2.4",
|
|
70
70
|
"eslint-plugin-react-refresh": "0.4.24",
|
|
71
|
-
"eslint-plugin-react-web-api": "^2.2.
|
|
71
|
+
"eslint-plugin-react-web-api": "^2.2.4",
|
|
72
72
|
"eslint-plugin-regexp": "^2.10.0",
|
|
73
73
|
"eslint-plugin-storybook": "0.12.0",
|
|
74
74
|
"eslint-plugin-testing-library": "^7.13.3",
|
|
75
|
-
"eslint-plugin-unicorn": "^
|
|
75
|
+
"eslint-plugin-unicorn": "^62.0.0",
|
|
76
76
|
"globals": "^16.4.0",
|
|
77
77
|
"local-pkg": "^1.1.2",
|
|
78
|
-
"typescript-eslint": "^8.46.
|
|
78
|
+
"typescript-eslint": "^8.46.2"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"eslint": "^9.10.0"
|