@lincy/eslint-config 5.7.1 → 5.8.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/README.md +73 -44
- package/dist/index.cjs +40 -11
- package/dist/index.d.cts +265 -184
- package/dist/index.d.ts +265 -184
- package/dist/index.js +40 -12
- package/package.json +17 -12
package/dist/index.d.cts
CHANGED
|
@@ -1081,7 +1081,7 @@ interface RuleOptions {
|
|
|
1081
1081
|
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
1082
1082
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
1083
1083
|
*/
|
|
1084
|
-
'markdown/table-column-count'?: Linter.RuleEntry<
|
|
1084
|
+
'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>;
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Enforce a maximum number of classes per file
|
|
1087
1087
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -5095,670 +5095,690 @@ interface RuleOptions {
|
|
|
5095
5095
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
5096
5096
|
/**
|
|
5097
5097
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
|
|
5099
5099
|
*/
|
|
5100
5100
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
5101
5101
|
/**
|
|
5102
5102
|
* Enforce a specific parameter name in catch clauses.
|
|
5103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
|
|
5104
5104
|
*/
|
|
5105
5105
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
5106
5106
|
/**
|
|
5107
5107
|
* Enforce consistent assertion style with `node:assert`.
|
|
5108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
|
|
5109
5109
|
*/
|
|
5110
5110
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
5111
5111
|
/**
|
|
5112
5112
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
|
|
5114
5114
|
*/
|
|
5115
5115
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
5116
5116
|
/**
|
|
5117
5117
|
* Use destructured variables over properties.
|
|
5118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
|
|
5119
5119
|
*/
|
|
5120
5120
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
5121
5121
|
/**
|
|
5122
5122
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5124
5124
|
*/
|
|
5125
5125
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
5126
5126
|
/**
|
|
5127
5127
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
|
|
5129
5129
|
*/
|
|
5130
5130
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
5131
5131
|
/**
|
|
5132
5132
|
* Move function definitions to the highest possible scope.
|
|
5133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
|
|
5134
5134
|
*/
|
|
5135
5135
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
5136
5136
|
/**
|
|
5137
5137
|
* Enforce correct `Error` subclassing.
|
|
5138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
|
|
5139
5139
|
*/
|
|
5140
5140
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
5141
5141
|
/**
|
|
5142
5142
|
* Enforce no spaces between braces.
|
|
5143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
|
|
5144
5144
|
*/
|
|
5145
5145
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
5146
5146
|
/**
|
|
5147
5147
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
|
|
5149
5149
|
*/
|
|
5150
5150
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
5151
5151
|
/**
|
|
5152
5152
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
|
|
5154
5154
|
*/
|
|
5155
5155
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
5156
5156
|
/**
|
|
5157
5157
|
* Add expiration conditions to TODO comments.
|
|
5158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
|
|
5159
5159
|
*/
|
|
5160
5160
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
5161
5161
|
/**
|
|
5162
5162
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
|
|
5164
5164
|
*/
|
|
5165
5165
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
5166
5166
|
/**
|
|
5167
5167
|
* Enforce a case style for filenames.
|
|
5168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
|
|
5169
5169
|
*/
|
|
5170
5170
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
5171
5171
|
/**
|
|
5172
5172
|
* Enforce specific import styles per module.
|
|
5173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
|
|
5174
5174
|
*/
|
|
5175
5175
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
5176
5176
|
/**
|
|
5177
5177
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
|
|
5179
5179
|
*/
|
|
5180
5180
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
5181
5181
|
/**
|
|
5182
5182
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5184
5184
|
*/
|
|
5185
5185
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
5186
5186
|
/**
|
|
5187
5187
|
* Disallow recursive access to `this` within getters and setters.
|
|
5188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
|
|
5189
5189
|
*/
|
|
5190
5190
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
5191
5191
|
/**
|
|
5192
5192
|
* Disallow anonymous functions and classes as the default export.
|
|
5193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
|
|
5194
5194
|
*/
|
|
5195
5195
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
5196
5196
|
/**
|
|
5197
5197
|
* Prevent passing a function reference directly to iterator methods.
|
|
5198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
|
|
5199
5199
|
*/
|
|
5200
5200
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
5201
5201
|
/**
|
|
5202
5202
|
* Prefer `for…of` over the `forEach` method.
|
|
5203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
|
|
5204
5204
|
*/
|
|
5205
5205
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
5206
5206
|
/**
|
|
5207
5207
|
* Disallow using the `this` argument in array methods.
|
|
5208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
|
|
5209
5209
|
*/
|
|
5210
5210
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
5211
5211
|
/**
|
|
5212
5212
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
5214
5214
|
* @deprecated
|
|
5215
5215
|
*/
|
|
5216
5216
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
5217
5217
|
/**
|
|
5218
5218
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5219
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
|
|
5220
5220
|
*/
|
|
5221
5221
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
5222
|
+
/**
|
|
5223
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
|
|
5225
|
+
*/
|
|
5226
|
+
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
5222
5227
|
/**
|
|
5223
5228
|
* Disallow member access from await expression.
|
|
5224
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
|
|
5225
5230
|
*/
|
|
5226
5231
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
5227
5232
|
/**
|
|
5228
5233
|
* Disallow using `await` in `Promise` method parameters.
|
|
5229
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5230
5235
|
*/
|
|
5231
5236
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5232
5237
|
/**
|
|
5233
5238
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5234
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
|
|
5235
5240
|
*/
|
|
5236
5241
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
5237
5242
|
/**
|
|
5238
5243
|
* Do not use `document.cookie` directly.
|
|
5239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
|
|
5240
5245
|
*/
|
|
5241
5246
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
5242
5247
|
/**
|
|
5243
5248
|
* Disallow empty files.
|
|
5244
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
|
|
5245
5250
|
*/
|
|
5246
5251
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
5247
5252
|
/**
|
|
5248
5253
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
|
|
5250
5255
|
*/
|
|
5251
5256
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
5252
5257
|
/**
|
|
5253
5258
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5254
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
|
|
5255
5260
|
*/
|
|
5256
5261
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
5257
5262
|
/**
|
|
5258
5263
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5259
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5260
5265
|
* @deprecated
|
|
5261
5266
|
*/
|
|
5262
5267
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
5263
5268
|
/**
|
|
5264
5269
|
* Disallow `instanceof` with built-in objects
|
|
5265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
|
|
5266
5271
|
*/
|
|
5267
5272
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
5268
5273
|
/**
|
|
5269
5274
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5271
5276
|
*/
|
|
5272
5277
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5273
5278
|
/**
|
|
5274
5279
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5276
5281
|
*/
|
|
5277
5282
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5278
5283
|
/**
|
|
5279
5284
|
* Disallow identifiers starting with `new` or `class`.
|
|
5280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
|
|
5281
5286
|
*/
|
|
5282
5287
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
5283
5288
|
/**
|
|
5284
5289
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
5286
5291
|
* @deprecated
|
|
5287
5292
|
*/
|
|
5288
5293
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
5289
5294
|
/**
|
|
5290
5295
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5296
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
|
|
5292
5297
|
*/
|
|
5293
5298
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
5294
5299
|
/**
|
|
5295
5300
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5301
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5297
5302
|
*/
|
|
5298
5303
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5299
5304
|
/**
|
|
5300
5305
|
* Disallow named usage of default import and export.
|
|
5301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
|
|
5302
5307
|
*/
|
|
5303
5308
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
5304
5309
|
/**
|
|
5305
5310
|
* Disallow negated conditions.
|
|
5306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5311
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
|
|
5307
5312
|
*/
|
|
5308
5313
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
5309
5314
|
/**
|
|
5310
5315
|
* Disallow negated expression in equality check.
|
|
5311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5312
5317
|
*/
|
|
5313
5318
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
5314
5319
|
/**
|
|
5315
5320
|
* Disallow nested ternary expressions.
|
|
5316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5321
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
|
|
5317
5322
|
*/
|
|
5318
5323
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5319
5324
|
/**
|
|
5320
5325
|
* Disallow `new Array()`.
|
|
5321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5326
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
|
|
5322
5327
|
*/
|
|
5323
5328
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
5324
5329
|
/**
|
|
5325
5330
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
|
|
5327
5332
|
*/
|
|
5328
5333
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
5329
5334
|
/**
|
|
5330
5335
|
* Disallow the use of the `null` literal.
|
|
5331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5336
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
|
|
5332
5337
|
*/
|
|
5333
5338
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
5334
5339
|
/**
|
|
5335
5340
|
* Disallow the use of objects as default parameters.
|
|
5336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5337
5342
|
*/
|
|
5338
5343
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
5339
5344
|
/**
|
|
5340
5345
|
* Disallow `process.exit()`.
|
|
5341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
|
|
5342
5347
|
*/
|
|
5343
5348
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
5344
5349
|
/**
|
|
5345
5350
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5347
5352
|
*/
|
|
5348
5353
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5349
5354
|
/**
|
|
5350
5355
|
* Disallow classes that only have static members.
|
|
5351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5356
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
|
|
5352
5357
|
*/
|
|
5353
5358
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5354
5359
|
/**
|
|
5355
5360
|
* Disallow `then` property.
|
|
5356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
|
|
5357
5362
|
*/
|
|
5358
5363
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5359
5364
|
/**
|
|
5360
5365
|
* Disallow assigning `this` to a variable.
|
|
5361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
|
|
5362
5367
|
*/
|
|
5363
5368
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5364
5369
|
/**
|
|
5365
5370
|
* Disallow comparing `undefined` using `typeof`.
|
|
5366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5371
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
|
|
5367
5372
|
*/
|
|
5368
5373
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5369
5374
|
/**
|
|
5370
5375
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5372
5377
|
*/
|
|
5373
5378
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5374
5379
|
/**
|
|
5375
5380
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5377
5382
|
*/
|
|
5378
5383
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5379
5384
|
/**
|
|
5380
5385
|
* Disallow awaiting non-promise values.
|
|
5381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
|
|
5382
5387
|
*/
|
|
5383
5388
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5384
5389
|
/**
|
|
5385
5390
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5387
5392
|
*/
|
|
5388
5393
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5389
5394
|
/**
|
|
5390
5395
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5392
5397
|
*/
|
|
5393
5398
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5394
5399
|
/**
|
|
5395
5400
|
* Disallow unreadable array destructuring.
|
|
5396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5397
5402
|
*/
|
|
5398
5403
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
5399
5404
|
/**
|
|
5400
5405
|
* Disallow unreadable IIFEs.
|
|
5401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
|
|
5402
5407
|
*/
|
|
5403
5408
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5404
5409
|
/**
|
|
5405
5410
|
* Disallow unused object properties.
|
|
5406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
|
|
5407
5412
|
*/
|
|
5408
5413
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5414
|
+
/**
|
|
5415
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5417
|
+
*/
|
|
5418
|
+
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5409
5419
|
/**
|
|
5410
5420
|
* Disallow useless fallback when spreading in object literals.
|
|
5411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5412
5422
|
*/
|
|
5413
5423
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5414
5424
|
/**
|
|
5415
5425
|
* Disallow useless array length check.
|
|
5416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
|
|
5417
5427
|
*/
|
|
5418
5428
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5419
5429
|
/**
|
|
5420
5430
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5422
5432
|
*/
|
|
5423
5433
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5424
5434
|
/**
|
|
5425
5435
|
* Disallow unnecessary spread.
|
|
5426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5436
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
|
|
5427
5437
|
*/
|
|
5428
5438
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5429
5439
|
/**
|
|
5430
5440
|
* Disallow useless case in switch statements.
|
|
5431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5441
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
|
|
5432
5442
|
*/
|
|
5433
5443
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5434
5444
|
/**
|
|
5435
5445
|
* Disallow useless `undefined`.
|
|
5436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5446
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
|
|
5437
5447
|
*/
|
|
5438
5448
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5439
5449
|
/**
|
|
5440
5450
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
|
|
5442
5452
|
*/
|
|
5443
5453
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5444
5454
|
/**
|
|
5445
5455
|
* Enforce proper case for numeric literals.
|
|
5446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5456
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
|
|
5447
5457
|
*/
|
|
5448
5458
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5449
5459
|
/**
|
|
5450
5460
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
|
|
5452
5462
|
*/
|
|
5453
5463
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5454
5464
|
/**
|
|
5455
5465
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5466
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
|
|
5457
5467
|
*/
|
|
5458
5468
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5459
5469
|
/**
|
|
5460
5470
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
|
|
5462
5472
|
*/
|
|
5463
5473
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5464
5474
|
/**
|
|
5465
5475
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
|
|
5467
5477
|
*/
|
|
5468
5478
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5469
5479
|
/**
|
|
5470
5480
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
|
|
5472
5482
|
*/
|
|
5473
5483
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5474
5484
|
/**
|
|
5475
5485
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
|
|
5477
5487
|
*/
|
|
5478
5488
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5479
5489
|
/**
|
|
5480
5490
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
|
|
5482
5492
|
*/
|
|
5483
5493
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5484
5494
|
/**
|
|
5485
5495
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5496
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
|
|
5487
5497
|
*/
|
|
5488
5498
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5489
5499
|
/**
|
|
5490
5500
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5492
5502
|
*/
|
|
5493
5503
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5504
|
+
/**
|
|
5505
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
5506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
|
|
5507
|
+
*/
|
|
5508
|
+
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5494
5509
|
/**
|
|
5495
5510
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
|
|
5497
5512
|
*/
|
|
5498
5513
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5499
5514
|
/**
|
|
5500
5515
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
|
|
5502
5517
|
*/
|
|
5503
5518
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5504
5519
|
/**
|
|
5505
5520
|
* Prefer default parameters over reassignment.
|
|
5506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
|
|
5507
5522
|
*/
|
|
5508
5523
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5509
5524
|
/**
|
|
5510
5525
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
|
|
5512
5527
|
*/
|
|
5513
5528
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5514
5529
|
/**
|
|
5515
5530
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5517
5532
|
*/
|
|
5518
5533
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5519
5534
|
/**
|
|
5520
5535
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5522
5537
|
*/
|
|
5523
5538
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5524
5539
|
/**
|
|
5525
5540
|
* Prefer `.textContent` over `.innerText`.
|
|
5526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5527
5542
|
*/
|
|
5528
5543
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5529
5544
|
/**
|
|
5530
5545
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
|
|
5532
5547
|
*/
|
|
5533
5548
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5534
5549
|
/**
|
|
5535
5550
|
* Prefer `export…from` when re-exporting.
|
|
5536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
|
|
5537
5552
|
*/
|
|
5538
5553
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5539
5554
|
/**
|
|
5540
5555
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
|
|
5542
5557
|
*/
|
|
5543
5558
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5544
5559
|
/**
|
|
5545
5560
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5547
5562
|
*/
|
|
5548
5563
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5549
5564
|
/**
|
|
5550
5565
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
|
|
5552
5567
|
*/
|
|
5553
5568
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5554
5569
|
/**
|
|
5555
5570
|
* Prefer reading a JSON file as a buffer.
|
|
5556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5557
5572
|
*/
|
|
5558
5573
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5559
5574
|
/**
|
|
5560
5575
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5562
5577
|
*/
|
|
5563
5578
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5564
5579
|
/**
|
|
5565
5580
|
* Prefer using a logical operator over a ternary.
|
|
5566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5567
5582
|
*/
|
|
5568
5583
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5569
5584
|
/**
|
|
5570
5585
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
|
|
5572
5587
|
*/
|
|
5573
5588
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5574
5589
|
/**
|
|
5575
5590
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
|
|
5577
5592
|
*/
|
|
5578
5593
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5579
5594
|
/**
|
|
5580
5595
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5582
5597
|
*/
|
|
5583
5598
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5584
5599
|
/**
|
|
5585
5600
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5587
5602
|
*/
|
|
5588
5603
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5589
5604
|
/**
|
|
5590
5605
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
|
|
5592
5607
|
*/
|
|
5593
5608
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5594
5609
|
/**
|
|
5595
5610
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5597
5612
|
*/
|
|
5598
5613
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5599
5614
|
/**
|
|
5600
5615
|
* Prefer negative index over `.length - index` when possible.
|
|
5601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
|
|
5602
5617
|
*/
|
|
5603
5618
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5604
5619
|
/**
|
|
5605
5620
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
|
|
5607
5622
|
*/
|
|
5608
5623
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5609
5624
|
/**
|
|
5610
5625
|
* Prefer `Number` static properties over global ones.
|
|
5611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
|
|
5612
5627
|
*/
|
|
5613
5628
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5614
5629
|
/**
|
|
5615
5630
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
|
|
5617
5632
|
*/
|
|
5618
5633
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5619
5634
|
/**
|
|
5620
5635
|
* Prefer omitting the `catch` binding parameter.
|
|
5621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5622
5637
|
*/
|
|
5623
5638
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5624
5639
|
/**
|
|
5625
5640
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
|
|
5627
5642
|
*/
|
|
5628
5643
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5629
5644
|
/**
|
|
5630
5645
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
|
|
5632
5647
|
*/
|
|
5633
5648
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5634
5649
|
/**
|
|
5635
5650
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
|
|
5637
5652
|
*/
|
|
5638
5653
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5639
5654
|
/**
|
|
5640
5655
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
|
|
5642
5657
|
*/
|
|
5643
5658
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5644
5659
|
/**
|
|
5645
5660
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
|
|
5647
5662
|
*/
|
|
5648
5663
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5649
5664
|
/**
|
|
5650
5665
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
|
|
5652
5667
|
*/
|
|
5653
5668
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5654
5669
|
/**
|
|
5655
5670
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
|
|
5657
5672
|
*/
|
|
5658
5673
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5659
5674
|
/**
|
|
5660
5675
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
|
|
5662
5677
|
*/
|
|
5663
5678
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5664
5679
|
/**
|
|
5665
5680
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
|
|
5667
5682
|
*/
|
|
5668
5683
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5669
5684
|
/**
|
|
5670
5685
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
|
|
5672
5687
|
*/
|
|
5673
5688
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5674
5689
|
/**
|
|
5675
5690
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
|
|
5677
5692
|
*/
|
|
5678
5693
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5679
5694
|
/**
|
|
5680
5695
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5682
5697
|
*/
|
|
5683
5698
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5684
5699
|
/**
|
|
5685
5700
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5687
5702
|
*/
|
|
5688
5703
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5689
5704
|
/**
|
|
5690
5705
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
|
|
5692
5707
|
*/
|
|
5693
5708
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5694
5709
|
/**
|
|
5695
5710
|
* Prefer `switch` over multiple `else-if`.
|
|
5696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
|
|
5697
5712
|
*/
|
|
5698
5713
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5699
5714
|
/**
|
|
5700
5715
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
|
|
5702
5717
|
*/
|
|
5703
5718
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5704
5719
|
/**
|
|
5705
5720
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
|
|
5707
5722
|
*/
|
|
5708
5723
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5709
5724
|
/**
|
|
5710
5725
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
|
|
5712
5727
|
*/
|
|
5713
5728
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5714
5729
|
/**
|
|
5715
5730
|
* Prevent abbreviations.
|
|
5716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
|
|
5717
5732
|
*/
|
|
5718
5733
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5719
5734
|
/**
|
|
5720
5735
|
* Enforce consistent relative URL style.
|
|
5721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
|
|
5722
5737
|
*/
|
|
5723
5738
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5724
5739
|
/**
|
|
5725
5740
|
* Enforce using the separator argument with `Array#join()`.
|
|
5726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
|
|
5727
5742
|
*/
|
|
5728
5743
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5744
|
+
/**
|
|
5745
|
+
* Require non-empty specifier list in import and export statements.
|
|
5746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
|
|
5747
|
+
*/
|
|
5748
|
+
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5729
5749
|
/**
|
|
5730
5750
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5732
5752
|
*/
|
|
5733
5753
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5734
5754
|
/**
|
|
5735
5755
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
|
|
5737
5757
|
*/
|
|
5738
5758
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5739
5759
|
/**
|
|
5740
5760
|
* Enforce better string content.
|
|
5741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
|
|
5742
5762
|
*/
|
|
5743
5763
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5744
5764
|
/**
|
|
5745
5765
|
* Enforce consistent brace style for `case` clauses.
|
|
5746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
|
|
5747
5767
|
*/
|
|
5748
5768
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5749
5769
|
/**
|
|
5750
5770
|
* Fix whitespace-insensitive template indentation.
|
|
5751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
|
|
5752
5772
|
*/
|
|
5753
5773
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5754
5774
|
/**
|
|
5755
5775
|
* Enforce consistent case for text encoding identifiers.
|
|
5756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5757
5777
|
*/
|
|
5758
5778
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
|
|
5759
5779
|
/**
|
|
5760
5780
|
* Require `new` when creating an error.
|
|
5761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
|
|
5762
5782
|
*/
|
|
5763
5783
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5764
5784
|
/**
|
|
@@ -7708,8 +7728,8 @@ type JsdocMatchName = [] | [{
|
|
|
7708
7728
|
context?: string;
|
|
7709
7729
|
disallowName?: string;
|
|
7710
7730
|
message?: string;
|
|
7731
|
+
replacement?: string;
|
|
7711
7732
|
tags?: string[];
|
|
7712
|
-
[k: string]: unknown | undefined;
|
|
7713
7733
|
}[];
|
|
7714
7734
|
}];
|
|
7715
7735
|
// ----- jsdoc/multiline-blocks -----
|
|
@@ -7783,7 +7803,6 @@ type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [("alway
|
|
|
7783
7803
|
always?: string[];
|
|
7784
7804
|
any?: string[];
|
|
7785
7805
|
never?: string[];
|
|
7786
|
-
[k: string]: unknown | undefined;
|
|
7787
7806
|
};
|
|
7788
7807
|
}];
|
|
7789
7808
|
// ----- jsdoc/require-description -----
|
|
@@ -7993,7 +8012,6 @@ type JsdocSortTags = [] | [{
|
|
|
7993
8012
|
reportTagGroupSpacing?: boolean;
|
|
7994
8013
|
tagSequence?: {
|
|
7995
8014
|
tags?: string[];
|
|
7996
|
-
[k: string]: unknown | undefined;
|
|
7997
8015
|
}[];
|
|
7998
8016
|
}];
|
|
7999
8017
|
// ----- jsdoc/tag-lines -----
|
|
@@ -8707,6 +8725,10 @@ type MarkdownNoUnusedDefinitions = [] | [{
|
|
|
8707
8725
|
allowDefinitions?: string[];
|
|
8708
8726
|
allowFootnoteDefinitions?: string[];
|
|
8709
8727
|
}];
|
|
8728
|
+
// ----- markdown/table-column-count -----
|
|
8729
|
+
type MarkdownTableColumnCount = [] | [{
|
|
8730
|
+
checkMissingCells?: boolean;
|
|
8731
|
+
}];
|
|
8710
8732
|
// ----- max-classes-per-file -----
|
|
8711
8733
|
type MaxClassesPerFile = [] | [(number | {
|
|
8712
8734
|
ignoreExpressions?: boolean;
|
|
@@ -11837,10 +11859,12 @@ type StyleIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
11837
11859
|
FunctionDeclaration?: {
|
|
11838
11860
|
parameters?: (number | ("first" | "off"));
|
|
11839
11861
|
body?: number;
|
|
11862
|
+
returnType?: number;
|
|
11840
11863
|
};
|
|
11841
11864
|
FunctionExpression?: {
|
|
11842
11865
|
parameters?: (number | ("first" | "off"));
|
|
11843
11866
|
body?: number;
|
|
11867
|
+
returnType?: number;
|
|
11844
11868
|
};
|
|
11845
11869
|
StaticBlock?: {
|
|
11846
11870
|
body?: number;
|
|
@@ -11881,31 +11905,52 @@ type StyleJsxCurlyNewline = [] | [(("consistent" | "never") | {
|
|
|
11881
11905
|
multiline?: ("consistent" | "require" | "forbid");
|
|
11882
11906
|
})];
|
|
11883
11907
|
// ----- style/jsx-curly-spacing -----
|
|
11884
|
-
type StyleJsxCurlySpacing = [] | [(
|
|
11885
|
-
|
|
11886
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean;
|
|
11887
|
-
[k: string]: unknown | undefined;
|
|
11888
|
-
}) | ("always" | "never"))] | [((_StyleJsxCurlySpacing_BasicConfig & {
|
|
11889
|
-
attributes?: _StyleJsxCurlySpacingBasicConfigOrBoolean;
|
|
11890
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean;
|
|
11891
|
-
[k: string]: unknown | undefined;
|
|
11892
|
-
}) | ("always" | "never")), {
|
|
11908
|
+
type StyleJsxCurlySpacing = [] | [({
|
|
11909
|
+
when?: ("always" | "never");
|
|
11893
11910
|
allowMultiline?: boolean;
|
|
11894
11911
|
spacing?: {
|
|
11895
11912
|
objectLiterals?: ("always" | "never");
|
|
11896
|
-
[k: string]: unknown | undefined;
|
|
11897
11913
|
};
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11914
|
+
attributes?: ({
|
|
11915
|
+
when?: ("always" | "never");
|
|
11916
|
+
allowMultiline?: boolean;
|
|
11917
|
+
spacing?: {
|
|
11918
|
+
objectLiterals?: ("always" | "never");
|
|
11919
|
+
};
|
|
11920
|
+
} | boolean);
|
|
11921
|
+
children?: ({
|
|
11922
|
+
when?: ("always" | "never");
|
|
11923
|
+
allowMultiline?: boolean;
|
|
11924
|
+
spacing?: {
|
|
11925
|
+
objectLiterals?: ("always" | "never");
|
|
11926
|
+
};
|
|
11927
|
+
} | boolean);
|
|
11928
|
+
} | ("always" | "never"))] | [({
|
|
11901
11929
|
when?: ("always" | "never");
|
|
11902
11930
|
allowMultiline?: boolean;
|
|
11903
11931
|
spacing?: {
|
|
11904
11932
|
objectLiterals?: ("always" | "never");
|
|
11905
|
-
[k: string]: unknown | undefined;
|
|
11906
11933
|
};
|
|
11907
|
-
|
|
11908
|
-
|
|
11934
|
+
attributes?: ({
|
|
11935
|
+
when?: ("always" | "never");
|
|
11936
|
+
allowMultiline?: boolean;
|
|
11937
|
+
spacing?: {
|
|
11938
|
+
objectLiterals?: ("always" | "never");
|
|
11939
|
+
};
|
|
11940
|
+
} | boolean);
|
|
11941
|
+
children?: ({
|
|
11942
|
+
when?: ("always" | "never");
|
|
11943
|
+
allowMultiline?: boolean;
|
|
11944
|
+
spacing?: {
|
|
11945
|
+
objectLiterals?: ("always" | "never");
|
|
11946
|
+
};
|
|
11947
|
+
} | boolean);
|
|
11948
|
+
} | ("always" | "never")), {
|
|
11949
|
+
allowMultiline?: boolean;
|
|
11950
|
+
spacing?: {
|
|
11951
|
+
objectLiterals?: ("always" | "never");
|
|
11952
|
+
};
|
|
11953
|
+
}];
|
|
11909
11954
|
// ----- style/jsx-equals-spacing -----
|
|
11910
11955
|
type StyleJsxEqualsSpacing = [] | [("always" | "never")];
|
|
11911
11956
|
// ----- style/jsx-first-prop-new-line -----
|
|
@@ -11921,14 +11966,12 @@ type StyleJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
|
11921
11966
|
type StyleJsxIndentProps = [] | [(("tab" | "first") | number | {
|
|
11922
11967
|
indentMode?: (("tab" | "first") | number);
|
|
11923
11968
|
ignoreTernaryOperator?: boolean;
|
|
11924
|
-
[k: string]: unknown | undefined;
|
|
11925
11969
|
})];
|
|
11926
11970
|
// ----- style/jsx-max-props-per-line -----
|
|
11927
11971
|
type StyleJsxMaxPropsPerLine = [] | [({
|
|
11928
11972
|
maximum?: {
|
|
11929
11973
|
single?: number;
|
|
11930
11974
|
multi?: number;
|
|
11931
|
-
[k: string]: unknown | undefined;
|
|
11932
11975
|
};
|
|
11933
11976
|
} | {
|
|
11934
11977
|
maximum?: number;
|
|
@@ -12275,6 +12318,10 @@ type StyleKeywordSpacing = [] | [{
|
|
|
12275
12318
|
before?: boolean;
|
|
12276
12319
|
after?: boolean;
|
|
12277
12320
|
};
|
|
12321
|
+
accessor?: {
|
|
12322
|
+
before?: boolean;
|
|
12323
|
+
after?: boolean;
|
|
12324
|
+
};
|
|
12278
12325
|
as?: {
|
|
12279
12326
|
before?: boolean;
|
|
12280
12327
|
after?: boolean;
|
|
@@ -12487,11 +12534,11 @@ interface _StyleMemberDelimiterStyle_DelimiterConfig {
|
|
|
12487
12534
|
// ----- style/multiline-comment-style -----
|
|
12488
12535
|
type StyleMultilineCommentStyle = ([] | [("starred-block" | "bare-block")] | [] | ["separate-lines"] | ["separate-lines", {
|
|
12489
12536
|
checkJSDoc?: boolean;
|
|
12537
|
+
checkExclamation?: boolean;
|
|
12490
12538
|
}]);
|
|
12491
12539
|
// ----- style/multiline-ternary -----
|
|
12492
12540
|
type StyleMultilineTernary = [] | [("always" | "always-multiline" | "never")] | [("always" | "always-multiline" | "never"), {
|
|
12493
12541
|
ignoreJSX?: boolean;
|
|
12494
|
-
[k: string]: unknown | undefined;
|
|
12495
12542
|
}];
|
|
12496
12543
|
// ----- style/new-parens -----
|
|
12497
12544
|
type StyleNewParens = [] | [("always" | "never")];
|
|
@@ -12636,11 +12683,12 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
12636
12683
|
}];
|
|
12637
12684
|
// ----- style/padding-line-between-statements -----
|
|
12638
12685
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
12639
|
-
type
|
|
12686
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]]);
|
|
12687
|
+
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using");
|
|
12640
12688
|
type StylePaddingLineBetweenStatements = {
|
|
12641
12689
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
12642
|
-
prev:
|
|
12643
|
-
next:
|
|
12690
|
+
prev: _StylePaddingLineBetweenStatementsStatementOption;
|
|
12691
|
+
next: _StylePaddingLineBetweenStatementsStatementOption;
|
|
12644
12692
|
}[];
|
|
12645
12693
|
// ----- style/quote-props -----
|
|
12646
12694
|
type StyleQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
@@ -13771,7 +13819,6 @@ type TsPreferDestructuring = [] | [({
|
|
|
13771
13819
|
}), {
|
|
13772
13820
|
enforceForDeclarationWithTypeAnnotation?: boolean;
|
|
13773
13821
|
enforceForRenamedProperties?: boolean;
|
|
13774
|
-
[k: string]: unknown | undefined;
|
|
13775
13822
|
}];
|
|
13776
13823
|
// ----- ts/prefer-literal-enum-member -----
|
|
13777
13824
|
type TsPreferLiteralEnumMember = [] | [{
|
|
@@ -13789,7 +13836,6 @@ type TsPreferNullishCoalescing = [] | [{
|
|
|
13789
13836
|
boolean?: boolean;
|
|
13790
13837
|
number?: boolean;
|
|
13791
13838
|
string?: boolean;
|
|
13792
|
-
[k: string]: unknown | undefined;
|
|
13793
13839
|
} | true);
|
|
13794
13840
|
ignoreTernaryTests?: boolean;
|
|
13795
13841
|
}];
|
|
@@ -13998,6 +14044,10 @@ interface _UnicornImportStyle_BooleanObject {
|
|
|
13998
14044
|
type UnicornNoArrayReduce = [] | [{
|
|
13999
14045
|
allowSimpleOperations?: boolean;
|
|
14000
14046
|
}];
|
|
14047
|
+
// ----- unicorn/no-array-reverse -----
|
|
14048
|
+
type UnicornNoArrayReverse = [] | [{
|
|
14049
|
+
allowExpressionStatement?: boolean;
|
|
14050
|
+
}];
|
|
14001
14051
|
// ----- unicorn/no-instanceof-builtins -----
|
|
14002
14052
|
type UnicornNoInstanceofBuiltins = [] | [{
|
|
14003
14053
|
useErrorIsError?: boolean;
|
|
@@ -15709,14 +15759,24 @@ interface VendoredPrettierOptionsRequired {
|
|
|
15709
15759
|
//#endregion
|
|
15710
15760
|
//#region src/types.d.ts
|
|
15711
15761
|
type Awaitable<T> = T | Promise<T>;
|
|
15712
|
-
|
|
15713
|
-
|
|
15762
|
+
type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
|
|
15763
|
+
/**
|
|
15764
|
+
* ESLint 的 `Linter.Config` 的更新版本,
|
|
15765
|
+
* 为 `rules` 提供自动补全功能,并放宽了 `plugins` 和 `rules` 的类型限制,
|
|
15766
|
+
* 因为许多插件仍然缺乏适当的类型定义。
|
|
15767
|
+
*/
|
|
15768
|
+
type TypedFlatConfigItem = Omit<Linter.Config, 'plugins' | 'rules'> & {
|
|
15714
15769
|
/**
|
|
15715
|
-
*
|
|
15770
|
+
* 一个包含插件名称到插件对象的键值对映射的对象。
|
|
15771
|
+
* 当指定 `files` 时,这些插件仅适用于匹配的文件。
|
|
15716
15772
|
*
|
|
15717
|
-
* @see [
|
|
15773
|
+
* @see [在配置中使用插件](https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new#using-plugins-in-your-configuration)
|
|
15718
15774
|
*/
|
|
15719
15775
|
plugins?: Record<string, any>;
|
|
15776
|
+
/**
|
|
15777
|
+
* 包含已配置规则的对象。当指定 `files` 或 `ignores` 时,这些规则配置仅适用于匹配的文件。
|
|
15778
|
+
*/
|
|
15779
|
+
rules?: Rules;
|
|
15720
15780
|
};
|
|
15721
15781
|
interface OptionsFiles {
|
|
15722
15782
|
/**
|
|
@@ -15858,7 +15918,7 @@ interface OptionsOverrides {
|
|
|
15858
15918
|
}
|
|
15859
15919
|
interface OptionsProjectType {
|
|
15860
15920
|
/**
|
|
15861
|
-
*
|
|
15921
|
+
* 项目类型。“lib”将为库启用更严格的规则。
|
|
15862
15922
|
*
|
|
15863
15923
|
* @default 'app'
|
|
15864
15924
|
*/
|
|
@@ -15892,14 +15952,14 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
15892
15952
|
/**
|
|
15893
15953
|
* 启用 gitignore 支持.
|
|
15894
15954
|
*
|
|
15895
|
-
*
|
|
15955
|
+
* 传递一个对象来配置选项
|
|
15896
15956
|
*
|
|
15897
15957
|
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
15898
15958
|
* @default true
|
|
15899
15959
|
*/
|
|
15900
15960
|
gitignore?: boolean | FlatGitignoreOptions;
|
|
15901
15961
|
/**
|
|
15902
|
-
*
|
|
15962
|
+
* 核心规则。不能禁用。
|
|
15903
15963
|
*/
|
|
15904
15964
|
javascript?: boolean;
|
|
15905
15965
|
/**
|
|
@@ -15989,6 +16049,15 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
15989
16049
|
* @default 根据依赖关系自动检测
|
|
15990
16050
|
*/
|
|
15991
16051
|
react?: boolean | OptionsFiles;
|
|
16052
|
+
/**
|
|
16053
|
+
* 启用 nextjs 支持.
|
|
16054
|
+
*
|
|
16055
|
+
* 需要安装:
|
|
16056
|
+
* - `@next/eslint-plugin-next`
|
|
16057
|
+
*
|
|
16058
|
+
* @default false
|
|
16059
|
+
*/
|
|
16060
|
+
nextjs?: boolean | OptionsOverrides;
|
|
15992
16061
|
/**
|
|
15993
16062
|
* 启用 unocss rules.
|
|
15994
16063
|
*
|
|
@@ -16037,30 +16106,38 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
16037
16106
|
* @default true
|
|
16038
16107
|
*/
|
|
16039
16108
|
autoRenamePlugins?: boolean;
|
|
16109
|
+
/**
|
|
16110
|
+
* 没啥用的配置
|
|
16111
|
+
*/
|
|
16112
|
+
comments?: boolean | OptionsOverrides;
|
|
16113
|
+
node?: boolean | OptionsOverrides;
|
|
16114
|
+
jsdoc?: boolean | OptionsOverrides;
|
|
16115
|
+
perfectionist?: boolean | OptionsOverrides;
|
|
16116
|
+
ignores?: boolean | OptionsOverrides;
|
|
16040
16117
|
/**
|
|
16041
16118
|
* 为每个集成提供规则覆盖
|
|
16042
16119
|
*/
|
|
16043
16120
|
overrides?: {
|
|
16121
|
+
comments?: TypedFlatConfigItem['rules'];
|
|
16122
|
+
ignores?: string[];
|
|
16123
|
+
imports?: TypedFlatConfigItem['rules'];
|
|
16044
16124
|
javascript?: TypedFlatConfigItem['rules'];
|
|
16045
|
-
|
|
16046
|
-
stylistic?: TypedFlatConfigItem['rules'];
|
|
16047
|
-
test?: TypedFlatConfigItem['rules'];
|
|
16048
|
-
vue?: TypedFlatConfigItem['rules'];
|
|
16049
|
-
regexp?: TypedFlatConfigItem['rules'];
|
|
16050
|
-
react?: TypedFlatConfigItem['rules'];
|
|
16051
|
-
svelte?: TypedFlatConfigItem['rules'];
|
|
16125
|
+
jsdoc?: TypedFlatConfigItem['rules'];
|
|
16052
16126
|
jsonc?: TypedFlatConfigItem['rules'];
|
|
16053
16127
|
markdown?: TypedFlatConfigItem['rules'];
|
|
16054
|
-
|
|
16055
|
-
|
|
16056
|
-
unocss?: TypedFlatConfigItem['rules'];
|
|
16128
|
+
nuxtjs?: TypedFlatConfigItem['rules'];
|
|
16129
|
+
node?: TypedFlatConfigItem['rules'];
|
|
16057
16130
|
perfectionist?: TypedFlatConfigItem['rules'];
|
|
16131
|
+
react?: TypedFlatConfigItem['rules'];
|
|
16132
|
+
regexp?: TypedFlatConfigItem['rules'];
|
|
16133
|
+
stylistic?: TypedFlatConfigItem['rules'];
|
|
16134
|
+
test?: TypedFlatConfigItem['rules'];
|
|
16135
|
+
toml?: TypedFlatConfigItem['rules'];
|
|
16136
|
+
typescript?: TypedFlatConfigItem['rules'];
|
|
16058
16137
|
unicorn?: TypedFlatConfigItem['rules'];
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
jsdoc?: TypedFlatConfigItem['rules'];
|
|
16063
|
-
ignores?: string[];
|
|
16138
|
+
unocss?: TypedFlatConfigItem['rules'];
|
|
16139
|
+
vue?: TypedFlatConfigItem['rules'];
|
|
16140
|
+
yaml?: TypedFlatConfigItem['rules'];
|
|
16064
16141
|
};
|
|
16065
16142
|
}
|
|
16066
16143
|
//#endregion
|
|
@@ -16070,6 +16147,7 @@ declare const defaultPluginRenaming: {
|
|
|
16070
16147
|
'@eslint-react/dom': string;
|
|
16071
16148
|
'@eslint-react/hooks-extra': string;
|
|
16072
16149
|
'@eslint-react/naming-convention': string;
|
|
16150
|
+
'@next/next': string;
|
|
16073
16151
|
'@stylistic': string;
|
|
16074
16152
|
'@typescript-eslint': string;
|
|
16075
16153
|
'import-lite': string;
|
|
@@ -16122,6 +16200,9 @@ declare function jsx(): Promise<TypedFlatConfigItem[]>;
|
|
|
16122
16200
|
//#region src/configs/markdown.d.ts
|
|
16123
16201
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16124
16202
|
//#endregion
|
|
16203
|
+
//#region src/configs/nextjs.d.ts
|
|
16204
|
+
declare function nextjs(options?: OptionsOverrides & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
16205
|
+
//#endregion
|
|
16125
16206
|
//#region src/configs/node.d.ts
|
|
16126
16207
|
declare function node(options?: OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
16127
16208
|
//#endregion
|
|
@@ -16254,4 +16335,4 @@ declare function ensurePackages(packages: (string | undefined)[]): Promise<void>
|
|
|
16254
16335
|
declare function isInEditorEnv(): boolean;
|
|
16255
16336
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
16256
16337
|
//#endregion
|
|
16257
|
-
export { Awaitable, ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIgnores, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, lincy, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
16338
|
+
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIgnores, OptionsIsInEditor, OptionsOverrides, OptionsProjectType, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, lincy, markdown, nextjs, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|