@bfra.me/eslint-config 0.35.1 → 0.36.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/lib/index.d.ts +583 -180
- package/lib/index.js +2 -27
- package/package.json +10 -10
- package/src/configs/json-schema.ts +1 -26
- package/src/configs/react.ts +3 -2
- package/src/rules.d.ts +583 -180
package/lib/index.d.ts
CHANGED
|
@@ -1536,6 +1536,11 @@ interface Rules {
|
|
|
1536
1536
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
1537
1537
|
*/
|
|
1538
1538
|
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>
|
|
1539
|
+
/**
|
|
1540
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
1541
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
1542
|
+
*/
|
|
1543
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>
|
|
1539
1544
|
/**
|
|
1540
1545
|
* disallow selectors defined in `style` tag that don't use in HTML
|
|
1541
1546
|
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
@@ -2112,7 +2117,7 @@ interface Rules {
|
|
|
2112
2117
|
*/
|
|
2113
2118
|
'jsdoc/check-alignment'?: Linter.RuleEntry<JsdocCheckAlignment>
|
|
2114
2119
|
/**
|
|
2115
|
-
*
|
|
2120
|
+
* @deprecated - Use `getJsdocProcessorPlugin` processor; ensures that (JavaScript) samples within `@example` tags adhere to ESLint rules.
|
|
2116
2121
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-examples.md#repos-sticky-header
|
|
2117
2122
|
*/
|
|
2118
2123
|
'jsdoc/check-examples'?: Linter.RuleEntry<JsdocCheckExamples>
|
|
@@ -2127,7 +2132,7 @@ interface Rules {
|
|
|
2127
2132
|
*/
|
|
2128
2133
|
'jsdoc/check-line-alignment'?: Linter.RuleEntry<JsdocCheckLineAlignment>
|
|
2129
2134
|
/**
|
|
2130
|
-
*
|
|
2135
|
+
* Checks for dupe `@param` names, that nested param names have roots, and that parameter names in function declarations match JSDoc param names.
|
|
2131
2136
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-param-names.md#repos-sticky-header
|
|
2132
2137
|
*/
|
|
2133
2138
|
'jsdoc/check-param-names'?: Linter.RuleEntry<JsdocCheckParamNames>
|
|
@@ -2152,7 +2157,7 @@ interface Rules {
|
|
|
2152
2157
|
*/
|
|
2153
2158
|
'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
|
|
2154
2159
|
/**
|
|
2155
|
-
* Reports invalid
|
|
2160
|
+
* Reports types deemed invalid (customizable and with defaults, for preventing and/or recommending replacements).
|
|
2156
2161
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
|
|
2157
2162
|
*/
|
|
2158
2163
|
'jsdoc/check-types'?: Linter.RuleEntry<JsdocCheckTypes>
|
|
@@ -2167,12 +2172,17 @@ interface Rules {
|
|
|
2167
2172
|
*/
|
|
2168
2173
|
'jsdoc/convert-to-jsdoc-comments'?: Linter.RuleEntry<JsdocConvertToJsdocComments>
|
|
2169
2174
|
/**
|
|
2170
|
-
*
|
|
2175
|
+
* Checks tags that are expected to be empty (e.g., `@abstract` or `@async`), reporting if they have content
|
|
2171
2176
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/empty-tags.md#repos-sticky-header
|
|
2172
2177
|
*/
|
|
2173
2178
|
'jsdoc/empty-tags'?: Linter.RuleEntry<JsdocEmptyTags>
|
|
2174
2179
|
/**
|
|
2175
|
-
* Reports
|
|
2180
|
+
* Reports use of JSDoc tags in non-tag positions (in the default "typescript" mode).
|
|
2181
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/escape-inline-tags.md#repos-sticky-header
|
|
2182
|
+
*/
|
|
2183
|
+
'jsdoc/escape-inline-tags'?: Linter.RuleEntry<JsdocEscapeInlineTags>
|
|
2184
|
+
/**
|
|
2185
|
+
* Prohibits use of `@implements` on non-constructor functions (to enforce the tag only being used on classes/constructors).
|
|
2176
2186
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/implements-on-classes.md#repos-sticky-header
|
|
2177
2187
|
*/
|
|
2178
2188
|
'jsdoc/implements-on-classes'?: Linter.RuleEntry<JsdocImplementsOnClasses>
|
|
@@ -2202,17 +2212,17 @@ interface Rules {
|
|
|
2202
2212
|
*/
|
|
2203
2213
|
'jsdoc/match-name'?: Linter.RuleEntry<JsdocMatchName>
|
|
2204
2214
|
/**
|
|
2205
|
-
* Controls how and whether
|
|
2215
|
+
* Controls how and whether JSDoc blocks can be expressed as single or multiple line blocks.
|
|
2206
2216
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/multiline-blocks.md#repos-sticky-header
|
|
2207
2217
|
*/
|
|
2208
2218
|
'jsdoc/multiline-blocks'?: Linter.RuleEntry<JsdocMultilineBlocks>
|
|
2209
2219
|
/**
|
|
2210
|
-
* This rule checks for multi-line-style comments which fail to meet the criteria of a
|
|
2220
|
+
* This rule checks for multi-line-style comments which fail to meet the criteria of a JSDoc block.
|
|
2211
2221
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-bad-blocks.md#repos-sticky-header
|
|
2212
2222
|
*/
|
|
2213
2223
|
'jsdoc/no-bad-blocks'?: Linter.RuleEntry<JsdocNoBadBlocks>
|
|
2214
2224
|
/**
|
|
2215
|
-
*
|
|
2225
|
+
* If tags are present, this rule will prevent empty lines in the block description. If no tags are present, this rule will prevent extra empty lines in the block description.
|
|
2216
2226
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-blank-block-descriptions.md#repos-sticky-header
|
|
2217
2227
|
*/
|
|
2218
2228
|
'jsdoc/no-blank-block-descriptions'?: Linter.RuleEntry<[]>
|
|
@@ -2242,22 +2252,37 @@ interface Rules {
|
|
|
2242
2252
|
*/
|
|
2243
2253
|
'jsdoc/no-restricted-syntax'?: Linter.RuleEntry<JsdocNoRestrictedSyntax>
|
|
2244
2254
|
/**
|
|
2245
|
-
* This rule reports types being used on `@param` or `@returns
|
|
2255
|
+
* This rule reports types being used on `@param` or `@returns` (redundant with TypeScript).
|
|
2246
2256
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-types.md#repos-sticky-header
|
|
2247
2257
|
*/
|
|
2248
2258
|
'jsdoc/no-types'?: Linter.RuleEntry<JsdocNoTypes>
|
|
2249
2259
|
/**
|
|
2250
|
-
*
|
|
2260
|
+
* Besides some expected built-in types, prohibits any types not specified as globals or within `@typedef`.
|
|
2251
2261
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
|
|
2252
2262
|
*/
|
|
2253
2263
|
'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>
|
|
2264
|
+
/**
|
|
2265
|
+
* Prefer `@import` tags to inline `import()` statements.
|
|
2266
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/prefer-import-tag.md#repos-sticky-header
|
|
2267
|
+
*/
|
|
2268
|
+
'jsdoc/prefer-import-tag'?: Linter.RuleEntry<JsdocPreferImportTag>
|
|
2269
|
+
/**
|
|
2270
|
+
* Reports use of `any` or `*` type
|
|
2271
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-any-type.md#repos-sticky-header
|
|
2272
|
+
*/
|
|
2273
|
+
'jsdoc/reject-any-type'?: Linter.RuleEntry<[]>
|
|
2274
|
+
/**
|
|
2275
|
+
* Reports use of `Function` type
|
|
2276
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/reject-function-type.md#repos-sticky-header
|
|
2277
|
+
*/
|
|
2278
|
+
'jsdoc/reject-function-type'?: Linter.RuleEntry<[]>
|
|
2254
2279
|
/**
|
|
2255
2280
|
* Requires that each JSDoc line starts with an `*`.
|
|
2256
2281
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-asterisk-prefix.md#repos-sticky-header
|
|
2257
2282
|
*/
|
|
2258
2283
|
'jsdoc/require-asterisk-prefix'?: Linter.RuleEntry<JsdocRequireAsteriskPrefix>
|
|
2259
2284
|
/**
|
|
2260
|
-
* Requires that all functions have a description.
|
|
2285
|
+
* Requires that all functions (and potentially other contexts) have a description.
|
|
2261
2286
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-description.md#repos-sticky-header
|
|
2262
2287
|
*/
|
|
2263
2288
|
'jsdoc/require-description'?: Linter.RuleEntry<JsdocRequireDescription>
|
|
@@ -2267,7 +2292,7 @@ interface Rules {
|
|
|
2267
2292
|
*/
|
|
2268
2293
|
'jsdoc/require-description-complete-sentence'?: Linter.RuleEntry<JsdocRequireDescriptionCompleteSentence>
|
|
2269
2294
|
/**
|
|
2270
|
-
* Requires that all functions have examples.
|
|
2295
|
+
* Requires that all functions (and potentially other contexts) have examples.
|
|
2271
2296
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-example.md#repos-sticky-header
|
|
2272
2297
|
*/
|
|
2273
2298
|
'jsdoc/require-example'?: Linter.RuleEntry<JsdocRequireExample>
|
|
@@ -2277,17 +2302,27 @@ interface Rules {
|
|
|
2277
2302
|
*/
|
|
2278
2303
|
'jsdoc/require-file-overview'?: Linter.RuleEntry<JsdocRequireFileOverview>
|
|
2279
2304
|
/**
|
|
2280
|
-
* Requires a hyphen before the `@param` description.
|
|
2305
|
+
* Requires a hyphen before the `@param` description (and optionally before `@property` descriptions).
|
|
2281
2306
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-hyphen-before-param-description.md#repos-sticky-header
|
|
2282
2307
|
*/
|
|
2283
2308
|
'jsdoc/require-hyphen-before-param-description'?: Linter.RuleEntry<JsdocRequireHyphenBeforeParamDescription>
|
|
2284
2309
|
/**
|
|
2285
|
-
*
|
|
2310
|
+
* Checks for presence of JSDoc comments, on functions and potentially other contexts (optionally limited to exports).
|
|
2286
2311
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-jsdoc.md#repos-sticky-header
|
|
2287
2312
|
*/
|
|
2288
2313
|
'jsdoc/require-jsdoc'?: Linter.RuleEntry<JsdocRequireJsdoc>
|
|
2289
2314
|
/**
|
|
2290
|
-
* Requires
|
|
2315
|
+
* Requires a description for `@next` tags
|
|
2316
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-next-description.md#repos-sticky-header
|
|
2317
|
+
*/
|
|
2318
|
+
'jsdoc/require-next-description'?: Linter.RuleEntry<[]>
|
|
2319
|
+
/**
|
|
2320
|
+
* Requires a type for `@next` tags
|
|
2321
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-next-type.md#repos-sticky-header
|
|
2322
|
+
*/
|
|
2323
|
+
'jsdoc/require-next-type'?: Linter.RuleEntry<[]>
|
|
2324
|
+
/**
|
|
2325
|
+
* Requires that all function parameters are documented with a `@param` tag.
|
|
2291
2326
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param.md#repos-sticky-header
|
|
2292
2327
|
*/
|
|
2293
2328
|
'jsdoc/require-param'?: Linter.RuleEntry<JsdocRequireParam>
|
|
@@ -2297,12 +2332,12 @@ interface Rules {
|
|
|
2297
2332
|
*/
|
|
2298
2333
|
'jsdoc/require-param-description'?: Linter.RuleEntry<JsdocRequireParamDescription>
|
|
2299
2334
|
/**
|
|
2300
|
-
* Requires that all
|
|
2335
|
+
* Requires that all `@param` tags have names.
|
|
2301
2336
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-name.md#repos-sticky-header
|
|
2302
2337
|
*/
|
|
2303
2338
|
'jsdoc/require-param-name'?: Linter.RuleEntry<JsdocRequireParamName>
|
|
2304
2339
|
/**
|
|
2305
|
-
* Requires that each `@param` tag has a
|
|
2340
|
+
* Requires that each `@param` tag has a type value (in curly brackets).
|
|
2306
2341
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-param-type.md#repos-sticky-header
|
|
2307
2342
|
*/
|
|
2308
2343
|
'jsdoc/require-param-type'?: Linter.RuleEntry<JsdocRequireParamType>
|
|
@@ -2317,62 +2352,92 @@ interface Rules {
|
|
|
2317
2352
|
*/
|
|
2318
2353
|
'jsdoc/require-property-description'?: Linter.RuleEntry<[]>
|
|
2319
2354
|
/**
|
|
2320
|
-
* Requires that all
|
|
2355
|
+
* Requires that all `@property` tags have names.
|
|
2321
2356
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-name.md#repos-sticky-header
|
|
2322
2357
|
*/
|
|
2323
2358
|
'jsdoc/require-property-name'?: Linter.RuleEntry<[]>
|
|
2324
2359
|
/**
|
|
2325
|
-
* Requires that each `@property` tag has a
|
|
2360
|
+
* Requires that each `@property` tag has a type value (in curly brackets).
|
|
2326
2361
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
2327
2362
|
*/
|
|
2328
2363
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>
|
|
2329
2364
|
/**
|
|
2330
|
-
* Requires that returns are documented
|
|
2365
|
+
* Requires that returns are documented with `@returns`.
|
|
2331
2366
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
2332
2367
|
*/
|
|
2333
2368
|
'jsdoc/require-returns'?: Linter.RuleEntry<JsdocRequireReturns>
|
|
2334
2369
|
/**
|
|
2335
|
-
* Requires a return statement in function body if a `@returns` tag is specified in
|
|
2370
|
+
* Requires a return statement in function body if a `@returns` tag is specified in JSDoc comment(and reports if multiple `@returns` tags are present).
|
|
2336
2371
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-check.md#repos-sticky-header
|
|
2337
2372
|
*/
|
|
2338
2373
|
'jsdoc/require-returns-check'?: Linter.RuleEntry<JsdocRequireReturnsCheck>
|
|
2339
2374
|
/**
|
|
2340
|
-
* Requires that the `@returns` tag has a `description` value.
|
|
2375
|
+
* Requires that the `@returns` tag has a `description` value (not including `void`/`undefined` type returns).
|
|
2341
2376
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-description.md#repos-sticky-header
|
|
2342
2377
|
*/
|
|
2343
2378
|
'jsdoc/require-returns-description'?: Linter.RuleEntry<JsdocRequireReturnsDescription>
|
|
2344
2379
|
/**
|
|
2345
|
-
* Requires that `@returns` tag has
|
|
2380
|
+
* Requires that `@returns` tag has type value (in curly brackets).
|
|
2346
2381
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns-type.md#repos-sticky-header
|
|
2347
2382
|
*/
|
|
2348
2383
|
'jsdoc/require-returns-type'?: Linter.RuleEntry<JsdocRequireReturnsType>
|
|
2349
2384
|
/**
|
|
2350
|
-
* Requires
|
|
2385
|
+
* Requires tags be present, optionally for specific contexts
|
|
2386
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-tags.md#repos-sticky-header
|
|
2387
|
+
*/
|
|
2388
|
+
'jsdoc/require-tags'?: Linter.RuleEntry<JsdocRequireTags>
|
|
2389
|
+
/**
|
|
2390
|
+
* Requires `@template` tags be present when type parameters are used.
|
|
2351
2391
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
|
|
2352
2392
|
*/
|
|
2353
2393
|
'jsdoc/require-template'?: Linter.RuleEntry<JsdocRequireTemplate>
|
|
2354
2394
|
/**
|
|
2355
|
-
* Requires
|
|
2395
|
+
* Requires a description for `@template` tags
|
|
2396
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template-description.md#repos-sticky-header
|
|
2397
|
+
*/
|
|
2398
|
+
'jsdoc/require-template-description'?: Linter.RuleEntry<[]>
|
|
2399
|
+
/**
|
|
2400
|
+
* Requires that throw statements are documented with `@throws` tags.
|
|
2356
2401
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws.md#repos-sticky-header
|
|
2357
2402
|
*/
|
|
2358
2403
|
'jsdoc/require-throws'?: Linter.RuleEntry<JsdocRequireThrows>
|
|
2359
2404
|
/**
|
|
2360
|
-
* Requires
|
|
2405
|
+
* Requires a description for `@throws` tags
|
|
2406
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws-description.md#repos-sticky-header
|
|
2407
|
+
*/
|
|
2408
|
+
'jsdoc/require-throws-description'?: Linter.RuleEntry<[]>
|
|
2409
|
+
/**
|
|
2410
|
+
* Requires a type for `@throws` tags
|
|
2411
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-throws-type.md#repos-sticky-header
|
|
2412
|
+
*/
|
|
2413
|
+
'jsdoc/require-throws-type'?: Linter.RuleEntry<[]>
|
|
2414
|
+
/**
|
|
2415
|
+
* Requires yields are documented with `@yields` tags.
|
|
2361
2416
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields.md#repos-sticky-header
|
|
2362
2417
|
*/
|
|
2363
2418
|
'jsdoc/require-yields'?: Linter.RuleEntry<JsdocRequireYields>
|
|
2364
2419
|
/**
|
|
2365
|
-
*
|
|
2420
|
+
* Ensures that if a `@yields` is present that a `yield` (or `yield` with a value) is present in the function body (or that if a `@next` is present that there is a yield with a return value present).
|
|
2366
2421
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-check.md#repos-sticky-header
|
|
2367
2422
|
*/
|
|
2368
2423
|
'jsdoc/require-yields-check'?: Linter.RuleEntry<JsdocRequireYieldsCheck>
|
|
2369
2424
|
/**
|
|
2370
|
-
*
|
|
2425
|
+
* Requires a description for `@yields` tags
|
|
2426
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-description.md#repos-sticky-header
|
|
2427
|
+
*/
|
|
2428
|
+
'jsdoc/require-yields-description'?: Linter.RuleEntry<[]>
|
|
2429
|
+
/**
|
|
2430
|
+
* Requires a type for `@yields` tags
|
|
2431
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-yields-type.md#repos-sticky-header
|
|
2432
|
+
*/
|
|
2433
|
+
'jsdoc/require-yields-type'?: Linter.RuleEntry<[]>
|
|
2434
|
+
/**
|
|
2435
|
+
* Sorts tags by a specified sequence according to tag name, optionally adding line breaks between tag groups.
|
|
2371
2436
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/sort-tags.md#repos-sticky-header
|
|
2372
2437
|
*/
|
|
2373
2438
|
'jsdoc/sort-tags'?: Linter.RuleEntry<JsdocSortTags>
|
|
2374
2439
|
/**
|
|
2375
|
-
* Enforces lines (or no lines) between tags.
|
|
2440
|
+
* Enforces lines (or no lines) before, after, or between tags.
|
|
2376
2441
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/tag-lines.md#repos-sticky-header
|
|
2377
2442
|
*/
|
|
2378
2443
|
'jsdoc/tag-lines'?: Linter.RuleEntry<JsdocTagLines>
|
|
@@ -2381,13 +2446,33 @@ interface Rules {
|
|
|
2381
2446
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
|
|
2382
2447
|
*/
|
|
2383
2448
|
'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>
|
|
2449
|
+
/**
|
|
2450
|
+
* Prefers either function properties or method signatures
|
|
2451
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
|
|
2452
|
+
*/
|
|
2453
|
+
'jsdoc/ts-method-signature-style'?: Linter.RuleEntry<JsdocTsMethodSignatureStyle>
|
|
2454
|
+
/**
|
|
2455
|
+
* Warns against use of the empty object type
|
|
2456
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-empty-object-type.md#repos-sticky-header
|
|
2457
|
+
*/
|
|
2458
|
+
'jsdoc/ts-no-empty-object-type'?: Linter.RuleEntry<[]>
|
|
2459
|
+
/**
|
|
2460
|
+
* Catches unnecessary template expressions such as string expressions within a template literal.
|
|
2461
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-no-unnecessary-template-expression.md#repos-sticky-header
|
|
2462
|
+
*/
|
|
2463
|
+
'jsdoc/ts-no-unnecessary-template-expression'?: Linter.RuleEntry<JsdocTsNoUnnecessaryTemplateExpression>
|
|
2464
|
+
/**
|
|
2465
|
+
* Prefers function types over call signatures when there are no other properties.
|
|
2466
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-prefer-function-type.md#repos-sticky-header
|
|
2467
|
+
*/
|
|
2468
|
+
'jsdoc/ts-prefer-function-type'?: Linter.RuleEntry<JsdocTsPreferFunctionType>
|
|
2384
2469
|
/**
|
|
2385
2470
|
* Formats JSDoc type values.
|
|
2386
2471
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
|
|
2387
2472
|
*/
|
|
2388
2473
|
'jsdoc/type-formatting'?: Linter.RuleEntry<JsdocTypeFormatting>
|
|
2389
2474
|
/**
|
|
2390
|
-
* Requires all types to be valid JSDoc
|
|
2475
|
+
* Requires all types/namepaths to be valid JSDoc, Closure compiler, or TypeScript types (configurable in settings).
|
|
2391
2476
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
|
|
2392
2477
|
*/
|
|
2393
2478
|
'jsdoc/valid-types'?: Linter.RuleEntry<JsdocValidTypes>
|
|
@@ -4242,7 +4327,7 @@ interface Rules {
|
|
|
4242
4327
|
*/
|
|
4243
4328
|
'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
|
|
4244
4329
|
/**
|
|
4245
|
-
* Enforces explicit `sandbox`
|
|
4330
|
+
* Enforces explicit `sandbox` prop for `iframe` elements.
|
|
4246
4331
|
* @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
|
|
4247
4332
|
*/
|
|
4248
4333
|
'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
|
|
@@ -4296,6 +4381,11 @@ interface Rules {
|
|
|
4296
4381
|
* @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
|
|
4297
4382
|
*/
|
|
4298
4383
|
'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
|
|
4384
|
+
/**
|
|
4385
|
+
* Enforces React Dom is imported via a namespace import.
|
|
4386
|
+
* @see https://eslint-react.xyz/docs/rules/dom-prefer-namespace-import
|
|
4387
|
+
*/
|
|
4388
|
+
'react-dom/prefer-namespace-import'?: Linter.RuleEntry<[]>
|
|
4299
4389
|
/**
|
|
4300
4390
|
* Disallow direct calls to the `set` function of `useState` in `useEffect`.
|
|
4301
4391
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
@@ -4416,7 +4506,7 @@ interface Rules {
|
|
|
4416
4506
|
*/
|
|
4417
4507
|
'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>
|
|
4418
4508
|
/**
|
|
4419
|
-
* Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
4509
|
+
* 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.
|
|
4420
4510
|
*/
|
|
4421
4511
|
'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>
|
|
4422
4512
|
/**
|
|
@@ -4466,7 +4556,7 @@ interface Rules {
|
|
|
4466
4556
|
*/
|
|
4467
4557
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
|
|
4468
4558
|
/**
|
|
4469
|
-
* Enforces that the 'key'
|
|
4559
|
+
* Enforces that the 'key' prop is placed before the spread prop in JSX elements.
|
|
4470
4560
|
* @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
|
|
4471
4561
|
*/
|
|
4472
4562
|
'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>
|
|
@@ -4671,7 +4761,7 @@ interface Rules {
|
|
|
4671
4761
|
*/
|
|
4672
4762
|
'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
|
|
4673
4763
|
/**
|
|
4674
|
-
*
|
|
4764
|
+
* Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
|
|
4675
4765
|
* @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
|
|
4676
4766
|
*/
|
|
4677
4767
|
'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
|
|
@@ -4731,7 +4821,7 @@ interface Rules {
|
|
|
4731
4821
|
*/
|
|
4732
4822
|
'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
|
|
4733
4823
|
/**
|
|
4734
|
-
* Warns
|
|
4824
|
+
* Warns component props that are defined but never used.
|
|
4735
4825
|
* @see https://eslint-react.xyz/docs/rules/no-unused-props
|
|
4736
4826
|
*/
|
|
4737
4827
|
'react/no-unused-props'?: Linter.RuleEntry<[]>
|
|
@@ -5426,710 +5516,725 @@ interface Rules {
|
|
|
5426
5516
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
5427
5517
|
/**
|
|
5428
5518
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
5429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
5430
5520
|
*/
|
|
5431
5521
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
5432
5522
|
/**
|
|
5433
5523
|
* Enforce a specific parameter name in catch clauses.
|
|
5434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
5435
5525
|
*/
|
|
5436
5526
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
5437
5527
|
/**
|
|
5438
5528
|
* Enforce consistent assertion style with `node:assert`.
|
|
5439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
5440
5530
|
*/
|
|
5441
5531
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
5442
5532
|
/**
|
|
5443
5533
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
5444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
5445
5535
|
*/
|
|
5446
5536
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
5447
5537
|
/**
|
|
5448
5538
|
* Use destructured variables over properties.
|
|
5449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
5450
5540
|
*/
|
|
5451
5541
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
5452
5542
|
/**
|
|
5453
5543
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
5454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
5455
5545
|
*/
|
|
5456
5546
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
5457
5547
|
/**
|
|
5458
5548
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
5459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
5460
5550
|
*/
|
|
5461
5551
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
5462
5552
|
/**
|
|
5463
5553
|
* Move function definitions to the highest possible scope.
|
|
5464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
5465
5555
|
*/
|
|
5466
5556
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
5467
5557
|
/**
|
|
5468
5558
|
* Enforce correct `Error` subclassing.
|
|
5469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
5470
5560
|
*/
|
|
5471
5561
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
5472
5562
|
/**
|
|
5473
5563
|
* Enforce no spaces between braces.
|
|
5474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
5475
5565
|
*/
|
|
5476
5566
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
5477
5567
|
/**
|
|
5478
5568
|
* Enforce passing a `message` value when creating a built-in error.
|
|
5479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
5480
5570
|
*/
|
|
5481
5571
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
5482
5572
|
/**
|
|
5483
5573
|
* Require escape sequences to use uppercase or lowercase values.
|
|
5484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
5485
5575
|
*/
|
|
5486
5576
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
5487
5577
|
/**
|
|
5488
5578
|
* Add expiration conditions to TODO comments.
|
|
5489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
5490
5580
|
*/
|
|
5491
5581
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
5492
5582
|
/**
|
|
5493
5583
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
5494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
5495
5585
|
*/
|
|
5496
5586
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
5497
5587
|
/**
|
|
5498
5588
|
* Enforce a case style for filenames.
|
|
5499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
5500
5590
|
*/
|
|
5501
5591
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
5502
5592
|
/**
|
|
5503
5593
|
* Enforce specific import styles per module.
|
|
5504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
5505
5595
|
*/
|
|
5506
5596
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
5507
5597
|
/**
|
|
5508
5598
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
5509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
5510
5600
|
*/
|
|
5511
5601
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
5512
5602
|
/**
|
|
5513
5603
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
5514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
5515
5605
|
*/
|
|
5516
5606
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
5517
5607
|
/**
|
|
5518
5608
|
* Disallow recursive access to `this` within getters and setters.
|
|
5519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
5520
5610
|
*/
|
|
5521
5611
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
5522
5612
|
/**
|
|
5523
5613
|
* Disallow anonymous functions and classes as the default export.
|
|
5524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
5525
5615
|
*/
|
|
5526
5616
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
5527
5617
|
/**
|
|
5528
5618
|
* Prevent passing a function reference directly to iterator methods.
|
|
5529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
5530
5620
|
*/
|
|
5531
5621
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
5532
5622
|
/**
|
|
5533
5623
|
* Prefer `for…of` over the `forEach` method.
|
|
5534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
5535
5625
|
*/
|
|
5536
5626
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
5537
5627
|
/**
|
|
5538
5628
|
* Disallow using the `this` argument in array methods.
|
|
5539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
5540
5630
|
*/
|
|
5541
5631
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
5542
5632
|
/**
|
|
5543
5633
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
5544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
5545
5635
|
* @deprecated
|
|
5546
5636
|
*/
|
|
5547
5637
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
5548
5638
|
/**
|
|
5549
5639
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
5550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
5551
5641
|
*/
|
|
5552
5642
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
5553
5643
|
/**
|
|
5554
5644
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
5555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
5556
5646
|
*/
|
|
5557
5647
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
|
|
5558
5648
|
/**
|
|
5559
5649
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
5560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
5561
5651
|
*/
|
|
5562
5652
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
|
|
5563
5653
|
/**
|
|
5564
5654
|
* Disallow member access from await expression.
|
|
5565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
5566
5656
|
*/
|
|
5567
5657
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
5568
5658
|
/**
|
|
5569
5659
|
* Disallow using `await` in `Promise` method parameters.
|
|
5570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
5571
5661
|
*/
|
|
5572
5662
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5573
5663
|
/**
|
|
5574
5664
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
5575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
5576
5666
|
*/
|
|
5577
5667
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
5578
5668
|
/**
|
|
5579
5669
|
* Do not use `document.cookie` directly.
|
|
5580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
5581
5671
|
*/
|
|
5582
5672
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
5583
5673
|
/**
|
|
5584
5674
|
* Disallow empty files.
|
|
5585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
5586
5676
|
*/
|
|
5587
5677
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
5588
5678
|
/**
|
|
5589
5679
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
5590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
5591
5681
|
*/
|
|
5592
5682
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
5593
5683
|
/**
|
|
5594
5684
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
5595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
5596
5686
|
*/
|
|
5597
5687
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
5688
|
+
/**
|
|
5689
|
+
* Disallow immediate mutation after variable assignment.
|
|
5690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
5691
|
+
*/
|
|
5692
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
|
|
5598
5693
|
/**
|
|
5599
5694
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
5600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
5601
5696
|
* @deprecated
|
|
5602
5697
|
*/
|
|
5603
5698
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
5604
5699
|
/**
|
|
5605
5700
|
* Disallow `instanceof` with built-in objects
|
|
5606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
5607
5702
|
*/
|
|
5608
5703
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
5609
5704
|
/**
|
|
5610
5705
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
5611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
5612
5707
|
*/
|
|
5613
5708
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
5614
5709
|
/**
|
|
5615
5710
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
5616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
5617
5712
|
*/
|
|
5618
5713
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
5619
5714
|
/**
|
|
5620
5715
|
* Disallow identifiers starting with `new` or `class`.
|
|
5621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
5622
5717
|
*/
|
|
5623
5718
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
5624
5719
|
/**
|
|
5625
5720
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
5626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
5627
5722
|
* @deprecated
|
|
5628
5723
|
*/
|
|
5629
5724
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
5630
5725
|
/**
|
|
5631
5726
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
5632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
5633
5728
|
*/
|
|
5634
5729
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
5635
5730
|
/**
|
|
5636
5731
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
5637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
5638
5733
|
*/
|
|
5639
5734
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5640
5735
|
/**
|
|
5641
5736
|
* Disallow named usage of default import and export.
|
|
5642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
5643
5738
|
*/
|
|
5644
5739
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
5645
5740
|
/**
|
|
5646
5741
|
* Disallow negated conditions.
|
|
5647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
5648
5743
|
*/
|
|
5649
5744
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
5650
5745
|
/**
|
|
5651
5746
|
* Disallow negated expression in equality check.
|
|
5652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
5653
5748
|
*/
|
|
5654
5749
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
5655
5750
|
/**
|
|
5656
5751
|
* Disallow nested ternary expressions.
|
|
5657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
5658
5753
|
*/
|
|
5659
5754
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
5660
5755
|
/**
|
|
5661
5756
|
* Disallow `new Array()`.
|
|
5662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
5663
5758
|
*/
|
|
5664
5759
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
5665
5760
|
/**
|
|
5666
5761
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
5667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
5668
5763
|
*/
|
|
5669
5764
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
5670
5765
|
/**
|
|
5671
5766
|
* Disallow the use of the `null` literal.
|
|
5672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
5673
5768
|
*/
|
|
5674
5769
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
5675
5770
|
/**
|
|
5676
5771
|
* Disallow the use of objects as default parameters.
|
|
5677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
5678
5773
|
*/
|
|
5679
5774
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
5680
5775
|
/**
|
|
5681
5776
|
* Disallow `process.exit()`.
|
|
5682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
5683
5778
|
*/
|
|
5684
5779
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
5685
5780
|
/**
|
|
5686
5781
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5782
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5688
5783
|
*/
|
|
5689
5784
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
5690
5785
|
/**
|
|
5691
5786
|
* Disallow classes that only have static members.
|
|
5692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
5693
5788
|
*/
|
|
5694
5789
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
5695
5790
|
/**
|
|
5696
5791
|
* Disallow `then` property.
|
|
5697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5792
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
5698
5793
|
*/
|
|
5699
5794
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
5700
5795
|
/**
|
|
5701
5796
|
* Disallow assigning `this` to a variable.
|
|
5702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
5703
5798
|
*/
|
|
5704
5799
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
5705
5800
|
/**
|
|
5706
5801
|
* Disallow comparing `undefined` using `typeof`.
|
|
5707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
5708
5803
|
*/
|
|
5709
5804
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
5710
5805
|
/**
|
|
5711
5806
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5713
5808
|
*/
|
|
5714
5809
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
5715
5810
|
/**
|
|
5716
5811
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5718
5813
|
*/
|
|
5719
5814
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
5720
5815
|
/**
|
|
5721
5816
|
* Disallow awaiting non-promise values.
|
|
5722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
5723
5818
|
*/
|
|
5724
5819
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
5725
5820
|
/**
|
|
5726
5821
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5728
5823
|
*/
|
|
5729
5824
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
5730
5825
|
/**
|
|
5731
5826
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5733
5828
|
*/
|
|
5734
5829
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
5735
5830
|
/**
|
|
5736
5831
|
* Disallow unreadable array destructuring.
|
|
5737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5738
5833
|
*/
|
|
5739
5834
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
5740
5835
|
/**
|
|
5741
5836
|
* Disallow unreadable IIFEs.
|
|
5742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
5743
5838
|
*/
|
|
5744
5839
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
5745
5840
|
/**
|
|
5746
5841
|
* Disallow unused object properties.
|
|
5747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
5748
5843
|
*/
|
|
5749
5844
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
5845
|
+
/**
|
|
5846
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
5848
|
+
*/
|
|
5849
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
|
|
5750
5850
|
/**
|
|
5751
5851
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5753
5853
|
*/
|
|
5754
5854
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
|
|
5755
5855
|
/**
|
|
5756
5856
|
* Disallow useless fallback when spreading in object literals.
|
|
5757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5758
5858
|
*/
|
|
5759
5859
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
5760
5860
|
/**
|
|
5761
5861
|
* Disallow useless array length check.
|
|
5762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
5763
5863
|
*/
|
|
5764
5864
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
5765
5865
|
/**
|
|
5766
5866
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5768
5868
|
*/
|
|
5769
5869
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
5770
5870
|
/**
|
|
5771
5871
|
* Disallow unnecessary spread.
|
|
5772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
5773
5873
|
*/
|
|
5774
5874
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
5775
5875
|
/**
|
|
5776
5876
|
* Disallow useless case in switch statements.
|
|
5777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
5778
5878
|
*/
|
|
5779
5879
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
5780
5880
|
/**
|
|
5781
5881
|
* Disallow useless `undefined`.
|
|
5782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
5783
5883
|
*/
|
|
5784
5884
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
5785
5885
|
/**
|
|
5786
5886
|
* Disallow number literals with zero fractions or dangling dots.
|
|
5787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
5788
5888
|
*/
|
|
5789
5889
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
5790
5890
|
/**
|
|
5791
5891
|
* Enforce proper case for numeric literals.
|
|
5792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
5793
5893
|
*/
|
|
5794
5894
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
5795
5895
|
/**
|
|
5796
5896
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
5798
5898
|
*/
|
|
5799
5899
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
5800
5900
|
/**
|
|
5801
5901
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
5803
5903
|
*/
|
|
5804
5904
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
5805
5905
|
/**
|
|
5806
5906
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
5808
5908
|
*/
|
|
5809
5909
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
5810
5910
|
/**
|
|
5811
5911
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
5813
5913
|
*/
|
|
5814
5914
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
5815
5915
|
/**
|
|
5816
5916
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
5817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
5818
5918
|
*/
|
|
5819
5919
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
5820
5920
|
/**
|
|
5821
5921
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
5823
5923
|
*/
|
|
5824
5924
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
5825
5925
|
/**
|
|
5826
5926
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
5828
5928
|
*/
|
|
5829
5929
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
5830
5930
|
/**
|
|
5831
5931
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
5833
5933
|
*/
|
|
5834
5934
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
5835
5935
|
/**
|
|
5836
5936
|
* Prefer `BigInt` literals over the constructor.
|
|
5837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
5838
5938
|
*/
|
|
5839
5939
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
|
|
5840
5940
|
/**
|
|
5841
5941
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5843
5943
|
*/
|
|
5844
5944
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
5845
5945
|
/**
|
|
5846
5946
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
5848
5948
|
*/
|
|
5849
5949
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
|
|
5850
5950
|
/**
|
|
5851
5951
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5853
5953
|
*/
|
|
5854
5954
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
|
|
5855
5955
|
/**
|
|
5856
5956
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
5858
5958
|
*/
|
|
5859
5959
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
5860
5960
|
/**
|
|
5861
5961
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
5863
5963
|
*/
|
|
5864
5964
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
5865
5965
|
/**
|
|
5866
5966
|
* Prefer default parameters over reassignment.
|
|
5867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
5868
5968
|
*/
|
|
5869
5969
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
5870
5970
|
/**
|
|
5871
5971
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
5873
5973
|
*/
|
|
5874
5974
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
5875
5975
|
/**
|
|
5876
5976
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5878
5978
|
*/
|
|
5879
5979
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
5880
5980
|
/**
|
|
5881
5981
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5883
5983
|
*/
|
|
5884
5984
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
5885
5985
|
/**
|
|
5886
5986
|
* Prefer `.textContent` over `.innerText`.
|
|
5887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5888
5988
|
*/
|
|
5889
5989
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
5890
5990
|
/**
|
|
5891
5991
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
5893
5993
|
*/
|
|
5894
5994
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
5895
5995
|
/**
|
|
5896
5996
|
* Prefer `export…from` when re-exporting.
|
|
5897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
5898
5998
|
*/
|
|
5899
5999
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
5900
6000
|
/**
|
|
5901
6001
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
5903
6003
|
*/
|
|
5904
6004
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
5905
6005
|
/**
|
|
5906
6006
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5908
6008
|
*/
|
|
5909
6009
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
5910
6010
|
/**
|
|
5911
6011
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
5913
6013
|
*/
|
|
5914
6014
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
5915
6015
|
/**
|
|
5916
6016
|
* Prefer reading a JSON file as a buffer.
|
|
5917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5918
6018
|
*/
|
|
5919
6019
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
5920
6020
|
/**
|
|
5921
6021
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5923
6023
|
*/
|
|
5924
6024
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
5925
6025
|
/**
|
|
5926
6026
|
* Prefer using a logical operator over a ternary.
|
|
5927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5928
6028
|
*/
|
|
5929
6029
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
5930
6030
|
/**
|
|
5931
6031
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
5933
6033
|
*/
|
|
5934
6034
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
5935
6035
|
/**
|
|
5936
6036
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
5938
6038
|
*/
|
|
5939
6039
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
5940
6040
|
/**
|
|
5941
6041
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5943
6043
|
*/
|
|
5944
6044
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
5945
6045
|
/**
|
|
5946
6046
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5948
6048
|
*/
|
|
5949
6049
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
5950
6050
|
/**
|
|
5951
6051
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
5953
6053
|
*/
|
|
5954
6054
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
5955
6055
|
/**
|
|
5956
6056
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5958
6058
|
*/
|
|
5959
6059
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
5960
6060
|
/**
|
|
5961
6061
|
* Prefer negative index over `.length - index` when possible.
|
|
5962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
5963
6063
|
*/
|
|
5964
6064
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
5965
6065
|
/**
|
|
5966
6066
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
5968
6068
|
*/
|
|
5969
6069
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
5970
6070
|
/**
|
|
5971
6071
|
* Prefer `Number` static properties over global ones.
|
|
5972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
5973
6073
|
*/
|
|
5974
6074
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
5975
6075
|
/**
|
|
5976
6076
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
5978
6078
|
*/
|
|
5979
6079
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
5980
6080
|
/**
|
|
5981
6081
|
* Prefer omitting the `catch` binding parameter.
|
|
5982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5983
6083
|
*/
|
|
5984
6084
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
5985
6085
|
/**
|
|
5986
6086
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
5988
6088
|
*/
|
|
5989
6089
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
5990
6090
|
/**
|
|
5991
6091
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
5993
6093
|
*/
|
|
5994
6094
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
5995
6095
|
/**
|
|
5996
6096
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
5998
6098
|
*/
|
|
5999
6099
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
6000
6100
|
/**
|
|
6001
6101
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
6003
6103
|
*/
|
|
6004
6104
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
6105
|
+
/**
|
|
6106
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
6108
|
+
*/
|
|
6109
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
|
|
6005
6110
|
/**
|
|
6006
6111
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
6008
6113
|
*/
|
|
6009
6114
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
6010
6115
|
/**
|
|
6011
6116
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
6013
6118
|
*/
|
|
6014
6119
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
6015
6120
|
/**
|
|
6016
6121
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
6018
6123
|
*/
|
|
6019
6124
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
6020
6125
|
/**
|
|
6021
6126
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
6023
6128
|
*/
|
|
6024
6129
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
6025
6130
|
/**
|
|
6026
6131
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
6028
6133
|
*/
|
|
6029
6134
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
6030
6135
|
/**
|
|
6031
6136
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
6033
6138
|
*/
|
|
6034
6139
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
6035
6140
|
/**
|
|
6036
6141
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
6038
6143
|
*/
|
|
6039
6144
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
6040
6145
|
/**
|
|
6041
6146
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6043
6148
|
*/
|
|
6044
6149
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
6045
6150
|
/**
|
|
6046
6151
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6048
6153
|
*/
|
|
6049
6154
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
6050
6155
|
/**
|
|
6051
6156
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
6053
6158
|
*/
|
|
6054
6159
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
6055
6160
|
/**
|
|
6056
6161
|
* Prefer `switch` over multiple `else-if`.
|
|
6057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
6058
6163
|
*/
|
|
6059
6164
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
6060
6165
|
/**
|
|
6061
6166
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
6063
6168
|
*/
|
|
6064
6169
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
6065
6170
|
/**
|
|
6066
6171
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
6068
6173
|
*/
|
|
6069
6174
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
6070
6175
|
/**
|
|
6071
6176
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
6073
6178
|
*/
|
|
6074
6179
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
6075
6180
|
/**
|
|
6076
6181
|
* Prevent abbreviations.
|
|
6077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
6078
6183
|
*/
|
|
6079
6184
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
6080
6185
|
/**
|
|
6081
6186
|
* Enforce consistent relative URL style.
|
|
6082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
6083
6188
|
*/
|
|
6084
6189
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
6085
6190
|
/**
|
|
6086
6191
|
* Enforce using the separator argument with `Array#join()`.
|
|
6087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
6088
6193
|
*/
|
|
6089
6194
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
6090
6195
|
/**
|
|
6091
6196
|
* Require non-empty module attributes for imports and exports
|
|
6092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
6093
6198
|
*/
|
|
6094
6199
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
|
|
6095
6200
|
/**
|
|
6096
6201
|
* Require non-empty specifier list in import and export statements.
|
|
6097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
6098
6203
|
*/
|
|
6099
6204
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
|
|
6100
6205
|
/**
|
|
6101
6206
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6103
6208
|
*/
|
|
6104
6209
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
6105
6210
|
/**
|
|
6106
6211
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
6108
6213
|
*/
|
|
6109
6214
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
6110
6215
|
/**
|
|
6111
6216
|
* Enforce better string content.
|
|
6112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
6113
6218
|
*/
|
|
6114
6219
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
6115
6220
|
/**
|
|
6116
6221
|
* Enforce consistent brace style for `case` clauses.
|
|
6117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
6118
6223
|
*/
|
|
6119
6224
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
6120
6225
|
/**
|
|
6121
6226
|
* Fix whitespace-insensitive template indentation.
|
|
6122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
6123
6228
|
*/
|
|
6124
6229
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
6125
6230
|
/**
|
|
6126
6231
|
* Enforce consistent case for text encoding identifiers.
|
|
6127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6128
6233
|
*/
|
|
6129
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<
|
|
6234
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
|
|
6130
6235
|
/**
|
|
6131
6236
|
* Require `new` when creating an error.
|
|
6132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
6133
6238
|
*/
|
|
6134
6239
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
6135
6240
|
/**
|
|
@@ -9188,6 +9293,13 @@ type ArrowSpacing = []|[{
|
|
|
9188
9293
|
before?: boolean
|
|
9189
9294
|
after?: boolean
|
|
9190
9295
|
}]
|
|
9296
|
+
// ----- astro/no-unsafe-inline-scripts -----
|
|
9297
|
+
type AstroNoUnsafeInlineScripts = []|[{
|
|
9298
|
+
allowDefineVars?: boolean
|
|
9299
|
+
allowModuleScripts?: boolean
|
|
9300
|
+
allowNonExecutingTypes?: string[]
|
|
9301
|
+
allowNonce?: boolean
|
|
9302
|
+
}]
|
|
9191
9303
|
// ----- astro/prefer-split-class-list -----
|
|
9192
9304
|
type AstroPreferSplitClassList = []|[{
|
|
9193
9305
|
splitLiteral?: boolean
|
|
@@ -9724,6 +9836,7 @@ type InitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
|
9724
9836
|
}])
|
|
9725
9837
|
// ----- jsdoc/check-alignment -----
|
|
9726
9838
|
type JsdocCheckAlignment = []|[{
|
|
9839
|
+
|
|
9727
9840
|
innerIndent?: number
|
|
9728
9841
|
}]
|
|
9729
9842
|
// ----- jsdoc/check-examples -----
|
|
@@ -9750,85 +9863,138 @@ type JsdocCheckExamples = []|[{
|
|
|
9750
9863
|
}]
|
|
9751
9864
|
// ----- jsdoc/check-indentation -----
|
|
9752
9865
|
type JsdocCheckIndentation = []|[{
|
|
9866
|
+
|
|
9753
9867
|
excludeTags?: string[]
|
|
9754
9868
|
}]
|
|
9755
9869
|
// ----- jsdoc/check-line-alignment -----
|
|
9756
9870
|
type JsdocCheckLineAlignment = []|[("always" | "never" | "any")]|[("always" | "never" | "any"), {
|
|
9871
|
+
|
|
9757
9872
|
customSpacings?: {
|
|
9873
|
+
|
|
9758
9874
|
postDelimiter?: number
|
|
9875
|
+
|
|
9759
9876
|
postHyphen?: number
|
|
9877
|
+
|
|
9760
9878
|
postName?: number
|
|
9879
|
+
|
|
9761
9880
|
postTag?: number
|
|
9881
|
+
|
|
9762
9882
|
postType?: number
|
|
9763
9883
|
}
|
|
9884
|
+
|
|
9764
9885
|
disableWrapIndent?: boolean
|
|
9886
|
+
|
|
9765
9887
|
preserveMainDescriptionPostDelimiter?: boolean
|
|
9888
|
+
|
|
9766
9889
|
tags?: string[]
|
|
9890
|
+
|
|
9767
9891
|
wrapIndent?: string
|
|
9768
9892
|
}]
|
|
9769
9893
|
// ----- jsdoc/check-param-names -----
|
|
9770
9894
|
type JsdocCheckParamNames = []|[{
|
|
9895
|
+
|
|
9771
9896
|
allowExtraTrailingParamDocs?: boolean
|
|
9897
|
+
|
|
9772
9898
|
checkDestructured?: boolean
|
|
9899
|
+
|
|
9773
9900
|
checkRestProperty?: boolean
|
|
9901
|
+
|
|
9774
9902
|
checkTypesPattern?: string
|
|
9903
|
+
|
|
9775
9904
|
disableExtraPropertyReporting?: boolean
|
|
9905
|
+
|
|
9776
9906
|
disableMissingParamChecks?: boolean
|
|
9907
|
+
|
|
9777
9908
|
enableFixer?: boolean
|
|
9909
|
+
|
|
9778
9910
|
useDefaultObjectProperties?: boolean
|
|
9779
9911
|
}]
|
|
9780
9912
|
// ----- jsdoc/check-property-names -----
|
|
9781
9913
|
type JsdocCheckPropertyNames = []|[{
|
|
9914
|
+
|
|
9782
9915
|
enableFixer?: boolean
|
|
9783
9916
|
}]
|
|
9784
9917
|
// ----- jsdoc/check-tag-names -----
|
|
9785
9918
|
type JsdocCheckTagNames = []|[{
|
|
9919
|
+
|
|
9786
9920
|
definedTags?: string[]
|
|
9921
|
+
|
|
9787
9922
|
enableFixer?: boolean
|
|
9923
|
+
|
|
9924
|
+
inlineTags?: string[]
|
|
9925
|
+
|
|
9788
9926
|
jsxTags?: boolean
|
|
9927
|
+
|
|
9789
9928
|
typed?: boolean
|
|
9790
9929
|
}]
|
|
9791
9930
|
// ----- jsdoc/check-types -----
|
|
9792
9931
|
type JsdocCheckTypes = []|[{
|
|
9932
|
+
|
|
9793
9933
|
exemptTagContexts?: {
|
|
9934
|
+
|
|
9794
9935
|
tag?: string
|
|
9936
|
+
|
|
9795
9937
|
types?: (boolean | string[])
|
|
9796
9938
|
}[]
|
|
9939
|
+
|
|
9797
9940
|
noDefaults?: boolean
|
|
9941
|
+
|
|
9798
9942
|
unifyParentAndChildTypeChecks?: boolean
|
|
9799
9943
|
}]
|
|
9800
9944
|
// ----- jsdoc/check-values -----
|
|
9801
9945
|
type JsdocCheckValues = []|[{
|
|
9946
|
+
|
|
9802
9947
|
allowedAuthors?: string[]
|
|
9948
|
+
|
|
9803
9949
|
allowedLicenses?: (string[] | boolean)
|
|
9950
|
+
|
|
9804
9951
|
licensePattern?: string
|
|
9952
|
+
|
|
9805
9953
|
numericOnlyVariation?: boolean
|
|
9806
9954
|
}]
|
|
9807
9955
|
// ----- jsdoc/convert-to-jsdoc-comments -----
|
|
9808
9956
|
type JsdocConvertToJsdocComments = []|[{
|
|
9957
|
+
|
|
9809
9958
|
allowedPrefixes?: string[]
|
|
9959
|
+
|
|
9810
9960
|
contexts?: (string | {
|
|
9811
9961
|
context?: string
|
|
9812
9962
|
inlineCommentBlock?: boolean
|
|
9813
9963
|
})[]
|
|
9964
|
+
|
|
9814
9965
|
contextsAfter?: (string | {
|
|
9815
9966
|
context?: string
|
|
9816
9967
|
inlineCommentBlock?: boolean
|
|
9817
9968
|
})[]
|
|
9969
|
+
|
|
9818
9970
|
contextsBeforeAndAfter?: (string | {
|
|
9819
9971
|
context?: string
|
|
9820
9972
|
inlineCommentBlock?: boolean
|
|
9821
9973
|
})[]
|
|
9974
|
+
|
|
9822
9975
|
enableFixer?: boolean
|
|
9976
|
+
|
|
9823
9977
|
enforceJsdocLineStyle?: ("multi" | "single")
|
|
9978
|
+
|
|
9824
9979
|
lineOrBlockStyle?: ("block" | "line" | "both")
|
|
9825
9980
|
}]
|
|
9826
9981
|
// ----- jsdoc/empty-tags -----
|
|
9827
9982
|
type JsdocEmptyTags = []|[{
|
|
9983
|
+
|
|
9828
9984
|
tags?: string[]
|
|
9829
9985
|
}]
|
|
9986
|
+
// ----- jsdoc/escape-inline-tags -----
|
|
9987
|
+
type JsdocEscapeInlineTags = []|[{
|
|
9988
|
+
|
|
9989
|
+
allowedInlineTags?: string[]
|
|
9990
|
+
|
|
9991
|
+
enableFixer?: boolean
|
|
9992
|
+
|
|
9993
|
+
fixType?: ("backticks" | "backslash")
|
|
9994
|
+
}]
|
|
9830
9995
|
// ----- jsdoc/implements-on-classes -----
|
|
9831
9996
|
type JsdocImplementsOnClasses = []|[{
|
|
9997
|
+
|
|
9832
9998
|
contexts?: (string | {
|
|
9833
9999
|
comment?: string
|
|
9834
10000
|
context?: string
|
|
@@ -9836,33 +10002,47 @@ type JsdocImplementsOnClasses = []|[{
|
|
|
9836
10002
|
}]
|
|
9837
10003
|
// ----- jsdoc/informative-docs -----
|
|
9838
10004
|
type JsdocInformativeDocs = []|[{
|
|
10005
|
+
|
|
9839
10006
|
aliases?: {
|
|
9840
10007
|
[k: string]: string[]
|
|
9841
10008
|
}
|
|
10009
|
+
|
|
9842
10010
|
excludedTags?: string[]
|
|
10011
|
+
|
|
9843
10012
|
uselessWords?: string[]
|
|
9844
10013
|
}]
|
|
9845
10014
|
// ----- jsdoc/lines-before-block -----
|
|
9846
10015
|
type JsdocLinesBeforeBlock = []|[{
|
|
10016
|
+
|
|
9847
10017
|
checkBlockStarts?: boolean
|
|
10018
|
+
|
|
9848
10019
|
excludedTags?: string[]
|
|
10020
|
+
|
|
9849
10021
|
ignoreSameLine?: boolean
|
|
10022
|
+
|
|
9850
10023
|
ignoreSingleLines?: boolean
|
|
10024
|
+
|
|
9851
10025
|
lines?: number
|
|
9852
10026
|
}]
|
|
9853
10027
|
// ----- jsdoc/match-description -----
|
|
9854
10028
|
type JsdocMatchDescription = []|[{
|
|
10029
|
+
|
|
9855
10030
|
contexts?: (string | {
|
|
9856
10031
|
comment?: string
|
|
9857
10032
|
context?: string
|
|
9858
10033
|
})[]
|
|
10034
|
+
|
|
9859
10035
|
mainDescription?: (string | boolean | {
|
|
9860
10036
|
match?: (string | boolean)
|
|
9861
10037
|
message?: string
|
|
9862
10038
|
})
|
|
10039
|
+
|
|
9863
10040
|
matchDescription?: string
|
|
10041
|
+
|
|
9864
10042
|
message?: string
|
|
10043
|
+
|
|
9865
10044
|
nonemptyTags?: boolean
|
|
10045
|
+
|
|
9866
10046
|
tags?: {
|
|
9867
10047
|
[k: string]: (string | true | {
|
|
9868
10048
|
match?: (string | true)
|
|
@@ -9872,47 +10052,70 @@ type JsdocMatchDescription = []|[{
|
|
|
9872
10052
|
}]
|
|
9873
10053
|
// ----- jsdoc/match-name -----
|
|
9874
10054
|
type JsdocMatchName = []|[{
|
|
10055
|
+
|
|
9875
10056
|
match: {
|
|
10057
|
+
|
|
9876
10058
|
allowName?: string
|
|
10059
|
+
|
|
9877
10060
|
comment?: string
|
|
10061
|
+
|
|
9878
10062
|
context?: string
|
|
10063
|
+
|
|
9879
10064
|
disallowName?: string
|
|
10065
|
+
|
|
9880
10066
|
message?: string
|
|
10067
|
+
|
|
9881
10068
|
replacement?: string
|
|
10069
|
+
|
|
9882
10070
|
tags?: string[]
|
|
9883
10071
|
}[]
|
|
9884
10072
|
}]
|
|
9885
10073
|
// ----- jsdoc/multiline-blocks -----
|
|
9886
10074
|
type JsdocMultilineBlocks = []|[{
|
|
10075
|
+
|
|
9887
10076
|
allowMultipleTags?: boolean
|
|
10077
|
+
|
|
9888
10078
|
minimumLengthForMultiline?: number
|
|
10079
|
+
|
|
9889
10080
|
multilineTags?: ("*" | string[])
|
|
10081
|
+
|
|
9890
10082
|
noFinalLineText?: boolean
|
|
10083
|
+
|
|
9891
10084
|
noMultilineBlocks?: boolean
|
|
10085
|
+
|
|
9892
10086
|
noSingleLineBlocks?: boolean
|
|
10087
|
+
|
|
9893
10088
|
noZeroLineText?: boolean
|
|
10089
|
+
|
|
9894
10090
|
requireSingleLineUnderCount?: number
|
|
10091
|
+
|
|
9895
10092
|
singleLineTags?: string[]
|
|
9896
10093
|
}]
|
|
9897
10094
|
// ----- jsdoc/no-bad-blocks -----
|
|
9898
10095
|
type JsdocNoBadBlocks = []|[{
|
|
10096
|
+
|
|
9899
10097
|
ignore?: string[]
|
|
10098
|
+
|
|
9900
10099
|
preventAllMultiAsteriskBlocks?: boolean
|
|
9901
10100
|
}]
|
|
9902
10101
|
// ----- jsdoc/no-blank-blocks -----
|
|
9903
10102
|
type JsdocNoBlankBlocks = []|[{
|
|
10103
|
+
|
|
9904
10104
|
enableFixer?: boolean
|
|
9905
10105
|
}]
|
|
9906
10106
|
// ----- jsdoc/no-defaults -----
|
|
9907
10107
|
type JsdocNoDefaults = []|[{
|
|
10108
|
+
|
|
9908
10109
|
contexts?: (string | {
|
|
9909
10110
|
comment?: string
|
|
9910
10111
|
context?: string
|
|
9911
10112
|
})[]
|
|
10113
|
+
|
|
9912
10114
|
noOptionalParamNames?: boolean
|
|
9913
10115
|
}]
|
|
9914
10116
|
// ----- jsdoc/no-missing-syntax -----
|
|
9915
10117
|
type JsdocNoMissingSyntax = []|[{
|
|
10118
|
+
|
|
9916
10119
|
contexts?: (string | {
|
|
9917
10120
|
comment?: string
|
|
9918
10121
|
context?: string
|
|
@@ -9922,12 +10125,16 @@ type JsdocNoMissingSyntax = []|[{
|
|
|
9922
10125
|
}]
|
|
9923
10126
|
// ----- jsdoc/no-multi-asterisks -----
|
|
9924
10127
|
type JsdocNoMultiAsterisks = []|[{
|
|
10128
|
+
|
|
9925
10129
|
allowWhitespace?: boolean
|
|
10130
|
+
|
|
9926
10131
|
preventAtEnd?: boolean
|
|
10132
|
+
|
|
9927
10133
|
preventAtMiddleLines?: boolean
|
|
9928
10134
|
}]
|
|
9929
10135
|
// ----- jsdoc/no-restricted-syntax -----
|
|
9930
10136
|
type JsdocNoRestrictedSyntax = []|[{
|
|
10137
|
+
|
|
9931
10138
|
contexts: (string | {
|
|
9932
10139
|
comment?: string
|
|
9933
10140
|
context?: string
|
|
@@ -9936,6 +10143,7 @@ type JsdocNoRestrictedSyntax = []|[{
|
|
|
9936
10143
|
}]
|
|
9937
10144
|
// ----- jsdoc/no-types -----
|
|
9938
10145
|
type JsdocNoTypes = []|[{
|
|
10146
|
+
|
|
9939
10147
|
contexts?: (string | {
|
|
9940
10148
|
comment?: string
|
|
9941
10149
|
context?: string
|
|
@@ -9943,51 +10151,86 @@ type JsdocNoTypes = []|[{
|
|
|
9943
10151
|
}]
|
|
9944
10152
|
// ----- jsdoc/no-undefined-types -----
|
|
9945
10153
|
type JsdocNoUndefinedTypes = []|[{
|
|
10154
|
+
|
|
10155
|
+
checkUsedTypedefs?: boolean
|
|
10156
|
+
|
|
9946
10157
|
definedTypes?: string[]
|
|
10158
|
+
|
|
9947
10159
|
disableReporting?: boolean
|
|
10160
|
+
|
|
9948
10161
|
markVariablesAsUsed?: boolean
|
|
9949
10162
|
}]
|
|
10163
|
+
// ----- jsdoc/prefer-import-tag -----
|
|
10164
|
+
type JsdocPreferImportTag = []|[{
|
|
10165
|
+
|
|
10166
|
+
enableFixer?: boolean
|
|
10167
|
+
|
|
10168
|
+
exemptTypedefs?: boolean
|
|
10169
|
+
|
|
10170
|
+
outputType?: ("named-import" | "namespaced-import")
|
|
10171
|
+
}]
|
|
9950
10172
|
// ----- jsdoc/require-asterisk-prefix -----
|
|
9951
10173
|
type JsdocRequireAsteriskPrefix = []|[("always" | "never" | "any")]|[("always" | "never" | "any"), {
|
|
10174
|
+
|
|
9952
10175
|
tags?: {
|
|
10176
|
+
|
|
9953
10177
|
always?: string[]
|
|
10178
|
+
|
|
9954
10179
|
any?: string[]
|
|
10180
|
+
|
|
9955
10181
|
never?: string[]
|
|
9956
10182
|
}
|
|
9957
10183
|
}]
|
|
9958
10184
|
// ----- jsdoc/require-description -----
|
|
9959
10185
|
type JsdocRequireDescription = []|[{
|
|
10186
|
+
|
|
9960
10187
|
checkConstructors?: boolean
|
|
10188
|
+
|
|
9961
10189
|
checkGetters?: boolean
|
|
10190
|
+
|
|
9962
10191
|
checkSetters?: boolean
|
|
10192
|
+
|
|
9963
10193
|
contexts?: (string | {
|
|
9964
10194
|
comment?: string
|
|
9965
10195
|
context?: string
|
|
9966
10196
|
})[]
|
|
10197
|
+
|
|
9967
10198
|
descriptionStyle?: ("body" | "tag" | "any")
|
|
10199
|
+
|
|
9968
10200
|
exemptedBy?: string[]
|
|
9969
10201
|
}]
|
|
9970
10202
|
// ----- jsdoc/require-description-complete-sentence -----
|
|
9971
10203
|
type JsdocRequireDescriptionCompleteSentence = []|[{
|
|
10204
|
+
|
|
9972
10205
|
abbreviations?: string[]
|
|
10206
|
+
|
|
9973
10207
|
newlineBeforeCapsAssumesBadSentenceEnd?: boolean
|
|
10208
|
+
|
|
9974
10209
|
tags?: string[]
|
|
9975
10210
|
}]
|
|
9976
10211
|
// ----- jsdoc/require-example -----
|
|
9977
10212
|
type JsdocRequireExample = []|[{
|
|
10213
|
+
|
|
9978
10214
|
checkConstructors?: boolean
|
|
10215
|
+
|
|
9979
10216
|
checkGetters?: boolean
|
|
10217
|
+
|
|
9980
10218
|
checkSetters?: boolean
|
|
10219
|
+
|
|
9981
10220
|
contexts?: (string | {
|
|
9982
10221
|
comment?: string
|
|
9983
10222
|
context?: string
|
|
9984
10223
|
})[]
|
|
10224
|
+
|
|
9985
10225
|
enableFixer?: boolean
|
|
10226
|
+
|
|
9986
10227
|
exemptedBy?: string[]
|
|
10228
|
+
|
|
9987
10229
|
exemptNoArguments?: boolean
|
|
9988
10230
|
}]
|
|
9989
10231
|
// ----- jsdoc/require-file-overview -----
|
|
9990
10232
|
type JsdocRequireFileOverview = []|[{
|
|
10233
|
+
|
|
9991
10234
|
tags?: {
|
|
9992
10235
|
[k: string]: {
|
|
9993
10236
|
initialCommentsOnly?: boolean
|
|
@@ -9998,75 +10241,117 @@ type JsdocRequireFileOverview = []|[{
|
|
|
9998
10241
|
}]
|
|
9999
10242
|
// ----- jsdoc/require-hyphen-before-param-description -----
|
|
10000
10243
|
type JsdocRequireHyphenBeforeParamDescription = []|[("always" | "never")]|[("always" | "never"), {
|
|
10244
|
+
|
|
10001
10245
|
tags?: ({
|
|
10002
10246
|
[k: string]: ("always" | "never")
|
|
10003
10247
|
} | "any")
|
|
10004
10248
|
}]
|
|
10005
10249
|
// ----- jsdoc/require-jsdoc -----
|
|
10006
10250
|
type JsdocRequireJsdoc = []|[{
|
|
10251
|
+
|
|
10007
10252
|
checkConstructors?: boolean
|
|
10253
|
+
|
|
10008
10254
|
checkGetters?: (boolean | "no-setter")
|
|
10255
|
+
|
|
10009
10256
|
checkSetters?: (boolean | "no-getter")
|
|
10257
|
+
|
|
10010
10258
|
contexts?: (string | {
|
|
10011
10259
|
context?: string
|
|
10012
10260
|
inlineCommentBlock?: boolean
|
|
10013
10261
|
minLineCount?: number
|
|
10014
10262
|
})[]
|
|
10263
|
+
|
|
10015
10264
|
enableFixer?: boolean
|
|
10265
|
+
|
|
10016
10266
|
exemptEmptyConstructors?: boolean
|
|
10267
|
+
|
|
10017
10268
|
exemptEmptyFunctions?: boolean
|
|
10269
|
+
|
|
10018
10270
|
exemptOverloadedImplementations?: boolean
|
|
10271
|
+
|
|
10019
10272
|
fixerMessage?: string
|
|
10273
|
+
|
|
10020
10274
|
minLineCount?: number
|
|
10275
|
+
|
|
10021
10276
|
publicOnly?: (boolean | {
|
|
10022
10277
|
ancestorsOnly?: boolean
|
|
10023
10278
|
cjs?: boolean
|
|
10024
10279
|
esm?: boolean
|
|
10025
10280
|
window?: boolean
|
|
10026
10281
|
})
|
|
10282
|
+
|
|
10027
10283
|
require?: {
|
|
10284
|
+
|
|
10028
10285
|
ArrowFunctionExpression?: boolean
|
|
10286
|
+
|
|
10029
10287
|
ClassDeclaration?: boolean
|
|
10288
|
+
|
|
10030
10289
|
ClassExpression?: boolean
|
|
10290
|
+
|
|
10031
10291
|
FunctionDeclaration?: boolean
|
|
10292
|
+
|
|
10032
10293
|
FunctionExpression?: boolean
|
|
10294
|
+
|
|
10033
10295
|
MethodDefinition?: boolean
|
|
10034
10296
|
}
|
|
10297
|
+
|
|
10035
10298
|
skipInterveningOverloadedDeclarations?: boolean
|
|
10036
10299
|
}]
|
|
10037
10300
|
// ----- jsdoc/require-param -----
|
|
10038
10301
|
type JsdocRequireParam = []|[{
|
|
10302
|
+
|
|
10039
10303
|
autoIncrementBase?: number
|
|
10304
|
+
|
|
10040
10305
|
checkConstructors?: boolean
|
|
10306
|
+
|
|
10041
10307
|
checkDestructured?: boolean
|
|
10308
|
+
|
|
10042
10309
|
checkDestructuredRoots?: boolean
|
|
10310
|
+
|
|
10043
10311
|
checkGetters?: boolean
|
|
10312
|
+
|
|
10044
10313
|
checkRestProperty?: boolean
|
|
10314
|
+
|
|
10045
10315
|
checkSetters?: boolean
|
|
10316
|
+
|
|
10046
10317
|
checkTypesPattern?: string
|
|
10318
|
+
|
|
10047
10319
|
contexts?: (string | {
|
|
10048
10320
|
comment?: string
|
|
10049
10321
|
context?: string
|
|
10050
10322
|
})[]
|
|
10323
|
+
|
|
10051
10324
|
enableFixer?: boolean
|
|
10325
|
+
|
|
10052
10326
|
enableRestElementFixer?: boolean
|
|
10327
|
+
|
|
10053
10328
|
enableRootFixer?: boolean
|
|
10329
|
+
|
|
10054
10330
|
exemptedBy?: string[]
|
|
10331
|
+
|
|
10055
10332
|
ignoreWhenAllParamsMissing?: boolean
|
|
10333
|
+
|
|
10334
|
+
interfaceExemptsParamsCheck?: boolean
|
|
10335
|
+
|
|
10056
10336
|
unnamedRootBase?: string[]
|
|
10337
|
+
|
|
10057
10338
|
useDefaultObjectProperties?: boolean
|
|
10058
10339
|
}]
|
|
10059
10340
|
// ----- jsdoc/require-param-description -----
|
|
10060
10341
|
type JsdocRequireParamDescription = []|[{
|
|
10342
|
+
|
|
10061
10343
|
contexts?: (string | {
|
|
10062
10344
|
comment?: string
|
|
10063
10345
|
context?: string
|
|
10064
10346
|
})[]
|
|
10347
|
+
|
|
10065
10348
|
defaultDestructuredRootDescription?: string
|
|
10349
|
+
|
|
10066
10350
|
setDefaultDestructuredRootDescription?: boolean
|
|
10067
10351
|
}]
|
|
10068
10352
|
// ----- jsdoc/require-param-name -----
|
|
10069
10353
|
type JsdocRequireParamName = []|[{
|
|
10354
|
+
|
|
10070
10355
|
contexts?: (string | {
|
|
10071
10356
|
comment?: string
|
|
10072
10357
|
context?: string
|
|
@@ -10074,26 +10359,37 @@ type JsdocRequireParamName = []|[{
|
|
|
10074
10359
|
}]
|
|
10075
10360
|
// ----- jsdoc/require-param-type -----
|
|
10076
10361
|
type JsdocRequireParamType = []|[{
|
|
10362
|
+
|
|
10077
10363
|
contexts?: (string | {
|
|
10078
10364
|
comment?: string
|
|
10079
10365
|
context?: string
|
|
10080
10366
|
})[]
|
|
10367
|
+
|
|
10081
10368
|
defaultDestructuredRootType?: string
|
|
10369
|
+
|
|
10082
10370
|
setDefaultDestructuredRootType?: boolean
|
|
10083
10371
|
}]
|
|
10084
10372
|
// ----- jsdoc/require-returns -----
|
|
10085
10373
|
type JsdocRequireReturns = []|[{
|
|
10374
|
+
|
|
10086
10375
|
checkConstructors?: boolean
|
|
10376
|
+
|
|
10087
10377
|
checkGetters?: boolean
|
|
10378
|
+
|
|
10088
10379
|
contexts?: (string | {
|
|
10089
10380
|
comment?: string
|
|
10090
10381
|
context?: string
|
|
10091
10382
|
forceRequireReturn?: boolean
|
|
10092
10383
|
})[]
|
|
10384
|
+
|
|
10093
10385
|
enableFixer?: boolean
|
|
10386
|
+
|
|
10094
10387
|
exemptedBy?: string[]
|
|
10388
|
+
|
|
10095
10389
|
forceRequireReturn?: boolean
|
|
10390
|
+
|
|
10096
10391
|
forceReturnsWithAsync?: boolean
|
|
10392
|
+
|
|
10097
10393
|
publicOnly?: (boolean | {
|
|
10098
10394
|
ancestorsOnly?: boolean
|
|
10099
10395
|
cjs?: boolean
|
|
@@ -10103,12 +10399,18 @@ type JsdocRequireReturns = []|[{
|
|
|
10103
10399
|
}]
|
|
10104
10400
|
// ----- jsdoc/require-returns-check -----
|
|
10105
10401
|
type JsdocRequireReturnsCheck = []|[{
|
|
10402
|
+
|
|
10106
10403
|
exemptAsync?: boolean
|
|
10404
|
+
|
|
10107
10405
|
exemptGenerators?: boolean
|
|
10406
|
+
|
|
10407
|
+
noNativeTypes?: boolean
|
|
10408
|
+
|
|
10108
10409
|
reportMissingReturnForUndefinedTypes?: boolean
|
|
10109
10410
|
}]
|
|
10110
10411
|
// ----- jsdoc/require-returns-description -----
|
|
10111
10412
|
type JsdocRequireReturnsDescription = []|[{
|
|
10413
|
+
|
|
10112
10414
|
contexts?: (string | {
|
|
10113
10415
|
comment?: string
|
|
10114
10416
|
context?: string
|
|
@@ -10116,63 +10418,99 @@ type JsdocRequireReturnsDescription = []|[{
|
|
|
10116
10418
|
}]
|
|
10117
10419
|
// ----- jsdoc/require-returns-type -----
|
|
10118
10420
|
type JsdocRequireReturnsType = []|[{
|
|
10421
|
+
|
|
10119
10422
|
contexts?: (string | {
|
|
10120
10423
|
comment?: string
|
|
10121
10424
|
context?: string
|
|
10122
10425
|
})[]
|
|
10123
10426
|
}]
|
|
10427
|
+
// ----- jsdoc/require-tags -----
|
|
10428
|
+
type JsdocRequireTags = []|[{
|
|
10429
|
+
|
|
10430
|
+
tags?: (string | {
|
|
10431
|
+
context?: string
|
|
10432
|
+
tag?: string
|
|
10433
|
+
[k: string]: unknown | undefined
|
|
10434
|
+
})[]
|
|
10435
|
+
}]
|
|
10124
10436
|
// ----- jsdoc/require-template -----
|
|
10125
10437
|
type JsdocRequireTemplate = []|[{
|
|
10438
|
+
|
|
10126
10439
|
exemptedBy?: string[]
|
|
10440
|
+
|
|
10127
10441
|
requireSeparateTemplates?: boolean
|
|
10128
10442
|
}]
|
|
10129
10443
|
// ----- jsdoc/require-throws -----
|
|
10130
10444
|
type JsdocRequireThrows = []|[{
|
|
10445
|
+
|
|
10131
10446
|
contexts?: (string | {
|
|
10132
10447
|
comment?: string
|
|
10133
10448
|
context?: string
|
|
10134
10449
|
})[]
|
|
10450
|
+
|
|
10135
10451
|
exemptedBy?: string[]
|
|
10136
10452
|
}]
|
|
10137
10453
|
// ----- jsdoc/require-yields -----
|
|
10138
10454
|
type JsdocRequireYields = []|[{
|
|
10455
|
+
|
|
10139
10456
|
contexts?: (string | {
|
|
10140
10457
|
comment?: string
|
|
10141
10458
|
context?: string
|
|
10142
10459
|
})[]
|
|
10460
|
+
|
|
10143
10461
|
exemptedBy?: string[]
|
|
10462
|
+
|
|
10144
10463
|
forceRequireNext?: boolean
|
|
10464
|
+
|
|
10145
10465
|
forceRequireYields?: boolean
|
|
10466
|
+
|
|
10146
10467
|
next?: boolean
|
|
10468
|
+
|
|
10147
10469
|
nextWithGeneratorTag?: boolean
|
|
10470
|
+
|
|
10148
10471
|
withGeneratorTag?: boolean
|
|
10149
10472
|
}]
|
|
10150
10473
|
// ----- jsdoc/require-yields-check -----
|
|
10151
10474
|
type JsdocRequireYieldsCheck = []|[{
|
|
10475
|
+
|
|
10152
10476
|
checkGeneratorsOnly?: boolean
|
|
10477
|
+
|
|
10153
10478
|
contexts?: (string | {
|
|
10154
10479
|
comment?: string
|
|
10155
10480
|
context?: string
|
|
10156
10481
|
})[]
|
|
10157
|
-
|
|
10482
|
+
|
|
10158
10483
|
next?: boolean
|
|
10159
10484
|
}]
|
|
10160
10485
|
// ----- jsdoc/sort-tags -----
|
|
10161
10486
|
type JsdocSortTags = []|[{
|
|
10487
|
+
|
|
10162
10488
|
alphabetizeExtras?: boolean
|
|
10489
|
+
|
|
10163
10490
|
linesBetween?: number
|
|
10491
|
+
|
|
10164
10492
|
reportIntraTagGroupSpacing?: boolean
|
|
10493
|
+
|
|
10165
10494
|
reportTagGroupSpacing?: boolean
|
|
10495
|
+
|
|
10166
10496
|
tagSequence?: {
|
|
10497
|
+
|
|
10167
10498
|
tags?: string[]
|
|
10168
10499
|
}[]
|
|
10169
10500
|
}]
|
|
10170
10501
|
// ----- jsdoc/tag-lines -----
|
|
10171
10502
|
type JsdocTagLines = []|[("always" | "any" | "never")]|[("always" | "any" | "never"), {
|
|
10503
|
+
|
|
10172
10504
|
applyToEndTag?: boolean
|
|
10505
|
+
|
|
10173
10506
|
count?: number
|
|
10507
|
+
|
|
10174
10508
|
endLines?: (number | null)
|
|
10509
|
+
|
|
10510
|
+
maxBlockLines?: (number | null)
|
|
10511
|
+
|
|
10175
10512
|
startLines?: (number | null)
|
|
10513
|
+
|
|
10176
10514
|
tags?: {
|
|
10177
10515
|
[k: string]: {
|
|
10178
10516
|
count?: number
|
|
@@ -10182,26 +10520,88 @@ type JsdocTagLines = []|[("always" | "any" | "never")]|[("always" | "any" | "nev
|
|
|
10182
10520
|
}]
|
|
10183
10521
|
// ----- jsdoc/text-escaping -----
|
|
10184
10522
|
type JsdocTextEscaping = []|[{
|
|
10523
|
+
|
|
10185
10524
|
escapeHTML?: boolean
|
|
10525
|
+
|
|
10186
10526
|
escapeMarkdown?: boolean
|
|
10187
10527
|
}]
|
|
10528
|
+
// ----- jsdoc/ts-method-signature-style -----
|
|
10529
|
+
type JsdocTsMethodSignatureStyle = []|[("method" | "property")]|[("method" | "property"), {
|
|
10530
|
+
|
|
10531
|
+
enableFixer?: boolean
|
|
10532
|
+
}]
|
|
10533
|
+
// ----- jsdoc/ts-no-unnecessary-template-expression -----
|
|
10534
|
+
type JsdocTsNoUnnecessaryTemplateExpression = []|[{
|
|
10535
|
+
|
|
10536
|
+
enableFixer?: boolean
|
|
10537
|
+
}]
|
|
10538
|
+
// ----- jsdoc/ts-prefer-function-type -----
|
|
10539
|
+
type JsdocTsPreferFunctionType = []|[{
|
|
10540
|
+
|
|
10541
|
+
enableFixer?: boolean
|
|
10542
|
+
}]
|
|
10188
10543
|
// ----- jsdoc/type-formatting -----
|
|
10189
10544
|
type JsdocTypeFormatting = []|[{
|
|
10545
|
+
|
|
10190
10546
|
arrayBrackets?: ("angle" | "square")
|
|
10547
|
+
|
|
10548
|
+
arrowFunctionPostReturnMarkerSpacing?: string
|
|
10549
|
+
|
|
10550
|
+
arrowFunctionPreReturnMarkerSpacing?: string
|
|
10551
|
+
|
|
10191
10552
|
enableFixer?: boolean
|
|
10553
|
+
|
|
10554
|
+
functionOrClassParameterSpacing?: string
|
|
10555
|
+
|
|
10556
|
+
functionOrClassPostGenericSpacing?: string
|
|
10557
|
+
|
|
10558
|
+
functionOrClassPostReturnMarkerSpacing?: string
|
|
10559
|
+
|
|
10560
|
+
functionOrClassPreReturnMarkerSpacing?: string
|
|
10561
|
+
|
|
10562
|
+
functionOrClassTypeParameterSpacing?: string
|
|
10563
|
+
|
|
10564
|
+
genericAndTupleElementSpacing?: string
|
|
10565
|
+
|
|
10192
10566
|
genericDot?: boolean
|
|
10567
|
+
|
|
10568
|
+
keyValuePostColonSpacing?: string
|
|
10569
|
+
|
|
10570
|
+
keyValuePostKeySpacing?: string
|
|
10571
|
+
|
|
10572
|
+
keyValuePostOptionalSpacing?: string
|
|
10573
|
+
|
|
10574
|
+
keyValuePostVariadicSpacing?: string
|
|
10575
|
+
|
|
10576
|
+
methodQuotes?: ("double" | "single")
|
|
10577
|
+
|
|
10193
10578
|
objectFieldIndent?: string
|
|
10579
|
+
|
|
10194
10580
|
objectFieldQuote?: ("double" | "single" | null)
|
|
10581
|
+
|
|
10195
10582
|
objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak")
|
|
10583
|
+
|
|
10584
|
+
objectFieldSeparatorOptionalLinebreak?: boolean
|
|
10585
|
+
|
|
10196
10586
|
objectFieldSeparatorTrailingPunctuation?: boolean
|
|
10197
|
-
|
|
10587
|
+
|
|
10588
|
+
parameterDefaultValueSpacing?: string
|
|
10589
|
+
|
|
10590
|
+
postMethodNameSpacing?: string
|
|
10591
|
+
|
|
10592
|
+
postNewSpacing?: string
|
|
10593
|
+
|
|
10198
10594
|
separatorForSingleObjectField?: boolean
|
|
10595
|
+
|
|
10199
10596
|
stringQuotes?: ("double" | "single")
|
|
10597
|
+
|
|
10200
10598
|
typeBracketSpacing?: string
|
|
10599
|
+
|
|
10201
10600
|
unionSpacing?: string
|
|
10202
10601
|
}]
|
|
10203
10602
|
// ----- jsdoc/valid-types -----
|
|
10204
10603
|
type JsdocValidTypes = []|[{
|
|
10604
|
+
|
|
10205
10605
|
allowEmptyNamepaths?: boolean
|
|
10206
10606
|
}]
|
|
10207
10607
|
// ----- json-schema-validator/no-invalid -----
|
|
@@ -15040,7 +15440,6 @@ type ReactNoForbiddenProps = []|[{
|
|
|
15040
15440
|
includedNodes?: string[]
|
|
15041
15441
|
prop: string
|
|
15042
15442
|
})[]
|
|
15043
|
-
[k: string]: unknown | undefined
|
|
15044
15443
|
}]
|
|
15045
15444
|
// ----- react/no-useless-fragment -----
|
|
15046
15445
|
type ReactNoUselessFragment = []|[{
|
|
@@ -15612,6 +16011,10 @@ type UnicornTemplateIndent = []|[{
|
|
|
15612
16011
|
selectors?: string[]
|
|
15613
16012
|
comments?: string[]
|
|
15614
16013
|
}]
|
|
16014
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
16015
|
+
type UnicornTextEncodingIdentifierCase = []|[{
|
|
16016
|
+
withDash?: boolean
|
|
16017
|
+
}]
|
|
15615
16018
|
// ----- unused-imports/no-unused-imports -----
|
|
15616
16019
|
type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
15617
16020
|
|