@luxass/eslint-config 7.2.0 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +430 -187
- package/dist/index.mjs +75 -58
- package/dist/{lib-BgGy3QDX.mjs → lib-D3Kr7UIJ.mjs} +288 -579
- package/package.json +55 -41
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,47 @@ declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
|
52
52
|
//#region src/configs/disables.d.ts
|
|
53
53
|
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
54
54
|
//#endregion
|
|
55
|
+
//#region src/configs/e18e.d.ts
|
|
56
|
+
interface E18eOptions {
|
|
57
|
+
/**
|
|
58
|
+
* Include modernization rules
|
|
59
|
+
*
|
|
60
|
+
* @see https://github.com/e18e/eslint-plugin#modernization
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
modernization?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Include module replacements rules
|
|
66
|
+
*
|
|
67
|
+
* @see https://github.com/e18e/eslint-plugin#module-replacements
|
|
68
|
+
* @default options.isInEditor
|
|
69
|
+
*/
|
|
70
|
+
moduleReplacements?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Include performance improvements rules
|
|
73
|
+
*
|
|
74
|
+
* @see https://github.com/e18e/eslint-plugin#performance-improvements
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
performanceImprovements?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Overrides for the config.
|
|
80
|
+
*/
|
|
81
|
+
overrides?: TypedFlatConfigItem["rules"];
|
|
82
|
+
/**
|
|
83
|
+
* Whether the config is for an editor.
|
|
84
|
+
* @default false
|
|
85
|
+
*/
|
|
86
|
+
isInEditor?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
89
|
+
*
|
|
90
|
+
* @default "app"
|
|
91
|
+
*/
|
|
92
|
+
type?: ProjectType;
|
|
93
|
+
}
|
|
94
|
+
declare function e18e(options?: E18eOptions): Promise<TypedFlatConfigItem[]>;
|
|
95
|
+
//#endregion
|
|
55
96
|
//#region src/vendor/prettier-types.d.ts
|
|
56
97
|
/**
|
|
57
98
|
* Vendor types from Prettier so we don't rely on the dependency.
|
|
@@ -323,6 +364,16 @@ interface MarkdownOptions {
|
|
|
323
364
|
* @see https://github.com/luxass/eslint-config/blob/main/src/globs.ts
|
|
324
365
|
*/
|
|
325
366
|
files?: string[];
|
|
367
|
+
/**
|
|
368
|
+
* Enable GFM (GitHub Flavored Markdown) support.
|
|
369
|
+
*
|
|
370
|
+
* @default true
|
|
371
|
+
*/
|
|
372
|
+
gfm?: boolean;
|
|
373
|
+
/**
|
|
374
|
+
* Override rules for markdown itself.
|
|
375
|
+
*/
|
|
376
|
+
overridesMarkdown?: TypedFlatConfigItem["rules"];
|
|
326
377
|
}
|
|
327
378
|
declare function markdown(options?: MarkdownOptions): Promise<TypedFlatConfigItem[]>;
|
|
328
379
|
//#endregion
|
|
@@ -1132,6 +1183,87 @@ interface RuleOptions {
|
|
|
1132
1183
|
* @see https://eslint.org/docs/latest/rules/dot-notation
|
|
1133
1184
|
*/
|
|
1134
1185
|
'dot-notation'?: Linter.RuleEntry<DotNotation>;
|
|
1186
|
+
/**
|
|
1187
|
+
* Bans a list of dependencies from being used
|
|
1188
|
+
* @see https://github.com/es-tooling/eslint-plugin-depend/blob/main/docs/rules/ban-dependencies.md
|
|
1189
|
+
*/
|
|
1190
|
+
'e18e/ban-dependencies'?: Linter.RuleEntry<E18EBanDependencies>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Prefer optimized alternatives to `indexOf()` equality checks
|
|
1193
|
+
*/
|
|
1194
|
+
'e18e/no-indexof-equality'?: Linter.RuleEntry<[]>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Prefer Array.prototype.at() over length-based indexing
|
|
1197
|
+
*/
|
|
1198
|
+
'e18e/prefer-array-at'?: Linter.RuleEntry<[]>;
|
|
1199
|
+
/**
|
|
1200
|
+
* Prefer Array.prototype.fill() over Array.from or map with constant values
|
|
1201
|
+
*/
|
|
1202
|
+
'e18e/prefer-array-fill'?: Linter.RuleEntry<[]>;
|
|
1203
|
+
/**
|
|
1204
|
+
* Prefer Array.from(iterable, mapper) over [...iterable].map(mapper) to avoid intermediate array allocation
|
|
1205
|
+
*/
|
|
1206
|
+
'e18e/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Prefer Array.some() over Array.find() when checking for element existence
|
|
1209
|
+
*/
|
|
1210
|
+
'e18e/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Prefer Array.prototype.toReversed() over copying and reversing arrays
|
|
1213
|
+
*/
|
|
1214
|
+
'e18e/prefer-array-to-reversed'?: Linter.RuleEntry<[]>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Prefer Array.prototype.toSorted() over copying and sorting arrays
|
|
1217
|
+
*/
|
|
1218
|
+
'e18e/prefer-array-to-sorted'?: Linter.RuleEntry<[]>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Prefer Array.prototype.toSpliced() over copying and splicing arrays
|
|
1221
|
+
*/
|
|
1222
|
+
'e18e/prefer-array-to-spliced'?: Linter.RuleEntry<[]>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Prefer Date.now() over new Date().getTime() and +new Date()
|
|
1225
|
+
*/
|
|
1226
|
+
'e18e/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Prefer the exponentiation operator ** over Math.pow()
|
|
1229
|
+
*/
|
|
1230
|
+
'e18e/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Prefer .includes() over indexOf() comparisons for arrays and strings
|
|
1233
|
+
*/
|
|
1234
|
+
'e18e/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
1235
|
+
/**
|
|
1236
|
+
* Prefer inline equality checks over temporary object creation for simple comparisons
|
|
1237
|
+
*/
|
|
1238
|
+
'e18e/prefer-inline-equality'?: Linter.RuleEntry<[]>;
|
|
1239
|
+
/**
|
|
1240
|
+
* Prefer nullish coalescing operator (?? and ??=) over verbose null checks
|
|
1241
|
+
*/
|
|
1242
|
+
'e18e/prefer-nullish-coalescing'?: Linter.RuleEntry<[]>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Prefer Object.hasOwn() over Object.prototype.hasOwnProperty.call() and obj.hasOwnProperty()
|
|
1245
|
+
*/
|
|
1246
|
+
'e18e/prefer-object-has-own'?: Linter.RuleEntry<[]>;
|
|
1247
|
+
/**
|
|
1248
|
+
* prefer `RegExp.test()` over `String.match()` and `RegExp.exec()` when only checking for match existence
|
|
1249
|
+
*/
|
|
1250
|
+
'e18e/prefer-regex-test'?: Linter.RuleEntry<[]>;
|
|
1251
|
+
/**
|
|
1252
|
+
* Prefer spread syntax over Array.concat(), Array.from(), Object.assign({}, ...), and Function.apply()
|
|
1253
|
+
*/
|
|
1254
|
+
'e18e/prefer-spread-syntax'?: Linter.RuleEntry<[]>;
|
|
1255
|
+
/**
|
|
1256
|
+
* Prefer defining regular expressions at module scope to avoid re-compilation on every function call
|
|
1257
|
+
*/
|
|
1258
|
+
'e18e/prefer-static-regex'?: Linter.RuleEntry<[]>;
|
|
1259
|
+
/**
|
|
1260
|
+
* Prefer passing function and arguments directly to setTimeout/setInterval instead of wrapping in an arrow function or using bind
|
|
1261
|
+
*/
|
|
1262
|
+
'e18e/prefer-timer-args'?: Linter.RuleEntry<[]>;
|
|
1263
|
+
/**
|
|
1264
|
+
* Prefer URL.canParse() over try-catch blocks for URL validation
|
|
1265
|
+
*/
|
|
1266
|
+
'e18e/prefer-url-canparse'?: Linter.RuleEntry<[]>;
|
|
1135
1267
|
/**
|
|
1136
1268
|
* Require or disallow newline at the end of files
|
|
1137
1269
|
* @see https://eslint.org/docs/latest/rules/eol-last
|
|
@@ -1191,6 +1323,7 @@ interface RuleOptions {
|
|
|
1191
1323
|
/**
|
|
1192
1324
|
* disallow unused `eslint-disable` comments
|
|
1193
1325
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
1326
|
+
* @deprecated
|
|
1194
1327
|
*/
|
|
1195
1328
|
'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
1196
1329
|
/**
|
|
@@ -1217,6 +1350,10 @@ interface RuleOptions {
|
|
|
1217
1350
|
* Use dprint to format code
|
|
1218
1351
|
*/
|
|
1219
1352
|
'format/dprint'?: Linter.RuleEntry<FormatDprint>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Use oxfmt to format code
|
|
1355
|
+
*/
|
|
1356
|
+
'format/oxfmt'?: Linter.RuleEntry<FormatOxfmt>;
|
|
1220
1357
|
/**
|
|
1221
1358
|
* Use Prettier to format code
|
|
1222
1359
|
*/
|
|
@@ -3174,6 +3311,11 @@ interface RuleOptions {
|
|
|
3174
3311
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
3175
3312
|
*/
|
|
3176
3313
|
'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>;
|
|
3314
|
+
/**
|
|
3315
|
+
* enforce either `crypto` or `require("crypto").webcrypto`
|
|
3316
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
3317
|
+
*/
|
|
3318
|
+
'node/prefer-global/crypto'?: Linter.RuleEntry<NodePreferGlobalCrypto>;
|
|
3177
3319
|
/**
|
|
3178
3320
|
* enforce either `process` or `require("process")`
|
|
3179
3321
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
@@ -3189,6 +3331,11 @@ interface RuleOptions {
|
|
|
3189
3331
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
3190
3332
|
*/
|
|
3191
3333
|
'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>;
|
|
3334
|
+
/**
|
|
3335
|
+
* enforce either global timer functions or `require("timers")`
|
|
3336
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
3337
|
+
*/
|
|
3338
|
+
'node/prefer-global/timers'?: Linter.RuleEntry<NodePreferGlobalTimers>;
|
|
3192
3339
|
/**
|
|
3193
3340
|
* enforce either `URL` or `require("url").URL`
|
|
3194
3341
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
@@ -3522,7 +3669,7 @@ interface RuleOptions {
|
|
|
3522
3669
|
*/
|
|
3523
3670
|
'quotes'?: Linter.RuleEntry<Quotes>;
|
|
3524
3671
|
/**
|
|
3525
|
-
* Enforce the
|
|
3672
|
+
* Enforce the use of the radix argument when using `parseInt()`
|
|
3526
3673
|
* @see https://eslint.org/docs/latest/rules/radix
|
|
3527
3674
|
*/
|
|
3528
3675
|
'radix'?: Linter.RuleEntry<Radix>;
|
|
@@ -3759,6 +3906,11 @@ interface RuleOptions {
|
|
|
3759
3906
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
|
|
3760
3907
|
*/
|
|
3761
3908
|
'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>;
|
|
3909
|
+
/**
|
|
3910
|
+
* Enforces identifier names assigned from 'useId' calls to be either 'id' or end with 'Id'.
|
|
3911
|
+
* @see https://eslint-react.xyz/docs/rules/naming-convention-id-name
|
|
3912
|
+
*/
|
|
3913
|
+
'react-naming-convention/id-name'?: Linter.RuleEntry<[]>;
|
|
3762
3914
|
/**
|
|
3763
3915
|
* Enforces identifier names assigned from 'useRef' calls to be either 'ref' or end with 'Ref'.
|
|
3764
3916
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-ref-name
|
|
@@ -3796,7 +3948,7 @@ interface RuleOptions {
|
|
|
3796
3948
|
*/
|
|
3797
3949
|
'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>;
|
|
3798
3950
|
/**
|
|
3799
|
-
* Prevents
|
|
3951
|
+
* Prevents unintentional '$' sign before expression.
|
|
3800
3952
|
* @see https://eslint-react.xyz/docs/rules/jsx-dollar
|
|
3801
3953
|
*/
|
|
3802
3954
|
'react/jsx-dollar'?: Linter.RuleEntry<[]>;
|
|
@@ -4696,6 +4848,11 @@ interface RuleOptions {
|
|
|
4696
4848
|
* @see https://eslint.style/rules/eol-last
|
|
4697
4849
|
*/
|
|
4698
4850
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>;
|
|
4851
|
+
/**
|
|
4852
|
+
* Enforce consistent line break styles for JSX props
|
|
4853
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
4854
|
+
*/
|
|
4855
|
+
'style/exp-jsx-props-style'?: Linter.RuleEntry<StyleExpJsxPropsStyle>;
|
|
4699
4856
|
/**
|
|
4700
4857
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
4701
4858
|
* @see https://eslint.style/rules/list-style
|
|
@@ -5563,11 +5720,21 @@ interface RuleOptions {
|
|
|
5563
5720
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/indent.html
|
|
5564
5721
|
*/
|
|
5565
5722
|
'toml/indent'?: Linter.RuleEntry<TomlIndent>;
|
|
5723
|
+
/**
|
|
5724
|
+
* enforce linebreaks after opening and before closing braces
|
|
5725
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-newline.html
|
|
5726
|
+
*/
|
|
5727
|
+
'toml/inline-table-curly-newline'?: Linter.RuleEntry<TomlInlineTableCurlyNewline>;
|
|
5566
5728
|
/**
|
|
5567
5729
|
* enforce consistent spacing inside braces
|
|
5568
5730
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-curly-spacing.html
|
|
5569
5731
|
*/
|
|
5570
5732
|
'toml/inline-table-curly-spacing'?: Linter.RuleEntry<TomlInlineTableCurlySpacing>;
|
|
5733
|
+
/**
|
|
5734
|
+
* enforce placing inline table key-value pairs on separate lines
|
|
5735
|
+
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/inline-table-key-value-newline.html
|
|
5736
|
+
*/
|
|
5737
|
+
'toml/inline-table-key-value-newline'?: Linter.RuleEntry<TomlInlineTableKeyValueNewline>;
|
|
5571
5738
|
/**
|
|
5572
5739
|
* enforce consistent spacing between keys and values in key/value pairs
|
|
5573
5740
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/key-spacing.html
|
|
@@ -6116,7 +6283,7 @@ interface RuleOptions {
|
|
|
6116
6283
|
* Disallow default values that will never be used
|
|
6117
6284
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
6118
6285
|
*/
|
|
6119
|
-
'ts/no-useless-default-assignment'?: Linter.RuleEntry<
|
|
6286
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<TsNoUselessDefaultAssignment>;
|
|
6120
6287
|
/**
|
|
6121
6288
|
* Disallow empty exports that don't change anything in a module file
|
|
6122
6289
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -6333,725 +6500,730 @@ interface RuleOptions {
|
|
|
6333
6500
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
6334
6501
|
/**
|
|
6335
6502
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
6336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
|
|
6337
6504
|
*/
|
|
6338
6505
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
6339
6506
|
/**
|
|
6340
6507
|
* Enforce a specific parameter name in catch clauses.
|
|
6341
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
|
|
6342
6509
|
*/
|
|
6343
6510
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
6344
6511
|
/**
|
|
6345
6512
|
* Enforce consistent assertion style with `node:assert`.
|
|
6346
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
|
|
6347
6514
|
*/
|
|
6348
6515
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
6349
6516
|
/**
|
|
6350
6517
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6351
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
|
|
6352
6519
|
*/
|
|
6353
6520
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
6354
6521
|
/**
|
|
6355
6522
|
* Use destructured variables over properties.
|
|
6356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
|
|
6357
6524
|
*/
|
|
6358
6525
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
6359
6526
|
/**
|
|
6360
6527
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
|
|
6362
6529
|
*/
|
|
6363
6530
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
6364
6531
|
/**
|
|
6365
6532
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
|
|
6367
6534
|
*/
|
|
6368
6535
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
6369
6536
|
/**
|
|
6370
6537
|
* Move function definitions to the highest possible scope.
|
|
6371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
|
|
6372
6539
|
*/
|
|
6373
6540
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6374
6541
|
/**
|
|
6375
6542
|
* Enforce correct `Error` subclassing.
|
|
6376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
|
|
6377
6544
|
*/
|
|
6378
6545
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
6379
6546
|
/**
|
|
6380
6547
|
* Enforce no spaces between braces.
|
|
6381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
|
|
6382
6549
|
*/
|
|
6383
6550
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
6384
6551
|
/**
|
|
6385
6552
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
|
|
6387
6554
|
*/
|
|
6388
6555
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
6389
6556
|
/**
|
|
6390
6557
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
|
|
6392
6559
|
*/
|
|
6393
6560
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
6394
6561
|
/**
|
|
6395
6562
|
* Add expiration conditions to TODO comments.
|
|
6396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
|
|
6397
6564
|
*/
|
|
6398
6565
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
6399
6566
|
/**
|
|
6400
6567
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
|
|
6402
6569
|
*/
|
|
6403
6570
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
6404
6571
|
/**
|
|
6405
6572
|
* Enforce a case style for filenames.
|
|
6406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
|
|
6407
6574
|
*/
|
|
6408
6575
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
6409
6576
|
/**
|
|
6410
6577
|
* Enforce specific import styles per module.
|
|
6411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
|
|
6412
6579
|
*/
|
|
6413
6580
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
6581
|
+
/**
|
|
6582
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
6583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
|
|
6584
|
+
*/
|
|
6585
|
+
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
6414
6586
|
/**
|
|
6415
6587
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
6416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
|
|
6417
6589
|
*/
|
|
6418
6590
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
6419
6591
|
/**
|
|
6420
6592
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
6422
6594
|
*/
|
|
6423
6595
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
6424
6596
|
/**
|
|
6425
6597
|
* Disallow recursive access to `this` within getters and setters.
|
|
6426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
|
|
6427
6599
|
*/
|
|
6428
6600
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
6429
6601
|
/**
|
|
6430
6602
|
* Disallow anonymous functions and classes as the default export.
|
|
6431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
|
|
6432
6604
|
*/
|
|
6433
6605
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
6434
6606
|
/**
|
|
6435
6607
|
* Prevent passing a function reference directly to iterator methods.
|
|
6436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
|
|
6437
6609
|
*/
|
|
6438
6610
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
6439
6611
|
/**
|
|
6440
6612
|
* Prefer `for…of` over the `forEach` method.
|
|
6441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
|
|
6442
6614
|
*/
|
|
6443
6615
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
6444
6616
|
/**
|
|
6445
6617
|
* Disallow using the `this` argument in array methods.
|
|
6446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
|
|
6447
6619
|
*/
|
|
6448
6620
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
6449
6621
|
/**
|
|
6450
6622
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
6452
6624
|
* @deprecated
|
|
6453
6625
|
*/
|
|
6454
6626
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
6455
6627
|
/**
|
|
6456
6628
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
|
|
6458
6630
|
*/
|
|
6459
6631
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
6460
6632
|
/**
|
|
6461
6633
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
|
|
6463
6635
|
*/
|
|
6464
6636
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
6465
6637
|
/**
|
|
6466
6638
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
|
|
6468
6640
|
*/
|
|
6469
6641
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
6470
6642
|
/**
|
|
6471
6643
|
* Disallow member access from await expression.
|
|
6472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
|
|
6473
6645
|
*/
|
|
6474
6646
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
6475
6647
|
/**
|
|
6476
6648
|
* Disallow using `await` in `Promise` method parameters.
|
|
6477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
|
|
6478
6650
|
*/
|
|
6479
6651
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6480
6652
|
/**
|
|
6481
6653
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
|
|
6483
6655
|
*/
|
|
6484
6656
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
6485
6657
|
/**
|
|
6486
6658
|
* Do not use `document.cookie` directly.
|
|
6487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
|
|
6488
6660
|
*/
|
|
6489
6661
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
6490
6662
|
/**
|
|
6491
6663
|
* Disallow empty files.
|
|
6492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
|
|
6493
6665
|
*/
|
|
6494
6666
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
6495
6667
|
/**
|
|
6496
6668
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
6497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
|
|
6498
6670
|
*/
|
|
6499
6671
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
6500
6672
|
/**
|
|
6501
6673
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
6502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
|
|
6503
6675
|
*/
|
|
6504
6676
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
6505
6677
|
/**
|
|
6506
6678
|
* Disallow immediate mutation after variable assignment.
|
|
6507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
|
|
6508
6680
|
*/
|
|
6509
6681
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
6510
6682
|
/**
|
|
6511
6683
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
6512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
6513
6685
|
* @deprecated
|
|
6514
6686
|
*/
|
|
6515
6687
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
6516
6688
|
/**
|
|
6517
6689
|
* Disallow `instanceof` with built-in objects
|
|
6518
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
|
|
6519
6691
|
*/
|
|
6520
6692
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
6521
6693
|
/**
|
|
6522
6694
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
6523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
|
|
6524
6696
|
*/
|
|
6525
6697
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
6526
6698
|
/**
|
|
6527
6699
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
6528
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
6529
6701
|
*/
|
|
6530
6702
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
6531
6703
|
/**
|
|
6532
6704
|
* Disallow identifiers starting with `new` or `class`.
|
|
6533
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
|
|
6534
6706
|
*/
|
|
6535
6707
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
6536
6708
|
/**
|
|
6537
6709
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
6538
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
6539
6711
|
* @deprecated
|
|
6540
6712
|
*/
|
|
6541
6713
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
6542
6714
|
/**
|
|
6543
6715
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
6544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
|
|
6545
6717
|
*/
|
|
6546
6718
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
6547
6719
|
/**
|
|
6548
6720
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
6549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
6550
6722
|
*/
|
|
6551
6723
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6552
6724
|
/**
|
|
6553
6725
|
* Disallow named usage of default import and export.
|
|
6554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
|
|
6555
6727
|
*/
|
|
6556
6728
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
6557
6729
|
/**
|
|
6558
6730
|
* Disallow negated conditions.
|
|
6559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
|
|
6560
6732
|
*/
|
|
6561
6733
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
6562
6734
|
/**
|
|
6563
6735
|
* Disallow negated expression in equality check.
|
|
6564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
|
|
6565
6737
|
*/
|
|
6566
6738
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
6567
6739
|
/**
|
|
6568
6740
|
* Disallow nested ternary expressions.
|
|
6569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
|
|
6570
6742
|
*/
|
|
6571
6743
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
6572
6744
|
/**
|
|
6573
6745
|
* Disallow `new Array()`.
|
|
6574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
|
|
6575
6747
|
*/
|
|
6576
6748
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
6577
6749
|
/**
|
|
6578
6750
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
6579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
|
|
6580
6752
|
*/
|
|
6581
6753
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
6582
6754
|
/**
|
|
6583
6755
|
* Disallow the use of the `null` literal.
|
|
6584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
|
|
6585
6757
|
*/
|
|
6586
6758
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
6587
6759
|
/**
|
|
6588
6760
|
* Disallow the use of objects as default parameters.
|
|
6589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
|
|
6590
6762
|
*/
|
|
6591
6763
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
6592
6764
|
/**
|
|
6593
6765
|
* Disallow `process.exit()`.
|
|
6594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
|
|
6595
6767
|
*/
|
|
6596
6768
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
6597
6769
|
/**
|
|
6598
6770
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
6599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
6600
6772
|
*/
|
|
6601
6773
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6602
6774
|
/**
|
|
6603
6775
|
* Disallow classes that only have static members.
|
|
6604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
|
|
6605
6777
|
*/
|
|
6606
6778
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
6607
6779
|
/**
|
|
6608
6780
|
* Disallow `then` property.
|
|
6609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
|
|
6610
6782
|
*/
|
|
6611
6783
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
6612
6784
|
/**
|
|
6613
6785
|
* Disallow assigning `this` to a variable.
|
|
6614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
|
|
6615
6787
|
*/
|
|
6616
6788
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
6617
6789
|
/**
|
|
6618
6790
|
* Disallow comparing `undefined` using `typeof`.
|
|
6619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
|
|
6620
6792
|
*/
|
|
6621
6793
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
6622
6794
|
/**
|
|
6623
6795
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
6624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
6625
6797
|
*/
|
|
6626
6798
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
6627
6799
|
/**
|
|
6628
6800
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
6629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
6630
6802
|
*/
|
|
6631
6803
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
6632
6804
|
/**
|
|
6633
6805
|
* Disallow awaiting non-promise values.
|
|
6634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
|
|
6635
6807
|
*/
|
|
6636
6808
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
6637
6809
|
/**
|
|
6638
6810
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
6639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
6640
6812
|
*/
|
|
6641
6813
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
6642
6814
|
/**
|
|
6643
6815
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
6644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
6645
6817
|
*/
|
|
6646
6818
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
6647
6819
|
/**
|
|
6648
6820
|
* Disallow unreadable array destructuring.
|
|
6649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
6650
6822
|
*/
|
|
6651
6823
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
6652
6824
|
/**
|
|
6653
6825
|
* Disallow unreadable IIFEs.
|
|
6654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
|
|
6655
6827
|
*/
|
|
6656
6828
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
6657
6829
|
/**
|
|
6658
6830
|
* Disallow unused object properties.
|
|
6659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
|
|
6660
6832
|
*/
|
|
6661
6833
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
6662
6834
|
/**
|
|
6663
6835
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
6664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
|
|
6665
6837
|
*/
|
|
6666
6838
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
6667
6839
|
/**
|
|
6668
6840
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
6669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
6670
6842
|
*/
|
|
6671
6843
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
6672
6844
|
/**
|
|
6673
6845
|
* Disallow useless fallback when spreading in object literals.
|
|
6674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
6675
6847
|
*/
|
|
6676
6848
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
6677
6849
|
/**
|
|
6678
6850
|
* Disallow useless array length check.
|
|
6679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
|
|
6680
6852
|
*/
|
|
6681
6853
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
6682
6854
|
/**
|
|
6683
6855
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
6684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
6685
6857
|
*/
|
|
6686
6858
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
6687
6859
|
/**
|
|
6688
6860
|
* Disallow unnecessary spread.
|
|
6689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
|
|
6690
6862
|
*/
|
|
6691
6863
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
6692
6864
|
/**
|
|
6693
6865
|
* Disallow useless case in switch statements.
|
|
6694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
|
|
6695
6867
|
*/
|
|
6696
6868
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
6697
6869
|
/**
|
|
6698
6870
|
* Disallow useless `undefined`.
|
|
6699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
|
|
6700
6872
|
*/
|
|
6701
6873
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
6702
6874
|
/**
|
|
6703
6875
|
* Disallow number literals with zero fractions or dangling dots.
|
|
6704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
|
|
6705
6877
|
*/
|
|
6706
6878
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
6707
6879
|
/**
|
|
6708
6880
|
* Enforce proper case for numeric literals.
|
|
6709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
|
|
6710
6882
|
*/
|
|
6711
6883
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
6712
6884
|
/**
|
|
6713
6885
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
6714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
|
|
6715
6887
|
*/
|
|
6716
6888
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
6717
6889
|
/**
|
|
6718
6890
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
6719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
|
|
6720
6892
|
*/
|
|
6721
6893
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
6722
6894
|
/**
|
|
6723
6895
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
6724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
|
|
6725
6897
|
*/
|
|
6726
6898
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
6727
6899
|
/**
|
|
6728
6900
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
6729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
|
|
6730
6902
|
*/
|
|
6731
6903
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
6732
6904
|
/**
|
|
6733
6905
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
6734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
|
|
6735
6907
|
*/
|
|
6736
6908
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
6737
6909
|
/**
|
|
6738
6910
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
6739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
|
|
6740
6912
|
*/
|
|
6741
6913
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
6742
6914
|
/**
|
|
6743
6915
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
6744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
|
|
6745
6917
|
*/
|
|
6746
6918
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
6747
6919
|
/**
|
|
6748
6920
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
6749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
|
|
6750
6922
|
*/
|
|
6751
6923
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
6752
6924
|
/**
|
|
6753
6925
|
* Prefer `BigInt` literals over the constructor.
|
|
6754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
|
|
6755
6927
|
*/
|
|
6756
6928
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
6757
6929
|
/**
|
|
6758
6930
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
6759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
6760
6932
|
*/
|
|
6761
6933
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
6762
6934
|
/**
|
|
6763
6935
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
6764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
|
|
6765
6937
|
*/
|
|
6766
6938
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
6767
6939
|
/**
|
|
6768
6940
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
6769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
|
|
6770
6942
|
*/
|
|
6771
6943
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
6772
6944
|
/**
|
|
6773
6945
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
6774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
|
|
6775
6947
|
*/
|
|
6776
6948
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
6777
6949
|
/**
|
|
6778
6950
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
6779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
|
|
6780
6952
|
*/
|
|
6781
6953
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
6782
6954
|
/**
|
|
6783
6955
|
* Prefer default parameters over reassignment.
|
|
6784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
|
|
6785
6957
|
*/
|
|
6786
6958
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
6787
6959
|
/**
|
|
6788
6960
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
6789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
|
|
6790
6962
|
*/
|
|
6791
6963
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
6792
6964
|
/**
|
|
6793
6965
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
6794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
6795
6967
|
*/
|
|
6796
6968
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
6797
6969
|
/**
|
|
6798
6970
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
6799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
|
|
6800
6972
|
*/
|
|
6801
6973
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
6802
6974
|
/**
|
|
6803
6975
|
* Prefer `.textContent` over `.innerText`.
|
|
6804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
6805
6977
|
*/
|
|
6806
6978
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
6807
6979
|
/**
|
|
6808
6980
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
6809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
|
|
6810
6982
|
*/
|
|
6811
6983
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
6812
6984
|
/**
|
|
6813
6985
|
* Prefer `export…from` when re-exporting.
|
|
6814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
|
|
6815
6987
|
*/
|
|
6816
6988
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
6817
6989
|
/**
|
|
6818
6990
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
6819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
|
|
6820
6992
|
*/
|
|
6821
6993
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
6822
6994
|
/**
|
|
6823
6995
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
6824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
|
|
6825
6997
|
*/
|
|
6826
6998
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
6827
6999
|
/**
|
|
6828
7000
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
6829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
|
|
6830
7002
|
*/
|
|
6831
7003
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
6832
7004
|
/**
|
|
6833
7005
|
* Prefer reading a JSON file as a buffer.
|
|
6834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
6835
7007
|
*/
|
|
6836
7008
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
6837
7009
|
/**
|
|
6838
7010
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
6839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
6840
7012
|
*/
|
|
6841
7013
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6842
7014
|
/**
|
|
6843
7015
|
* Prefer using a logical operator over a ternary.
|
|
6844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
6845
7017
|
*/
|
|
6846
7018
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
6847
7019
|
/**
|
|
6848
7020
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
6849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
|
|
6850
7022
|
*/
|
|
6851
7023
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
6852
7024
|
/**
|
|
6853
7025
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
6854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
|
|
6855
7027
|
*/
|
|
6856
7028
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
6857
7029
|
/**
|
|
6858
7030
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
6859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
6860
7032
|
*/
|
|
6861
7033
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
6862
7034
|
/**
|
|
6863
7035
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
6864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
|
|
6865
7037
|
*/
|
|
6866
7038
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
6867
7039
|
/**
|
|
6868
7040
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
6869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
|
|
6870
7042
|
*/
|
|
6871
7043
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
6872
7044
|
/**
|
|
6873
7045
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
6874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
6875
7047
|
*/
|
|
6876
7048
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
6877
7049
|
/**
|
|
6878
7050
|
* Prefer negative index over `.length - index` when possible.
|
|
6879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
|
|
6880
7052
|
*/
|
|
6881
7053
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
6882
7054
|
/**
|
|
6883
7055
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
6884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
|
|
6885
7057
|
*/
|
|
6886
7058
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
6887
7059
|
/**
|
|
6888
7060
|
* Prefer `Number` static properties over global ones.
|
|
6889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
|
|
6890
7062
|
*/
|
|
6891
7063
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
6892
7064
|
/**
|
|
6893
7065
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
6894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
|
|
6895
7067
|
*/
|
|
6896
7068
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
6897
7069
|
/**
|
|
6898
7070
|
* Prefer omitting the `catch` binding parameter.
|
|
6899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
6900
7072
|
*/
|
|
6901
7073
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
6902
7074
|
/**
|
|
6903
7075
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
6904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
|
|
6905
7077
|
*/
|
|
6906
7078
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
6907
7079
|
/**
|
|
6908
7080
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
6909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
|
|
6910
7082
|
*/
|
|
6911
7083
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
6912
7084
|
/**
|
|
6913
7085
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
6914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7086
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
|
|
6915
7087
|
*/
|
|
6916
7088
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
6917
7089
|
/**
|
|
6918
7090
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
6919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7091
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
|
|
6920
7092
|
*/
|
|
6921
7093
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
6922
7094
|
/**
|
|
6923
7095
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
6924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
|
|
6925
7097
|
*/
|
|
6926
7098
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
6927
7099
|
/**
|
|
6928
7100
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
6929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
|
|
6930
7102
|
*/
|
|
6931
7103
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
6932
7104
|
/**
|
|
6933
7105
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
6934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
|
|
6935
7107
|
*/
|
|
6936
7108
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
6937
7109
|
/**
|
|
6938
7110
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
6939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
|
|
6940
7112
|
*/
|
|
6941
7113
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
6942
7114
|
/**
|
|
6943
7115
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
6944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
|
|
6945
7117
|
*/
|
|
6946
7118
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
6947
7119
|
/**
|
|
6948
7120
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
6949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
|
|
6950
7122
|
*/
|
|
6951
7123
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
6952
7124
|
/**
|
|
6953
7125
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
6954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
|
|
6955
7127
|
*/
|
|
6956
7128
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
6957
7129
|
/**
|
|
6958
7130
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
6959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
|
|
6960
7132
|
*/
|
|
6961
7133
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
6962
7134
|
/**
|
|
6963
7135
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
6964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
6965
7137
|
*/
|
|
6966
7138
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
6967
7139
|
/**
|
|
6968
7140
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
6969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
6970
7142
|
*/
|
|
6971
7143
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
6972
7144
|
/**
|
|
6973
7145
|
* Prefer using `structuredClone` to create a deep clone.
|
|
6974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
|
|
6975
7147
|
*/
|
|
6976
7148
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
6977
7149
|
/**
|
|
6978
7150
|
* Prefer `switch` over multiple `else-if`.
|
|
6979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
|
|
6980
7152
|
*/
|
|
6981
7153
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
6982
7154
|
/**
|
|
6983
7155
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
6984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
|
|
6985
7157
|
*/
|
|
6986
7158
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
6987
7159
|
/**
|
|
6988
7160
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
|
|
6990
7162
|
*/
|
|
6991
7163
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
6992
7164
|
/**
|
|
6993
7165
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
|
|
6995
7167
|
*/
|
|
6996
7168
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
6997
7169
|
/**
|
|
6998
7170
|
* Prevent abbreviations.
|
|
6999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
|
|
7000
7172
|
*/
|
|
7001
7173
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
7002
7174
|
/**
|
|
7003
7175
|
* Enforce consistent relative URL style.
|
|
7004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
|
|
7005
7177
|
*/
|
|
7006
7178
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
7007
7179
|
/**
|
|
7008
7180
|
* Enforce using the separator argument with `Array#join()`.
|
|
7009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
|
|
7010
7182
|
*/
|
|
7011
7183
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
7012
7184
|
/**
|
|
7013
7185
|
* Require non-empty module attributes for imports and exports
|
|
7014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
|
|
7015
7187
|
*/
|
|
7016
7188
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
7017
7189
|
/**
|
|
7018
7190
|
* Require non-empty specifier list in import and export statements.
|
|
7019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
|
|
7020
7192
|
*/
|
|
7021
7193
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
7022
7194
|
/**
|
|
7023
7195
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7025
7197
|
*/
|
|
7026
7198
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
7027
7199
|
/**
|
|
7028
7200
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
|
|
7030
7202
|
*/
|
|
7031
7203
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
7032
7204
|
/**
|
|
7033
7205
|
* Enforce better string content.
|
|
7034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
|
|
7035
7207
|
*/
|
|
7036
7208
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
7037
7209
|
/**
|
|
7038
7210
|
* Enforce consistent brace style for `case` clauses.
|
|
7039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
|
|
7040
7212
|
*/
|
|
7041
7213
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
7042
7214
|
/**
|
|
7043
7215
|
* Fix whitespace-insensitive template indentation.
|
|
7044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7216
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
|
|
7045
7217
|
*/
|
|
7046
7218
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
7047
7219
|
/**
|
|
7048
7220
|
* Enforce consistent case for text encoding identifiers.
|
|
7049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7221
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
|
|
7050
7222
|
*/
|
|
7051
7223
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
7052
7224
|
/**
|
|
7053
7225
|
* Require `new` when creating an error.
|
|
7054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7226
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
|
|
7055
7227
|
*/
|
|
7056
7228
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
7057
7229
|
/**
|
|
@@ -8297,7 +8469,7 @@ interface RuleOptions {
|
|
|
8297
8469
|
* enforce valid `v-for` directives
|
|
8298
8470
|
* @see https://eslint.vuejs.org/rules/valid-v-for.html
|
|
8299
8471
|
*/
|
|
8300
|
-
'vue/valid-v-for'?: Linter.RuleEntry<
|
|
8472
|
+
'vue/valid-v-for'?: Linter.RuleEntry<VueValidVFor>;
|
|
8301
8473
|
/**
|
|
8302
8474
|
* enforce valid `v-html` directives
|
|
8303
8475
|
* @see https://eslint.vuejs.org/rules/valid-v-html.html
|
|
@@ -8679,6 +8851,11 @@ type DotLocation = [] | [("object" | "property")]; // ----- dot-notation -----
|
|
|
8679
8851
|
type DotNotation = [] | [{
|
|
8680
8852
|
allowKeywords?: boolean;
|
|
8681
8853
|
allowPattern?: string;
|
|
8854
|
+
}]; // ----- e18e/ban-dependencies -----
|
|
8855
|
+
type E18EBanDependencies = [] | [{
|
|
8856
|
+
presets?: string[];
|
|
8857
|
+
modules?: string[];
|
|
8858
|
+
allowed?: string[];
|
|
8682
8859
|
}]; // ----- eol-last -----
|
|
8683
8860
|
type EolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- eqeqeq -----
|
|
8684
8861
|
type Eqeqeq = ([] | ["always"] | ["always", {
|
|
@@ -8701,6 +8878,9 @@ type FormatDprint = [] | [{
|
|
|
8701
8878
|
};
|
|
8702
8879
|
plugins?: unknown[];
|
|
8703
8880
|
[k: string]: unknown | undefined;
|
|
8881
|
+
}]; // ----- format/oxfmt -----
|
|
8882
|
+
type FormatOxfmt = [] | [{
|
|
8883
|
+
[k: string]: unknown | undefined;
|
|
8704
8884
|
}]; // ----- format/prettier -----
|
|
8705
8885
|
type FormatPrettier = [] | [{
|
|
8706
8886
|
parser: string;
|
|
@@ -9282,6 +9462,7 @@ type JsdocTagLines = [] | [("always" | "any" | "never")] | [("always" | "any" |
|
|
|
9282
9462
|
endLines?: (number | null);
|
|
9283
9463
|
maxBlockLines?: (number | null);
|
|
9284
9464
|
startLines?: (number | null);
|
|
9465
|
+
startLinesWithNoTags?: number;
|
|
9285
9466
|
tags?: {
|
|
9286
9467
|
[k: string]: {
|
|
9287
9468
|
count?: number;
|
|
@@ -9492,6 +9673,7 @@ type JsoncObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
9492
9673
|
type JsoncObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
9493
9674
|
arraysInObjects?: boolean;
|
|
9494
9675
|
objectsInObjects?: boolean;
|
|
9676
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
9495
9677
|
}]; // ----- jsonc/object-property-newline -----
|
|
9496
9678
|
type JsoncObjectPropertyNewline = [] | [{
|
|
9497
9679
|
allowAllPropertiesOnSameLine?: boolean;
|
|
@@ -10101,6 +10283,7 @@ type MaxParams = [] | [(number | {
|
|
|
10101
10283
|
maximum?: number;
|
|
10102
10284
|
max?: number;
|
|
10103
10285
|
countVoidThis?: boolean;
|
|
10286
|
+
countThis?: ("never" | "except-void" | "always");
|
|
10104
10287
|
})]; // ----- max-statements -----
|
|
10105
10288
|
type MaxStatements = [] | [(number | {
|
|
10106
10289
|
maximum?: number;
|
|
@@ -10658,10 +10841,12 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
|
10658
10841
|
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CloseEvent" | "CustomEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.setMaxIdleHTTPParsers" | "http.Agent" | "http.ClientRequest" | "http.Server" | "http.ServerResponse" | "http.IncomingMessage" | "http.OutgoingMessage" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.BlockList.isBlockList" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.DatabaseSync" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
10659
10842
|
}]; // ----- node/prefer-global/buffer -----
|
|
10660
10843
|
type NodePreferGlobalBuffer = [] | [("always" | "never")]; // ----- node/prefer-global/console -----
|
|
10661
|
-
type NodePreferGlobalConsole = [] | [("always" | "never")]; // ----- node/prefer-global/
|
|
10844
|
+
type NodePreferGlobalConsole = [] | [("always" | "never")]; // ----- node/prefer-global/crypto -----
|
|
10845
|
+
type NodePreferGlobalCrypto = [] | [("always" | "never")]; // ----- node/prefer-global/process -----
|
|
10662
10846
|
type NodePreferGlobalProcess = [] | [("always" | "never")]; // ----- node/prefer-global/text-decoder -----
|
|
10663
10847
|
type NodePreferGlobalTextDecoder = [] | [("always" | "never")]; // ----- node/prefer-global/text-encoder -----
|
|
10664
|
-
type NodePreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- node/prefer-global/
|
|
10848
|
+
type NodePreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- node/prefer-global/timers -----
|
|
10849
|
+
type NodePreferGlobalTimers = [] | [("always" | "never")]; // ----- node/prefer-global/url -----
|
|
10665
10850
|
type NodePreferGlobalUrl = [] | [("always" | "never")]; // ----- node/prefer-global/url-search-params -----
|
|
10666
10851
|
type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")]; // ----- node/prefer-node-protocol -----
|
|
10667
10852
|
type NodePreferNodeProtocol = [] | [{
|
|
@@ -13720,37 +13905,47 @@ type StyleCurlyNewline = [] | [(("always" | "never") | {
|
|
|
13720
13905
|
consistent?: boolean;
|
|
13721
13906
|
})]; // ----- style/dot-location -----
|
|
13722
13907
|
type StyleDotLocation = [] | [("object" | "property")]; // ----- style/eol-last -----
|
|
13723
|
-
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- style/exp-
|
|
13908
|
+
type StyleEolLast = [] | [("always" | "never" | "unix" | "windows")]; // ----- style/exp-jsx-props-style -----
|
|
13909
|
+
type StyleExpJsxPropsStyle = [] | [{
|
|
13910
|
+
singleLine?: {
|
|
13911
|
+
maxItems?: number;
|
|
13912
|
+
};
|
|
13913
|
+
multiLine?: {
|
|
13914
|
+
minItems?: number;
|
|
13915
|
+
maxItemsPerLine?: number;
|
|
13916
|
+
};
|
|
13917
|
+
}]; // ----- style/exp-list-style -----
|
|
13724
13918
|
type StyleExpListStyle = [] | [{
|
|
13725
13919
|
singleLine?: _StyleExpListStyle_SingleLineConfig;
|
|
13726
13920
|
multiLine?: _StyleExpListStyle_MultiLineConfig;
|
|
13727
13921
|
overrides?: {
|
|
13728
|
-
"
|
|
13729
|
-
"
|
|
13730
|
-
"
|
|
13731
|
-
"
|
|
13732
|
-
ArrayExpression?: _StyleExpListStyle_BaseConfig;
|
|
13733
|
-
ArrayPattern?: _StyleExpListStyle_BaseConfig;
|
|
13734
|
-
ArrowFunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
13735
|
-
CallExpression?: _StyleExpListStyle_BaseConfig;
|
|
13736
|
-
ExportNamedDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
13737
|
-
FunctionDeclaration?: _StyleExpListStyle_BaseConfig;
|
|
13738
|
-
FunctionExpression?: _StyleExpListStyle_BaseConfig;
|
|
13739
|
-
|
|
13740
|
-
ImportAttributes?: _StyleExpListStyle_BaseConfig;
|
|
13741
|
-
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
|
|
13922
|
+
"()"?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13923
|
+
"[]"?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13924
|
+
"{}"?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13925
|
+
"<>"?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13926
|
+
ArrayExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13927
|
+
ArrayPattern?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13928
|
+
ArrowFunctionExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13929
|
+
CallExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13930
|
+
ExportNamedDeclaration?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13931
|
+
FunctionDeclaration?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13932
|
+
FunctionExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13933
|
+
IfStatement?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13934
|
+
ImportAttributes?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13935
|
+
ImportDeclaration?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13936
|
+
JSONArrayExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13937
|
+
JSONObjectExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13938
|
+
NewExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13939
|
+
ObjectExpression?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13940
|
+
ObjectPattern?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13941
|
+
TSDeclareFunction?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13942
|
+
TSEnumBody?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13943
|
+
TSFunctionType?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13944
|
+
TSInterfaceBody?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13945
|
+
TSTupleType?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13946
|
+
TSTypeLiteral?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13947
|
+
TSTypeParameterDeclaration?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13948
|
+
TSTypeParameterInstantiation?: (_StyleExpListStyle_BaseConfig | "off");
|
|
13754
13949
|
};
|
|
13755
13950
|
}];
|
|
13756
13951
|
interface _StyleExpListStyle_SingleLineConfig {
|
|
@@ -14611,13 +14806,18 @@ type StylePaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
14611
14806
|
allowSingleLineBlocks?: boolean;
|
|
14612
14807
|
}]; // ----- style/padding-line-between-statements -----
|
|
14613
14808
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
14614
|
-
type _StylePaddingLineBetweenStatementsStatementOption = (
|
|
14809
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementMatcher | [_StylePaddingLineBetweenStatementsStatementMatcher, ...(_StylePaddingLineBetweenStatementsStatementMatcher)[]]);
|
|
14810
|
+
type _StylePaddingLineBetweenStatementsStatementMatcher = (_StylePaddingLineBetweenStatementsStatementType | _StylePaddingLineBetweenStatements_SelectorOption);
|
|
14615
14811
|
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type");
|
|
14616
14812
|
type StylePaddingLineBetweenStatements = {
|
|
14617
14813
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType;
|
|
14618
14814
|
prev: _StylePaddingLineBetweenStatementsStatementOption;
|
|
14619
14815
|
next: _StylePaddingLineBetweenStatementsStatementOption;
|
|
14620
|
-
}[];
|
|
14816
|
+
}[];
|
|
14817
|
+
interface _StylePaddingLineBetweenStatements_SelectorOption {
|
|
14818
|
+
selector: string;
|
|
14819
|
+
lineMode?: ("any" | "singleline" | "multiline");
|
|
14820
|
+
} // ----- style/quote-props -----
|
|
14621
14821
|
type StyleQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
14622
14822
|
keywords?: boolean;
|
|
14623
14823
|
unnecessary?: boolean;
|
|
@@ -14830,10 +15030,19 @@ type TomlCommaStyle = [] | [("first" | "last")] | [("first" | "last"), {
|
|
|
14830
15030
|
type TomlIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
14831
15031
|
subTables?: number;
|
|
14832
15032
|
keyValuePairs?: number;
|
|
14833
|
-
}]; // ----- toml/inline-table-curly-
|
|
15033
|
+
}]; // ----- toml/inline-table-curly-newline -----
|
|
15034
|
+
type TomlInlineTableCurlyNewline = [] | [(("always" | "never") | {
|
|
15035
|
+
multiline?: boolean;
|
|
15036
|
+
minProperties?: number;
|
|
15037
|
+
consistent?: boolean;
|
|
15038
|
+
})]; // ----- toml/inline-table-curly-spacing -----
|
|
14834
15039
|
type TomlInlineTableCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14835
15040
|
arraysInObjects?: boolean;
|
|
14836
15041
|
objectsInObjects?: boolean;
|
|
15042
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
15043
|
+
}]; // ----- toml/inline-table-key-value-newline -----
|
|
15044
|
+
type TomlInlineTableKeyValueNewline = [] | [{
|
|
15045
|
+
allowAllPropertiesOnSameLine?: boolean;
|
|
14837
15046
|
}]; // ----- toml/key-spacing -----
|
|
14838
15047
|
type TomlKeySpacing = [] | [({
|
|
14839
15048
|
align?: (("equal" | "value") | {
|
|
@@ -15597,7 +15806,10 @@ type TsNoUseBeforeDefine = [] | [("nofunc" | {
|
|
|
15597
15806
|
ignoreTypeReferences?: boolean;
|
|
15598
15807
|
typedefs?: boolean;
|
|
15599
15808
|
variables?: boolean;
|
|
15600
|
-
})]; // ----- ts/no-
|
|
15809
|
+
})]; // ----- ts/no-useless-default-assignment -----
|
|
15810
|
+
type TsNoUselessDefaultAssignment = [] | [{
|
|
15811
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
15812
|
+
}]; // ----- ts/no-var-requires -----
|
|
15601
15813
|
type TsNoVarRequires = [] | [{
|
|
15602
15814
|
allow?: string[];
|
|
15603
15815
|
}]; // ----- ts/only-throw-error -----
|
|
@@ -15678,6 +15890,18 @@ type TsPreferOptionalChain = [] | [{
|
|
|
15678
15890
|
requireNullish?: boolean;
|
|
15679
15891
|
}]; // ----- ts/prefer-promise-reject-errors -----
|
|
15680
15892
|
type TsPreferPromiseRejectErrors = [] | [{
|
|
15893
|
+
allow?: (string | {
|
|
15894
|
+
from: "file";
|
|
15895
|
+
name: (string | [string, ...(string)[]]);
|
|
15896
|
+
path?: string;
|
|
15897
|
+
} | {
|
|
15898
|
+
from: "lib";
|
|
15899
|
+
name: (string | [string, ...(string)[]]);
|
|
15900
|
+
} | {
|
|
15901
|
+
from: "package";
|
|
15902
|
+
name: (string | [string, ...(string)[]]);
|
|
15903
|
+
package: string;
|
|
15904
|
+
})[];
|
|
15681
15905
|
allowEmptyReject?: boolean;
|
|
15682
15906
|
allowThrowingAny?: boolean;
|
|
15683
15907
|
allowThrowingUnknown?: boolean;
|
|
@@ -15844,7 +16068,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
15844
16068
|
}
|
|
15845
16069
|
interface _UnicornImportStyle_BooleanObject {
|
|
15846
16070
|
[k: string]: boolean | undefined;
|
|
15847
|
-
} // ----- unicorn/
|
|
16071
|
+
} // ----- unicorn/isolated-functions -----
|
|
16072
|
+
type UnicornIsolatedFunctions = [] | [{
|
|
16073
|
+
overrideGlobals?: {
|
|
16074
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
|
|
16075
|
+
};
|
|
16076
|
+
functions?: string[];
|
|
16077
|
+
selectors?: string[];
|
|
16078
|
+
comments?: string[];
|
|
16079
|
+
}]; // ----- unicorn/no-array-reduce -----
|
|
15848
16080
|
type UnicornNoArrayReduce = [] | [{
|
|
15849
16081
|
allowSimpleOperations?: boolean;
|
|
15850
16082
|
}]; // ----- unicorn/no-array-reverse -----
|
|
@@ -16061,6 +16293,7 @@ type VueAttributesOrder = [] | [{
|
|
|
16061
16293
|
order?: (("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT") | ("DEFINITION" | "LIST_RENDERING" | "CONDITIONALS" | "RENDER_MODIFIERS" | "GLOBAL" | "UNIQUE" | "SLOT" | "TWO_WAY_BINDING" | "OTHER_DIRECTIVES" | "OTHER_ATTR" | "ATTR_STATIC" | "ATTR_DYNAMIC" | "ATTR_SHORTHAND_BOOL" | "EVENTS" | "CONTENT")[])[];
|
|
16062
16294
|
alphabetical?: boolean;
|
|
16063
16295
|
sortLineLength?: boolean;
|
|
16296
|
+
ignoreVBindObject?: boolean;
|
|
16064
16297
|
}]; // ----- vue/block-lang -----
|
|
16065
16298
|
type VueBlockLang = [] | [{
|
|
16066
16299
|
[k: string]: {
|
|
@@ -16133,7 +16366,7 @@ type VueDefineMacrosOrder = [] | [{
|
|
|
16133
16366
|
}]; // ----- vue/define-props-declaration -----
|
|
16134
16367
|
type VueDefinePropsDeclaration = [] | [("type-based" | "runtime")]; // ----- vue/define-props-destructuring -----
|
|
16135
16368
|
type VueDefinePropsDestructuring = [] | [{
|
|
16136
|
-
destructure?: ("always" | "never");
|
|
16369
|
+
destructure?: ("only-when-assigned" | "always" | "never");
|
|
16137
16370
|
}]; // ----- vue/dot-location -----
|
|
16138
16371
|
type VueDotLocation = [] | [("object" | "property")]; // ----- vue/dot-notation -----
|
|
16139
16372
|
type VueDotNotation = [] | [{
|
|
@@ -17069,7 +17302,10 @@ type VueVSlotStyle = [] | [(("shorthand" | "longform") | {
|
|
|
17069
17302
|
atComponent?: ("shorthand" | "longform" | "v-slot");
|
|
17070
17303
|
default?: ("shorthand" | "longform" | "v-slot");
|
|
17071
17304
|
named?: ("shorthand" | "longform");
|
|
17072
|
-
})]; // ----- vue/valid-v-
|
|
17305
|
+
})]; // ----- vue/valid-v-for -----
|
|
17306
|
+
type VueValidVFor = [] | [{
|
|
17307
|
+
allowEmptyAlias?: boolean;
|
|
17308
|
+
}]; // ----- vue/valid-v-on -----
|
|
17073
17309
|
type VueValidVOn = [] | [{
|
|
17074
17310
|
modifiers?: unknown[];
|
|
17075
17311
|
}]; // ----- vue/valid-v-slot -----
|
|
@@ -17105,6 +17341,7 @@ type YamlFlowMappingCurlyNewline = [] | [(("always" | "never") | {
|
|
|
17105
17341
|
type YamlFlowMappingCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
17106
17342
|
arraysInObjects?: boolean;
|
|
17107
17343
|
objectsInObjects?: boolean;
|
|
17344
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
17108
17345
|
}]; // ----- yaml/flow-sequence-bracket-newline -----
|
|
17109
17346
|
type YamlFlowSequenceBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
17110
17347
|
multiline?: boolean;
|
|
@@ -17275,7 +17512,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
17275
17512
|
exceptRange?: boolean;
|
|
17276
17513
|
onlyEquality?: boolean;
|
|
17277
17514
|
}]; // Names of all the configs
|
|
17278
|
-
type ConfigNames = 'luxass/gitignore' | 'luxass/ignores' | 'luxass/javascript/setup' | 'luxass/javascript/rules' | 'luxass/disables/cli' | 'luxass/eslint-comments' | 'command' | 'luxass/perfectionist/setup' | 'luxass/node' | 'luxass/jsdoc/rules' | 'luxass/imports' | 'luxass/unicorn/rules' | 'luxass/jsx/setup' | 'luxass/typescript/setup' | 'luxass/typescript/type-aware-parser' | 'luxass/typescript/parser' | 'luxass/typescript/rules' | 'luxass/typescript/rules-type-aware' | 'luxas/typescript/erasable-syntax-only' | 'luxass/stylistic' | 'luxass/regexp/rules' | 'luxass/test/setup' | 'luxass/test/rules' | 'luxass/react/setup' | 'luxass/react/rules' | 'luxass/react/type-aware-rules' | 'luxass/vue/setup' | 'luxass/vue/rules' | 'luxass/astro/setup' | 'luxass/astro/rules' | 'luxass/unocss' | 'luxass/jsonc/setup' | 'luxass/jsonc/rules' | 'luxass/sort/package-json' | 'luxass/sort/tsconfig' | 'luxass/pnpm/package-json' | 'luxass/pnpm/pnpm-workspace-yaml' | 'luxass/pnpm/pnpm-workspace-yaml-sort' | 'luxass/yaml/setup' | 'luxass/yaml/rules' | 'luxass/yaml/pnpm-workspace' | 'luxass/toml/setup' | 'luxass/toml/rules' | 'luxass/markdown/setup' | 'luxass/markdown/processor' | 'luxass/markdown/parser' | 'luxass/markdown/disables' | 'luxass/formatter/setup' | 'luxass/formatter/css' | 'luxass/formatter/scss' | 'luxass/formatter/less' | 'luxass/formatter/html' | 'luxass/formatter/xml' | 'luxass/formatter/svg' | 'luxass/formatter/markdown' | 'luxass/formatter/astro' | 'luxass/formatter/graphql' | 'luxass/disables/scripts' | 'luxass/disables/cli' | 'luxass/disables/bin' | 'luxass/disables/dts' | 'luxass/disables/cjs' | 'luxass/disables/github-actions' | 'luxass/disables/config-files';
|
|
17515
|
+
type ConfigNames = 'luxass/gitignore' | 'luxass/ignores' | 'luxass/javascript/setup' | 'luxass/javascript/rules' | 'luxass/disables/cli' | 'luxass/eslint-comments' | 'command' | 'luxass/perfectionist/setup' | 'luxass/node/setup' | 'luxass/node/rules' | 'luxass/jsdoc/setup' | 'luxass/jsdoc/rules' | 'luxass/imports' | 'luxass/e18e/rules' | 'luxass/unicorn/rules' | 'luxass/jsx/setup' | 'luxass/typescript/setup' | 'luxass/typescript/type-aware-parser' | 'luxass/typescript/parser' | 'luxass/typescript/rules' | 'luxass/typescript/rules-type-aware' | 'luxas/typescript/erasable-syntax-only' | 'luxass/stylistic' | 'luxass/regexp/rules' | 'luxass/test/setup' | 'luxass/test/rules' | 'luxass/react/setup' | 'luxass/react/rules' | 'luxass/react/type-aware-rules' | 'luxass/vue/setup' | 'luxass/vue/rules' | 'luxass/astro/setup' | 'luxass/astro/rules' | 'luxass/unocss' | 'luxass/jsonc/setup' | 'luxass/jsonc/rules' | 'luxass/sort/package-json' | 'luxass/sort/tsconfig' | 'luxass/pnpm/package-json' | 'luxass/pnpm/pnpm-workspace-yaml' | 'luxass/pnpm/pnpm-workspace-yaml-sort' | 'luxass/yaml/setup' | 'luxass/yaml/rules' | 'luxass/yaml/pnpm-workspace' | 'luxass/toml/setup' | 'luxass/toml/rules' | 'luxass/markdown/setup' | 'luxass/markdown/processor' | 'luxass/markdown/parser' | 'luxass/markdown/rules' | 'luxass/markdown/disables/markdown' | 'luxass/markdown/disables/code' | 'luxass/formatter/setup' | 'luxass/formatter/css' | 'luxass/formatter/scss' | 'luxass/formatter/less' | 'luxass/formatter/html' | 'luxass/formatter/xml' | 'luxass/formatter/svg' | 'luxass/formatter/markdown' | 'luxass/formatter/astro' | 'luxass/formatter/graphql' | 'luxass/disables/scripts' | 'luxass/disables/cli' | 'luxass/disables/bin' | 'luxass/disables/dts' | 'luxass/disables/cjs' | 'luxass/disables/github-actions' | 'luxass/disables/config-files';
|
|
17279
17516
|
//#endregion
|
|
17280
17517
|
//#region src/types.d.ts
|
|
17281
17518
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -17321,6 +17558,12 @@ interface ConfigOptions {
|
|
|
17321
17558
|
* @default []
|
|
17322
17559
|
*/
|
|
17323
17560
|
ignores?: string[] | ((originals: string[]) => string[]);
|
|
17561
|
+
/**
|
|
17562
|
+
* Options for [@e18e/eslint-plugin](https://github.com/e18e/eslint-plugin)
|
|
17563
|
+
*
|
|
17564
|
+
* @default true
|
|
17565
|
+
*/
|
|
17566
|
+
e18e?: boolean | E18eOptions;
|
|
17324
17567
|
/**
|
|
17325
17568
|
* Options for eslint-plugin-unicorn.
|
|
17326
17569
|
*
|
|
@@ -17512,7 +17755,7 @@ interface ConfigOptions {
|
|
|
17512
17755
|
* @returns {Promise<TypedFlatConfigItem[]>}
|
|
17513
17756
|
* The merged ESLint configurations.
|
|
17514
17757
|
*/
|
|
17515
|
-
declare function luxass(options?: ConfigOptions & Omit<TypedFlatConfigItem, "files">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
17758
|
+
declare function luxass(options?: ConfigOptions & Omit<TypedFlatConfigItem, "files" | "ignores">, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
17516
17759
|
//#endregion
|
|
17517
17760
|
//#region src/globs.d.ts
|
|
17518
17761
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
@@ -17711,4 +17954,4 @@ declare function isPackageInScope(name: string): boolean;
|
|
|
17711
17954
|
declare function isInEditorEnv(): boolean;
|
|
17712
17955
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
17713
17956
|
//#endregion
|
|
17714
|
-
export { type AstroOptions, Awaitable, type ConfigNames, ConfigOptions, type FormattersOptions, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NEXTJS_OG, GLOB_NEXTJS_ROUTES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type ImportsOptions, type JSDOCOptions, type JSONOptions, type JavaScriptOptions, type MarkdownOptions, type PnpmOptions, ProjectType, type ReactOptions, type RegExpOptions, ResolvedOptions, type RuleOptions, Rules, type StylisticConfig, type StylisticOptions, type TOMLOptions, type TailwindCSSOptions, type TestOptions, type TypeScriptOptions, TypedFlatConfigItem, type UnicornOptions, type UnoCSSOptions, UserConfigItem, type VueOptions, type YAMLOptions, astro, combine, command, comments, luxass as default, luxass, disables, ensure, formatters, getOverrides, ignores, imports, interop, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|
|
17957
|
+
export { type AstroOptions, Awaitable, type ConfigNames, ConfigOptions, type E18eOptions, type FormattersOptions, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NEXTJS_OG, GLOB_NEXTJS_ROUTES, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type ImportsOptions, type JSDOCOptions, type JSONOptions, type JavaScriptOptions, type MarkdownOptions, type PnpmOptions, ProjectType, type ReactOptions, type RegExpOptions, ResolvedOptions, type RuleOptions, Rules, type StylisticConfig, type StylisticOptions, type TOMLOptions, type TailwindCSSOptions, type TestOptions, type TypeScriptOptions, TypedFlatConfigItem, type UnicornOptions, type UnoCSSOptions, UserConfigItem, type VueOptions, type YAMLOptions, astro, combine, command, comments, luxass as default, luxass, disables, e18e, ensure, formatters, getOverrides, ignores, imports, interop, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, node, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|