@rotki/eslint-config 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +803 -564
- package/dist/index.mjs +74 -57
- package/package.json +37 -37
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,328 @@
|
|
|
1
1
|
import { ConfigWithExtends, FlatConfigComposer } from "eslint-flat-config-utils";
|
|
2
|
+
import { Linter } from "eslint";
|
|
3
|
+
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
2
4
|
import { StylisticCustomizeOptions } from "@stylistic/eslint-plugin";
|
|
3
5
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
4
|
-
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
5
6
|
import { Options } from "eslint-processor-vue-blocks";
|
|
6
|
-
import { Linter } from "eslint";
|
|
7
7
|
|
|
8
|
+
//#region src/vendor/prettier.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Vendor types from Prettier so we don't rely on the dependency.
|
|
11
|
+
*/
|
|
12
|
+
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
|
13
|
+
interface VendoredPrettierOptionsRequired {
|
|
14
|
+
/**
|
|
15
|
+
* Specify the line length that the printer will wrap on.
|
|
16
|
+
* @default 120
|
|
17
|
+
*/
|
|
18
|
+
printWidth: number;
|
|
19
|
+
/**
|
|
20
|
+
* Specify the number of spaces per indentation-level.
|
|
21
|
+
*/
|
|
22
|
+
tabWidth: number;
|
|
23
|
+
/**
|
|
24
|
+
* Indent lines with tabs instead of spaces
|
|
25
|
+
*/
|
|
26
|
+
useTabs?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Print semicolons at the ends of statements.
|
|
29
|
+
*/
|
|
30
|
+
semi: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Use single quotes instead of double quotes.
|
|
33
|
+
*/
|
|
34
|
+
singleQuote: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Use single quotes in JSX.
|
|
37
|
+
*/
|
|
38
|
+
jsxSingleQuote: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Print trailing commas wherever possible.
|
|
41
|
+
*/
|
|
42
|
+
trailingComma: 'none' | 'es5' | 'all';
|
|
43
|
+
/**
|
|
44
|
+
* Print spaces between brackets in object literals.
|
|
45
|
+
*/
|
|
46
|
+
bracketSpacing: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being
|
|
49
|
+
* alone on the next line (does not apply to self closing elements).
|
|
50
|
+
*/
|
|
51
|
+
bracketSameLine: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line.
|
|
54
|
+
* @deprecated use bracketSameLine instead
|
|
55
|
+
*/
|
|
56
|
+
jsxBracketSameLine: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Format only a segment of a file.
|
|
59
|
+
*/
|
|
60
|
+
rangeStart: number;
|
|
61
|
+
/**
|
|
62
|
+
* Format only a segment of a file.
|
|
63
|
+
* @default Number.POSITIVE_INFINITY
|
|
64
|
+
*/
|
|
65
|
+
rangeEnd: number;
|
|
66
|
+
/**
|
|
67
|
+
* By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer.
|
|
68
|
+
* In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
|
|
69
|
+
* @default "preserve"
|
|
70
|
+
*/
|
|
71
|
+
proseWrap: 'always' | 'never' | 'preserve';
|
|
72
|
+
/**
|
|
73
|
+
* Include parentheses around a sole arrow function parameter.
|
|
74
|
+
* @default "always"
|
|
75
|
+
*/
|
|
76
|
+
arrowParens: 'avoid' | 'always';
|
|
77
|
+
/**
|
|
78
|
+
* Provide ability to support new languages to prettier.
|
|
79
|
+
*/
|
|
80
|
+
plugins: Array<string | any>;
|
|
81
|
+
/**
|
|
82
|
+
* How to handle whitespaces in HTML.
|
|
83
|
+
* @default "css"
|
|
84
|
+
*/
|
|
85
|
+
htmlWhitespaceSensitivity: 'css' | 'strict' | 'ignore';
|
|
86
|
+
/**
|
|
87
|
+
* Which end of line characters to apply.
|
|
88
|
+
* @default "lf"
|
|
89
|
+
*/
|
|
90
|
+
endOfLine: 'auto' | 'lf' | 'crlf' | 'cr';
|
|
91
|
+
/**
|
|
92
|
+
* Change when properties in objects are quoted.
|
|
93
|
+
* @default "as-needed"
|
|
94
|
+
*/
|
|
95
|
+
quoteProps: 'as-needed' | 'consistent' | 'preserve';
|
|
96
|
+
/**
|
|
97
|
+
* Whether or not to indent the code inside <script> and <style> tags in Vue files.
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
vueIndentScriptAndStyle: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Enforce single attribute per line in HTML, XML, Vue and JSX.
|
|
103
|
+
* @default false
|
|
104
|
+
*/
|
|
105
|
+
singleAttributePerLine: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* How to handle whitespaces in XML.
|
|
108
|
+
* @default "preserve"
|
|
109
|
+
*/
|
|
110
|
+
xmlQuoteAttributes: 'single' | 'double' | 'preserve';
|
|
111
|
+
/**
|
|
112
|
+
* Whether to put a space inside the brackets of self-closing XML elements.
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
xmlSelfClosingSpace: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Whether to sort attributes by key in XML elements.
|
|
118
|
+
* @default false
|
|
119
|
+
*/
|
|
120
|
+
xmlSortAttributesByKey: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* How to handle whitespaces in XML.
|
|
123
|
+
* @default "ignore"
|
|
124
|
+
*/
|
|
125
|
+
xmlWhitespaceSensitivity: 'ignore' | 'strict' | 'preserve';
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/options.d.ts
|
|
129
|
+
type OptionsTypescript = (OptionsTypeScriptWithTypes & OptionsOverrides) | (OptionsTypeScriptParserOptions & OptionsOverrides);
|
|
130
|
+
interface OptionsFormatters {
|
|
131
|
+
/**
|
|
132
|
+
* Enable formatting support for CSS, Less, Sass, and SCSS.
|
|
133
|
+
*
|
|
134
|
+
* Currently only support Prettier.
|
|
135
|
+
*/
|
|
136
|
+
css?: 'prettier' | boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Enable formatting support for HTML.
|
|
139
|
+
*
|
|
140
|
+
* Currently only support Prettier.
|
|
141
|
+
*/
|
|
142
|
+
html?: 'prettier' | boolean;
|
|
143
|
+
/**
|
|
144
|
+
* Enable formatting support for XML.
|
|
145
|
+
*
|
|
146
|
+
* Currently only support Prettier.
|
|
147
|
+
*/
|
|
148
|
+
xml?: 'prettier' | boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Enable formatting support for Markdown.
|
|
151
|
+
*
|
|
152
|
+
* Support both Prettier and dprint.
|
|
153
|
+
*
|
|
154
|
+
* When set to `true`, it will use Prettier.
|
|
155
|
+
*/
|
|
156
|
+
markdown?: 'prettier' | 'dprint' | boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Custom options for Prettier.
|
|
159
|
+
*
|
|
160
|
+
* By default it's controlled by our own config.
|
|
161
|
+
*/
|
|
162
|
+
prettierOptions?: VendoredPrettierOptions;
|
|
163
|
+
/**
|
|
164
|
+
* Custom options for dprint.
|
|
165
|
+
*
|
|
166
|
+
* By default it's controlled by our own config.
|
|
167
|
+
*/
|
|
168
|
+
dprintOptions?: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface OptionsFiles {
|
|
171
|
+
/**
|
|
172
|
+
* Override the `files` option to provide custom globs.
|
|
173
|
+
*/
|
|
174
|
+
files?: string[];
|
|
175
|
+
}
|
|
176
|
+
interface OptionsVue extends OptionsOverrides {
|
|
177
|
+
/**
|
|
178
|
+
* Create virtual files for Vue SFC blocks to enable linting.
|
|
179
|
+
*
|
|
180
|
+
* @see https://github.com/antfu/eslint-processor-vue-blocks
|
|
181
|
+
* @default true
|
|
182
|
+
*/
|
|
183
|
+
sfcBlocks?: boolean | Options;
|
|
184
|
+
}
|
|
185
|
+
interface VueI18nNoRawTextIgnores {
|
|
186
|
+
nodes?: string[];
|
|
187
|
+
pattern?: string;
|
|
188
|
+
text?: string[];
|
|
189
|
+
}
|
|
190
|
+
interface OptionsVueI18n extends OptionsOverrides {
|
|
191
|
+
/**
|
|
192
|
+
* The source directory where of the project where vue-i18n is setup.
|
|
193
|
+
*/
|
|
194
|
+
src?: string;
|
|
195
|
+
/**
|
|
196
|
+
* The locales directory under the source directory
|
|
197
|
+
*
|
|
198
|
+
* @default locales
|
|
199
|
+
*/
|
|
200
|
+
localesDirectory?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Optional configuration for @intlify/vue-i18n/no-raw-text rule
|
|
203
|
+
*/
|
|
204
|
+
noRawTextIgnores?: VueI18nNoRawTextIgnores;
|
|
205
|
+
}
|
|
206
|
+
interface OptionsRotkiPlugin extends OptionsOverrides {
|
|
207
|
+
/** Key patterns ignored by @rotki/no-unused-i18n-keys */
|
|
208
|
+
ignoreKeys?: string[];
|
|
209
|
+
/** @default 'src' */
|
|
210
|
+
src?: string;
|
|
211
|
+
}
|
|
212
|
+
interface OptionsOverrides {
|
|
213
|
+
overrides?: TypedFlatConfigItem['rules'];
|
|
214
|
+
}
|
|
215
|
+
interface OptionsProjectType {
|
|
216
|
+
/**
|
|
217
|
+
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
218
|
+
*
|
|
219
|
+
* @default 'app'
|
|
220
|
+
*/
|
|
221
|
+
type?: 'app' | 'lib';
|
|
222
|
+
}
|
|
223
|
+
interface OptionsRegExp {
|
|
224
|
+
/**
|
|
225
|
+
* Override rulelevels
|
|
226
|
+
*/
|
|
227
|
+
level?: 'error' | 'warn';
|
|
228
|
+
}
|
|
229
|
+
interface OptionsComponentExts {
|
|
230
|
+
/**
|
|
231
|
+
* Additional extensions for components.
|
|
232
|
+
*
|
|
233
|
+
* @example ['vue']
|
|
234
|
+
* @default []
|
|
235
|
+
*/
|
|
236
|
+
componentExts?: string[];
|
|
237
|
+
}
|
|
238
|
+
interface OptionsMarkdown extends OptionsOverrides {
|
|
239
|
+
/**
|
|
240
|
+
* Use GitHub Flavored Markdown
|
|
241
|
+
*
|
|
242
|
+
* @default true
|
|
243
|
+
*/
|
|
244
|
+
gfm?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* Override rules for markdown source files.
|
|
247
|
+
*/
|
|
248
|
+
overridesMarkdown?: TypedFlatConfigItem['rules'];
|
|
249
|
+
}
|
|
250
|
+
interface OptionsE18e extends OptionsOverrides {
|
|
251
|
+
/**
|
|
252
|
+
* Enable modernization rules.
|
|
253
|
+
*
|
|
254
|
+
* @default true
|
|
255
|
+
*/
|
|
256
|
+
modernization?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Enable module replacement rules.
|
|
259
|
+
*
|
|
260
|
+
* @default true when `type === 'lib'` and `isInEditor`
|
|
261
|
+
*/
|
|
262
|
+
moduleReplacements?: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* Enable performance improvement rules.
|
|
265
|
+
*
|
|
266
|
+
* @default true
|
|
267
|
+
*/
|
|
268
|
+
performanceImprovements?: boolean;
|
|
269
|
+
}
|
|
270
|
+
interface OptionsUnicorn {
|
|
271
|
+
/**
|
|
272
|
+
* Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
|
|
273
|
+
*
|
|
274
|
+
* @default false
|
|
275
|
+
*/
|
|
276
|
+
allRecommended?: boolean;
|
|
277
|
+
}
|
|
278
|
+
interface OptionsTypeScriptParserOptions {
|
|
279
|
+
/**
|
|
280
|
+
* Additional parser options for TypeScript.
|
|
281
|
+
*/
|
|
282
|
+
parserOptions?: Partial<ParserOptions>;
|
|
283
|
+
/**
|
|
284
|
+
* Glob patterns for files that should be type aware.
|
|
285
|
+
* @default ['**\/*.{ts,tsx}']
|
|
286
|
+
*/
|
|
287
|
+
filesTypeAware?: string[];
|
|
288
|
+
/**
|
|
289
|
+
* Glob patterns for files that should not be type aware.
|
|
290
|
+
* @default ['**\/*.md\/**', '**\/*.astro/*.ts']
|
|
291
|
+
*/
|
|
292
|
+
ignoresTypeAware?: string[];
|
|
293
|
+
}
|
|
294
|
+
interface OptionsTypeScriptWithTypes {
|
|
295
|
+
/**
|
|
296
|
+
* When this options is provided, type aware rules will be enabled.
|
|
297
|
+
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
298
|
+
*/
|
|
299
|
+
tsconfigPath?: string;
|
|
300
|
+
/**
|
|
301
|
+
* Override type-aware rules.
|
|
302
|
+
*/
|
|
303
|
+
overridesTypeAware?: TypedFlatConfigItem['rules'];
|
|
304
|
+
}
|
|
305
|
+
interface OptionsHasTypeScript {
|
|
306
|
+
typescript?: boolean;
|
|
307
|
+
}
|
|
308
|
+
interface OptionsStylistic {
|
|
309
|
+
stylistic?: boolean | StylisticConfig;
|
|
310
|
+
}
|
|
311
|
+
interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'quotes' | 'jsx' | 'semi'> {}
|
|
312
|
+
interface OptionsIsInEditor {
|
|
313
|
+
isInEditor?: boolean;
|
|
314
|
+
}
|
|
315
|
+
interface OptionsPnpm extends OptionsIsInEditor {
|
|
316
|
+
/** Requires catalogs usage. Detects automatically based on pnpm-workspace.yaml */
|
|
317
|
+
catalogs?: boolean;
|
|
318
|
+
/** Enable linting for package.json @default true */
|
|
319
|
+
json?: boolean;
|
|
320
|
+
/** Enable linting for pnpm-workspace.yaml @default true */
|
|
321
|
+
yaml?: boolean;
|
|
322
|
+
/** Sort entries in pnpm-workspace.yaml @default false */
|
|
323
|
+
sort?: boolean;
|
|
324
|
+
}
|
|
325
|
+
//#endregion
|
|
8
326
|
//#region src/typegen.d.ts
|
|
9
327
|
interface RuleOptions {
|
|
10
328
|
/**
|
|
@@ -116,7 +434,7 @@ interface RuleOptions {
|
|
|
116
434
|
* Prefer MaybeRefOrGetter over Ref for composable parameters
|
|
117
435
|
* @see https://rotki.github.io/eslint-plugin/rules/composable-input-flexibility
|
|
118
436
|
*/
|
|
119
|
-
'@rotki/composable-input-flexibility'?: Linter.RuleEntry<
|
|
437
|
+
'@rotki/composable-input-flexibility'?: Linter.RuleEntry<RotkiComposableInputFlexibility>;
|
|
120
438
|
/**
|
|
121
439
|
* Enforce consistent naming for composable options and return types
|
|
122
440
|
* @see https://rotki.github.io/eslint-plugin/rules/composable-naming-convention
|
|
@@ -131,7 +449,7 @@ interface RuleOptions {
|
|
|
131
449
|
* Prefer shallowRef() over ref() for primitive values in composables
|
|
132
450
|
* @see https://rotki.github.io/eslint-plugin/rules/composable-prefer-shallowref
|
|
133
451
|
*/
|
|
134
|
-
'@rotki/composable-prefer-shallowref'?: Linter.RuleEntry<
|
|
452
|
+
'@rotki/composable-prefer-shallowref'?: Linter.RuleEntry<RotkiComposablePreferShallowref>;
|
|
135
453
|
/**
|
|
136
454
|
* Require cleanup hooks when composables use side effects
|
|
137
455
|
* @see https://rotki.github.io/eslint-plugin/rules/composable-require-cleanup
|
|
@@ -141,7 +459,7 @@ interface RuleOptions {
|
|
|
141
459
|
* Require returned refs from composables to be wrapped with readonly()
|
|
142
460
|
* @see https://rotki.github.io/eslint-plugin/rules/composable-return-readonly
|
|
143
461
|
*/
|
|
144
|
-
'@rotki/composable-return-readonly'?: Linter.RuleEntry<
|
|
462
|
+
'@rotki/composable-return-readonly'?: Linter.RuleEntry<RotkiComposableReturnReadonly>;
|
|
145
463
|
/**
|
|
146
464
|
* Require browser global access in composables to be SSR-safe
|
|
147
465
|
* @see https://rotki.github.io/eslint-plugin/rules/composable-ssr-safety
|
|
@@ -1609,6 +1927,7 @@ interface RuleOptions {
|
|
|
1609
1927
|
/**
|
|
1610
1928
|
* disallow unused `eslint-disable` comments
|
|
1611
1929
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
1930
|
+
* @deprecated
|
|
1612
1931
|
*/
|
|
1613
1932
|
'eslint-comments/no-unused-disable'?: Linter.RuleEntry<[]>;
|
|
1614
1933
|
/**
|
|
@@ -1635,6 +1954,10 @@ interface RuleOptions {
|
|
|
1635
1954
|
* Use dprint to format code
|
|
1636
1955
|
*/
|
|
1637
1956
|
'format/dprint'?: Linter.RuleEntry<FormatDprint>;
|
|
1957
|
+
/**
|
|
1958
|
+
* Use oxfmt to format code
|
|
1959
|
+
*/
|
|
1960
|
+
'format/oxfmt'?: Linter.RuleEntry<FormatOxfmt>;
|
|
1638
1961
|
/**
|
|
1639
1962
|
* Use Prettier to format code
|
|
1640
1963
|
*/
|
|
@@ -2072,6 +2395,11 @@ interface RuleOptions {
|
|
|
2072
2395
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
2073
2396
|
*/
|
|
2074
2397
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
2398
|
+
/**
|
|
2399
|
+
* Require or disallow metadata for fenced code blocks
|
|
2400
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
2401
|
+
*/
|
|
2402
|
+
'markdown/fenced-code-meta'?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
2075
2403
|
/**
|
|
2076
2404
|
* Enforce heading levels increment by one
|
|
2077
2405
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -3217,6 +3545,11 @@ interface RuleOptions {
|
|
|
3217
3545
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
3218
3546
|
*/
|
|
3219
3547
|
'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>;
|
|
3548
|
+
/**
|
|
3549
|
+
* enforce either `crypto` or `require("crypto").webcrypto`
|
|
3550
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/crypto.md
|
|
3551
|
+
*/
|
|
3552
|
+
'node/prefer-global/crypto'?: Linter.RuleEntry<NodePreferGlobalCrypto>;
|
|
3220
3553
|
/**
|
|
3221
3554
|
* enforce either `process` or `require("process")`
|
|
3222
3555
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
@@ -3232,6 +3565,11 @@ interface RuleOptions {
|
|
|
3232
3565
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
3233
3566
|
*/
|
|
3234
3567
|
'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>;
|
|
3568
|
+
/**
|
|
3569
|
+
* enforce either global timer functions or `require("timers")`
|
|
3570
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/timers.md
|
|
3571
|
+
*/
|
|
3572
|
+
'node/prefer-global/timers'?: Linter.RuleEntry<NodePreferGlobalTimers>;
|
|
3235
3573
|
/**
|
|
3236
3574
|
* enforce either `URL` or `require("url").URL`
|
|
3237
3575
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
@@ -4533,6 +4871,11 @@ interface RuleOptions {
|
|
|
4533
4871
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
4534
4872
|
*/
|
|
4535
4873
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>;
|
|
4874
|
+
/**
|
|
4875
|
+
* enforce unbound methods are called with their expected scope
|
|
4876
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
4877
|
+
*/
|
|
4878
|
+
'test/unbound-method'?: Linter.RuleEntry<TestUnboundMethod>;
|
|
4536
4879
|
/**
|
|
4537
4880
|
* enforce valid describe callback
|
|
4538
4881
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -4565,730 +4908,750 @@ interface RuleOptions {
|
|
|
4565
4908
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
4566
4909
|
/**
|
|
4567
4910
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4568
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
4569
4912
|
*/
|
|
4570
4913
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
4571
4914
|
/**
|
|
4572
4915
|
* Enforce a specific parameter name in catch clauses.
|
|
4573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
4574
4917
|
*/
|
|
4575
4918
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4576
4919
|
/**
|
|
4577
4920
|
* Enforce consistent assertion style with `node:assert`.
|
|
4578
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
4579
4922
|
*/
|
|
4580
4923
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
4581
4924
|
/**
|
|
4582
4925
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
4584
4927
|
*/
|
|
4585
4928
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
4586
4929
|
/**
|
|
4587
4930
|
* Use destructured variables over properties.
|
|
4588
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
4589
4932
|
*/
|
|
4590
4933
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
4591
4934
|
/**
|
|
4592
4935
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4594
4937
|
*/
|
|
4595
4938
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
4596
4939
|
/**
|
|
4597
4940
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4598
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
4599
4942
|
*/
|
|
4600
4943
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
4601
4944
|
/**
|
|
4602
4945
|
* Move function definitions to the highest possible scope.
|
|
4603
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
4604
4947
|
*/
|
|
4605
4948
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4949
|
+
/**
|
|
4950
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
4951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
4952
|
+
*/
|
|
4953
|
+
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
4606
4954
|
/**
|
|
4607
4955
|
* Enforce correct `Error` subclassing.
|
|
4608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
4609
4957
|
*/
|
|
4610
4958
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
4611
4959
|
/**
|
|
4612
4960
|
* Enforce no spaces between braces.
|
|
4613
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
4614
4962
|
*/
|
|
4615
4963
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
4616
4964
|
/**
|
|
4617
4965
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4618
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
4619
4967
|
*/
|
|
4620
4968
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
4621
4969
|
/**
|
|
4622
4970
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4623
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
4624
4972
|
*/
|
|
4625
4973
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
4626
4974
|
/**
|
|
4627
4975
|
* Add expiration conditions to TODO comments.
|
|
4628
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
4629
4977
|
*/
|
|
4630
4978
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
4631
4979
|
/**
|
|
4632
4980
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4633
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
4634
4982
|
*/
|
|
4635
4983
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
4636
4984
|
/**
|
|
4637
4985
|
* Enforce a case style for filenames.
|
|
4638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
4639
4987
|
*/
|
|
4640
4988
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
4641
4989
|
/**
|
|
4642
4990
|
* Enforce specific import styles per module.
|
|
4643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
4644
4992
|
*/
|
|
4645
4993
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
4646
4994
|
/**
|
|
4647
4995
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
4648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
4649
4997
|
*/
|
|
4650
4998
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
4651
4999
|
/**
|
|
4652
5000
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5001
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
4654
5002
|
*/
|
|
4655
5003
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
4656
5004
|
/**
|
|
4657
5005
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4658
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5006
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4659
5007
|
*/
|
|
4660
5008
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
4661
5009
|
/**
|
|
4662
5010
|
* Disallow recursive access to `this` within getters and setters.
|
|
4663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5011
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
4664
5012
|
*/
|
|
4665
5013
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
4666
5014
|
/**
|
|
4667
5015
|
* Disallow anonymous functions and classes as the default export.
|
|
4668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5016
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
4669
5017
|
*/
|
|
4670
5018
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
4671
5019
|
/**
|
|
4672
5020
|
* Prevent passing a function reference directly to iterator methods.
|
|
4673
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5021
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
4674
5022
|
*/
|
|
4675
5023
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
4676
5024
|
/**
|
|
4677
5025
|
* Prefer `for…of` over the `forEach` method.
|
|
4678
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5026
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
4679
5027
|
*/
|
|
4680
5028
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
4681
5029
|
/**
|
|
4682
5030
|
* Disallow using the `this` argument in array methods.
|
|
4683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5031
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
4684
5032
|
*/
|
|
4685
5033
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
4686
5034
|
/**
|
|
4687
5035
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
4688
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
4689
5037
|
* @deprecated
|
|
4690
5038
|
*/
|
|
4691
5039
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
4692
5040
|
/**
|
|
4693
5041
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
4695
5043
|
*/
|
|
4696
5044
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
4697
5045
|
/**
|
|
4698
5046
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
4699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
4700
5048
|
*/
|
|
4701
5049
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
4702
5050
|
/**
|
|
4703
5051
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
4704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
4705
5053
|
*/
|
|
4706
5054
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
4707
5055
|
/**
|
|
4708
5056
|
* Disallow member access from await expression.
|
|
4709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
4710
5058
|
*/
|
|
4711
5059
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
4712
5060
|
/**
|
|
4713
5061
|
* Disallow using `await` in `Promise` method parameters.
|
|
4714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4715
5063
|
*/
|
|
4716
5064
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4717
5065
|
/**
|
|
4718
5066
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
4720
5068
|
*/
|
|
4721
5069
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
4722
5070
|
/**
|
|
4723
5071
|
* Do not use `document.cookie` directly.
|
|
4724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
4725
5073
|
*/
|
|
4726
5074
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
4727
5075
|
/**
|
|
4728
5076
|
* Disallow empty files.
|
|
4729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
4730
5078
|
*/
|
|
4731
5079
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
4732
5080
|
/**
|
|
4733
5081
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
4735
5083
|
*/
|
|
4736
5084
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
4737
5085
|
/**
|
|
4738
5086
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
4740
5088
|
*/
|
|
4741
5089
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
4742
5090
|
/**
|
|
4743
5091
|
* Disallow immediate mutation after variable assignment.
|
|
4744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
4745
5093
|
*/
|
|
4746
5094
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
4747
5095
|
/**
|
|
4748
5096
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
4749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
4750
5098
|
* @deprecated
|
|
4751
5099
|
*/
|
|
4752
5100
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
4753
5101
|
/**
|
|
4754
5102
|
* Disallow `instanceof` with built-in objects
|
|
4755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
4756
5104
|
*/
|
|
4757
5105
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
4758
5106
|
/**
|
|
4759
5107
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4761
5109
|
*/
|
|
4762
5110
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
4763
5111
|
/**
|
|
4764
5112
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4766
5114
|
*/
|
|
4767
5115
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
4768
5116
|
/**
|
|
4769
5117
|
* Disallow identifiers starting with `new` or `class`.
|
|
4770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
4771
5119
|
*/
|
|
4772
5120
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
4773
5121
|
/**
|
|
4774
5122
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
4775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
4776
5124
|
* @deprecated
|
|
4777
5125
|
*/
|
|
4778
5126
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
4779
5127
|
/**
|
|
4780
5128
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
4782
5130
|
*/
|
|
4783
5131
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
4784
5132
|
/**
|
|
4785
5133
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4787
5135
|
*/
|
|
4788
5136
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
4789
5137
|
/**
|
|
4790
5138
|
* Disallow named usage of default import and export.
|
|
4791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
4792
5140
|
*/
|
|
4793
5141
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
4794
5142
|
/**
|
|
4795
5143
|
* Disallow negated conditions.
|
|
4796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
4797
5145
|
*/
|
|
4798
5146
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
4799
5147
|
/**
|
|
4800
5148
|
* Disallow negated expression in equality check.
|
|
4801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4802
5150
|
*/
|
|
4803
5151
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
4804
5152
|
/**
|
|
4805
5153
|
* Disallow nested ternary expressions.
|
|
4806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
4807
5155
|
*/
|
|
4808
5156
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
4809
5157
|
/**
|
|
4810
5158
|
* Disallow `new Array()`.
|
|
4811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
4812
5160
|
*/
|
|
4813
5161
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
4814
5162
|
/**
|
|
4815
5163
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
4817
5165
|
*/
|
|
4818
5166
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
4819
5167
|
/**
|
|
4820
5168
|
* Disallow the use of the `null` literal.
|
|
4821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
4822
5170
|
*/
|
|
4823
5171
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
4824
5172
|
/**
|
|
4825
5173
|
* Disallow the use of objects as default parameters.
|
|
4826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4827
5175
|
*/
|
|
4828
5176
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
4829
5177
|
/**
|
|
4830
5178
|
* Disallow `process.exit()`.
|
|
4831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
4832
5180
|
*/
|
|
4833
5181
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
4834
5182
|
/**
|
|
4835
5183
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
4837
5185
|
*/
|
|
4838
5186
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4839
5187
|
/**
|
|
4840
5188
|
* Disallow classes that only have static members.
|
|
4841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
4842
5190
|
*/
|
|
4843
5191
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
4844
5192
|
/**
|
|
4845
5193
|
* Disallow `then` property.
|
|
4846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
4847
5195
|
*/
|
|
4848
5196
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
4849
5197
|
/**
|
|
4850
5198
|
* Disallow assigning `this` to a variable.
|
|
4851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
4852
5200
|
*/
|
|
4853
5201
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
4854
5202
|
/**
|
|
4855
5203
|
* Disallow comparing `undefined` using `typeof`.
|
|
4856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
4857
5205
|
*/
|
|
4858
5206
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
4859
5207
|
/**
|
|
4860
5208
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
4861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
4862
5210
|
*/
|
|
4863
5211
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
4864
5212
|
/**
|
|
4865
5213
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
4866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
4867
5215
|
*/
|
|
4868
5216
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
4869
5217
|
/**
|
|
4870
5218
|
* Disallow awaiting non-promise values.
|
|
4871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
4872
5220
|
*/
|
|
4873
5221
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
4874
5222
|
/**
|
|
4875
5223
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
4877
5225
|
*/
|
|
4878
5226
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
4879
5227
|
/**
|
|
4880
5228
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
4882
5230
|
*/
|
|
4883
5231
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
4884
5232
|
/**
|
|
4885
5233
|
* Disallow unreadable array destructuring.
|
|
4886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
4887
5235
|
*/
|
|
4888
5236
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
4889
5237
|
/**
|
|
4890
5238
|
* Disallow unreadable IIFEs.
|
|
4891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
4892
5240
|
*/
|
|
4893
5241
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
4894
5242
|
/**
|
|
4895
5243
|
* Disallow unused object properties.
|
|
4896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
4897
5245
|
*/
|
|
4898
5246
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
4899
5247
|
/**
|
|
4900
5248
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
4901
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
4902
5250
|
*/
|
|
4903
5251
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
4904
5252
|
/**
|
|
4905
5253
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
4906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
4907
5255
|
*/
|
|
4908
5256
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
4909
5257
|
/**
|
|
4910
5258
|
* Disallow useless fallback when spreading in object literals.
|
|
4911
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
4912
5260
|
*/
|
|
4913
5261
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5262
|
+
/**
|
|
5263
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
5264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
5265
|
+
*/
|
|
5266
|
+
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
4914
5267
|
/**
|
|
4915
5268
|
* Disallow useless array length check.
|
|
4916
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
4917
5270
|
*/
|
|
4918
5271
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
4919
5272
|
/**
|
|
4920
5273
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
4922
5275
|
*/
|
|
4923
5276
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
4924
5277
|
/**
|
|
4925
5278
|
* Disallow unnecessary spread.
|
|
4926
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
4927
5280
|
*/
|
|
4928
5281
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
4929
5282
|
/**
|
|
4930
5283
|
* Disallow useless case in switch statements.
|
|
4931
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
4932
5285
|
*/
|
|
4933
5286
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
4934
5287
|
/**
|
|
4935
5288
|
* Disallow useless `undefined`.
|
|
4936
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
4937
5290
|
*/
|
|
4938
5291
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
4939
5292
|
/**
|
|
4940
5293
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4941
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
4942
5295
|
*/
|
|
4943
5296
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
4944
5297
|
/**
|
|
4945
5298
|
* Enforce proper case for numeric literals.
|
|
4946
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
4947
5300
|
*/
|
|
4948
5301
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
4949
5302
|
/**
|
|
4950
5303
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
4952
5305
|
*/
|
|
4953
5306
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
4954
5307
|
/**
|
|
4955
5308
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4956
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
4957
5310
|
*/
|
|
4958
5311
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
4959
5312
|
/**
|
|
4960
5313
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4961
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
4962
5315
|
*/
|
|
4963
5316
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
4964
5317
|
/**
|
|
4965
5318
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4966
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
4967
5320
|
*/
|
|
4968
5321
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
4969
5322
|
/**
|
|
4970
5323
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
4972
5325
|
*/
|
|
4973
5326
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
4974
5327
|
/**
|
|
4975
5328
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4976
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
4977
5330
|
*/
|
|
4978
5331
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
4979
5332
|
/**
|
|
4980
5333
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4981
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
4982
5335
|
*/
|
|
4983
5336
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
4984
5337
|
/**
|
|
4985
5338
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
4987
5340
|
*/
|
|
4988
5341
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
4989
5342
|
/**
|
|
4990
5343
|
* Prefer `BigInt` literals over the constructor.
|
|
4991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
4992
5345
|
*/
|
|
4993
5346
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
4994
5347
|
/**
|
|
4995
5348
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
4997
5350
|
*/
|
|
4998
5351
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
4999
5352
|
/**
|
|
5000
5353
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
5002
5355
|
*/
|
|
5003
5356
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5004
5357
|
/**
|
|
5005
5358
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5007
5360
|
*/
|
|
5008
5361
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5009
5362
|
/**
|
|
5010
5363
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
5012
5365
|
*/
|
|
5013
5366
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5014
5367
|
/**
|
|
5015
5368
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
5017
5370
|
*/
|
|
5018
5371
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5019
5372
|
/**
|
|
5020
5373
|
* Prefer default parameters over reassignment.
|
|
5021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
5022
5375
|
*/
|
|
5023
5376
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5024
5377
|
/**
|
|
5025
5378
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
5026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
5027
5380
|
*/
|
|
5028
5381
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5029
5382
|
/**
|
|
5030
5383
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
5031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
5032
5385
|
*/
|
|
5033
5386
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5034
5387
|
/**
|
|
5035
5388
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5037
5390
|
*/
|
|
5038
5391
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5039
5392
|
/**
|
|
5040
5393
|
* Prefer `.textContent` over `.innerText`.
|
|
5041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5042
5395
|
*/
|
|
5043
5396
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5044
5397
|
/**
|
|
5045
5398
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5046
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
5047
5400
|
*/
|
|
5048
5401
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5049
5402
|
/**
|
|
5050
5403
|
* Prefer `export…from` when re-exporting.
|
|
5051
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5404
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
5052
5405
|
*/
|
|
5053
5406
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5054
5407
|
/**
|
|
5055
5408
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5056
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
5057
5410
|
*/
|
|
5058
5411
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5059
5412
|
/**
|
|
5060
5413
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5061
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5062
5415
|
*/
|
|
5063
5416
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5064
5417
|
/**
|
|
5065
5418
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5066
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
5067
5420
|
*/
|
|
5068
5421
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5069
5422
|
/**
|
|
5070
5423
|
* Prefer reading a JSON file as a buffer.
|
|
5071
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
5072
5425
|
*/
|
|
5073
5426
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5074
5427
|
/**
|
|
5075
5428
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
5076
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5077
5430
|
*/
|
|
5078
5431
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
5079
5432
|
/**
|
|
5080
5433
|
* Prefer using a logical operator over a ternary.
|
|
5081
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5082
5435
|
*/
|
|
5083
5436
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5084
5437
|
/**
|
|
5085
5438
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5086
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
5087
5440
|
*/
|
|
5088
5441
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5089
5442
|
/**
|
|
5090
5443
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
5091
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
5092
5445
|
*/
|
|
5093
5446
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5094
5447
|
/**
|
|
5095
5448
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
5096
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5097
5450
|
*/
|
|
5098
5451
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5099
5452
|
/**
|
|
5100
5453
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5101
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5102
5455
|
*/
|
|
5103
5456
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5104
5457
|
/**
|
|
5105
5458
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5106
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
5107
5460
|
*/
|
|
5108
5461
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5109
5462
|
/**
|
|
5110
5463
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5111
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5112
5465
|
*/
|
|
5113
5466
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5114
5467
|
/**
|
|
5115
5468
|
* Prefer negative index over `.length - index` when possible.
|
|
5116
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
5117
5470
|
*/
|
|
5118
5471
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5119
5472
|
/**
|
|
5120
5473
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5121
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
5122
5475
|
*/
|
|
5123
5476
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5124
5477
|
/**
|
|
5125
5478
|
* Prefer `Number` static properties over global ones.
|
|
5126
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
5127
5480
|
*/
|
|
5128
5481
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5129
5482
|
/**
|
|
5130
5483
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5131
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
5132
5485
|
*/
|
|
5133
5486
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5134
5487
|
/**
|
|
5135
5488
|
* Prefer omitting the `catch` binding parameter.
|
|
5136
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5137
5490
|
*/
|
|
5138
5491
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5139
5492
|
/**
|
|
5140
5493
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5141
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
5142
5495
|
*/
|
|
5143
5496
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5144
5497
|
/**
|
|
5145
5498
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
5146
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
5147
5500
|
*/
|
|
5148
5501
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
5149
5502
|
/**
|
|
5150
5503
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5151
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
5152
5505
|
*/
|
|
5153
5506
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5154
5507
|
/**
|
|
5155
5508
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
5156
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
5157
5510
|
*/
|
|
5158
5511
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5159
5512
|
/**
|
|
5160
5513
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5161
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
5162
5515
|
*/
|
|
5163
5516
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5164
5517
|
/**
|
|
5165
5518
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5166
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
5167
5520
|
*/
|
|
5168
5521
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
5169
5522
|
/**
|
|
5170
5523
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5171
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
5172
5525
|
*/
|
|
5173
5526
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5527
|
+
/**
|
|
5528
|
+
* Prefer simple conditions first in logical expressions.
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
5530
|
+
*/
|
|
5531
|
+
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
5174
5532
|
/**
|
|
5175
5533
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5176
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
5177
5535
|
*/
|
|
5178
5536
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5179
5537
|
/**
|
|
5180
5538
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
5181
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
5182
5540
|
*/
|
|
5183
5541
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5184
5542
|
/**
|
|
5185
5543
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5186
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
5187
5545
|
*/
|
|
5188
5546
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5189
5547
|
/**
|
|
5190
5548
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
5191
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
5192
5550
|
*/
|
|
5193
5551
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5194
5552
|
/**
|
|
5195
5553
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5196
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
5197
5555
|
*/
|
|
5198
5556
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5199
5557
|
/**
|
|
5200
5558
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
5201
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5202
5560
|
*/
|
|
5203
5561
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5204
5562
|
/**
|
|
5205
5563
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5206
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5207
5565
|
*/
|
|
5208
5566
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5209
5567
|
/**
|
|
5210
5568
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5211
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
5212
5570
|
*/
|
|
5213
5571
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5214
5572
|
/**
|
|
5215
5573
|
* Prefer `switch` over multiple `else-if`.
|
|
5216
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
5217
5575
|
*/
|
|
5218
5576
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5219
5577
|
/**
|
|
5220
5578
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
5221
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
5222
5580
|
*/
|
|
5223
5581
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
5224
5582
|
/**
|
|
5225
5583
|
* Prefer top-level await over top-level promises and async function calls.
|
|
5226
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
5227
5585
|
*/
|
|
5228
5586
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
5229
5587
|
/**
|
|
5230
5588
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
5231
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
5232
5590
|
*/
|
|
5233
5591
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
5234
5592
|
/**
|
|
5235
5593
|
* Prevent abbreviations.
|
|
5236
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
5237
5595
|
*/
|
|
5238
5596
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
5239
5597
|
/**
|
|
5240
5598
|
* Enforce consistent relative URL style.
|
|
5241
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
5242
5600
|
*/
|
|
5243
5601
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
5244
5602
|
/**
|
|
5245
5603
|
* Enforce using the separator argument with `Array#join()`.
|
|
5246
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
5247
5605
|
*/
|
|
5248
5606
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
5249
5607
|
/**
|
|
5250
5608
|
* Require non-empty module attributes for imports and exports
|
|
5251
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
5252
5610
|
*/
|
|
5253
5611
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
5254
5612
|
/**
|
|
5255
5613
|
* Require non-empty specifier list in import and export statements.
|
|
5256
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
5257
5615
|
*/
|
|
5258
5616
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
5259
5617
|
/**
|
|
5260
5618
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
5261
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
5262
5620
|
*/
|
|
5263
5621
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
5264
5622
|
/**
|
|
5265
5623
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
5266
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
5267
5625
|
*/
|
|
5268
5626
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
5269
5627
|
/**
|
|
5270
5628
|
* Enforce better string content.
|
|
5271
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
5272
5630
|
*/
|
|
5273
5631
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
5274
5632
|
/**
|
|
5275
5633
|
* Enforce consistent brace style for `case` clauses.
|
|
5276
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
5277
5635
|
*/
|
|
5278
5636
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
5637
|
+
/**
|
|
5638
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
5639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
5640
|
+
*/
|
|
5641
|
+
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
5279
5642
|
/**
|
|
5280
5643
|
* Fix whitespace-insensitive template indentation.
|
|
5281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
5282
5645
|
*/
|
|
5283
5646
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
5284
5647
|
/**
|
|
5285
5648
|
* Enforce consistent case for text encoding identifiers.
|
|
5286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
5287
5650
|
*/
|
|
5288
5651
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
5289
5652
|
/**
|
|
5290
5653
|
* Require `new` when creating an error.
|
|
5291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
5292
5655
|
*/
|
|
5293
5656
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
5294
5657
|
/**
|
|
@@ -6768,6 +7131,15 @@ type IntlifyVueI18NNoUnusedKeys = [] | [{
|
|
|
6768
7131
|
type IntlifyVueI18NSfcLocaleAttr = [] | [("always" | "never")]; // ----- @intlify/vue-i18n/valid-message-syntax -----
|
|
6769
7132
|
type IntlifyVueI18NValidMessageSyntax = [] | [{
|
|
6770
7133
|
allowNotString?: boolean;
|
|
7134
|
+
}]; // ----- @rotki/composable-input-flexibility -----
|
|
7135
|
+
type RotkiComposableInputFlexibility = [] | [{
|
|
7136
|
+
autofix?: boolean;
|
|
7137
|
+
}]; // ----- @rotki/composable-prefer-shallowref -----
|
|
7138
|
+
type RotkiComposablePreferShallowref = [] | [{
|
|
7139
|
+
autofix?: boolean;
|
|
7140
|
+
}]; // ----- @rotki/composable-return-readonly -----
|
|
7141
|
+
type RotkiComposableReturnReadonly = [] | [{
|
|
7142
|
+
autofix?: boolean;
|
|
6771
7143
|
}]; // ----- @rotki/consistent-ref-type-annotation -----
|
|
6772
7144
|
type RotkiConsistentRefTypeAnnotation = [] | [{
|
|
6773
7145
|
allowInference?: boolean;
|
|
@@ -6964,33 +7336,33 @@ type StylisticExpListStyle = [] | [{
|
|
|
6964
7336
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
6965
7337
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
6966
7338
|
overrides?: {
|
|
6967
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
6968
|
-
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
6969
|
-
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
6970
|
-
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
6971
|
-
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6972
|
-
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
6973
|
-
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6974
|
-
CallExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6975
|
-
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
6976
|
-
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
6977
|
-
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6978
|
-
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
6979
|
-
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
6980
|
-
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
6981
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6982
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6983
|
-
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6984
|
-
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
6985
|
-
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
6986
|
-
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
6987
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
6988
|
-
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
6989
|
-
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
6990
|
-
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
6991
|
-
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
6992
|
-
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
6993
|
-
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
7339
|
+
"()"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7340
|
+
"[]"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7341
|
+
"{}"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7342
|
+
"<>"?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7343
|
+
ArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7344
|
+
ArrayPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7345
|
+
ArrowFunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7346
|
+
CallExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7347
|
+
ExportNamedDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7348
|
+
FunctionDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7349
|
+
FunctionExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7350
|
+
IfStatement?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7351
|
+
ImportAttributes?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7352
|
+
ImportDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7353
|
+
JSONArrayExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7354
|
+
JSONObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7355
|
+
NewExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7356
|
+
ObjectExpression?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7357
|
+
ObjectPattern?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7358
|
+
TSDeclareFunction?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7359
|
+
TSEnumBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7360
|
+
TSFunctionType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7361
|
+
TSInterfaceBody?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7362
|
+
TSTupleType?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7363
|
+
TSTypeLiteral?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7364
|
+
TSTypeParameterDeclaration?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
7365
|
+
TSTypeParameterInstantiation?: (_StylisticExpListStyle_BaseConfig | "off");
|
|
6994
7366
|
};
|
|
6995
7367
|
}];
|
|
6996
7368
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -7851,13 +8223,18 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
|
|
|
7851
8223
|
allowSingleLineBlocks?: boolean;
|
|
7852
8224
|
}]; // ----- @stylistic/padding-line-between-statements -----
|
|
7853
8225
|
type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
|
|
7854
|
-
type _StylisticPaddingLineBetweenStatementsStatementOption = (
|
|
8226
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementMatcher | [_StylisticPaddingLineBetweenStatementsStatementMatcher, ...(_StylisticPaddingLineBetweenStatementsStatementMatcher)[]]);
|
|
8227
|
+
type _StylisticPaddingLineBetweenStatementsStatementMatcher = (_StylisticPaddingLineBetweenStatementsStatementType | _StylisticPaddingLineBetweenStatements_SelectorOption);
|
|
7855
8228
|
type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type");
|
|
7856
8229
|
type StylisticPaddingLineBetweenStatements = {
|
|
7857
8230
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
7858
8231
|
prev: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
7859
8232
|
next: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
7860
|
-
}[];
|
|
8233
|
+
}[];
|
|
8234
|
+
interface _StylisticPaddingLineBetweenStatements_SelectorOption {
|
|
8235
|
+
selector: string;
|
|
8236
|
+
lineMode?: ("any" | "singleline" | "multiline");
|
|
8237
|
+
} // ----- @stylistic/quote-props -----
|
|
7861
8238
|
type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
7862
8239
|
keywords?: boolean;
|
|
7863
8240
|
unnecessary?: boolean;
|
|
@@ -8715,6 +9092,18 @@ type TypescriptEslintPreferOptionalChain = [] | [{
|
|
|
8715
9092
|
requireNullish?: boolean;
|
|
8716
9093
|
}]; // ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
8717
9094
|
type TypescriptEslintPreferPromiseRejectErrors = [] | [{
|
|
9095
|
+
allow?: (string | {
|
|
9096
|
+
from: "file";
|
|
9097
|
+
name: (string | [string, ...(string)[]]);
|
|
9098
|
+
path?: string;
|
|
9099
|
+
} | {
|
|
9100
|
+
from: "lib";
|
|
9101
|
+
name: (string | [string, ...(string)[]]);
|
|
9102
|
+
} | {
|
|
9103
|
+
from: "package";
|
|
9104
|
+
name: (string | [string, ...(string)[]]);
|
|
9105
|
+
package: string;
|
|
9106
|
+
})[];
|
|
8718
9107
|
allowEmptyReject?: boolean;
|
|
8719
9108
|
allowThrowingAny?: boolean;
|
|
8720
9109
|
allowThrowingUnknown?: boolean;
|
|
@@ -8993,6 +9382,9 @@ type FormatDprint = [] | [{
|
|
|
8993
9382
|
};
|
|
8994
9383
|
plugins?: unknown[];
|
|
8995
9384
|
[k: string]: unknown | undefined;
|
|
9385
|
+
}]; // ----- format/oxfmt -----
|
|
9386
|
+
type FormatOxfmt = [] | [{
|
|
9387
|
+
[k: string]: unknown | undefined;
|
|
8996
9388
|
}]; // ----- format/prettier -----
|
|
8997
9389
|
type FormatPrettier = [] | [{
|
|
8998
9390
|
parser: string;
|
|
@@ -9291,6 +9683,7 @@ type JsoncObjectCurlyNewline = [] | [((("always" | "never") | {
|
|
|
9291
9683
|
type JsoncObjectCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
9292
9684
|
arraysInObjects?: boolean;
|
|
9293
9685
|
objectsInObjects?: boolean;
|
|
9686
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
9294
9687
|
}]; // ----- jsonc/object-property-newline -----
|
|
9295
9688
|
type JsoncObjectPropertyNewline = [] | [{
|
|
9296
9689
|
allowAllPropertiesOnSameLine?: boolean;
|
|
@@ -9763,13 +10156,15 @@ type LogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
|
9763
10156
|
}] | ["never"]) & unknown[]); // ----- markdown/fenced-code-language -----
|
|
9764
10157
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
9765
10158
|
required?: string[];
|
|
9766
|
-
}]; // ----- markdown/
|
|
10159
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
10160
|
+
type MarkdownFencedCodeMeta = [] | [("always" | "never")]; // ----- markdown/heading-increment -----
|
|
9767
10161
|
type MarkdownHeadingIncrement = [] | [{
|
|
9768
10162
|
frontmatterTitle?: string;
|
|
9769
10163
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
9770
10164
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
9771
10165
|
allowDefinitions?: string[];
|
|
9772
10166
|
allowFootnoteDefinitions?: string[];
|
|
10167
|
+
checkFootnoteDefinitions?: boolean;
|
|
9773
10168
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
9774
10169
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
9775
10170
|
checkSiblingsOnly?: boolean;
|
|
@@ -9802,6 +10197,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
9802
10197
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
9803
10198
|
allowDefinitions?: string[];
|
|
9804
10199
|
allowFootnoteDefinitions?: string[];
|
|
10200
|
+
checkFootnoteDefinitions?: boolean;
|
|
9805
10201
|
}]; // ----- markdown/table-column-count -----
|
|
9806
10202
|
type MarkdownTableColumnCount = [] | [{
|
|
9807
10203
|
checkMissingCells?: boolean;
|
|
@@ -10457,10 +10853,12 @@ type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
|
10457
10853
|
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "CloseEvent" | "CustomEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.diffieHellman" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.opendirSync" | "fs.openSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.setMaxIdleHTTPParsers" | "http.Agent" | "http.ClientRequest" | "http.Server" | "http.ServerResponse" | "http.IncomingMessage" | "http.OutgoingMessage" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BlockList" | "net.BlockList.isBlockList" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.json" | "stream/consumers.text" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.DatabaseSync" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.GCProfiler" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
10458
10854
|
}]; // ----- node/prefer-global/buffer -----
|
|
10459
10855
|
type NodePreferGlobalBuffer = [] | [("always" | "never")]; // ----- node/prefer-global/console -----
|
|
10460
|
-
type NodePreferGlobalConsole = [] | [("always" | "never")]; // ----- node/prefer-global/
|
|
10856
|
+
type NodePreferGlobalConsole = [] | [("always" | "never")]; // ----- node/prefer-global/crypto -----
|
|
10857
|
+
type NodePreferGlobalCrypto = [] | [("always" | "never")]; // ----- node/prefer-global/process -----
|
|
10461
10858
|
type NodePreferGlobalProcess = [] | [("always" | "never")]; // ----- node/prefer-global/text-decoder -----
|
|
10462
10859
|
type NodePreferGlobalTextDecoder = [] | [("always" | "never")]; // ----- node/prefer-global/text-encoder -----
|
|
10463
|
-
type NodePreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- node/prefer-global/
|
|
10860
|
+
type NodePreferGlobalTextEncoder = [] | [("always" | "never")]; // ----- node/prefer-global/timers -----
|
|
10861
|
+
type NodePreferGlobalTimers = [] | [("always" | "never")]; // ----- node/prefer-global/url -----
|
|
10464
10862
|
type NodePreferGlobalUrl = [] | [("always" | "never")]; // ----- node/prefer-global/url-search-params -----
|
|
10465
10863
|
type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")]; // ----- node/prefer-node-protocol -----
|
|
10466
10864
|
type NodePreferNodeProtocol = [] | [{
|
|
@@ -10651,6 +11049,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10651
11049
|
pattern: string;
|
|
10652
11050
|
flags?: string;
|
|
10653
11051
|
} | string));
|
|
11052
|
+
matchesAstSelector?: string;
|
|
10654
11053
|
};
|
|
10655
11054
|
partitionByComment?: (boolean | (({
|
|
10656
11055
|
pattern: string;
|
|
@@ -10676,7 +11075,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10676
11075
|
});
|
|
10677
11076
|
partitionByNewLine?: boolean;
|
|
10678
11077
|
}[]; // ----- perfectionist/sort-classes -----
|
|
10679
|
-
type PerfectionistSortClasses =
|
|
11078
|
+
type PerfectionistSortClasses = {
|
|
10680
11079
|
fallbackSort?: {
|
|
10681
11080
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10682
11081
|
order?: ("asc" | "desc");
|
|
@@ -10793,6 +11192,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10793
11192
|
order?: ("asc" | "desc");
|
|
10794
11193
|
})[];
|
|
10795
11194
|
newlinesBetween?: ("ignore" | number);
|
|
11195
|
+
useConfigurationIf?: {
|
|
11196
|
+
allNamesMatchPattern?: (({
|
|
11197
|
+
pattern: string;
|
|
11198
|
+
flags?: string;
|
|
11199
|
+
} | string)[] | ({
|
|
11200
|
+
pattern: string;
|
|
11201
|
+
flags?: string;
|
|
11202
|
+
} | string));
|
|
11203
|
+
matchesAstSelector?: string;
|
|
11204
|
+
};
|
|
10796
11205
|
useExperimentalDependencyDetection?: boolean;
|
|
10797
11206
|
ignoreCallbackDependenciesPatterns?: (({
|
|
10798
11207
|
pattern: string;
|
|
@@ -10824,7 +11233,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10824
11233
|
} | string)));
|
|
10825
11234
|
});
|
|
10826
11235
|
partitionByNewLine?: boolean;
|
|
10827
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
11236
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
10828
11237
|
type PerfectionistSortDecorators = {
|
|
10829
11238
|
fallbackSort?: {
|
|
10830
11239
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -10923,7 +11332,7 @@ type PerfectionistSortDecorators = {
|
|
|
10923
11332
|
});
|
|
10924
11333
|
partitionByNewLine?: boolean;
|
|
10925
11334
|
}[]; // ----- perfectionist/sort-enums -----
|
|
10926
|
-
type PerfectionistSortEnums =
|
|
11335
|
+
type PerfectionistSortEnums = {
|
|
10927
11336
|
fallbackSort?: {
|
|
10928
11337
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
10929
11338
|
order?: ("asc" | "desc");
|
|
@@ -11013,6 +11422,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11013
11422
|
order?: ("asc" | "desc");
|
|
11014
11423
|
})[];
|
|
11015
11424
|
newlinesBetween?: ("ignore" | number);
|
|
11425
|
+
useConfigurationIf?: {
|
|
11426
|
+
allNamesMatchPattern?: (({
|
|
11427
|
+
pattern: string;
|
|
11428
|
+
flags?: string;
|
|
11429
|
+
} | string)[] | ({
|
|
11430
|
+
pattern: string;
|
|
11431
|
+
flags?: string;
|
|
11432
|
+
} | string));
|
|
11433
|
+
matchesAstSelector?: string;
|
|
11434
|
+
};
|
|
11016
11435
|
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
11017
11436
|
useExperimentalDependencyDetection?: boolean;
|
|
11018
11437
|
partitionByComment?: (boolean | (({
|
|
@@ -11038,7 +11457,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11038
11457
|
} | string)));
|
|
11039
11458
|
});
|
|
11040
11459
|
partitionByNewLine?: boolean;
|
|
11041
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
11460
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
11042
11461
|
type PerfectionistSortExportAttributes = {
|
|
11043
11462
|
fallbackSort?: {
|
|
11044
11463
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
@@ -11108,6 +11527,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
11108
11527
|
order?: ("asc" | "desc");
|
|
11109
11528
|
})[];
|
|
11110
11529
|
newlinesBetween?: ("ignore" | number);
|
|
11530
|
+
useConfigurationIf?: {
|
|
11531
|
+
allNamesMatchPattern?: (({
|
|
11532
|
+
pattern: string;
|
|
11533
|
+
flags?: string;
|
|
11534
|
+
} | string)[] | ({
|
|
11535
|
+
pattern: string;
|
|
11536
|
+
flags?: string;
|
|
11537
|
+
} | string));
|
|
11538
|
+
matchesAstSelector?: string;
|
|
11539
|
+
};
|
|
11111
11540
|
partitionByComment?: (boolean | (({
|
|
11112
11541
|
pattern: string;
|
|
11113
11542
|
flags?: string;
|
|
@@ -11300,6 +11729,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
11300
11729
|
order?: ("asc" | "desc");
|
|
11301
11730
|
})[];
|
|
11302
11731
|
newlinesBetween?: ("ignore" | number);
|
|
11732
|
+
useConfigurationIf?: {
|
|
11733
|
+
allNamesMatchPattern?: (({
|
|
11734
|
+
pattern: string;
|
|
11735
|
+
flags?: string;
|
|
11736
|
+
} | string)[] | ({
|
|
11737
|
+
pattern: string;
|
|
11738
|
+
flags?: string;
|
|
11739
|
+
} | string));
|
|
11740
|
+
matchesAstSelector?: string;
|
|
11741
|
+
};
|
|
11303
11742
|
partitionByNewLine?: boolean;
|
|
11304
11743
|
partitionByComment?: (boolean | (({
|
|
11305
11744
|
pattern: string;
|
|
@@ -11393,6 +11832,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
11393
11832
|
order?: ("asc" | "desc");
|
|
11394
11833
|
})[];
|
|
11395
11834
|
newlinesBetween?: ("ignore" | number);
|
|
11835
|
+
useConfigurationIf?: {
|
|
11836
|
+
allNamesMatchPattern?: (({
|
|
11837
|
+
pattern: string;
|
|
11838
|
+
flags?: string;
|
|
11839
|
+
} | string)[] | ({
|
|
11840
|
+
pattern: string;
|
|
11841
|
+
flags?: string;
|
|
11842
|
+
} | string));
|
|
11843
|
+
matchesAstSelector?: string;
|
|
11844
|
+
};
|
|
11396
11845
|
partitionByComment?: (boolean | (({
|
|
11397
11846
|
pattern: string;
|
|
11398
11847
|
flags?: string;
|
|
@@ -11661,6 +12110,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11661
12110
|
pattern: string;
|
|
11662
12111
|
flags?: string;
|
|
11663
12112
|
} | string));
|
|
12113
|
+
matchesAstSelector?: string;
|
|
11664
12114
|
declarationMatchesPattern?: (({
|
|
11665
12115
|
scope?: ("shallow" | "deep");
|
|
11666
12116
|
pattern: string;
|
|
@@ -11767,6 +12217,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11767
12217
|
order?: ("asc" | "desc");
|
|
11768
12218
|
})[];
|
|
11769
12219
|
newlinesBetween?: ("ignore" | number);
|
|
12220
|
+
useConfigurationIf?: {
|
|
12221
|
+
allNamesMatchPattern?: (({
|
|
12222
|
+
pattern: string;
|
|
12223
|
+
flags?: string;
|
|
12224
|
+
} | string)[] | ({
|
|
12225
|
+
pattern: string;
|
|
12226
|
+
flags?: string;
|
|
12227
|
+
} | string));
|
|
12228
|
+
matchesAstSelector?: string;
|
|
12229
|
+
};
|
|
11770
12230
|
partitionByComment?: (boolean | (({
|
|
11771
12231
|
pattern: string;
|
|
11772
12232
|
flags?: string;
|
|
@@ -11895,6 +12355,7 @@ type PerfectionistSortJsxProps = {
|
|
|
11895
12355
|
pattern: string;
|
|
11896
12356
|
flags?: string;
|
|
11897
12357
|
} | string));
|
|
12358
|
+
matchesAstSelector?: string;
|
|
11898
12359
|
tagMatchesPattern?: (({
|
|
11899
12360
|
pattern: string;
|
|
11900
12361
|
flags?: string;
|
|
@@ -11982,6 +12443,7 @@ type PerfectionistSortMaps = {
|
|
|
11982
12443
|
pattern: string;
|
|
11983
12444
|
flags?: string;
|
|
11984
12445
|
} | string));
|
|
12446
|
+
matchesAstSelector?: string;
|
|
11985
12447
|
};
|
|
11986
12448
|
partitionByComment?: (boolean | (({
|
|
11987
12449
|
pattern: string;
|
|
@@ -12203,6 +12665,16 @@ type PerfectionistSortNamedExports = {
|
|
|
12203
12665
|
order?: ("asc" | "desc");
|
|
12204
12666
|
})[];
|
|
12205
12667
|
newlinesBetween?: ("ignore" | number);
|
|
12668
|
+
useConfigurationIf?: {
|
|
12669
|
+
allNamesMatchPattern?: (({
|
|
12670
|
+
pattern: string;
|
|
12671
|
+
flags?: string;
|
|
12672
|
+
} | string)[] | ({
|
|
12673
|
+
pattern: string;
|
|
12674
|
+
flags?: string;
|
|
12675
|
+
} | string));
|
|
12676
|
+
matchesAstSelector?: string;
|
|
12677
|
+
};
|
|
12206
12678
|
ignoreAlias?: boolean;
|
|
12207
12679
|
partitionByComment?: (boolean | (({
|
|
12208
12680
|
pattern: string;
|
|
@@ -12303,6 +12775,16 @@ type PerfectionistSortNamedImports = {
|
|
|
12303
12775
|
order?: ("asc" | "desc");
|
|
12304
12776
|
})[];
|
|
12305
12777
|
newlinesBetween?: ("ignore" | number);
|
|
12778
|
+
useConfigurationIf?: {
|
|
12779
|
+
allNamesMatchPattern?: (({
|
|
12780
|
+
pattern: string;
|
|
12781
|
+
flags?: string;
|
|
12782
|
+
} | string)[] | ({
|
|
12783
|
+
pattern: string;
|
|
12784
|
+
flags?: string;
|
|
12785
|
+
} | string));
|
|
12786
|
+
matchesAstSelector?: string;
|
|
12787
|
+
};
|
|
12306
12788
|
ignoreAlias?: boolean;
|
|
12307
12789
|
partitionByComment?: (boolean | (({
|
|
12308
12790
|
pattern: string;
|
|
@@ -12450,6 +12932,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
12450
12932
|
pattern: string;
|
|
12451
12933
|
flags?: string;
|
|
12452
12934
|
} | string));
|
|
12935
|
+
matchesAstSelector?: string;
|
|
12453
12936
|
declarationMatchesPattern?: (({
|
|
12454
12937
|
scope?: ("shallow" | "deep");
|
|
12455
12938
|
pattern: string;
|
|
@@ -12616,6 +13099,7 @@ type PerfectionistSortObjects = {
|
|
|
12616
13099
|
pattern: string;
|
|
12617
13100
|
flags?: string;
|
|
12618
13101
|
} | string));
|
|
13102
|
+
matchesAstSelector?: string;
|
|
12619
13103
|
declarationMatchesPattern?: (({
|
|
12620
13104
|
scope?: ("shallow" | "deep");
|
|
12621
13105
|
pattern: string;
|
|
@@ -12626,6 +13110,7 @@ type PerfectionistSortObjects = {
|
|
|
12626
13110
|
flags?: string;
|
|
12627
13111
|
} | string));
|
|
12628
13112
|
};
|
|
13113
|
+
partitionByComputedKey?: boolean;
|
|
12629
13114
|
styledComponents?: boolean;
|
|
12630
13115
|
useExperimentalDependencyDetection?: boolean;
|
|
12631
13116
|
partitionByComment?: (boolean | (({
|
|
@@ -12732,6 +13217,7 @@ type PerfectionistSortSets = {
|
|
|
12732
13217
|
pattern: string;
|
|
12733
13218
|
flags?: string;
|
|
12734
13219
|
} | string));
|
|
13220
|
+
matchesAstSelector?: string;
|
|
12735
13221
|
};
|
|
12736
13222
|
partitionByComment?: (boolean | (({
|
|
12737
13223
|
pattern: string;
|
|
@@ -12841,6 +13327,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
12841
13327
|
order?: ("asc" | "desc");
|
|
12842
13328
|
})[];
|
|
12843
13329
|
newlinesBetween?: ("ignore" | number);
|
|
13330
|
+
useConfigurationIf?: {
|
|
13331
|
+
allNamesMatchPattern?: (({
|
|
13332
|
+
pattern: string;
|
|
13333
|
+
flags?: string;
|
|
13334
|
+
} | string)[] | ({
|
|
13335
|
+
pattern: string;
|
|
13336
|
+
flags?: string;
|
|
13337
|
+
} | string));
|
|
13338
|
+
matchesAstSelector?: string;
|
|
13339
|
+
};
|
|
12844
13340
|
partitionByComment?: (boolean | (({
|
|
12845
13341
|
pattern: string;
|
|
12846
13342
|
flags?: string;
|
|
@@ -12865,7 +13361,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
12865
13361
|
});
|
|
12866
13362
|
partitionByNewLine?: boolean;
|
|
12867
13363
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
12868
|
-
type PerfectionistSortVariableDeclarations =
|
|
13364
|
+
type PerfectionistSortVariableDeclarations = {
|
|
12869
13365
|
fallbackSort?: {
|
|
12870
13366
|
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
12871
13367
|
order?: ("asc" | "desc");
|
|
@@ -12937,6 +13433,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12937
13433
|
order?: ("asc" | "desc");
|
|
12938
13434
|
})[];
|
|
12939
13435
|
newlinesBetween?: ("ignore" | number);
|
|
13436
|
+
useConfigurationIf?: {
|
|
13437
|
+
allNamesMatchPattern?: (({
|
|
13438
|
+
pattern: string;
|
|
13439
|
+
flags?: string;
|
|
13440
|
+
} | string)[] | ({
|
|
13441
|
+
pattern: string;
|
|
13442
|
+
flags?: string;
|
|
13443
|
+
} | string));
|
|
13444
|
+
matchesAstSelector?: string;
|
|
13445
|
+
};
|
|
12940
13446
|
useExperimentalDependencyDetection?: boolean;
|
|
12941
13447
|
partitionByComment?: (boolean | (({
|
|
12942
13448
|
pattern: string;
|
|
@@ -12961,7 +13467,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12961
13467
|
} | string)));
|
|
12962
13468
|
});
|
|
12963
13469
|
partitionByNewLine?: boolean;
|
|
12964
|
-
}]; // ----- prefer-arrow-callback -----
|
|
13470
|
+
}[]; // ----- prefer-arrow-callback -----
|
|
12965
13471
|
type PreferArrowCallback = [] | [{
|
|
12966
13472
|
allowNamedFunctions?: boolean;
|
|
12967
13473
|
allowUnboundThis?: boolean;
|
|
@@ -13280,6 +13786,9 @@ type TestRequireMockTypeParameters = [] | [{
|
|
|
13280
13786
|
}]; // ----- test/require-top-level-describe -----
|
|
13281
13787
|
type TestRequireTopLevelDescribe = [] | [{
|
|
13282
13788
|
maxNumberOfTopLevelDescribes?: number;
|
|
13789
|
+
}]; // ----- test/unbound-method -----
|
|
13790
|
+
type TestUnboundMethod = [] | [{
|
|
13791
|
+
ignoreStatic?: boolean;
|
|
13283
13792
|
}]; // ----- test/valid-expect -----
|
|
13284
13793
|
type TestValidExpect = [] | [{
|
|
13285
13794
|
alwaysAwait?: boolean;
|
|
@@ -13310,6 +13819,7 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")]; // ----- unicorn/ex
|
|
|
13310
13819
|
type UnicornExpiringTodoComments = [] | [{
|
|
13311
13820
|
terms?: string[];
|
|
13312
13821
|
ignore?: unknown[];
|
|
13822
|
+
ignoreDates?: boolean;
|
|
13313
13823
|
ignoreDatesOnPullRequests?: boolean;
|
|
13314
13824
|
allowWarningComments?: boolean;
|
|
13315
13825
|
date?: string;
|
|
@@ -13466,6 +13976,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
13466
13976
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
13467
13977
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
13468
13978
|
}
|
|
13979
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
13980
|
+
[k: string]: boolean | undefined;
|
|
13981
|
+
}
|
|
13469
13982
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
13470
13983
|
[k: string]: boolean | undefined;
|
|
13471
13984
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -14610,6 +15123,7 @@ type YamlFlowMappingCurlyNewline = [] | [(("always" | "never") | {
|
|
|
14610
15123
|
type YamlFlowMappingCurlySpacing = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14611
15124
|
arraysInObjects?: boolean;
|
|
14612
15125
|
objectsInObjects?: boolean;
|
|
15126
|
+
emptyObjects?: ("ignore" | "always" | "never");
|
|
14613
15127
|
}]; // ----- yaml/flow-sequence-bracket-newline -----
|
|
14614
15128
|
type YamlFlowSequenceBracketNewline = [] | [(("always" | "never" | "consistent") | {
|
|
14615
15129
|
multiline?: boolean;
|
|
@@ -14693,214 +15207,94 @@ type YamlPlainScalar = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
14693
15207
|
mappingKey?: ("always" | "never" | null);
|
|
14694
15208
|
};
|
|
14695
15209
|
}]; // ----- yaml/quotes -----
|
|
14696
|
-
type YamlQuotes = [] | [{
|
|
14697
|
-
prefer?: ("double" | "single");
|
|
14698
|
-
avoidEscape?: boolean;
|
|
14699
|
-
}]; // ----- yaml/sort-keys -----
|
|
14700
|
-
type YamlSortKeys = ([{
|
|
14701
|
-
pathPattern: string;
|
|
14702
|
-
hasProperties?: string[];
|
|
14703
|
-
order: ((string | {
|
|
14704
|
-
keyPattern?: string;
|
|
14705
|
-
order?: {
|
|
14706
|
-
type?: ("asc" | "desc");
|
|
14707
|
-
caseSensitive?: boolean;
|
|
14708
|
-
natural?: boolean;
|
|
14709
|
-
};
|
|
14710
|
-
})[] | {
|
|
14711
|
-
type?: ("asc" | "desc");
|
|
14712
|
-
caseSensitive?: boolean;
|
|
14713
|
-
natural?: boolean;
|
|
14714
|
-
});
|
|
14715
|
-
minKeys?: number;
|
|
14716
|
-
allowLineSeparatedGroups?: boolean;
|
|
14717
|
-
}, ...({
|
|
14718
|
-
pathPattern: string;
|
|
14719
|
-
hasProperties?: string[];
|
|
14720
|
-
order: ((string | {
|
|
14721
|
-
keyPattern?: string;
|
|
14722
|
-
order?: {
|
|
14723
|
-
type?: ("asc" | "desc");
|
|
14724
|
-
caseSensitive?: boolean;
|
|
14725
|
-
natural?: boolean;
|
|
14726
|
-
};
|
|
14727
|
-
})[] | {
|
|
14728
|
-
type?: ("asc" | "desc");
|
|
14729
|
-
caseSensitive?: boolean;
|
|
14730
|
-
natural?: boolean;
|
|
14731
|
-
});
|
|
14732
|
-
minKeys?: number;
|
|
14733
|
-
allowLineSeparatedGroups?: boolean;
|
|
14734
|
-
})[]] | [] | [("asc" | "desc")] | [("asc" | "desc"), {
|
|
14735
|
-
caseSensitive?: boolean;
|
|
14736
|
-
natural?: boolean;
|
|
14737
|
-
minKeys?: number;
|
|
14738
|
-
allowLineSeparatedGroups?: boolean;
|
|
14739
|
-
}]); // ----- yaml/sort-sequence-values -----
|
|
14740
|
-
type YamlSortSequenceValues = [{
|
|
14741
|
-
pathPattern: string;
|
|
14742
|
-
order: ((string | {
|
|
14743
|
-
valuePattern?: string;
|
|
14744
|
-
order?: {
|
|
14745
|
-
type?: ("asc" | "desc");
|
|
14746
|
-
caseSensitive?: boolean;
|
|
14747
|
-
natural?: boolean;
|
|
14748
|
-
};
|
|
14749
|
-
})[] | {
|
|
14750
|
-
type?: ("asc" | "desc");
|
|
14751
|
-
caseSensitive?: boolean;
|
|
14752
|
-
natural?: boolean;
|
|
14753
|
-
});
|
|
14754
|
-
minValues?: number;
|
|
14755
|
-
}, ...({
|
|
14756
|
-
pathPattern: string;
|
|
14757
|
-
order: ((string | {
|
|
14758
|
-
valuePattern?: string;
|
|
14759
|
-
order?: {
|
|
14760
|
-
type?: ("asc" | "desc");
|
|
14761
|
-
caseSensitive?: boolean;
|
|
14762
|
-
natural?: boolean;
|
|
14763
|
-
};
|
|
14764
|
-
})[] | {
|
|
14765
|
-
type?: ("asc" | "desc");
|
|
14766
|
-
caseSensitive?: boolean;
|
|
14767
|
-
natural?: boolean;
|
|
14768
|
-
});
|
|
14769
|
-
minValues?: number;
|
|
14770
|
-
})[]]; // ----- yaml/spaced-comment -----
|
|
14771
|
-
type YamlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14772
|
-
exceptions?: string[];
|
|
14773
|
-
markers?: string[];
|
|
14774
|
-
}]; // ----- yield-star-spacing -----
|
|
14775
|
-
type YieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
14776
|
-
before?: boolean;
|
|
14777
|
-
after?: boolean;
|
|
14778
|
-
})]; // ----- yoda -----
|
|
14779
|
-
type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
14780
|
-
exceptRange?: boolean;
|
|
14781
|
-
onlyEquality?: boolean;
|
|
14782
|
-
}]; // Names of all the configs
|
|
14783
|
-
type ConfigNames = 'rotki/eslint-comments/rules' | 'rotki/formatter/setup' | 'rotki/import/rules' | 'rotki/javascript/setup' | 'rotki/javascript/rules' | 'rotki/jsonc/setup' | 'rotki/jsonc/rules' | 'rotki/markdown/setup' | 'rotki/markdown/processor' | 'rotki/markdown/parser' | 'rotki/markdown/disables' | 'rotki/markdown/no-max' | 'rotki/node/rules' | 'rotki/perfectionist/setup' | 'rotki/sort/package-json' | 'rotki/storybook/setup' | 'rotki/storybook/rules' | 'rotki/storybook/main' | 'rotki/stylistic/rules' | 'rotki/test/setup' | 'rotki/test/rules' | 'rotki/regexp/rules' | 'rotki/rotki/setup' | 'rotki/rotki/rules' | 'rotki/typescript/setup' | 'rotki/typescript/parser' | 'rotki/typescript/rules' | 'rotki/unicorn/rules' | 'rotki/unicorn/github-markdown' | 'rotki/vue/setup' | 'rotki/vue/rules' | 'rotki/vue-i18n/setup' | 'rotki/vue-i18n/rules' | 'rotki/yaml/setup' | 'rotki/yaml/rules';
|
|
14784
|
-
//#endregion
|
|
14785
|
-
//#region src/vendor/prettier.d.ts
|
|
14786
|
-
/**
|
|
14787
|
-
* Vendor types from Prettier so we don't rely on the dependency.
|
|
14788
|
-
*/
|
|
14789
|
-
type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
|
|
14790
|
-
interface VendoredPrettierOptionsRequired {
|
|
14791
|
-
/**
|
|
14792
|
-
* Specify the line length that the printer will wrap on.
|
|
14793
|
-
* @default 120
|
|
14794
|
-
*/
|
|
14795
|
-
printWidth: number;
|
|
14796
|
-
/**
|
|
14797
|
-
* Specify the number of spaces per indentation-level.
|
|
14798
|
-
*/
|
|
14799
|
-
tabWidth: number;
|
|
14800
|
-
/**
|
|
14801
|
-
* Indent lines with tabs instead of spaces
|
|
14802
|
-
*/
|
|
14803
|
-
useTabs?: boolean;
|
|
14804
|
-
/**
|
|
14805
|
-
* Print semicolons at the ends of statements.
|
|
14806
|
-
*/
|
|
14807
|
-
semi: boolean;
|
|
14808
|
-
/**
|
|
14809
|
-
* Use single quotes instead of double quotes.
|
|
14810
|
-
*/
|
|
14811
|
-
singleQuote: boolean;
|
|
14812
|
-
/**
|
|
14813
|
-
* Use single quotes in JSX.
|
|
14814
|
-
*/
|
|
14815
|
-
jsxSingleQuote: boolean;
|
|
14816
|
-
/**
|
|
14817
|
-
* Print trailing commas wherever possible.
|
|
14818
|
-
*/
|
|
14819
|
-
trailingComma: 'none' | 'es5' | 'all';
|
|
14820
|
-
/**
|
|
14821
|
-
* Print spaces between brackets in object literals.
|
|
14822
|
-
*/
|
|
14823
|
-
bracketSpacing: boolean;
|
|
14824
|
-
/**
|
|
14825
|
-
* Put the `>` of a multi-line HTML (HTML, XML, JSX, Vue, Angular) element at the end of the last line instead of being
|
|
14826
|
-
* alone on the next line (does not apply to self closing elements).
|
|
14827
|
-
*/
|
|
14828
|
-
bracketSameLine: boolean;
|
|
14829
|
-
/**
|
|
14830
|
-
* Put the `>` of a multi-line JSX element at the end of the last line instead of being alone on the next line.
|
|
14831
|
-
* @deprecated use bracketSameLine instead
|
|
14832
|
-
*/
|
|
14833
|
-
jsxBracketSameLine: boolean;
|
|
14834
|
-
/**
|
|
14835
|
-
* Format only a segment of a file.
|
|
14836
|
-
*/
|
|
14837
|
-
rangeStart: number;
|
|
14838
|
-
/**
|
|
14839
|
-
* Format only a segment of a file.
|
|
14840
|
-
* @default Number.POSITIVE_INFINITY
|
|
14841
|
-
*/
|
|
14842
|
-
rangeEnd: number;
|
|
14843
|
-
/**
|
|
14844
|
-
* By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer.
|
|
14845
|
-
* In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out.
|
|
14846
|
-
* @default "preserve"
|
|
14847
|
-
*/
|
|
14848
|
-
proseWrap: 'always' | 'never' | 'preserve';
|
|
14849
|
-
/**
|
|
14850
|
-
* Include parentheses around a sole arrow function parameter.
|
|
14851
|
-
* @default "always"
|
|
14852
|
-
*/
|
|
14853
|
-
arrowParens: 'avoid' | 'always';
|
|
14854
|
-
/**
|
|
14855
|
-
* Provide ability to support new languages to prettier.
|
|
14856
|
-
*/
|
|
14857
|
-
plugins: Array<string | any>;
|
|
14858
|
-
/**
|
|
14859
|
-
* How to handle whitespaces in HTML.
|
|
14860
|
-
* @default "css"
|
|
14861
|
-
*/
|
|
14862
|
-
htmlWhitespaceSensitivity: 'css' | 'strict' | 'ignore';
|
|
14863
|
-
/**
|
|
14864
|
-
* Which end of line characters to apply.
|
|
14865
|
-
* @default "lf"
|
|
14866
|
-
*/
|
|
14867
|
-
endOfLine: 'auto' | 'lf' | 'crlf' | 'cr';
|
|
14868
|
-
/**
|
|
14869
|
-
* Change when properties in objects are quoted.
|
|
14870
|
-
* @default "as-needed"
|
|
14871
|
-
*/
|
|
14872
|
-
quoteProps: 'as-needed' | 'consistent' | 'preserve';
|
|
14873
|
-
/**
|
|
14874
|
-
* Whether or not to indent the code inside <script> and <style> tags in Vue files.
|
|
14875
|
-
* @default false
|
|
14876
|
-
*/
|
|
14877
|
-
vueIndentScriptAndStyle: boolean;
|
|
14878
|
-
/**
|
|
14879
|
-
* Enforce single attribute per line in HTML, XML, Vue and JSX.
|
|
14880
|
-
* @default false
|
|
14881
|
-
*/
|
|
14882
|
-
singleAttributePerLine: boolean;
|
|
14883
|
-
/**
|
|
14884
|
-
* How to handle whitespaces in XML.
|
|
14885
|
-
* @default "preserve"
|
|
14886
|
-
*/
|
|
14887
|
-
xmlQuoteAttributes: 'single' | 'double' | 'preserve';
|
|
14888
|
-
/**
|
|
14889
|
-
* Whether to put a space inside the brackets of self-closing XML elements.
|
|
14890
|
-
* @default true
|
|
14891
|
-
*/
|
|
14892
|
-
xmlSelfClosingSpace: boolean;
|
|
14893
|
-
/**
|
|
14894
|
-
* Whether to sort attributes by key in XML elements.
|
|
14895
|
-
* @default false
|
|
14896
|
-
*/
|
|
14897
|
-
xmlSortAttributesByKey: boolean;
|
|
14898
|
-
/**
|
|
14899
|
-
* How to handle whitespaces in XML.
|
|
14900
|
-
* @default "ignore"
|
|
14901
|
-
*/
|
|
14902
|
-
xmlWhitespaceSensitivity: 'ignore' | 'strict' | 'preserve';
|
|
14903
|
-
}
|
|
15210
|
+
type YamlQuotes = [] | [{
|
|
15211
|
+
prefer?: ("double" | "single");
|
|
15212
|
+
avoidEscape?: boolean;
|
|
15213
|
+
}]; // ----- yaml/sort-keys -----
|
|
15214
|
+
type YamlSortKeys = ([{
|
|
15215
|
+
pathPattern: string;
|
|
15216
|
+
hasProperties?: string[];
|
|
15217
|
+
order: ((string | {
|
|
15218
|
+
keyPattern?: string;
|
|
15219
|
+
order?: {
|
|
15220
|
+
type?: ("asc" | "desc");
|
|
15221
|
+
caseSensitive?: boolean;
|
|
15222
|
+
natural?: boolean;
|
|
15223
|
+
};
|
|
15224
|
+
})[] | {
|
|
15225
|
+
type?: ("asc" | "desc");
|
|
15226
|
+
caseSensitive?: boolean;
|
|
15227
|
+
natural?: boolean;
|
|
15228
|
+
});
|
|
15229
|
+
minKeys?: number;
|
|
15230
|
+
allowLineSeparatedGroups?: boolean;
|
|
15231
|
+
}, ...({
|
|
15232
|
+
pathPattern: string;
|
|
15233
|
+
hasProperties?: string[];
|
|
15234
|
+
order: ((string | {
|
|
15235
|
+
keyPattern?: string;
|
|
15236
|
+
order?: {
|
|
15237
|
+
type?: ("asc" | "desc");
|
|
15238
|
+
caseSensitive?: boolean;
|
|
15239
|
+
natural?: boolean;
|
|
15240
|
+
};
|
|
15241
|
+
})[] | {
|
|
15242
|
+
type?: ("asc" | "desc");
|
|
15243
|
+
caseSensitive?: boolean;
|
|
15244
|
+
natural?: boolean;
|
|
15245
|
+
});
|
|
15246
|
+
minKeys?: number;
|
|
15247
|
+
allowLineSeparatedGroups?: boolean;
|
|
15248
|
+
})[]] | [] | [("asc" | "desc")] | [("asc" | "desc"), {
|
|
15249
|
+
caseSensitive?: boolean;
|
|
15250
|
+
natural?: boolean;
|
|
15251
|
+
minKeys?: number;
|
|
15252
|
+
allowLineSeparatedGroups?: boolean;
|
|
15253
|
+
}]); // ----- yaml/sort-sequence-values -----
|
|
15254
|
+
type YamlSortSequenceValues = [{
|
|
15255
|
+
pathPattern: string;
|
|
15256
|
+
order: ((string | {
|
|
15257
|
+
valuePattern?: string;
|
|
15258
|
+
order?: {
|
|
15259
|
+
type?: ("asc" | "desc");
|
|
15260
|
+
caseSensitive?: boolean;
|
|
15261
|
+
natural?: boolean;
|
|
15262
|
+
};
|
|
15263
|
+
})[] | {
|
|
15264
|
+
type?: ("asc" | "desc");
|
|
15265
|
+
caseSensitive?: boolean;
|
|
15266
|
+
natural?: boolean;
|
|
15267
|
+
});
|
|
15268
|
+
minValues?: number;
|
|
15269
|
+
}, ...({
|
|
15270
|
+
pathPattern: string;
|
|
15271
|
+
order: ((string | {
|
|
15272
|
+
valuePattern?: string;
|
|
15273
|
+
order?: {
|
|
15274
|
+
type?: ("asc" | "desc");
|
|
15275
|
+
caseSensitive?: boolean;
|
|
15276
|
+
natural?: boolean;
|
|
15277
|
+
};
|
|
15278
|
+
})[] | {
|
|
15279
|
+
type?: ("asc" | "desc");
|
|
15280
|
+
caseSensitive?: boolean;
|
|
15281
|
+
natural?: boolean;
|
|
15282
|
+
});
|
|
15283
|
+
minValues?: number;
|
|
15284
|
+
})[]]; // ----- yaml/spaced-comment -----
|
|
15285
|
+
type YamlSpacedComment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
15286
|
+
exceptions?: string[];
|
|
15287
|
+
markers?: string[];
|
|
15288
|
+
}]; // ----- yield-star-spacing -----
|
|
15289
|
+
type YieldStarSpacing = [] | [(("before" | "after" | "both" | "neither") | {
|
|
15290
|
+
before?: boolean;
|
|
15291
|
+
after?: boolean;
|
|
15292
|
+
})]; // ----- yoda -----
|
|
15293
|
+
type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
15294
|
+
exceptRange?: boolean;
|
|
15295
|
+
onlyEquality?: boolean;
|
|
15296
|
+
}]; // Names of all the configs
|
|
15297
|
+
type ConfigNames = 'rotki/eslint-comments/rules' | 'rotki/formatter/setup' | 'rotki/import/rules' | 'rotki/javascript/setup' | 'rotki/javascript/rules' | 'rotki/jsonc/setup' | 'rotki/jsonc/rules' | 'rotki/markdown/setup' | 'rotki/markdown/processor' | 'rotki/markdown/parser' | 'rotki/markdown/rules' | 'rotki/markdown/disables/markdown' | 'rotki/markdown/disables/code' | 'rotki/markdown/no-max' | 'rotki/node/rules' | 'rotki/perfectionist/setup' | 'rotki/sort/package-json' | 'rotki/storybook/setup' | 'rotki/storybook/rules' | 'rotki/storybook/main' | 'rotki/stylistic/rules' | 'rotki/test/setup' | 'rotki/test/rules' | 'rotki/regexp/rules' | 'rotki/rotki/setup' | 'rotki/rotki/rules' | 'rotki/typescript/setup' | 'rotki/typescript/parser' | 'rotki/typescript/rules' | 'rotki/unicorn/rules' | 'rotki/unicorn/github-markdown' | 'rotki/vue/setup' | 'rotki/vue/rules' | 'rotki/vue-i18n/setup' | 'rotki/vue-i18n/rules' | 'rotki/yaml/setup' | 'rotki/yaml/rules';
|
|
14904
15298
|
//#endregion
|
|
14905
15299
|
//#region src/types.d.ts
|
|
14906
15300
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -14917,171 +15311,7 @@ type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
|
|
|
14917
15311
|
*/
|
|
14918
15312
|
rules?: Linter.RulesRecord & Rules;
|
|
14919
15313
|
};
|
|
14920
|
-
|
|
14921
|
-
interface OptionsFormatters {
|
|
14922
|
-
/**
|
|
14923
|
-
* Enable formatting support for CSS, Less, Sass, and SCSS.
|
|
14924
|
-
*
|
|
14925
|
-
* Currently only support Prettier.
|
|
14926
|
-
*/
|
|
14927
|
-
css?: 'prettier' | boolean;
|
|
14928
|
-
/**
|
|
14929
|
-
* Enable formatting support for HTML.
|
|
14930
|
-
*
|
|
14931
|
-
* Currently only support Prettier.
|
|
14932
|
-
*/
|
|
14933
|
-
html?: 'prettier' | boolean;
|
|
14934
|
-
/**
|
|
14935
|
-
* Enable formatting support for XML.
|
|
14936
|
-
*
|
|
14937
|
-
* Currently only support Prettier.
|
|
14938
|
-
*/
|
|
14939
|
-
xml?: 'prettier' | boolean;
|
|
14940
|
-
/**
|
|
14941
|
-
* Enable formatting support for Markdown.
|
|
14942
|
-
*
|
|
14943
|
-
* Support both Prettier and dprint.
|
|
14944
|
-
*
|
|
14945
|
-
* When set to `true`, it will use Prettier.
|
|
14946
|
-
*/
|
|
14947
|
-
markdown?: 'prettier' | 'dprint' | boolean;
|
|
14948
|
-
/**
|
|
14949
|
-
* Custom options for Prettier.
|
|
14950
|
-
*
|
|
14951
|
-
* By default it's controlled by our own config.
|
|
14952
|
-
*/
|
|
14953
|
-
prettierOptions?: VendoredPrettierOptions;
|
|
14954
|
-
/**
|
|
14955
|
-
* Custom options for dprint.
|
|
14956
|
-
*
|
|
14957
|
-
* By default it's controlled by our own config.
|
|
14958
|
-
*/
|
|
14959
|
-
dprintOptions?: boolean;
|
|
14960
|
-
}
|
|
14961
|
-
interface OptionsFiles {
|
|
14962
|
-
/**
|
|
14963
|
-
* Override the `files` option to provide custom globs.
|
|
14964
|
-
*/
|
|
14965
|
-
files?: string[];
|
|
14966
|
-
}
|
|
14967
|
-
interface OptionsVue extends OptionsOverrides {
|
|
14968
|
-
/**
|
|
14969
|
-
* Create virtual files for Vue SFC blocks to enable linting.
|
|
14970
|
-
*
|
|
14971
|
-
* @see https://github.com/antfu/eslint-processor-vue-blocks
|
|
14972
|
-
* @default true
|
|
14973
|
-
*/
|
|
14974
|
-
sfcBlocks?: boolean | Options;
|
|
14975
|
-
}
|
|
14976
|
-
interface VueI18nNoRawTextIgnores {
|
|
14977
|
-
nodes?: string[];
|
|
14978
|
-
pattern?: string;
|
|
14979
|
-
text?: string[];
|
|
14980
|
-
}
|
|
14981
|
-
interface OptionsVueI18n extends OptionsOverrides {
|
|
14982
|
-
/**
|
|
14983
|
-
* The source directory where of the project where vue-i18n is setup.
|
|
14984
|
-
*/
|
|
14985
|
-
src?: string;
|
|
14986
|
-
/**
|
|
14987
|
-
* The locales directory under the source directory
|
|
14988
|
-
*
|
|
14989
|
-
* @default locales
|
|
14990
|
-
*/
|
|
14991
|
-
localesDirectory?: string;
|
|
14992
|
-
/**
|
|
14993
|
-
* Optional configuration for @intlify/vue-i18n/no-raw-text rule
|
|
14994
|
-
*/
|
|
14995
|
-
noRawTextIgnores?: VueI18nNoRawTextIgnores;
|
|
14996
|
-
}
|
|
14997
|
-
interface OptionsRotkiPlugin extends OptionsOverrides {
|
|
14998
|
-
/** Key patterns ignored by @rotki/no-unused-i18n-keys */
|
|
14999
|
-
ignoreKeys?: string[];
|
|
15000
|
-
/** @default 'src' */
|
|
15001
|
-
src?: string;
|
|
15002
|
-
}
|
|
15003
|
-
interface OptionsOverrides {
|
|
15004
|
-
overrides?: TypedFlatConfigItem['rules'];
|
|
15005
|
-
}
|
|
15006
|
-
interface OptionsProjectType {
|
|
15007
|
-
/**
|
|
15008
|
-
* Type of the project. `lib` will enable more strict rules for libraries.
|
|
15009
|
-
*
|
|
15010
|
-
* @default 'app'
|
|
15011
|
-
*/
|
|
15012
|
-
type?: 'app' | 'lib';
|
|
15013
|
-
}
|
|
15014
|
-
interface OptionsRegExp {
|
|
15015
|
-
/**
|
|
15016
|
-
* Override rulelevels
|
|
15017
|
-
*/
|
|
15018
|
-
level?: 'error' | 'warn';
|
|
15019
|
-
}
|
|
15020
|
-
interface OptionsComponentExts {
|
|
15021
|
-
/**
|
|
15022
|
-
* Additional extensions for components.
|
|
15023
|
-
*
|
|
15024
|
-
* @example ['vue']
|
|
15025
|
-
* @default []
|
|
15026
|
-
*/
|
|
15027
|
-
componentExts?: string[];
|
|
15028
|
-
}
|
|
15029
|
-
interface OptionsUnicorn {
|
|
15030
|
-
/**
|
|
15031
|
-
* Include all rules recommended by `eslint-plugin-unicorn`, instead of only ones picked by Anthony.
|
|
15032
|
-
*
|
|
15033
|
-
* @default false
|
|
15034
|
-
*/
|
|
15035
|
-
allRecommended?: boolean;
|
|
15036
|
-
}
|
|
15037
|
-
interface OptionsTypeScriptParserOptions {
|
|
15038
|
-
/**
|
|
15039
|
-
* Additional parser options for TypeScript.
|
|
15040
|
-
*/
|
|
15041
|
-
parserOptions?: Partial<ParserOptions>;
|
|
15042
|
-
/**
|
|
15043
|
-
* Glob patterns for files that should be type aware.
|
|
15044
|
-
* @default ['**\/*.{ts,tsx}']
|
|
15045
|
-
*/
|
|
15046
|
-
filesTypeAware?: string[];
|
|
15047
|
-
/**
|
|
15048
|
-
* Glob patterns for files that should not be type aware.
|
|
15049
|
-
* @default ['**\/*.md\/**', '**\/*.astro/*.ts']
|
|
15050
|
-
*/
|
|
15051
|
-
ignoresTypeAware?: string[];
|
|
15052
|
-
}
|
|
15053
|
-
interface OptionsTypeScriptWithTypes {
|
|
15054
|
-
/**
|
|
15055
|
-
* When this options is provided, type aware rules will be enabled.
|
|
15056
|
-
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
15057
|
-
*/
|
|
15058
|
-
tsconfigPath?: string;
|
|
15059
|
-
/**
|
|
15060
|
-
* Override type-aware rules.
|
|
15061
|
-
*/
|
|
15062
|
-
overridesTypeAware?: TypedFlatConfigItem['rules'];
|
|
15063
|
-
}
|
|
15064
|
-
interface OptionsHasTypeScript {
|
|
15065
|
-
typescript?: boolean;
|
|
15066
|
-
}
|
|
15067
|
-
interface OptionsStylistic {
|
|
15068
|
-
stylistic?: boolean | StylisticConfig;
|
|
15069
|
-
}
|
|
15070
|
-
interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'indent' | 'quotes' | 'jsx' | 'semi'> {}
|
|
15071
|
-
interface OptionsIsInEditor {
|
|
15072
|
-
isInEditor?: boolean;
|
|
15073
|
-
}
|
|
15074
|
-
interface OptionsPnpm extends OptionsIsInEditor {
|
|
15075
|
-
/** Requires catalogs usage. Detects automatically based on pnpm-workspace.yaml */
|
|
15076
|
-
catalogs?: boolean;
|
|
15077
|
-
/** Enable linting for package.json @default true */
|
|
15078
|
-
json?: boolean;
|
|
15079
|
-
/** Enable linting for pnpm-workspace.yaml @default true */
|
|
15080
|
-
yaml?: boolean;
|
|
15081
|
-
/** Sort entries in pnpm-workspace.yaml @default false */
|
|
15082
|
-
sort?: boolean;
|
|
15083
|
-
}
|
|
15084
|
-
interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
15314
|
+
interface OptionsConfig {
|
|
15085
15315
|
/**
|
|
15086
15316
|
* Enable gitignore support.
|
|
15087
15317
|
*
|
|
@@ -15162,7 +15392,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
15162
15392
|
*
|
|
15163
15393
|
* @default true
|
|
15164
15394
|
*/
|
|
15165
|
-
markdown?: boolean |
|
|
15395
|
+
markdown?: boolean | OptionsMarkdown;
|
|
15166
15396
|
/**
|
|
15167
15397
|
* Enable stylistic rules.
|
|
15168
15398
|
*
|
|
@@ -15216,6 +15446,12 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
15216
15446
|
* @default false
|
|
15217
15447
|
*/
|
|
15218
15448
|
vueI18n?: boolean | OptionsVueI18n;
|
|
15449
|
+
/**
|
|
15450
|
+
* Enable e18e rules for modernization and performance.
|
|
15451
|
+
*
|
|
15452
|
+
* @default true
|
|
15453
|
+
*/
|
|
15454
|
+
e18e?: boolean | OptionsE18e;
|
|
15219
15455
|
/**
|
|
15220
15456
|
* Enable storybook linting support
|
|
15221
15457
|
*
|
|
@@ -15261,6 +15497,9 @@ declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
|
15261
15497
|
//#region src/configs/disables.d.ts
|
|
15262
15498
|
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
15263
15499
|
//#endregion
|
|
15500
|
+
//#region src/configs/e18e.d.ts
|
|
15501
|
+
declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
|
|
15502
|
+
//#endregion
|
|
15264
15503
|
//#region src/configs/formatters.d.ts
|
|
15265
15504
|
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
15266
15505
|
//#endregion
|
|
@@ -15277,7 +15516,7 @@ declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Pro
|
|
|
15277
15516
|
declare function jsonc(options?: OptionsFiles & OptionsStylistic & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
15278
15517
|
//#endregion
|
|
15279
15518
|
//#region src/configs/markdown.d.ts
|
|
15280
|
-
declare function markdown(options?: OptionsFiles & OptionsComponentExts &
|
|
15519
|
+
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsMarkdown): Promise<TypedFlatConfigItem[]>;
|
|
15281
15520
|
//#endregion
|
|
15282
15521
|
//#region src/configs/node.d.ts
|
|
15283
15522
|
declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
@@ -15430,4 +15669,4 @@ declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Reco
|
|
|
15430
15669
|
declare function isInEditorEnv(): boolean;
|
|
15431
15670
|
declare function isInGitHooksOrLintStaged(): boolean;
|
|
15432
15671
|
//#endregion
|
|
15433
|
-
export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsRegExp, OptionsRotkiPlugin, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsVue, OptionsVueI18n, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, comments, rotki as default, rotki, defaultPluginRenaming, disables, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsonc, markdown, node, parserPlain, perfectionist, pnpm, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, rotkiPlugin, sortPackageJson, sortTsconfig, storybook, stylistic, test, toArray, typescript, unicorn, vue, vueI18n, yaml };
|
|
15672
|
+
export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsComponentExts, OptionsConfig, type OptionsE18e, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsMarkdown, type OptionsOverrides, type OptionsPnpm, type OptionsProjectType, type OptionsRegExp, type OptionsRotkiPlugin, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type OptionsUnicorn, type OptionsVue, type OptionsVueI18n, ResolvedOptions, Rules, type StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, comments, rotki as default, rotki, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsonc, markdown, node, parserPlain, perfectionist, pnpm, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, rotkiPlugin, sortPackageJson, sortTsconfig, storybook, stylistic, test, toArray, typescript, unicorn, vue, vueI18n, yaml };
|