@jimmy.codes/eslint-config 3.2.3 → 3.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.cjs +1 -1
- package/dist/index.d.cts +1401 -8
- package/dist/index.d.mts +1401 -8
- package/dist/index.mjs +1 -1
- package/package.json +3 -2
package/dist/index.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ import * as eslint_plugin_react_refresh from 'eslint-plugin-react-refresh';
|
|
|
5
5
|
import * as eslint_plugin_react_hooks from 'eslint-plugin-react-hooks';
|
|
6
6
|
import * as eslint_plugin_react from 'eslint-plugin-react';
|
|
7
7
|
import * as eslint_plugin_jsx_a11y from 'eslint-plugin-jsx-a11y';
|
|
8
|
+
import * as eslint_plugin_n from 'eslint-plugin-n';
|
|
8
9
|
import * as eslint from 'eslint';
|
|
9
10
|
import { Linter } from 'eslint';
|
|
10
11
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
@@ -2135,6 +2136,208 @@ interface RuleOptions {
|
|
|
2135
2136
|
* @deprecated
|
|
2136
2137
|
*/
|
|
2137
2138
|
'multiline-ternary'?: Linter.RuleEntry<MultilineTernary>
|
|
2139
|
+
/**
|
|
2140
|
+
* require `return` statements after callbacks
|
|
2141
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
|
|
2142
|
+
*/
|
|
2143
|
+
'n/callback-return'?: Linter.RuleEntry<NCallbackReturn>
|
|
2144
|
+
/**
|
|
2145
|
+
* enforce either `module.exports` or `exports`
|
|
2146
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/exports-style.md
|
|
2147
|
+
*/
|
|
2148
|
+
'n/exports-style'?: Linter.RuleEntry<NExportsStyle>
|
|
2149
|
+
/**
|
|
2150
|
+
* enforce the style of file extensions in `import` declarations
|
|
2151
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/file-extension-in-import.md
|
|
2152
|
+
*/
|
|
2153
|
+
'n/file-extension-in-import'?: Linter.RuleEntry<NFileExtensionInImport>
|
|
2154
|
+
/**
|
|
2155
|
+
* require `require()` calls to be placed at top-level module scope
|
|
2156
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/global-require.md
|
|
2157
|
+
*/
|
|
2158
|
+
'n/global-require'?: Linter.RuleEntry<[]>
|
|
2159
|
+
/**
|
|
2160
|
+
* require error handling in callbacks
|
|
2161
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md
|
|
2162
|
+
*/
|
|
2163
|
+
'n/handle-callback-err'?: Linter.RuleEntry<NHandleCallbackErr>
|
|
2164
|
+
/**
|
|
2165
|
+
* require correct usage of hashbang
|
|
2166
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
2167
|
+
*/
|
|
2168
|
+
'n/hashbang'?: Linter.RuleEntry<NHashbang>
|
|
2169
|
+
/**
|
|
2170
|
+
* enforce Node.js-style error-first callback pattern is followed
|
|
2171
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-callback-literal.md
|
|
2172
|
+
*/
|
|
2173
|
+
'n/no-callback-literal'?: Linter.RuleEntry<[]>
|
|
2174
|
+
/**
|
|
2175
|
+
* disallow deprecated APIs
|
|
2176
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-deprecated-api.md
|
|
2177
|
+
*/
|
|
2178
|
+
'n/no-deprecated-api'?: Linter.RuleEntry<NNoDeprecatedApi>
|
|
2179
|
+
/**
|
|
2180
|
+
* disallow the assignment to `exports`
|
|
2181
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-exports-assign.md
|
|
2182
|
+
*/
|
|
2183
|
+
'n/no-exports-assign'?: Linter.RuleEntry<[]>
|
|
2184
|
+
/**
|
|
2185
|
+
* disallow `import` declarations which import extraneous modules
|
|
2186
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-import.md
|
|
2187
|
+
*/
|
|
2188
|
+
'n/no-extraneous-import'?: Linter.RuleEntry<NNoExtraneousImport>
|
|
2189
|
+
/**
|
|
2190
|
+
* disallow `require()` expressions which import extraneous modules
|
|
2191
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-require.md
|
|
2192
|
+
*/
|
|
2193
|
+
'n/no-extraneous-require'?: Linter.RuleEntry<NNoExtraneousRequire>
|
|
2194
|
+
/**
|
|
2195
|
+
* disallow third-party modules which are hiding core modules
|
|
2196
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-hide-core-modules.md
|
|
2197
|
+
* @deprecated
|
|
2198
|
+
*/
|
|
2199
|
+
'n/no-hide-core-modules'?: Linter.RuleEntry<NNoHideCoreModules>
|
|
2200
|
+
/**
|
|
2201
|
+
* disallow `import` declarations which import non-existence modules
|
|
2202
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-import.md
|
|
2203
|
+
*/
|
|
2204
|
+
'n/no-missing-import'?: Linter.RuleEntry<NNoMissingImport>
|
|
2205
|
+
/**
|
|
2206
|
+
* disallow `require()` expressions which import non-existence modules
|
|
2207
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-require.md
|
|
2208
|
+
*/
|
|
2209
|
+
'n/no-missing-require'?: Linter.RuleEntry<NNoMissingRequire>
|
|
2210
|
+
/**
|
|
2211
|
+
* disallow `require` calls to be mixed with regular variable declarations
|
|
2212
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-mixed-requires.md
|
|
2213
|
+
*/
|
|
2214
|
+
'n/no-mixed-requires'?: Linter.RuleEntry<NNoMixedRequires>
|
|
2215
|
+
/**
|
|
2216
|
+
* disallow `new` operators with calls to `require`
|
|
2217
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-new-require.md
|
|
2218
|
+
*/
|
|
2219
|
+
'n/no-new-require'?: Linter.RuleEntry<[]>
|
|
2220
|
+
/**
|
|
2221
|
+
* disallow string concatenation with `__dirname` and `__filename`
|
|
2222
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
|
|
2223
|
+
*/
|
|
2224
|
+
'n/no-path-concat'?: Linter.RuleEntry<[]>
|
|
2225
|
+
/**
|
|
2226
|
+
* disallow the use of `process.env`
|
|
2227
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-env.md
|
|
2228
|
+
*/
|
|
2229
|
+
'n/no-process-env'?: Linter.RuleEntry<NNoProcessEnv>
|
|
2230
|
+
/**
|
|
2231
|
+
* disallow the use of `process.exit()`
|
|
2232
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-exit.md
|
|
2233
|
+
*/
|
|
2234
|
+
'n/no-process-exit'?: Linter.RuleEntry<[]>
|
|
2235
|
+
/**
|
|
2236
|
+
* disallow specified modules when loaded by `import` declarations
|
|
2237
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-import.md
|
|
2238
|
+
*/
|
|
2239
|
+
'n/no-restricted-import'?: Linter.RuleEntry<NNoRestrictedImport>
|
|
2240
|
+
/**
|
|
2241
|
+
* disallow specified modules when loaded by `require`
|
|
2242
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-require.md
|
|
2243
|
+
*/
|
|
2244
|
+
'n/no-restricted-require'?: Linter.RuleEntry<NNoRestrictedRequire>
|
|
2245
|
+
/**
|
|
2246
|
+
* disallow synchronous methods
|
|
2247
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2248
|
+
*/
|
|
2249
|
+
'n/no-sync'?: Linter.RuleEntry<NNoSync>
|
|
2250
|
+
/**
|
|
2251
|
+
* disallow `bin` files that npm ignores
|
|
2252
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
2253
|
+
*/
|
|
2254
|
+
'n/no-unpublished-bin'?: Linter.RuleEntry<NNoUnpublishedBin>
|
|
2255
|
+
/**
|
|
2256
|
+
* disallow `import` declarations which import private modules
|
|
2257
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-import.md
|
|
2258
|
+
*/
|
|
2259
|
+
'n/no-unpublished-import'?: Linter.RuleEntry<NNoUnpublishedImport>
|
|
2260
|
+
/**
|
|
2261
|
+
* disallow `require()` expressions which import private modules
|
|
2262
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-require.md
|
|
2263
|
+
*/
|
|
2264
|
+
'n/no-unpublished-require'?: Linter.RuleEntry<NNoUnpublishedRequire>
|
|
2265
|
+
/**
|
|
2266
|
+
* disallow unsupported ECMAScript built-ins on the specified version
|
|
2267
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-builtins.md
|
|
2268
|
+
*/
|
|
2269
|
+
'n/no-unsupported-features/es-builtins'?: Linter.RuleEntry<NNoUnsupportedFeaturesEsBuiltins>
|
|
2270
|
+
/**
|
|
2271
|
+
* disallow unsupported ECMAScript syntax on the specified version
|
|
2272
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-syntax.md
|
|
2273
|
+
*/
|
|
2274
|
+
'n/no-unsupported-features/es-syntax'?: Linter.RuleEntry<NNoUnsupportedFeaturesEsSyntax>
|
|
2275
|
+
/**
|
|
2276
|
+
* disallow unsupported Node.js built-in APIs on the specified version
|
|
2277
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/node-builtins.md
|
|
2278
|
+
*/
|
|
2279
|
+
'n/no-unsupported-features/node-builtins'?: Linter.RuleEntry<NNoUnsupportedFeaturesNodeBuiltins>
|
|
2280
|
+
/**
|
|
2281
|
+
* enforce either `Buffer` or `require("buffer").Buffer`
|
|
2282
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/buffer.md
|
|
2283
|
+
*/
|
|
2284
|
+
'n/prefer-global/buffer'?: Linter.RuleEntry<NPreferGlobalBuffer>
|
|
2285
|
+
/**
|
|
2286
|
+
* enforce either `console` or `require("console")`
|
|
2287
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
2288
|
+
*/
|
|
2289
|
+
'n/prefer-global/console'?: Linter.RuleEntry<NPreferGlobalConsole>
|
|
2290
|
+
/**
|
|
2291
|
+
* enforce either `process` or `require("process")`
|
|
2292
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
2293
|
+
*/
|
|
2294
|
+
'n/prefer-global/process'?: Linter.RuleEntry<NPreferGlobalProcess>
|
|
2295
|
+
/**
|
|
2296
|
+
* enforce either `TextDecoder` or `require("util").TextDecoder`
|
|
2297
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-decoder.md
|
|
2298
|
+
*/
|
|
2299
|
+
'n/prefer-global/text-decoder'?: Linter.RuleEntry<NPreferGlobalTextDecoder>
|
|
2300
|
+
/**
|
|
2301
|
+
* enforce either `TextEncoder` or `require("util").TextEncoder`
|
|
2302
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
2303
|
+
*/
|
|
2304
|
+
'n/prefer-global/text-encoder'?: Linter.RuleEntry<NPreferGlobalTextEncoder>
|
|
2305
|
+
/**
|
|
2306
|
+
* enforce either `URL` or `require("url").URL`
|
|
2307
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
2308
|
+
*/
|
|
2309
|
+
'n/prefer-global/url'?: Linter.RuleEntry<NPreferGlobalUrl>
|
|
2310
|
+
/**
|
|
2311
|
+
* enforce either `URLSearchParams` or `require("url").URLSearchParams`
|
|
2312
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
|
|
2313
|
+
*/
|
|
2314
|
+
'n/prefer-global/url-search-params'?: Linter.RuleEntry<NPreferGlobalUrlSearchParams>
|
|
2315
|
+
/**
|
|
2316
|
+
* enforce using the `node:` protocol when importing Node.js builtin modules.
|
|
2317
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
|
|
2318
|
+
*/
|
|
2319
|
+
'n/prefer-node-protocol'?: Linter.RuleEntry<NPreferNodeProtocol>
|
|
2320
|
+
/**
|
|
2321
|
+
* enforce `require("dns").promises`
|
|
2322
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
|
|
2323
|
+
*/
|
|
2324
|
+
'n/prefer-promises/dns'?: Linter.RuleEntry<[]>
|
|
2325
|
+
/**
|
|
2326
|
+
* enforce `require("fs").promises`
|
|
2327
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/fs.md
|
|
2328
|
+
*/
|
|
2329
|
+
'n/prefer-promises/fs'?: Linter.RuleEntry<[]>
|
|
2330
|
+
/**
|
|
2331
|
+
* require that `process.exit()` expressions use the same code path as `throw`
|
|
2332
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/process-exit-as-throw.md
|
|
2333
|
+
*/
|
|
2334
|
+
'n/process-exit-as-throw'?: Linter.RuleEntry<[]>
|
|
2335
|
+
/**
|
|
2336
|
+
* require correct usage of hashbang
|
|
2337
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
2338
|
+
* @deprecated
|
|
2339
|
+
*/
|
|
2340
|
+
'n/shebang'?: Linter.RuleEntry<NShebang>
|
|
2138
2341
|
/**
|
|
2139
2342
|
* Require constructor names to begin with a capital letter
|
|
2140
2343
|
* @see https://eslint.org/docs/latest/rules/new-cap
|
|
@@ -2965,11 +3168,6 @@ interface RuleOptions {
|
|
|
2965
3168
|
* @see https://eslint.org/docs/latest/rules/no-with
|
|
2966
3169
|
*/
|
|
2967
3170
|
'no-with'?: Linter.RuleEntry<[]>
|
|
2968
|
-
/**
|
|
2969
|
-
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
2970
|
-
* @see https://github.com/kytta/eslint-plugin-node-import/blob/main/docs/rules/prefer-node-protocol
|
|
2971
|
-
*/
|
|
2972
|
-
'node-import/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
2973
3171
|
/**
|
|
2974
3172
|
* Enforce the location of single-line statements
|
|
2975
3173
|
* @see https://eslint.org/docs/latest/rules/nonblock-statement-body-position
|
|
@@ -4015,6 +4213,706 @@ interface RuleOptions {
|
|
|
4015
4213
|
* @see https://eslint.org/docs/latest/rules/unicode-bom
|
|
4016
4214
|
*/
|
|
4017
4215
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4216
|
+
/**
|
|
4217
|
+
* Improve regexes by making them shorter, consistent, and safer.
|
|
4218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
|
|
4219
|
+
*/
|
|
4220
|
+
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4221
|
+
/**
|
|
4222
|
+
* Enforce a specific parameter name in catch clauses.
|
|
4223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
|
|
4224
|
+
*/
|
|
4225
|
+
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4226
|
+
/**
|
|
4227
|
+
* Use destructured variables over properties.
|
|
4228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
|
|
4229
|
+
*/
|
|
4230
|
+
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4231
|
+
/**
|
|
4232
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4234
|
+
*/
|
|
4235
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4236
|
+
/**
|
|
4237
|
+
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
|
|
4239
|
+
*/
|
|
4240
|
+
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
4241
|
+
/**
|
|
4242
|
+
* Move function definitions to the highest possible scope.
|
|
4243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
|
|
4244
|
+
*/
|
|
4245
|
+
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4246
|
+
/**
|
|
4247
|
+
* Enforce correct `Error` subclassing.
|
|
4248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
|
|
4249
|
+
*/
|
|
4250
|
+
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4251
|
+
/**
|
|
4252
|
+
* Enforce no spaces between braces.
|
|
4253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
|
|
4254
|
+
*/
|
|
4255
|
+
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4256
|
+
/**
|
|
4257
|
+
* Enforce passing a `message` value when creating a built-in error.
|
|
4258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
|
|
4259
|
+
*/
|
|
4260
|
+
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4261
|
+
/**
|
|
4262
|
+
* Require escape sequences to use uppercase values.
|
|
4263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
|
|
4264
|
+
*/
|
|
4265
|
+
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
4266
|
+
/**
|
|
4267
|
+
* Add expiration conditions to TODO comments.
|
|
4268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
|
|
4269
|
+
*/
|
|
4270
|
+
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4271
|
+
/**
|
|
4272
|
+
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
|
|
4274
|
+
*/
|
|
4275
|
+
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4276
|
+
/**
|
|
4277
|
+
* Enforce a case style for filenames.
|
|
4278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
|
|
4279
|
+
*/
|
|
4280
|
+
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4281
|
+
/**
|
|
4282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
|
|
4283
|
+
* @deprecated
|
|
4284
|
+
*/
|
|
4285
|
+
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
4286
|
+
/**
|
|
4287
|
+
* Enforce specific import styles per module.
|
|
4288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
|
|
4289
|
+
*/
|
|
4290
|
+
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4291
|
+
/**
|
|
4292
|
+
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
|
|
4294
|
+
*/
|
|
4295
|
+
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4296
|
+
/**
|
|
4297
|
+
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4299
|
+
*/
|
|
4300
|
+
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4301
|
+
/**
|
|
4302
|
+
* Disallow anonymous functions and classes as the default export.
|
|
4303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
|
|
4304
|
+
*/
|
|
4305
|
+
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4306
|
+
/**
|
|
4307
|
+
* Prevent passing a function reference directly to iterator methods.
|
|
4308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
|
|
4309
|
+
*/
|
|
4310
|
+
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4311
|
+
/**
|
|
4312
|
+
* Prefer `for…of` over the `forEach` method.
|
|
4313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
|
|
4314
|
+
*/
|
|
4315
|
+
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4316
|
+
/**
|
|
4317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
4318
|
+
* @deprecated
|
|
4319
|
+
*/
|
|
4320
|
+
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
4321
|
+
/**
|
|
4322
|
+
* Disallow using the `this` argument in array methods.
|
|
4323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
|
|
4324
|
+
*/
|
|
4325
|
+
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4326
|
+
/**
|
|
4327
|
+
* Enforce combining multiple `Array#push()` into one call.
|
|
4328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
|
|
4329
|
+
*/
|
|
4330
|
+
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
4331
|
+
/**
|
|
4332
|
+
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
|
|
4334
|
+
*/
|
|
4335
|
+
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4336
|
+
/**
|
|
4337
|
+
* Disallow member access from await expression.
|
|
4338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
|
|
4339
|
+
*/
|
|
4340
|
+
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4341
|
+
/**
|
|
4342
|
+
* Disallow using `await` in `Promise` method parameters.
|
|
4343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4344
|
+
*/
|
|
4345
|
+
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4346
|
+
/**
|
|
4347
|
+
* Do not use leading/trailing space between `console.log` parameters.
|
|
4348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
|
|
4349
|
+
*/
|
|
4350
|
+
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4351
|
+
/**
|
|
4352
|
+
* Do not use `document.cookie` directly.
|
|
4353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
|
|
4354
|
+
*/
|
|
4355
|
+
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4356
|
+
/**
|
|
4357
|
+
* Disallow empty files.
|
|
4358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
|
|
4359
|
+
*/
|
|
4360
|
+
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4361
|
+
/**
|
|
4362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
4363
|
+
* @deprecated
|
|
4364
|
+
*/
|
|
4365
|
+
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
4366
|
+
/**
|
|
4367
|
+
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
|
|
4369
|
+
*/
|
|
4370
|
+
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4371
|
+
/**
|
|
4372
|
+
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
|
|
4374
|
+
*/
|
|
4375
|
+
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4376
|
+
/**
|
|
4377
|
+
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
4378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
|
|
4379
|
+
*/
|
|
4380
|
+
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
4381
|
+
/**
|
|
4382
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4384
|
+
*/
|
|
4385
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
4386
|
+
/**
|
|
4387
|
+
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4389
|
+
*/
|
|
4390
|
+
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4391
|
+
/**
|
|
4392
|
+
* Disallow identifiers starting with `new` or `class`.
|
|
4393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
|
|
4394
|
+
*/
|
|
4395
|
+
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4396
|
+
/**
|
|
4397
|
+
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
|
|
4399
|
+
*/
|
|
4400
|
+
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
4401
|
+
/**
|
|
4402
|
+
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
|
|
4404
|
+
*/
|
|
4405
|
+
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
4406
|
+
/**
|
|
4407
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4408
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4409
|
+
*/
|
|
4410
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4411
|
+
/**
|
|
4412
|
+
* Disallow negated conditions.
|
|
4413
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
|
|
4414
|
+
*/
|
|
4415
|
+
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4416
|
+
/**
|
|
4417
|
+
* Disallow negated expression in equality check.
|
|
4418
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4419
|
+
*/
|
|
4420
|
+
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
4421
|
+
/**
|
|
4422
|
+
* Disallow nested ternary expressions.
|
|
4423
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
|
|
4424
|
+
*/
|
|
4425
|
+
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4426
|
+
/**
|
|
4427
|
+
* Disallow `new Array()`.
|
|
4428
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
|
|
4429
|
+
*/
|
|
4430
|
+
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4431
|
+
/**
|
|
4432
|
+
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
|
|
4434
|
+
*/
|
|
4435
|
+
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4436
|
+
/**
|
|
4437
|
+
* Disallow the use of the `null` literal.
|
|
4438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
|
|
4439
|
+
*/
|
|
4440
|
+
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4441
|
+
/**
|
|
4442
|
+
* Disallow the use of objects as default parameters.
|
|
4443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4444
|
+
*/
|
|
4445
|
+
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4446
|
+
/**
|
|
4447
|
+
* Disallow `process.exit()`.
|
|
4448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
|
|
4449
|
+
*/
|
|
4450
|
+
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4451
|
+
/**
|
|
4452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
|
|
4453
|
+
* @deprecated
|
|
4454
|
+
*/
|
|
4455
|
+
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
4456
|
+
/**
|
|
4457
|
+
* Disallow passing single-element arrays to `Promise` methods.
|
|
4458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4459
|
+
*/
|
|
4460
|
+
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4461
|
+
/**
|
|
4462
|
+
* Disallow classes that only have static members.
|
|
4463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
|
|
4464
|
+
*/
|
|
4465
|
+
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4466
|
+
/**
|
|
4467
|
+
* Disallow `then` property.
|
|
4468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
|
|
4469
|
+
*/
|
|
4470
|
+
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4471
|
+
/**
|
|
4472
|
+
* Disallow assigning `this` to a variable.
|
|
4473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
|
|
4474
|
+
*/
|
|
4475
|
+
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4476
|
+
/**
|
|
4477
|
+
* Disallow comparing `undefined` using `typeof`.
|
|
4478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
|
|
4479
|
+
*/
|
|
4480
|
+
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4481
|
+
/**
|
|
4482
|
+
* Disallow awaiting non-promise values.
|
|
4483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
|
|
4484
|
+
*/
|
|
4485
|
+
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4486
|
+
/**
|
|
4487
|
+
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4489
|
+
*/
|
|
4490
|
+
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4491
|
+
/**
|
|
4492
|
+
* Disallow unreadable array destructuring.
|
|
4493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4494
|
+
*/
|
|
4495
|
+
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4496
|
+
/**
|
|
4497
|
+
* Disallow unreadable IIFEs.
|
|
4498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
|
|
4499
|
+
*/
|
|
4500
|
+
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4501
|
+
/**
|
|
4502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
4503
|
+
* @deprecated
|
|
4504
|
+
*/
|
|
4505
|
+
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
4506
|
+
/**
|
|
4507
|
+
* Disallow unused object properties.
|
|
4508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
|
|
4509
|
+
*/
|
|
4510
|
+
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4511
|
+
/**
|
|
4512
|
+
* Disallow useless fallback when spreading in object literals.
|
|
4513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4514
|
+
*/
|
|
4515
|
+
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4516
|
+
/**
|
|
4517
|
+
* Disallow useless array length check.
|
|
4518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
|
|
4519
|
+
*/
|
|
4520
|
+
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4521
|
+
/**
|
|
4522
|
+
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4524
|
+
*/
|
|
4525
|
+
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4526
|
+
/**
|
|
4527
|
+
* Disallow unnecessary spread.
|
|
4528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
|
|
4529
|
+
*/
|
|
4530
|
+
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4531
|
+
/**
|
|
4532
|
+
* Disallow useless case in switch statements.
|
|
4533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
|
|
4534
|
+
*/
|
|
4535
|
+
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4536
|
+
/**
|
|
4537
|
+
* Disallow useless `undefined`.
|
|
4538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
|
|
4539
|
+
*/
|
|
4540
|
+
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4541
|
+
/**
|
|
4542
|
+
* Disallow number literals with zero fractions or dangling dots.
|
|
4543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
|
|
4544
|
+
*/
|
|
4545
|
+
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4546
|
+
/**
|
|
4547
|
+
* Enforce proper case for numeric literals.
|
|
4548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
|
|
4549
|
+
*/
|
|
4550
|
+
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
4551
|
+
/**
|
|
4552
|
+
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
|
|
4554
|
+
*/
|
|
4555
|
+
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4556
|
+
/**
|
|
4557
|
+
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
|
|
4559
|
+
*/
|
|
4560
|
+
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4561
|
+
/**
|
|
4562
|
+
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
|
|
4564
|
+
*/
|
|
4565
|
+
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4566
|
+
/**
|
|
4567
|
+
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
|
|
4569
|
+
*/
|
|
4570
|
+
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4571
|
+
/**
|
|
4572
|
+
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
|
|
4574
|
+
*/
|
|
4575
|
+
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4576
|
+
/**
|
|
4577
|
+
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
|
|
4579
|
+
*/
|
|
4580
|
+
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4581
|
+
/**
|
|
4582
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
|
|
4584
|
+
*/
|
|
4585
|
+
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4586
|
+
/**
|
|
4587
|
+
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
|
|
4589
|
+
*/
|
|
4590
|
+
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4591
|
+
/**
|
|
4592
|
+
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4594
|
+
*/
|
|
4595
|
+
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4596
|
+
/**
|
|
4597
|
+
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
|
|
4599
|
+
*/
|
|
4600
|
+
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4601
|
+
/**
|
|
4602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
4603
|
+
* @deprecated
|
|
4604
|
+
*/
|
|
4605
|
+
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
4606
|
+
/**
|
|
4607
|
+
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
|
|
4609
|
+
*/
|
|
4610
|
+
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4611
|
+
/**
|
|
4612
|
+
* Prefer default parameters over reassignment.
|
|
4613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
|
|
4614
|
+
*/
|
|
4615
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4616
|
+
/**
|
|
4617
|
+
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
|
|
4619
|
+
*/
|
|
4620
|
+
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4621
|
+
/**
|
|
4622
|
+
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
4624
|
+
*/
|
|
4625
|
+
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4626
|
+
/**
|
|
4627
|
+
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
|
|
4629
|
+
*/
|
|
4630
|
+
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4631
|
+
/**
|
|
4632
|
+
* Prefer `.textContent` over `.innerText`.
|
|
4633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
4634
|
+
*/
|
|
4635
|
+
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4636
|
+
/**
|
|
4637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
4638
|
+
* @deprecated
|
|
4639
|
+
*/
|
|
4640
|
+
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
4641
|
+
/**
|
|
4642
|
+
* Prefer `EventTarget` over `EventEmitter`.
|
|
4643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
|
|
4644
|
+
*/
|
|
4645
|
+
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4646
|
+
/**
|
|
4647
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
4648
|
+
* @deprecated
|
|
4649
|
+
*/
|
|
4650
|
+
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
4651
|
+
/**
|
|
4652
|
+
* Prefer `export…from` when re-exporting.
|
|
4653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
|
|
4654
|
+
*/
|
|
4655
|
+
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4656
|
+
/**
|
|
4657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
4658
|
+
* @deprecated
|
|
4659
|
+
*/
|
|
4660
|
+
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
4661
|
+
/**
|
|
4662
|
+
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
4663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
|
|
4664
|
+
*/
|
|
4665
|
+
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
4666
|
+
/**
|
|
4667
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4668
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
|
|
4669
|
+
*/
|
|
4670
|
+
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4671
|
+
/**
|
|
4672
|
+
* Prefer reading a JSON file as a buffer.
|
|
4673
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
4674
|
+
*/
|
|
4675
|
+
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4676
|
+
/**
|
|
4677
|
+
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
4679
|
+
*/
|
|
4680
|
+
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4681
|
+
/**
|
|
4682
|
+
* Prefer using a logical operator over a ternary.
|
|
4683
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4684
|
+
*/
|
|
4685
|
+
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4686
|
+
/**
|
|
4687
|
+
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
4688
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
|
|
4689
|
+
*/
|
|
4690
|
+
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
4691
|
+
/**
|
|
4692
|
+
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
|
|
4694
|
+
*/
|
|
4695
|
+
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4696
|
+
/**
|
|
4697
|
+
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
4699
|
+
*/
|
|
4700
|
+
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4701
|
+
/**
|
|
4702
|
+
* Prefer modern `Math` APIs over legacy patterns.
|
|
4703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
|
|
4704
|
+
*/
|
|
4705
|
+
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4706
|
+
/**
|
|
4707
|
+
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
|
|
4709
|
+
*/
|
|
4710
|
+
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
4711
|
+
/**
|
|
4712
|
+
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
4714
|
+
*/
|
|
4715
|
+
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
4716
|
+
/**
|
|
4717
|
+
* Prefer negative index over `.length - index` when possible.
|
|
4718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
|
|
4719
|
+
*/
|
|
4720
|
+
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
4721
|
+
/**
|
|
4722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
4723
|
+
* @deprecated
|
|
4724
|
+
*/
|
|
4725
|
+
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
4726
|
+
/**
|
|
4727
|
+
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
|
|
4729
|
+
*/
|
|
4730
|
+
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
4731
|
+
/**
|
|
4732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
4733
|
+
* @deprecated
|
|
4734
|
+
*/
|
|
4735
|
+
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
4736
|
+
/**
|
|
4737
|
+
* Prefer `Number` static properties over global ones.
|
|
4738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
|
|
4739
|
+
*/
|
|
4740
|
+
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
4741
|
+
/**
|
|
4742
|
+
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
4743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
|
|
4744
|
+
*/
|
|
4745
|
+
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
4746
|
+
/**
|
|
4747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
4748
|
+
* @deprecated
|
|
4749
|
+
*/
|
|
4750
|
+
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
4751
|
+
/**
|
|
4752
|
+
* Prefer omitting the `catch` binding parameter.
|
|
4753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
4754
|
+
*/
|
|
4755
|
+
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
4756
|
+
/**
|
|
4757
|
+
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
|
|
4759
|
+
*/
|
|
4760
|
+
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
4761
|
+
/**
|
|
4762
|
+
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
4763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
|
|
4764
|
+
*/
|
|
4765
|
+
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
4766
|
+
/**
|
|
4767
|
+
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
|
|
4769
|
+
*/
|
|
4770
|
+
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
4771
|
+
/**
|
|
4772
|
+
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
|
|
4774
|
+
*/
|
|
4775
|
+
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
4776
|
+
/**
|
|
4777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
4778
|
+
* @deprecated
|
|
4779
|
+
*/
|
|
4780
|
+
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
4781
|
+
/**
|
|
4782
|
+
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
|
|
4784
|
+
*/
|
|
4785
|
+
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
4786
|
+
/**
|
|
4787
|
+
* Prefer using `Set#size` instead of `Array#length`.
|
|
4788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
|
|
4789
|
+
*/
|
|
4790
|
+
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
4791
|
+
/**
|
|
4792
|
+
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
4793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
|
|
4794
|
+
*/
|
|
4795
|
+
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
4796
|
+
/**
|
|
4797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
4798
|
+
* @deprecated
|
|
4799
|
+
*/
|
|
4800
|
+
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
4801
|
+
/**
|
|
4802
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
4803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
|
|
4804
|
+
*/
|
|
4805
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
4806
|
+
/**
|
|
4807
|
+
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
|
|
4809
|
+
*/
|
|
4810
|
+
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
4811
|
+
/**
|
|
4812
|
+
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
|
|
4814
|
+
*/
|
|
4815
|
+
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
4816
|
+
/**
|
|
4817
|
+
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
4819
|
+
*/
|
|
4820
|
+
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
4821
|
+
/**
|
|
4822
|
+
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
4823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
4824
|
+
*/
|
|
4825
|
+
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
4826
|
+
/**
|
|
4827
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
4828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
|
|
4829
|
+
*/
|
|
4830
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
4831
|
+
/**
|
|
4832
|
+
* Prefer `switch` over multiple `else-if`.
|
|
4833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
|
|
4834
|
+
*/
|
|
4835
|
+
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
4836
|
+
/**
|
|
4837
|
+
* Prefer ternary expressions over simple `if-else` statements.
|
|
4838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
|
|
4839
|
+
*/
|
|
4840
|
+
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
4841
|
+
/**
|
|
4842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
4843
|
+
* @deprecated
|
|
4844
|
+
*/
|
|
4845
|
+
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
4846
|
+
/**
|
|
4847
|
+
* Prefer top-level await over top-level promises and async function calls.
|
|
4848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
|
|
4849
|
+
*/
|
|
4850
|
+
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
4851
|
+
/**
|
|
4852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
4853
|
+
* @deprecated
|
|
4854
|
+
*/
|
|
4855
|
+
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
4856
|
+
/**
|
|
4857
|
+
* Enforce throwing `TypeError` in type checking conditions.
|
|
4858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
|
|
4859
|
+
*/
|
|
4860
|
+
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
4861
|
+
/**
|
|
4862
|
+
* Prevent abbreviations.
|
|
4863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
|
|
4864
|
+
*/
|
|
4865
|
+
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
4866
|
+
/**
|
|
4867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
4868
|
+
* @deprecated
|
|
4869
|
+
*/
|
|
4870
|
+
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
4871
|
+
/**
|
|
4872
|
+
* Enforce consistent relative URL style.
|
|
4873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
|
|
4874
|
+
*/
|
|
4875
|
+
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
4876
|
+
/**
|
|
4877
|
+
* Enforce using the separator argument with `Array#join()`.
|
|
4878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
|
|
4879
|
+
*/
|
|
4880
|
+
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
4881
|
+
/**
|
|
4882
|
+
* Enforce using the digits argument with `Number#toFixed()`.
|
|
4883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
4884
|
+
*/
|
|
4885
|
+
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
4886
|
+
/**
|
|
4887
|
+
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
4888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
|
|
4889
|
+
*/
|
|
4890
|
+
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
4891
|
+
/**
|
|
4892
|
+
* Enforce better string content.
|
|
4893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
|
|
4894
|
+
*/
|
|
4895
|
+
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
4896
|
+
/**
|
|
4897
|
+
* Enforce consistent brace style for `case` clauses.
|
|
4898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
|
|
4899
|
+
*/
|
|
4900
|
+
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
4901
|
+
/**
|
|
4902
|
+
* Fix whitespace-insensitive template indentation.
|
|
4903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
|
|
4904
|
+
*/
|
|
4905
|
+
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
4906
|
+
/**
|
|
4907
|
+
* Enforce consistent case for text encoding identifiers.
|
|
4908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
|
|
4909
|
+
*/
|
|
4910
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
4911
|
+
/**
|
|
4912
|
+
* Require `new` when creating an error.
|
|
4913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
|
|
4914
|
+
*/
|
|
4915
|
+
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
4018
4916
|
/**
|
|
4019
4917
|
* Require calls to `isNaN()` when checking for `NaN`
|
|
4020
4918
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
@@ -6696,6 +7594,262 @@ type MultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separ
|
|
|
6696
7594
|
}])
|
|
6697
7595
|
// ----- multiline-ternary -----
|
|
6698
7596
|
type MultilineTernary = []|[("always" | "always-multiline" | "never")]
|
|
7597
|
+
// ----- n/callback-return -----
|
|
7598
|
+
type NCallbackReturn = []|[string[]]
|
|
7599
|
+
// ----- n/exports-style -----
|
|
7600
|
+
type NExportsStyle = []|[("module.exports" | "exports")]|[("module.exports" | "exports"), {
|
|
7601
|
+
allowBatchAssign?: boolean
|
|
7602
|
+
}]
|
|
7603
|
+
// ----- n/file-extension-in-import -----
|
|
7604
|
+
type NFileExtensionInImport = []|[("always" | "never")]|[("always" | "never"), {
|
|
7605
|
+
[k: string]: ("always" | "never") | undefined
|
|
7606
|
+
}]
|
|
7607
|
+
// ----- n/handle-callback-err -----
|
|
7608
|
+
type NHandleCallbackErr = []|[string]
|
|
7609
|
+
// ----- n/hashbang -----
|
|
7610
|
+
type NHashbang = []|[{
|
|
7611
|
+
convertPath?: ({
|
|
7612
|
+
|
|
7613
|
+
[k: string]: [string, string]
|
|
7614
|
+
} | [{
|
|
7615
|
+
|
|
7616
|
+
include: [string, ...(string)[]]
|
|
7617
|
+
exclude?: string[]
|
|
7618
|
+
|
|
7619
|
+
replace: [string, string]
|
|
7620
|
+
}, ...({
|
|
7621
|
+
|
|
7622
|
+
include: [string, ...(string)[]]
|
|
7623
|
+
exclude?: string[]
|
|
7624
|
+
|
|
7625
|
+
replace: [string, string]
|
|
7626
|
+
})[]])
|
|
7627
|
+
ignoreUnpublished?: boolean
|
|
7628
|
+
additionalExecutables?: string[]
|
|
7629
|
+
executableMap?: {
|
|
7630
|
+
[k: string]: string
|
|
7631
|
+
}
|
|
7632
|
+
}]
|
|
7633
|
+
// ----- n/no-deprecated-api -----
|
|
7634
|
+
type NNoDeprecatedApi = []|[{
|
|
7635
|
+
version?: string
|
|
7636
|
+
ignoreModuleItems?: ("_linklist" | "_stream_wrap" | "async_hooks.currentId" | "async_hooks.triggerId" | "buffer.Buffer()" | "new buffer.Buffer()" | "buffer.SlowBuffer" | "constants" | "crypto._toBuf" | "crypto.Credentials" | "crypto.DEFAULT_ENCODING" | "crypto.createCipher" | "crypto.createCredentials" | "crypto.createDecipher" | "crypto.fips" | "crypto.prng" | "crypto.pseudoRandomBytes" | "crypto.rng" | "domain" | "events.EventEmitter.listenerCount" | "events.listenerCount" | "freelist" | "fs.SyncWriteStream" | "fs.exists" | "fs.lchmod" | "fs.lchmodSync" | "http.createClient" | "module.Module.createRequireFromPath" | "module.Module.requireRepl" | "module.Module._debug" | "module.createRequireFromPath" | "module.requireRepl" | "module._debug" | "net._setSimultaneousAccepts" | "os.getNetworkInterfaces" | "os.tmpDir" | "path._makeLong" | "process.EventEmitter" | "process.assert" | "process.binding" | "process.env.NODE_REPL_HISTORY_FILE" | "process.report.triggerReport" | "punycode" | "readline.codePointAt" | "readline.getStringWidth" | "readline.isFullWidthCodePoint" | "readline.stripVTControlCharacters" | "repl.REPLServer" | "repl.Recoverable" | "repl.REPL_MODE_MAGIC" | "safe-buffer.Buffer()" | "new safe-buffer.Buffer()" | "safe-buffer.SlowBuffer" | "sys" | "timers.enroll" | "timers.unenroll" | "tls.CleartextStream" | "tls.CryptoStream" | "tls.SecurePair" | "tls.convertNPNProtocols" | "tls.createSecurePair" | "tls.parseCertString" | "tty.setRawMode" | "url.parse" | "url.resolve" | "util.debug" | "util.error" | "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.print" | "util.pump" | "util.puts" | "util._extend" | "vm.runInDebugContext" | "zlib.BrotliCompress()" | "zlib.BrotliDecompress()" | "zlib.Deflate()" | "zlib.DeflateRaw()" | "zlib.Gunzip()" | "zlib.Gzip()" | "zlib.Inflate()" | "zlib.InflateRaw()" | "zlib.Unzip()")[]
|
|
7637
|
+
ignoreGlobalItems?: ("Buffer()" | "new Buffer()" | "COUNTER_NET_SERVER_CONNECTION" | "COUNTER_NET_SERVER_CONNECTION_CLOSE" | "COUNTER_HTTP_SERVER_REQUEST" | "COUNTER_HTTP_SERVER_RESPONSE" | "COUNTER_HTTP_CLIENT_REQUEST" | "COUNTER_HTTP_CLIENT_RESPONSE" | "GLOBAL" | "Intl.v8BreakIterator" | "require.extensions" | "root" | "process.EventEmitter" | "process.assert" | "process.binding" | "process.env.NODE_REPL_HISTORY_FILE" | "process.report.triggerReport")[]
|
|
7638
|
+
ignoreIndirectDependencies?: boolean
|
|
7639
|
+
}]
|
|
7640
|
+
// ----- n/no-extraneous-import -----
|
|
7641
|
+
type NNoExtraneousImport = []|[{
|
|
7642
|
+
allowModules?: string[]
|
|
7643
|
+
convertPath?: ({
|
|
7644
|
+
|
|
7645
|
+
[k: string]: [string, string]
|
|
7646
|
+
} | [{
|
|
7647
|
+
|
|
7648
|
+
include: [string, ...(string)[]]
|
|
7649
|
+
exclude?: string[]
|
|
7650
|
+
|
|
7651
|
+
replace: [string, string]
|
|
7652
|
+
}, ...({
|
|
7653
|
+
|
|
7654
|
+
include: [string, ...(string)[]]
|
|
7655
|
+
exclude?: string[]
|
|
7656
|
+
|
|
7657
|
+
replace: [string, string]
|
|
7658
|
+
})[]])
|
|
7659
|
+
resolvePaths?: string[]
|
|
7660
|
+
}]
|
|
7661
|
+
// ----- n/no-extraneous-require -----
|
|
7662
|
+
type NNoExtraneousRequire = []|[{
|
|
7663
|
+
allowModules?: string[]
|
|
7664
|
+
convertPath?: ({
|
|
7665
|
+
|
|
7666
|
+
[k: string]: [string, string]
|
|
7667
|
+
} | [{
|
|
7668
|
+
|
|
7669
|
+
include: [string, ...(string)[]]
|
|
7670
|
+
exclude?: string[]
|
|
7671
|
+
|
|
7672
|
+
replace: [string, string]
|
|
7673
|
+
}, ...({
|
|
7674
|
+
|
|
7675
|
+
include: [string, ...(string)[]]
|
|
7676
|
+
exclude?: string[]
|
|
7677
|
+
|
|
7678
|
+
replace: [string, string]
|
|
7679
|
+
})[]])
|
|
7680
|
+
resolvePaths?: string[]
|
|
7681
|
+
tryExtensions?: string[]
|
|
7682
|
+
}]
|
|
7683
|
+
// ----- n/no-hide-core-modules -----
|
|
7684
|
+
type NNoHideCoreModules = []|[{
|
|
7685
|
+
allow?: ("assert" | "buffer" | "child_process" | "cluster" | "console" | "constants" | "crypto" | "dgram" | "dns" | "events" | "fs" | "http" | "https" | "module" | "net" | "os" | "path" | "querystring" | "readline" | "repl" | "stream" | "string_decoder" | "timers" | "tls" | "tty" | "url" | "util" | "vm" | "zlib")[]
|
|
7686
|
+
ignoreDirectDependencies?: boolean
|
|
7687
|
+
ignoreIndirectDependencies?: boolean
|
|
7688
|
+
}]
|
|
7689
|
+
// ----- n/no-missing-import -----
|
|
7690
|
+
type NNoMissingImport = []|[{
|
|
7691
|
+
allowModules?: string[]
|
|
7692
|
+
resolvePaths?: string[]
|
|
7693
|
+
tryExtensions?: string[]
|
|
7694
|
+
ignoreTypeImport?: boolean
|
|
7695
|
+
tsconfigPath?: string
|
|
7696
|
+
typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"))
|
|
7697
|
+
}]
|
|
7698
|
+
// ----- n/no-missing-require -----
|
|
7699
|
+
type NNoMissingRequire = []|[{
|
|
7700
|
+
allowModules?: string[]
|
|
7701
|
+
tryExtensions?: string[]
|
|
7702
|
+
resolvePaths?: string[]
|
|
7703
|
+
typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"))
|
|
7704
|
+
tsconfigPath?: string
|
|
7705
|
+
}]
|
|
7706
|
+
// ----- n/no-mixed-requires -----
|
|
7707
|
+
type NNoMixedRequires = []|[(boolean | {
|
|
7708
|
+
grouping?: boolean
|
|
7709
|
+
allowCall?: boolean
|
|
7710
|
+
})]
|
|
7711
|
+
// ----- n/no-process-env -----
|
|
7712
|
+
type NNoProcessEnv = []|[{
|
|
7713
|
+
allowedVariables?: string[]
|
|
7714
|
+
}]
|
|
7715
|
+
// ----- n/no-restricted-import -----
|
|
7716
|
+
type NNoRestrictedImport = []|[(string | {
|
|
7717
|
+
name: (string | string[])
|
|
7718
|
+
message?: string
|
|
7719
|
+
})[]]
|
|
7720
|
+
// ----- n/no-restricted-require -----
|
|
7721
|
+
type NNoRestrictedRequire = []|[(string | {
|
|
7722
|
+
name: (string | string[])
|
|
7723
|
+
message?: string
|
|
7724
|
+
})[]]
|
|
7725
|
+
// ----- n/no-sync -----
|
|
7726
|
+
type NNoSync = []|[{
|
|
7727
|
+
allowAtRootLevel?: boolean
|
|
7728
|
+
}]
|
|
7729
|
+
// ----- n/no-unpublished-bin -----
|
|
7730
|
+
type NNoUnpublishedBin = []|[{
|
|
7731
|
+
convertPath?: ({
|
|
7732
|
+
|
|
7733
|
+
[k: string]: [string, string]
|
|
7734
|
+
} | [{
|
|
7735
|
+
|
|
7736
|
+
include: [string, ...(string)[]]
|
|
7737
|
+
exclude?: string[]
|
|
7738
|
+
|
|
7739
|
+
replace: [string, string]
|
|
7740
|
+
}, ...({
|
|
7741
|
+
|
|
7742
|
+
include: [string, ...(string)[]]
|
|
7743
|
+
exclude?: string[]
|
|
7744
|
+
|
|
7745
|
+
replace: [string, string]
|
|
7746
|
+
})[]])
|
|
7747
|
+
[k: string]: unknown | undefined
|
|
7748
|
+
}]
|
|
7749
|
+
// ----- n/no-unpublished-import -----
|
|
7750
|
+
type NNoUnpublishedImport = []|[{
|
|
7751
|
+
allowModules?: string[]
|
|
7752
|
+
convertPath?: ({
|
|
7753
|
+
|
|
7754
|
+
[k: string]: [string, string]
|
|
7755
|
+
} | [{
|
|
7756
|
+
|
|
7757
|
+
include: [string, ...(string)[]]
|
|
7758
|
+
exclude?: string[]
|
|
7759
|
+
|
|
7760
|
+
replace: [string, string]
|
|
7761
|
+
}, ...({
|
|
7762
|
+
|
|
7763
|
+
include: [string, ...(string)[]]
|
|
7764
|
+
exclude?: string[]
|
|
7765
|
+
|
|
7766
|
+
replace: [string, string]
|
|
7767
|
+
})[]])
|
|
7768
|
+
resolvePaths?: string[]
|
|
7769
|
+
ignoreTypeImport?: boolean
|
|
7770
|
+
ignorePrivate?: boolean
|
|
7771
|
+
}]
|
|
7772
|
+
// ----- n/no-unpublished-require -----
|
|
7773
|
+
type NNoUnpublishedRequire = []|[{
|
|
7774
|
+
allowModules?: string[]
|
|
7775
|
+
convertPath?: ({
|
|
7776
|
+
|
|
7777
|
+
[k: string]: [string, string]
|
|
7778
|
+
} | [{
|
|
7779
|
+
|
|
7780
|
+
include: [string, ...(string)[]]
|
|
7781
|
+
exclude?: string[]
|
|
7782
|
+
|
|
7783
|
+
replace: [string, string]
|
|
7784
|
+
}, ...({
|
|
7785
|
+
|
|
7786
|
+
include: [string, ...(string)[]]
|
|
7787
|
+
exclude?: string[]
|
|
7788
|
+
|
|
7789
|
+
replace: [string, string]
|
|
7790
|
+
})[]])
|
|
7791
|
+
resolvePaths?: string[]
|
|
7792
|
+
tryExtensions?: string[]
|
|
7793
|
+
ignorePrivate?: boolean
|
|
7794
|
+
}]
|
|
7795
|
+
// ----- n/no-unsupported-features/es-builtins -----
|
|
7796
|
+
type NNoUnsupportedFeaturesEsBuiltins = []|[{
|
|
7797
|
+
version?: string
|
|
7798
|
+
ignores?: ("AggregateError" | "Array" | "Array.from" | "Array.isArray" | "Array.length" | "Array.of" | "Array.toLocaleString" | "ArrayBuffer" | "ArrayBuffer.isView" | "Atomics" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.notify" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.wait" | "Atomics.waitAsync" | "Atomics.xor" | "BigInt" | "BigInt.asIntN" | "BigInt.asUintN" | "BigInt64Array" | "BigInt64Array.BYTES_PER_ELEMENT" | "BigInt64Array.from" | "BigInt64Array.name" | "BigInt64Array.of" | "BigUint64Array" | "BigUint64Array.BYTES_PER_ELEMENT" | "BigUint64Array.from" | "BigUint64Array.name" | "BigUint64Array.of" | "Boolean" | "DataView" | "Date" | "Date.UTC" | "Date.now" | "Date.parse" | "Date.toLocaleDateString" | "Date.toLocaleString" | "Date.toLocaleTimeString" | "Error" | "Error.cause" | "EvalError" | "FinalizationRegistry" | "Float32Array" | "Float32Array.BYTES_PER_ELEMENT" | "Float32Array.from" | "Float32Array.name" | "Float32Array.of" | "Float64Array" | "Float64Array.BYTES_PER_ELEMENT" | "Float64Array.from" | "Float64Array.name" | "Float64Array.of" | "Function" | "Function.length" | "Function.name" | "Infinity" | "Int16Array" | "Int16Array.BYTES_PER_ELEMENT" | "Int16Array.from" | "Int16Array.name" | "Int16Array.of" | "Int32Array" | "Int32Array.BYTES_PER_ELEMENT" | "Int32Array.from" | "Int32Array.name" | "Int32Array.of" | "Int8Array" | "Int8Array.BYTES_PER_ELEMENT" | "Int8Array.from" | "Int8Array.name" | "Int8Array.of" | "Intl" | "Intl.Collator" | "Intl.DateTimeFormat" | "Intl.DisplayNames" | "Intl.ListFormat" | "Intl.Locale" | "Intl.NumberFormat" | "Intl.PluralRules" | "Intl.RelativeTimeFormat" | "Intl.Segmenter" | "Intl.Segments" | "Intl.getCanonicalLocales" | "Intl.supportedValuesOf" | "JSON" | "JSON.parse" | "JSON.stringify" | "Map" | "Map.groupBy" | "Math" | "Math.E" | "Math.LN10" | "Math.LN2" | "Math.LOG10E" | "Math.LOG2E" | "Math.PI" | "Math.SQRT1_2" | "Math.SQRT2" | "Math.abs" | "Math.acos" | "Math.acosh" | "Math.asin" | "Math.asinh" | "Math.atan" | "Math.atan2" | "Math.atanh" | "Math.cbrt" | "Math.ceil" | "Math.clz32" | "Math.cos" | "Math.cosh" | "Math.exp" | "Math.expm1" | "Math.floor" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.max" | "Math.min" | "Math.pow" | "Math.random" | "Math.round" | "Math.sign" | "Math.sin" | "Math.sinh" | "Math.sqrt" | "Math.tan" | "Math.tanh" | "Math.trunc" | "NaN" | "Number.EPSILON" | "Number.MAX_SAFE_INTEGER" | "Number.MAX_VALUE" | "Number.MIN_SAFE_INTEGER" | "Number.MIN_VALUE" | "Number.NEGATIVE_INFINITY" | "Number.NaN" | "Number.POSITIVE_INFINITY" | "Number.isFinite" | "Number.isInteger" | "Number.isNaN" | "Number.isSafeInteger" | "Number.parseFloat" | "Number.parseInt" | "Number.toLocaleString" | "Object.assign" | "Object.create" | "Object.defineGetter" | "Object.defineProperties" | "Object.defineProperty" | "Object.defineSetter" | "Object.entries" | "Object.freeze" | "Object.fromEntries" | "Object.getOwnPropertyDescriptor" | "Object.getOwnPropertyDescriptors" | "Object.getOwnPropertyNames" | "Object.getOwnPropertySymbols" | "Object.getPrototypeOf" | "Object.groupBy" | "Object.hasOwn" | "Object.is" | "Object.isExtensible" | "Object.isFrozen" | "Object.isSealed" | "Object.keys" | "Object.lookupGetter" | "Object.lookupSetter" | "Object.preventExtensions" | "Object.proto" | "Object.seal" | "Object.setPrototypeOf" | "Object.values" | "Promise" | "Promise.all" | "Promise.allSettled" | "Promise.any" | "Promise.race" | "Promise.reject" | "Promise.resolve" | "Proxy" | "Proxy.revocable" | "RangeError" | "ReferenceError" | "Reflect" | "Reflect.apply" | "Reflect.construct" | "Reflect.defineProperty" | "Reflect.deleteProperty" | "Reflect.get" | "Reflect.getOwnPropertyDescriptor" | "Reflect.getPrototypeOf" | "Reflect.has" | "Reflect.isExtensible" | "Reflect.ownKeys" | "Reflect.preventExtensions" | "Reflect.set" | "Reflect.setPrototypeOf" | "RegExp" | "RegExp.dotAll" | "RegExp.hasIndices" | "RegExp.input" | "RegExp.lastIndex" | "RegExp.lastMatch" | "RegExp.lastParen" | "RegExp.leftContext" | "RegExp.n" | "RegExp.rightContext" | "Set" | "SharedArrayBuffer" | "String" | "String.fromCharCode" | "String.fromCodePoint" | "String.length" | "String.localeCompare" | "String.raw" | "String.toLocaleLowerCase" | "String.toLocaleUpperCase" | "Symbol" | "Symbol.asyncIterator" | "Symbol.for" | "Symbol.hasInstance" | "Symbol.isConcatSpreadable" | "Symbol.iterator" | "Symbol.keyFor" | "Symbol.match" | "Symbol.matchAll" | "Symbol.replace" | "Symbol.search" | "Symbol.species" | "Symbol.split" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "SyntaxError" | "TypeError" | "URIError" | "Uint16Array" | "Uint16Array.BYTES_PER_ELEMENT" | "Uint16Array.from" | "Uint16Array.name" | "Uint16Array.of" | "Uint32Array" | "Uint32Array.BYTES_PER_ELEMENT" | "Uint32Array.from" | "Uint32Array.name" | "Uint32Array.of" | "Uint8Array" | "Uint8Array.BYTES_PER_ELEMENT" | "Uint8Array.from" | "Uint8Array.name" | "Uint8Array.of" | "Uint8ClampedArray" | "Uint8ClampedArray.BYTES_PER_ELEMENT" | "Uint8ClampedArray.from" | "Uint8ClampedArray.name" | "Uint8ClampedArray.of" | "WeakMap" | "WeakRef" | "WeakSet" | "decodeURI" | "decodeURIComponent" | "encodeURI" | "encodeURIComponent" | "escape" | "eval" | "globalThis" | "isFinite" | "isNaN" | "parseFloat" | "parseInt" | "unescape")[]
|
|
7799
|
+
}]
|
|
7800
|
+
// ----- n/no-unsupported-features/es-syntax -----
|
|
7801
|
+
type NNoUnsupportedFeaturesEsSyntax = []|[{
|
|
7802
|
+
version?: string
|
|
7803
|
+
ignores?: ("no-accessor-properties" | "accessor-properties" | "accessorProperties" | "no-arbitrary-module-namespace-names" | "arbitrary-module-namespace-names" | "arbitraryModuleNamespaceNames" | "no-array-from" | "array-from" | "arrayFrom" | "no-array-isarray" | "array-isarray" | "arrayIsarray" | "no-array-of" | "array-of" | "arrayOf" | "no-array-prototype-copywithin" | "array-prototype-copywithin" | "arrayPrototypeCopywithin" | "no-array-prototype-entries" | "array-prototype-entries" | "arrayPrototypeEntries" | "no-array-prototype-every" | "array-prototype-every" | "arrayPrototypeEvery" | "no-array-prototype-fill" | "array-prototype-fill" | "arrayPrototypeFill" | "no-array-prototype-filter" | "array-prototype-filter" | "arrayPrototypeFilter" | "no-array-prototype-find" | "array-prototype-find" | "arrayPrototypeFind" | "no-array-prototype-findindex" | "array-prototype-findindex" | "arrayPrototypeFindindex" | "no-array-prototype-findlast-findlastindex" | "array-prototype-findlast-findlastindex" | "arrayPrototypeFindlastFindlastindex" | "no-array-prototype-flat" | "array-prototype-flat" | "arrayPrototypeFlat" | "no-array-prototype-foreach" | "array-prototype-foreach" | "arrayPrototypeForeach" | "no-array-prototype-includes" | "array-prototype-includes" | "arrayPrototypeIncludes" | "no-array-prototype-indexof" | "array-prototype-indexof" | "arrayPrototypeIndexof" | "no-array-prototype-keys" | "array-prototype-keys" | "arrayPrototypeKeys" | "no-array-prototype-lastindexof" | "array-prototype-lastindexof" | "arrayPrototypeLastindexof" | "no-array-prototype-map" | "array-prototype-map" | "arrayPrototypeMap" | "no-array-prototype-reduce" | "array-prototype-reduce" | "arrayPrototypeReduce" | "no-array-prototype-reduceright" | "array-prototype-reduceright" | "arrayPrototypeReduceright" | "no-array-prototype-some" | "array-prototype-some" | "arrayPrototypeSome" | "no-array-prototype-toreversed" | "array-prototype-toreversed" | "arrayPrototypeToreversed" | "no-array-prototype-tosorted" | "array-prototype-tosorted" | "arrayPrototypeTosorted" | "no-array-prototype-tospliced" | "array-prototype-tospliced" | "arrayPrototypeTospliced" | "no-array-prototype-values" | "array-prototype-values" | "arrayPrototypeValues" | "no-array-prototype-with" | "array-prototype-with" | "arrayPrototypeWith" | "no-array-string-prototype-at" | "array-string-prototype-at" | "arrayStringPrototypeAt" | "no-arrow-functions" | "arrow-functions" | "arrowFunctions" | "no-async-functions" | "async-functions" | "asyncFunctions" | "no-async-iteration" | "async-iteration" | "asyncIteration" | "no-atomics-waitasync" | "atomics-waitasync" | "atomicsWaitasync" | "no-atomics" | "atomics" | "no-bigint" | "bigint" | "no-binary-numeric-literals" | "binary-numeric-literals" | "binaryNumericLiterals" | "no-block-scoped-functions" | "block-scoped-functions" | "blockScopedFunctions" | "no-block-scoped-variables" | "block-scoped-variables" | "blockScopedVariables" | "no-class-fields" | "class-fields" | "classFields" | "no-class-static-block" | "class-static-block" | "classStaticBlock" | "no-classes" | "classes" | "no-computed-properties" | "computed-properties" | "computedProperties" | "no-date-now" | "date-now" | "dateNow" | "no-date-prototype-getyear-setyear" | "date-prototype-getyear-setyear" | "datePrototypeGetyearSetyear" | "no-date-prototype-togmtstring" | "date-prototype-togmtstring" | "datePrototypeTogmtstring" | "no-default-parameters" | "default-parameters" | "defaultParameters" | "no-destructuring" | "destructuring" | "no-dynamic-import" | "dynamic-import" | "dynamicImport" | "no-error-cause" | "error-cause" | "errorCause" | "no-escape-unescape" | "escape-unescape" | "escapeUnescape" | "no-exponential-operators" | "exponential-operators" | "exponentialOperators" | "no-export-ns-from" | "export-ns-from" | "exportNsFrom" | "no-for-of-loops" | "for-of-loops" | "forOfLoops" | "no-function-declarations-in-if-statement-clauses-without-block" | "function-declarations-in-if-statement-clauses-without-block" | "functionDeclarationsInIfStatementClausesWithoutBlock" | "no-function-prototype-bind" | "function-prototype-bind" | "functionPrototypeBind" | "no-generators" | "generators" | "no-global-this" | "global-this" | "globalThis" | "no-hashbang" | "hashbang" | "no-import-meta" | "import-meta" | "importMeta" | "no-initializers-in-for-in" | "initializers-in-for-in" | "initializersInForIn" | "no-intl-datetimeformat-prototype-formatrange" | "intl-datetimeformat-prototype-formatrange" | "intlDatetimeformatPrototypeFormatrange" | "no-intl-datetimeformat-prototype-formattoparts" | "intl-datetimeformat-prototype-formattoparts" | "intlDatetimeformatPrototypeFormattoparts" | "no-intl-displaynames" | "intl-displaynames" | "intlDisplaynames" | "no-intl-getcanonicallocales" | "intl-getcanonicallocales" | "intlGetcanonicallocales" | "no-intl-listformat" | "intl-listformat" | "intlListformat" | "no-intl-locale" | "intl-locale" | "intlLocale" | "no-intl-numberformat-prototype-formatrange" | "intl-numberformat-prototype-formatrange" | "intlNumberformatPrototypeFormatrange" | "no-intl-numberformat-prototype-formatrangetoparts" | "intl-numberformat-prototype-formatrangetoparts" | "intlNumberformatPrototypeFormatrangetoparts" | "no-intl-numberformat-prototype-formattoparts" | "intl-numberformat-prototype-formattoparts" | "intlNumberformatPrototypeFormattoparts" | "no-intl-pluralrules-prototype-selectrange" | "intl-pluralrules-prototype-selectrange" | "intlPluralrulesPrototypeSelectrange" | "no-intl-pluralrules" | "intl-pluralrules" | "intlPluralrules" | "no-intl-relativetimeformat" | "intl-relativetimeformat" | "intlRelativetimeformat" | "no-intl-segmenter" | "intl-segmenter" | "intlSegmenter" | "no-intl-supportedvaluesof" | "intl-supportedvaluesof" | "intlSupportedvaluesof" | "no-json-superset" | "json-superset" | "jsonSuperset" | "no-json" | "json" | "no-keyword-properties" | "keyword-properties" | "keywordProperties" | "no-labelled-function-declarations" | "labelled-function-declarations" | "labelledFunctionDeclarations" | "no-legacy-object-prototype-accessor-methods" | "legacy-object-prototype-accessor-methods" | "legacyObjectPrototypeAccessorMethods" | "no-logical-assignment-operators" | "logical-assignment-operators" | "logicalAssignmentOperators" | "no-malformed-template-literals" | "malformed-template-literals" | "malformedTemplateLiterals" | "no-map" | "map" | "no-math-acosh" | "math-acosh" | "mathAcosh" | "no-math-asinh" | "math-asinh" | "mathAsinh" | "no-math-atanh" | "math-atanh" | "mathAtanh" | "no-math-cbrt" | "math-cbrt" | "mathCbrt" | "no-math-clz32" | "math-clz32" | "mathClz32" | "no-math-cosh" | "math-cosh" | "mathCosh" | "no-math-expm1" | "math-expm1" | "mathExpm1" | "no-math-fround" | "math-fround" | "mathFround" | "no-math-hypot" | "math-hypot" | "mathHypot" | "no-math-imul" | "math-imul" | "mathImul" | "no-math-log10" | "math-log10" | "mathLog10" | "no-math-log1p" | "math-log1p" | "mathLog1p" | "no-math-log2" | "math-log2" | "mathLog2" | "no-math-sign" | "math-sign" | "mathSign" | "no-math-sinh" | "math-sinh" | "mathSinh" | "no-math-tanh" | "math-tanh" | "mathTanh" | "no-math-trunc" | "math-trunc" | "mathTrunc" | "no-modules" | "modules" | "no-new-target" | "new-target" | "newTarget" | "new.target" | "no-nullish-coalescing-operators" | "nullish-coalescing-operators" | "nullishCoalescingOperators" | "no-number-epsilon" | "number-epsilon" | "numberEpsilon" | "no-number-isfinite" | "number-isfinite" | "numberIsfinite" | "no-number-isinteger" | "number-isinteger" | "numberIsinteger" | "no-number-isnan" | "number-isnan" | "numberIsnan" | "no-number-issafeinteger" | "number-issafeinteger" | "numberIssafeinteger" | "no-number-maxsafeinteger" | "number-maxsafeinteger" | "numberMaxsafeinteger" | "no-number-minsafeinteger" | "number-minsafeinteger" | "numberMinsafeinteger" | "no-number-parsefloat" | "number-parsefloat" | "numberParsefloat" | "no-number-parseint" | "number-parseint" | "numberParseint" | "no-numeric-separators" | "numeric-separators" | "numericSeparators" | "no-object-assign" | "object-assign" | "objectAssign" | "no-object-create" | "object-create" | "objectCreate" | "no-object-defineproperties" | "object-defineproperties" | "objectDefineproperties" | "no-object-defineproperty" | "object-defineproperty" | "objectDefineproperty" | "no-object-entries" | "object-entries" | "objectEntries" | "no-object-freeze" | "object-freeze" | "objectFreeze" | "no-object-fromentries" | "object-fromentries" | "objectFromentries" | "no-object-getownpropertydescriptor" | "object-getownpropertydescriptor" | "objectGetownpropertydescriptor" | "no-object-getownpropertydescriptors" | "object-getownpropertydescriptors" | "objectGetownpropertydescriptors" | "no-object-getownpropertynames" | "object-getownpropertynames" | "objectGetownpropertynames" | "no-object-getownpropertysymbols" | "object-getownpropertysymbols" | "objectGetownpropertysymbols" | "no-object-getprototypeof" | "object-getprototypeof" | "objectGetprototypeof" | "no-object-hasown" | "object-hasown" | "objectHasown" | "no-object-is" | "object-is" | "objectIs" | "no-object-isextensible" | "object-isextensible" | "objectIsextensible" | "no-object-isfrozen" | "object-isfrozen" | "objectIsfrozen" | "no-object-issealed" | "object-issealed" | "objectIssealed" | "no-object-keys" | "object-keys" | "objectKeys" | "no-object-map-groupby" | "object-map-groupby" | "objectMapGroupby" | "no-object-preventextensions" | "object-preventextensions" | "objectPreventextensions" | "no-object-seal" | "object-seal" | "objectSeal" | "no-object-setprototypeof" | "object-setprototypeof" | "objectSetprototypeof" | "no-object-super-properties" | "object-super-properties" | "objectSuperProperties" | "no-object-values" | "object-values" | "objectValues" | "no-octal-numeric-literals" | "octal-numeric-literals" | "octalNumericLiterals" | "no-optional-catch-binding" | "optional-catch-binding" | "optionalCatchBinding" | "no-optional-chaining" | "optional-chaining" | "optionalChaining" | "no-private-in" | "private-in" | "privateIn" | "no-promise-all-settled" | "promise-all-settled" | "promiseAllSettled" | "no-promise-any" | "promise-any" | "promiseAny" | "no-promise-prototype-finally" | "promise-prototype-finally" | "promisePrototypeFinally" | "no-promise-withresolvers" | "promise-withresolvers" | "promiseWithresolvers" | "no-promise" | "promise" | "no-property-shorthands" | "property-shorthands" | "propertyShorthands" | "no-proxy" | "proxy" | "no-reflect" | "reflect" | "no-regexp-d-flag" | "regexp-d-flag" | "regexpDFlag" | "no-regexp-lookbehind-assertions" | "regexp-lookbehind-assertions" | "regexpLookbehindAssertions" | "regexpLookbehind" | "no-regexp-named-capture-groups" | "regexp-named-capture-groups" | "regexpNamedCaptureGroups" | "no-regexp-prototype-compile" | "regexp-prototype-compile" | "regexpPrototypeCompile" | "no-regexp-prototype-flags" | "regexp-prototype-flags" | "regexpPrototypeFlags" | "no-regexp-s-flag" | "regexp-s-flag" | "regexpSFlag" | "regexpS" | "no-regexp-u-flag" | "regexp-u-flag" | "regexpUFlag" | "regexpU" | "no-regexp-unicode-property-escapes-2019" | "regexp-unicode-property-escapes-2019" | "regexpUnicodePropertyEscapes2019" | "no-regexp-unicode-property-escapes-2020" | "regexp-unicode-property-escapes-2020" | "regexpUnicodePropertyEscapes2020" | "no-regexp-unicode-property-escapes-2021" | "regexp-unicode-property-escapes-2021" | "regexpUnicodePropertyEscapes2021" | "no-regexp-unicode-property-escapes-2022" | "regexp-unicode-property-escapes-2022" | "regexpUnicodePropertyEscapes2022" | "no-regexp-unicode-property-escapes-2023" | "regexp-unicode-property-escapes-2023" | "regexpUnicodePropertyEscapes2023" | "no-regexp-unicode-property-escapes" | "regexp-unicode-property-escapes" | "regexpUnicodePropertyEscapes" | "regexpUnicodeProperties" | "no-regexp-v-flag" | "regexp-v-flag" | "regexpVFlag" | "no-regexp-y-flag" | "regexp-y-flag" | "regexpYFlag" | "regexpY" | "no-resizable-and-growable-arraybuffers" | "resizable-and-growable-arraybuffers" | "resizableAndGrowableArraybuffers" | "no-rest-parameters" | "rest-parameters" | "restParameters" | "no-rest-spread-properties" | "rest-spread-properties" | "restSpreadProperties" | "no-set" | "set" | "no-shadow-catch-param" | "shadow-catch-param" | "shadowCatchParam" | "no-shared-array-buffer" | "shared-array-buffer" | "sharedArrayBuffer" | "no-spread-elements" | "spread-elements" | "spreadElements" | "no-string-create-html-methods" | "string-create-html-methods" | "stringCreateHtmlMethods" | "no-string-fromcodepoint" | "string-fromcodepoint" | "stringFromcodepoint" | "no-string-prototype-codepointat" | "string-prototype-codepointat" | "stringPrototypeCodepointat" | "no-string-prototype-endswith" | "string-prototype-endswith" | "stringPrototypeEndswith" | "no-string-prototype-includes" | "string-prototype-includes" | "stringPrototypeIncludes" | "no-string-prototype-iswellformed-towellformed" | "string-prototype-iswellformed-towellformed" | "stringPrototypeIswellformedTowellformed" | "no-string-prototype-matchall" | "string-prototype-matchall" | "stringPrototypeMatchall" | "no-string-prototype-normalize" | "string-prototype-normalize" | "stringPrototypeNormalize" | "no-string-prototype-padstart-padend" | "string-prototype-padstart-padend" | "stringPrototypePadstartPadend" | "no-string-prototype-repeat" | "string-prototype-repeat" | "stringPrototypeRepeat" | "no-string-prototype-replaceall" | "string-prototype-replaceall" | "stringPrototypeReplaceall" | "no-string-prototype-startswith" | "string-prototype-startswith" | "stringPrototypeStartswith" | "no-string-prototype-substr" | "string-prototype-substr" | "stringPrototypeSubstr" | "no-string-prototype-trim" | "string-prototype-trim" | "stringPrototypeTrim" | "no-string-prototype-trimleft-trimright" | "string-prototype-trimleft-trimright" | "stringPrototypeTrimleftTrimright" | "no-string-prototype-trimstart-trimend" | "string-prototype-trimstart-trimend" | "stringPrototypeTrimstartTrimend" | "no-string-raw" | "string-raw" | "stringRaw" | "no-subclassing-builtins" | "subclassing-builtins" | "subclassingBuiltins" | "no-symbol-prototype-description" | "symbol-prototype-description" | "symbolPrototypeDescription" | "no-symbol" | "symbol" | "no-template-literals" | "template-literals" | "templateLiterals" | "no-top-level-await" | "top-level-await" | "topLevelAwait" | "no-trailing-commas" | "trailing-commas" | "trailingCommas" | "no-trailing-function-commas" | "trailing-function-commas" | "trailingFunctionCommas" | "trailingCommasInFunctions" | "no-typed-arrays" | "typed-arrays" | "typedArrays" | "no-unicode-codepoint-escapes" | "unicode-codepoint-escapes" | "unicodeCodepointEscapes" | "unicodeCodePointEscapes" | "no-weak-map" | "weak-map" | "weakMap" | "no-weak-set" | "weak-set" | "weakSet" | "no-weakrefs" | "weakrefs")[]
|
|
7804
|
+
}]
|
|
7805
|
+
// ----- n/no-unsupported-features/node-builtins -----
|
|
7806
|
+
type NNoUnsupportedFeaturesNodeBuiltins = []|[{
|
|
7807
|
+
version?: string
|
|
7808
|
+
allowExperimental?: boolean
|
|
7809
|
+
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" | "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.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.release" | "process.report" | "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.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.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.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.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "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.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "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.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.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.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.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.globalAgent" | "http.createServer" | "http.get" | "http.request" | "http.Agent" | "http.Server" | "inspector" | "inspector.Session" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.Network.loadingFinished" | "inspector.Network.loadingFailed" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "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.flushCompileCache" | "module.getCompileCacheDir" | "module.isBuiltin" | "module.register" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.isBuiltin" | "module.Module.register" | "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.SocketAddress" | "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" | "test" | "test.run" | "test.skip" | "test.todo" | "test.only" | "test.describe" | "test.describe.skip" | "test.describe.todo" | "test.describe.only" | "test.it" | "test.it.skip" | "test.it.todo" | "test.it.only" | "test.suite" | "test.suite.skip" | "test.suite.todo" | "test.suite.only" | "test.before" | "test.after" | "test.beforeEach" | "test.afterEach" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.MockFunctionContext" | "test.MockModuleContext" | "test.MockTracker" | "test.MockTimers" | "test.TestsStream" | "test.TestContext" | "test.SuiteContext" | "test.test.run" | "test.test.skip" | "test.test.todo" | "test.test.only" | "test.test.describe" | "test.test.it" | "test.test.suite" | "test.test.before" | "test.test.after" | "test.test.beforeEach" | "test.test.afterEach" | "test.test.snapshot" | "test.test.MockFunctionContext" | "test.test.MockModuleContext" | "test.test.MockTracker" | "test.test.MockTimers" | "test.test.TestsStream" | "test.test.TestContext" | "test.test.SuiteContext" | "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" | "tls" | "tls.rootCertificates" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.DEFAULT_CIPHERS" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.getCiphers" | "tls.SecureContext" | "tls.CryptoStream" | "tls.SecurePair" | "tls.Server" | "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.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "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.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.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.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.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.isMainThread" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "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.constants" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.deflate" | "zlib.deflateSync" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateSync" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.unzip" | "zlib.unzipSync" | "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")[]
|
|
7810
|
+
}]
|
|
7811
|
+
// ----- n/prefer-global/buffer -----
|
|
7812
|
+
type NPreferGlobalBuffer = []|[("always" | "never")]
|
|
7813
|
+
// ----- n/prefer-global/console -----
|
|
7814
|
+
type NPreferGlobalConsole = []|[("always" | "never")]
|
|
7815
|
+
// ----- n/prefer-global/process -----
|
|
7816
|
+
type NPreferGlobalProcess = []|[("always" | "never")]
|
|
7817
|
+
// ----- n/prefer-global/text-decoder -----
|
|
7818
|
+
type NPreferGlobalTextDecoder = []|[("always" | "never")]
|
|
7819
|
+
// ----- n/prefer-global/text-encoder -----
|
|
7820
|
+
type NPreferGlobalTextEncoder = []|[("always" | "never")]
|
|
7821
|
+
// ----- n/prefer-global/url -----
|
|
7822
|
+
type NPreferGlobalUrl = []|[("always" | "never")]
|
|
7823
|
+
// ----- n/prefer-global/url-search-params -----
|
|
7824
|
+
type NPreferGlobalUrlSearchParams = []|[("always" | "never")]
|
|
7825
|
+
// ----- n/prefer-node-protocol -----
|
|
7826
|
+
type NPreferNodeProtocol = []|[{
|
|
7827
|
+
version?: string
|
|
7828
|
+
}]
|
|
7829
|
+
// ----- n/shebang -----
|
|
7830
|
+
type NShebang = []|[{
|
|
7831
|
+
convertPath?: ({
|
|
7832
|
+
|
|
7833
|
+
[k: string]: [string, string]
|
|
7834
|
+
} | [{
|
|
7835
|
+
|
|
7836
|
+
include: [string, ...(string)[]]
|
|
7837
|
+
exclude?: string[]
|
|
7838
|
+
|
|
7839
|
+
replace: [string, string]
|
|
7840
|
+
}, ...({
|
|
7841
|
+
|
|
7842
|
+
include: [string, ...(string)[]]
|
|
7843
|
+
exclude?: string[]
|
|
7844
|
+
|
|
7845
|
+
replace: [string, string]
|
|
7846
|
+
})[]])
|
|
7847
|
+
ignoreUnpublished?: boolean
|
|
7848
|
+
additionalExecutables?: string[]
|
|
7849
|
+
executableMap?: {
|
|
7850
|
+
[k: string]: string
|
|
7851
|
+
}
|
|
7852
|
+
}]
|
|
6699
7853
|
// ----- new-cap -----
|
|
6700
7854
|
type NewCap = []|[{
|
|
6701
7855
|
newIsCap?: boolean
|
|
@@ -8332,6 +9486,204 @@ type TestingLibraryPreferUserEvent = []|[{
|
|
|
8332
9486
|
}]
|
|
8333
9487
|
// ----- unicode-bom -----
|
|
8334
9488
|
type UnicodeBom = []|[("always" | "never")]
|
|
9489
|
+
// ----- unicorn/better-regex -----
|
|
9490
|
+
type UnicornBetterRegex = []|[{
|
|
9491
|
+
sortCharacterClasses?: boolean
|
|
9492
|
+
}]
|
|
9493
|
+
// ----- unicorn/catch-error-name -----
|
|
9494
|
+
type UnicornCatchErrorName = []|[{
|
|
9495
|
+
name?: string
|
|
9496
|
+
ignore?: unknown[]
|
|
9497
|
+
}]
|
|
9498
|
+
// ----- unicorn/consistent-function-scoping -----
|
|
9499
|
+
type UnicornConsistentFunctionScoping = []|[{
|
|
9500
|
+
checkArrowFunctions?: boolean
|
|
9501
|
+
}]
|
|
9502
|
+
// ----- unicorn/expiring-todo-comments -----
|
|
9503
|
+
type UnicornExpiringTodoComments = []|[{
|
|
9504
|
+
terms?: string[]
|
|
9505
|
+
ignore?: unknown[]
|
|
9506
|
+
ignoreDatesOnPullRequests?: boolean
|
|
9507
|
+
allowWarningComments?: boolean
|
|
9508
|
+
date?: string
|
|
9509
|
+
}]
|
|
9510
|
+
// ----- unicorn/explicit-length-check -----
|
|
9511
|
+
type UnicornExplicitLengthCheck = []|[{
|
|
9512
|
+
"non-zero"?: ("greater-than" | "not-equal")
|
|
9513
|
+
}]
|
|
9514
|
+
// ----- unicorn/filename-case -----
|
|
9515
|
+
type UnicornFilenameCase = []|[({
|
|
9516
|
+
case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase")
|
|
9517
|
+
ignore?: unknown[]
|
|
9518
|
+
multipleFileExtensions?: boolean
|
|
9519
|
+
} | {
|
|
9520
|
+
cases?: {
|
|
9521
|
+
camelCase?: boolean
|
|
9522
|
+
snakeCase?: boolean
|
|
9523
|
+
kebabCase?: boolean
|
|
9524
|
+
pascalCase?: boolean
|
|
9525
|
+
}
|
|
9526
|
+
ignore?: unknown[]
|
|
9527
|
+
multipleFileExtensions?: boolean
|
|
9528
|
+
})]
|
|
9529
|
+
// ----- unicorn/import-style -----
|
|
9530
|
+
type UnicornImportStyle = []|[{
|
|
9531
|
+
checkImport?: boolean
|
|
9532
|
+
checkDynamicImport?: boolean
|
|
9533
|
+
checkExportFrom?: boolean
|
|
9534
|
+
checkRequire?: boolean
|
|
9535
|
+
extendDefaultStyles?: boolean
|
|
9536
|
+
styles?: _UnicornImportStyle_ModuleStyles
|
|
9537
|
+
}]
|
|
9538
|
+
type _UnicornImportStyleStyles = (false | _UnicornImportStyle_BooleanObject) | undefined
|
|
9539
|
+
interface _UnicornImportStyle_ModuleStyles {
|
|
9540
|
+
[k: string]: _UnicornImportStyleStyles | undefined
|
|
9541
|
+
}
|
|
9542
|
+
interface _UnicornImportStyle_BooleanObject {
|
|
9543
|
+
[k: string]: boolean | undefined
|
|
9544
|
+
}
|
|
9545
|
+
// ----- unicorn/no-array-push-push -----
|
|
9546
|
+
type UnicornNoArrayPushPush = []|[{
|
|
9547
|
+
ignore?: unknown[]
|
|
9548
|
+
}]
|
|
9549
|
+
// ----- unicorn/no-array-reduce -----
|
|
9550
|
+
type UnicornNoArrayReduce = []|[{
|
|
9551
|
+
allowSimpleOperations?: boolean
|
|
9552
|
+
}]
|
|
9553
|
+
// ----- unicorn/no-keyword-prefix -----
|
|
9554
|
+
type UnicornNoKeywordPrefix = []|[{
|
|
9555
|
+
|
|
9556
|
+
disallowedPrefixes?: []|[string]
|
|
9557
|
+
checkProperties?: boolean
|
|
9558
|
+
onlyCamelCase?: boolean
|
|
9559
|
+
}]
|
|
9560
|
+
// ----- unicorn/no-null -----
|
|
9561
|
+
type UnicornNoNull = []|[{
|
|
9562
|
+
checkStrictEquality?: boolean
|
|
9563
|
+
}]
|
|
9564
|
+
// ----- unicorn/no-typeof-undefined -----
|
|
9565
|
+
type UnicornNoTypeofUndefined = []|[{
|
|
9566
|
+
checkGlobalVariables?: boolean
|
|
9567
|
+
}]
|
|
9568
|
+
// ----- unicorn/no-unnecessary-polyfills -----
|
|
9569
|
+
type UnicornNoUnnecessaryPolyfills = []|[{
|
|
9570
|
+
targets: (string | unknown[] | {
|
|
9571
|
+
[k: string]: unknown | undefined
|
|
9572
|
+
})
|
|
9573
|
+
}]
|
|
9574
|
+
// ----- unicorn/no-useless-undefined -----
|
|
9575
|
+
type UnicornNoUselessUndefined = []|[{
|
|
9576
|
+
checkArguments?: boolean
|
|
9577
|
+
checkArrowFunctionBody?: boolean
|
|
9578
|
+
}]
|
|
9579
|
+
// ----- unicorn/numeric-separators-style -----
|
|
9580
|
+
type UnicornNumericSeparatorsStyle = []|[{
|
|
9581
|
+
binary?: {
|
|
9582
|
+
onlyIfContainsSeparator?: boolean
|
|
9583
|
+
minimumDigits?: number
|
|
9584
|
+
groupLength?: number
|
|
9585
|
+
}
|
|
9586
|
+
octal?: {
|
|
9587
|
+
onlyIfContainsSeparator?: boolean
|
|
9588
|
+
minimumDigits?: number
|
|
9589
|
+
groupLength?: number
|
|
9590
|
+
}
|
|
9591
|
+
hexadecimal?: {
|
|
9592
|
+
onlyIfContainsSeparator?: boolean
|
|
9593
|
+
minimumDigits?: number
|
|
9594
|
+
groupLength?: number
|
|
9595
|
+
}
|
|
9596
|
+
number?: {
|
|
9597
|
+
onlyIfContainsSeparator?: boolean
|
|
9598
|
+
minimumDigits?: number
|
|
9599
|
+
groupLength?: number
|
|
9600
|
+
}
|
|
9601
|
+
onlyIfContainsSeparator?: boolean
|
|
9602
|
+
}]
|
|
9603
|
+
// ----- unicorn/prefer-add-event-listener -----
|
|
9604
|
+
type UnicornPreferAddEventListener = []|[{
|
|
9605
|
+
excludedPackages?: string[]
|
|
9606
|
+
}]
|
|
9607
|
+
// ----- unicorn/prefer-array-find -----
|
|
9608
|
+
type UnicornPreferArrayFind = []|[{
|
|
9609
|
+
checkFromLast?: boolean
|
|
9610
|
+
}]
|
|
9611
|
+
// ----- unicorn/prefer-array-flat -----
|
|
9612
|
+
type UnicornPreferArrayFlat = []|[{
|
|
9613
|
+
functions?: unknown[]
|
|
9614
|
+
}]
|
|
9615
|
+
// ----- unicorn/prefer-at -----
|
|
9616
|
+
type UnicornPreferAt = []|[{
|
|
9617
|
+
getLastElementFunctions?: unknown[]
|
|
9618
|
+
checkAllIndexAccess?: boolean
|
|
9619
|
+
}]
|
|
9620
|
+
// ----- unicorn/prefer-export-from -----
|
|
9621
|
+
type UnicornPreferExportFrom = []|[{
|
|
9622
|
+
ignoreUsedVariables?: boolean
|
|
9623
|
+
}]
|
|
9624
|
+
// ----- unicorn/prefer-number-properties -----
|
|
9625
|
+
type UnicornPreferNumberProperties = []|[{
|
|
9626
|
+
checkInfinity?: boolean
|
|
9627
|
+
checkNaN?: boolean
|
|
9628
|
+
}]
|
|
9629
|
+
// ----- unicorn/prefer-object-from-entries -----
|
|
9630
|
+
type UnicornPreferObjectFromEntries = []|[{
|
|
9631
|
+
functions?: unknown[]
|
|
9632
|
+
}]
|
|
9633
|
+
// ----- unicorn/prefer-structured-clone -----
|
|
9634
|
+
type UnicornPreferStructuredClone = []|[{
|
|
9635
|
+
functions?: unknown[]
|
|
9636
|
+
}]
|
|
9637
|
+
// ----- unicorn/prefer-switch -----
|
|
9638
|
+
type UnicornPreferSwitch = []|[{
|
|
9639
|
+
minimumCases?: number
|
|
9640
|
+
emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case")
|
|
9641
|
+
}]
|
|
9642
|
+
// ----- unicorn/prefer-ternary -----
|
|
9643
|
+
type UnicornPreferTernary = []|[("always" | "only-single-line")]
|
|
9644
|
+
// ----- unicorn/prevent-abbreviations -----
|
|
9645
|
+
type UnicornPreventAbbreviations = []|[{
|
|
9646
|
+
checkProperties?: boolean
|
|
9647
|
+
checkVariables?: boolean
|
|
9648
|
+
checkDefaultAndNamespaceImports?: (boolean | string)
|
|
9649
|
+
checkShorthandImports?: (boolean | string)
|
|
9650
|
+
checkShorthandProperties?: boolean
|
|
9651
|
+
checkFilenames?: boolean
|
|
9652
|
+
extendDefaultReplacements?: boolean
|
|
9653
|
+
replacements?: _UnicornPreventAbbreviations_Abbreviations
|
|
9654
|
+
extendDefaultAllowList?: boolean
|
|
9655
|
+
allowList?: _UnicornPreventAbbreviations_BooleanObject
|
|
9656
|
+
ignore?: unknown[]
|
|
9657
|
+
}]
|
|
9658
|
+
type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined
|
|
9659
|
+
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
9660
|
+
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined
|
|
9661
|
+
}
|
|
9662
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
9663
|
+
[k: string]: boolean | undefined
|
|
9664
|
+
}
|
|
9665
|
+
// ----- unicorn/relative-url-style -----
|
|
9666
|
+
type UnicornRelativeUrlStyle = []|[("never" | "always")]
|
|
9667
|
+
// ----- unicorn/string-content -----
|
|
9668
|
+
type UnicornStringContent = []|[{
|
|
9669
|
+
patterns?: {
|
|
9670
|
+
[k: string]: (string | {
|
|
9671
|
+
suggest: string
|
|
9672
|
+
fix?: boolean
|
|
9673
|
+
message?: string
|
|
9674
|
+
}) | undefined
|
|
9675
|
+
}
|
|
9676
|
+
}]
|
|
9677
|
+
// ----- unicorn/switch-case-braces -----
|
|
9678
|
+
type UnicornSwitchCaseBraces = []|[("always" | "avoid")]
|
|
9679
|
+
// ----- unicorn/template-indent -----
|
|
9680
|
+
type UnicornTemplateIndent = []|[{
|
|
9681
|
+
indent?: (string | number)
|
|
9682
|
+
tags?: string[]
|
|
9683
|
+
functions?: string[]
|
|
9684
|
+
selectors?: string[]
|
|
9685
|
+
comments?: string[]
|
|
9686
|
+
}]
|
|
8335
9687
|
// ----- use-isnan -----
|
|
8336
9688
|
type UseIsnan = []|[{
|
|
8337
9689
|
enforceForSwitchCase?: boolean
|
|
@@ -8436,7 +9788,7 @@ interface Options {
|
|
|
8436
9788
|
typescript?: boolean | TypescriptOptions;
|
|
8437
9789
|
}
|
|
8438
9790
|
|
|
8439
|
-
declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, testing, typescript, }?: Options, ...moreConfigs: Linter.Config[] | TypedConfigItem[]) => (Linter.Config<Linter.RulesRecord> |
|
|
9791
|
+
declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, testing, typescript, }?: Options, ...moreConfigs: Linter.Config[] | TypedConfigItem[]) => (TypedConfigItem | Linter.Config<Linter.RulesRecord> | _typescript_eslint_utils_ts_eslint.FlatConfig.Config | {
|
|
8440
9792
|
name: string;
|
|
8441
9793
|
settings: {
|
|
8442
9794
|
"import-x/core-modules": string[];
|
|
@@ -8482,7 +9834,9 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
8482
9834
|
name: string;
|
|
8483
9835
|
plugins: {
|
|
8484
9836
|
"import-x": eslint.ESLint.Plugin;
|
|
8485
|
-
|
|
9837
|
+
n: eslint.ESLint.Plugin & {
|
|
9838
|
+
configs: eslint_plugin_n.Configs;
|
|
9839
|
+
};
|
|
8486
9840
|
};
|
|
8487
9841
|
rules: {
|
|
8488
9842
|
"import-x/consistent-type-specifier-style": ["error", "prefer-top-level"];
|
|
@@ -8493,7 +9847,6 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
8493
9847
|
"import-x/no-empty-named-blocks": "error";
|
|
8494
9848
|
"import-x/no-self-import": "error";
|
|
8495
9849
|
"import-x/no-useless-path-segments": "error";
|
|
8496
|
-
"node-import/prefer-node-protocol": "error";
|
|
8497
9850
|
'import-x/no-unresolved': "error";
|
|
8498
9851
|
'import-x/named': "error";
|
|
8499
9852
|
'import-x/default': "error";
|
|
@@ -8507,6 +9860,17 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
8507
9860
|
espree: string[];
|
|
8508
9861
|
};
|
|
8509
9862
|
};
|
|
9863
|
+
} | {
|
|
9864
|
+
name: string;
|
|
9865
|
+
plugins: {
|
|
9866
|
+
n: eslint.ESLint.Plugin & {
|
|
9867
|
+
configs: eslint_plugin_n.Configs;
|
|
9868
|
+
};
|
|
9869
|
+
};
|
|
9870
|
+
rules: {
|
|
9871
|
+
"n/no-process-exit": "off";
|
|
9872
|
+
"n/prefer-node-protocol": "error";
|
|
9873
|
+
};
|
|
8510
9874
|
} | {
|
|
8511
9875
|
name: string;
|
|
8512
9876
|
plugins: {
|
|
@@ -10232,6 +11596,35 @@ declare const jimmyDotCodes: ({ astro, autoDetect, configs, ignores, react, test
|
|
|
10232
11596
|
} | {
|
|
10233
11597
|
name: string;
|
|
10234
11598
|
rules: {
|
|
11599
|
+
"unicorn/filename-case": "off";
|
|
11600
|
+
"unicorn/import-style": "off";
|
|
11601
|
+
"unicorn/no-abusive-eslint-disable": "off";
|
|
11602
|
+
"unicorn/no-anonymous-default-export": "off";
|
|
11603
|
+
"unicorn/no-array-callback-reference": "off";
|
|
11604
|
+
"unicorn/no-array-reduce": "off";
|
|
11605
|
+
"unicorn/no-null": "off";
|
|
11606
|
+
"unicorn/no-process-exit": "off";
|
|
11607
|
+
"unicorn/no-useless-undefined": ["error", {
|
|
11608
|
+
checkArguments: false;
|
|
11609
|
+
checkArrowFunctionBody: false;
|
|
11610
|
+
}];
|
|
11611
|
+
"unicorn/prefer-node-protocol": "off";
|
|
11612
|
+
"unicorn/prevent-abbreviations": "off";
|
|
11613
|
+
};
|
|
11614
|
+
files?: Array<string | string[]>;
|
|
11615
|
+
ignores?: string[];
|
|
11616
|
+
language?: string;
|
|
11617
|
+
languageOptions?: Linter.LanguageOptions;
|
|
11618
|
+
linterOptions?: Linter.LinterOptions;
|
|
11619
|
+
processor?: string | Linter.Processor;
|
|
11620
|
+
plugins?: Record<string, eslint.ESLint.Plugin>;
|
|
11621
|
+
settings?: Record<string, unknown>;
|
|
11622
|
+
} | {
|
|
11623
|
+
name: string;
|
|
11624
|
+
rules: {
|
|
11625
|
+
"array-callback-return": ["error", {
|
|
11626
|
+
allowImplicit: true;
|
|
11627
|
+
}];
|
|
10235
11628
|
"arrow-body-style": ["error", "always"];
|
|
10236
11629
|
curly: ["error", "multi-or-nest", "consistent"];
|
|
10237
11630
|
"no-console": "warn";
|