@shun-shobon/style-guide 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eslint/index.d.mts +4448 -0
- package/dist/eslint/index.mjs +519 -0
- package/dist/eslint/index.mjs.map +1 -0
- package/dist/prettier/index.d.mts +61 -0
- package/dist/prettier/index.mjs +103 -0
- package/dist/prettier/index.mjs.map +1 -0
- package/package.json +19 -18
- package/dist/eslint/index.d.ts +0 -4995
- package/dist/eslint/index.js +0 -831
- package/dist/eslint/index.js.map +0 -1
- package/dist/prettier/index.d.ts +0 -53
- package/dist/prettier/index.js +0 -127
- package/dist/prettier/index.js.map +0 -1
|
@@ -0,0 +1,4448 @@
|
|
|
1
|
+
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
2
|
+
import { Linter } from "eslint";
|
|
3
|
+
import { RulesConfig } from "@eslint/core";
|
|
4
|
+
|
|
5
|
+
//#region src/eslint/rules.d.ts
|
|
6
|
+
interface RuleOptions {
|
|
7
|
+
/**
|
|
8
|
+
* apply `jsx-a11y/alt-text` rule to Astro components
|
|
9
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/alt-text/
|
|
10
|
+
*/
|
|
11
|
+
'astro/jsx-a11y/alt-text'?: Linter.RuleEntry<AstroJsxA11YAltText>;
|
|
12
|
+
/**
|
|
13
|
+
* apply `jsx-a11y/anchor-ambiguous-text` rule to Astro components
|
|
14
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-ambiguous-text/
|
|
15
|
+
*/
|
|
16
|
+
'astro/jsx-a11y/anchor-ambiguous-text'?: Linter.RuleEntry<AstroJsxA11YAnchorAmbiguousText>;
|
|
17
|
+
/**
|
|
18
|
+
* apply `jsx-a11y/anchor-has-content` rule to Astro components
|
|
19
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-has-content/
|
|
20
|
+
*/
|
|
21
|
+
'astro/jsx-a11y/anchor-has-content'?: Linter.RuleEntry<AstroJsxA11YAnchorHasContent>;
|
|
22
|
+
/**
|
|
23
|
+
* apply `jsx-a11y/anchor-is-valid` rule to Astro components
|
|
24
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/anchor-is-valid/
|
|
25
|
+
*/
|
|
26
|
+
'astro/jsx-a11y/anchor-is-valid'?: Linter.RuleEntry<AstroJsxA11YAnchorIsValid>;
|
|
27
|
+
/**
|
|
28
|
+
* apply `jsx-a11y/aria-activedescendant-has-tabindex` rule to Astro components
|
|
29
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-activedescendant-has-tabindex/
|
|
30
|
+
*/
|
|
31
|
+
'astro/jsx-a11y/aria-activedescendant-has-tabindex'?: Linter.RuleEntry<AstroJsxA11YAriaActivedescendantHasTabindex>;
|
|
32
|
+
/**
|
|
33
|
+
* apply `jsx-a11y/aria-props` rule to Astro components
|
|
34
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-props/
|
|
35
|
+
*/
|
|
36
|
+
'astro/jsx-a11y/aria-props'?: Linter.RuleEntry<AstroJsxA11YAriaProps>;
|
|
37
|
+
/**
|
|
38
|
+
* apply `jsx-a11y/aria-proptypes` rule to Astro components
|
|
39
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-proptypes/
|
|
40
|
+
*/
|
|
41
|
+
'astro/jsx-a11y/aria-proptypes'?: Linter.RuleEntry<AstroJsxA11YAriaProptypes>;
|
|
42
|
+
/**
|
|
43
|
+
* apply `jsx-a11y/aria-role` rule to Astro components
|
|
44
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-role/
|
|
45
|
+
*/
|
|
46
|
+
'astro/jsx-a11y/aria-role'?: Linter.RuleEntry<AstroJsxA11YAriaRole>;
|
|
47
|
+
/**
|
|
48
|
+
* apply `jsx-a11y/aria-unsupported-elements` rule to Astro components
|
|
49
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/aria-unsupported-elements/
|
|
50
|
+
*/
|
|
51
|
+
'astro/jsx-a11y/aria-unsupported-elements'?: Linter.RuleEntry<AstroJsxA11YAriaUnsupportedElements>;
|
|
52
|
+
/**
|
|
53
|
+
* apply `jsx-a11y/autocomplete-valid` rule to Astro components
|
|
54
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/autocomplete-valid/
|
|
55
|
+
*/
|
|
56
|
+
'astro/jsx-a11y/autocomplete-valid'?: Linter.RuleEntry<AstroJsxA11YAutocompleteValid>;
|
|
57
|
+
/**
|
|
58
|
+
* apply `jsx-a11y/click-events-have-key-events` rule to Astro components
|
|
59
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/click-events-have-key-events/
|
|
60
|
+
*/
|
|
61
|
+
'astro/jsx-a11y/click-events-have-key-events'?: Linter.RuleEntry<AstroJsxA11YClickEventsHaveKeyEvents>;
|
|
62
|
+
/**
|
|
63
|
+
* apply `jsx-a11y/control-has-associated-label` rule to Astro components
|
|
64
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/control-has-associated-label/
|
|
65
|
+
*/
|
|
66
|
+
'astro/jsx-a11y/control-has-associated-label'?: Linter.RuleEntry<AstroJsxA11YControlHasAssociatedLabel>;
|
|
67
|
+
/**
|
|
68
|
+
* apply `jsx-a11y/heading-has-content` rule to Astro components
|
|
69
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/heading-has-content/
|
|
70
|
+
*/
|
|
71
|
+
'astro/jsx-a11y/heading-has-content'?: Linter.RuleEntry<AstroJsxA11YHeadingHasContent>;
|
|
72
|
+
/**
|
|
73
|
+
* apply `jsx-a11y/html-has-lang` rule to Astro components
|
|
74
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/html-has-lang/
|
|
75
|
+
*/
|
|
76
|
+
'astro/jsx-a11y/html-has-lang'?: Linter.RuleEntry<AstroJsxA11YHtmlHasLang>;
|
|
77
|
+
/**
|
|
78
|
+
* apply `jsx-a11y/iframe-has-title` rule to Astro components
|
|
79
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/iframe-has-title/
|
|
80
|
+
*/
|
|
81
|
+
'astro/jsx-a11y/iframe-has-title'?: Linter.RuleEntry<AstroJsxA11YIframeHasTitle>;
|
|
82
|
+
/**
|
|
83
|
+
* apply `jsx-a11y/img-redundant-alt` rule to Astro components
|
|
84
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/img-redundant-alt/
|
|
85
|
+
*/
|
|
86
|
+
'astro/jsx-a11y/img-redundant-alt'?: Linter.RuleEntry<AstroJsxA11YImgRedundantAlt>;
|
|
87
|
+
/**
|
|
88
|
+
* apply `jsx-a11y/interactive-supports-focus` rule to Astro components
|
|
89
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/interactive-supports-focus/
|
|
90
|
+
*/
|
|
91
|
+
'astro/jsx-a11y/interactive-supports-focus'?: Linter.RuleEntry<AstroJsxA11YInteractiveSupportsFocus>;
|
|
92
|
+
/**
|
|
93
|
+
* apply `jsx-a11y/label-has-associated-control` rule to Astro components
|
|
94
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/label-has-associated-control/
|
|
95
|
+
*/
|
|
96
|
+
'astro/jsx-a11y/label-has-associated-control'?: Linter.RuleEntry<AstroJsxA11YLabelHasAssociatedControl>;
|
|
97
|
+
/**
|
|
98
|
+
* apply `jsx-a11y/lang` rule to Astro components
|
|
99
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/lang/
|
|
100
|
+
*/
|
|
101
|
+
'astro/jsx-a11y/lang'?: Linter.RuleEntry<AstroJsxA11YLang>;
|
|
102
|
+
/**
|
|
103
|
+
* apply `jsx-a11y/media-has-caption` rule to Astro components
|
|
104
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/media-has-caption/
|
|
105
|
+
*/
|
|
106
|
+
'astro/jsx-a11y/media-has-caption'?: Linter.RuleEntry<AstroJsxA11YMediaHasCaption>;
|
|
107
|
+
/**
|
|
108
|
+
* apply `jsx-a11y/mouse-events-have-key-events` rule to Astro components
|
|
109
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/mouse-events-have-key-events/
|
|
110
|
+
*/
|
|
111
|
+
'astro/jsx-a11y/mouse-events-have-key-events'?: Linter.RuleEntry<AstroJsxA11YMouseEventsHaveKeyEvents>;
|
|
112
|
+
/**
|
|
113
|
+
* apply `jsx-a11y/no-access-key` rule to Astro components
|
|
114
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-access-key/
|
|
115
|
+
*/
|
|
116
|
+
'astro/jsx-a11y/no-access-key'?: Linter.RuleEntry<AstroJsxA11YNoAccessKey>;
|
|
117
|
+
/**
|
|
118
|
+
* apply `jsx-a11y/no-aria-hidden-on-focusable` rule to Astro components
|
|
119
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-aria-hidden-on-focusable/
|
|
120
|
+
*/
|
|
121
|
+
'astro/jsx-a11y/no-aria-hidden-on-focusable'?: Linter.RuleEntry<AstroJsxA11YNoAriaHiddenOnFocusable>;
|
|
122
|
+
/**
|
|
123
|
+
* apply `jsx-a11y/no-autofocus` rule to Astro components
|
|
124
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-autofocus/
|
|
125
|
+
*/
|
|
126
|
+
'astro/jsx-a11y/no-autofocus'?: Linter.RuleEntry<AstroJsxA11YNoAutofocus>;
|
|
127
|
+
/**
|
|
128
|
+
* apply `jsx-a11y/no-distracting-elements` rule to Astro components
|
|
129
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-distracting-elements/
|
|
130
|
+
*/
|
|
131
|
+
'astro/jsx-a11y/no-distracting-elements'?: Linter.RuleEntry<AstroJsxA11YNoDistractingElements>;
|
|
132
|
+
/**
|
|
133
|
+
* apply `jsx-a11y/no-interactive-element-to-noninteractive-role` rule to Astro components
|
|
134
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-interactive-element-to-noninteractive-role/
|
|
135
|
+
*/
|
|
136
|
+
'astro/jsx-a11y/no-interactive-element-to-noninteractive-role'?: Linter.RuleEntry<AstroJsxA11YNoInteractiveElementToNoninteractiveRole>;
|
|
137
|
+
/**
|
|
138
|
+
* apply `jsx-a11y/no-noninteractive-element-interactions` rule to Astro components
|
|
139
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-element-interactions/
|
|
140
|
+
*/
|
|
141
|
+
'astro/jsx-a11y/no-noninteractive-element-interactions'?: Linter.RuleEntry<AstroJsxA11YNoNoninteractiveElementInteractions>;
|
|
142
|
+
/**
|
|
143
|
+
* apply `jsx-a11y/no-noninteractive-element-to-interactive-role` rule to Astro components
|
|
144
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-element-to-interactive-role/
|
|
145
|
+
*/
|
|
146
|
+
'astro/jsx-a11y/no-noninteractive-element-to-interactive-role'?: Linter.RuleEntry<AstroJsxA11YNoNoninteractiveElementToInteractiveRole>;
|
|
147
|
+
/**
|
|
148
|
+
* apply `jsx-a11y/no-noninteractive-tabindex` rule to Astro components
|
|
149
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-noninteractive-tabindex/
|
|
150
|
+
*/
|
|
151
|
+
'astro/jsx-a11y/no-noninteractive-tabindex'?: Linter.RuleEntry<AstroJsxA11YNoNoninteractiveTabindex>;
|
|
152
|
+
/**
|
|
153
|
+
* apply `jsx-a11y/no-redundant-roles` rule to Astro components
|
|
154
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-redundant-roles/
|
|
155
|
+
*/
|
|
156
|
+
'astro/jsx-a11y/no-redundant-roles'?: Linter.RuleEntry<AstroJsxA11YNoRedundantRoles>;
|
|
157
|
+
/**
|
|
158
|
+
* apply `jsx-a11y/no-static-element-interactions` rule to Astro components
|
|
159
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/no-static-element-interactions/
|
|
160
|
+
*/
|
|
161
|
+
'astro/jsx-a11y/no-static-element-interactions'?: Linter.RuleEntry<AstroJsxA11YNoStaticElementInteractions>;
|
|
162
|
+
/**
|
|
163
|
+
* apply `jsx-a11y/prefer-tag-over-role` rule to Astro components
|
|
164
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/prefer-tag-over-role/
|
|
165
|
+
*/
|
|
166
|
+
'astro/jsx-a11y/prefer-tag-over-role'?: Linter.RuleEntry<AstroJsxA11YPreferTagOverRole>;
|
|
167
|
+
/**
|
|
168
|
+
* apply `jsx-a11y/role-has-required-aria-props` rule to Astro components
|
|
169
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/role-has-required-aria-props/
|
|
170
|
+
*/
|
|
171
|
+
'astro/jsx-a11y/role-has-required-aria-props'?: Linter.RuleEntry<AstroJsxA11YRoleHasRequiredAriaProps>;
|
|
172
|
+
/**
|
|
173
|
+
* apply `jsx-a11y/role-supports-aria-props` rule to Astro components
|
|
174
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/role-supports-aria-props/
|
|
175
|
+
*/
|
|
176
|
+
'astro/jsx-a11y/role-supports-aria-props'?: Linter.RuleEntry<AstroJsxA11YRoleSupportsAriaProps>;
|
|
177
|
+
/**
|
|
178
|
+
* apply `jsx-a11y/scope` rule to Astro components
|
|
179
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/scope/
|
|
180
|
+
*/
|
|
181
|
+
'astro/jsx-a11y/scope'?: Linter.RuleEntry<AstroJsxA11YScope>;
|
|
182
|
+
/**
|
|
183
|
+
* apply `jsx-a11y/tabindex-no-positive` rule to Astro components
|
|
184
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/jsx-a11y/tabindex-no-positive/
|
|
185
|
+
*/
|
|
186
|
+
'astro/jsx-a11y/tabindex-no-positive'?: Linter.RuleEntry<AstroJsxA11YTabindexNoPositive>;
|
|
187
|
+
/**
|
|
188
|
+
* the client:only directive is missing the correct component's framework value
|
|
189
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/missing-client-only-directive-value/
|
|
190
|
+
*/
|
|
191
|
+
'astro/missing-client-only-directive-value'?: Linter.RuleEntry<[]>;
|
|
192
|
+
/**
|
|
193
|
+
* disallow conflicting set directives and child contents
|
|
194
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-conflict-set-directives/
|
|
195
|
+
*/
|
|
196
|
+
'astro/no-conflict-set-directives'?: Linter.RuleEntry<[]>;
|
|
197
|
+
/**
|
|
198
|
+
* disallow using deprecated `Astro.canonicalURL`
|
|
199
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-canonicalurl/
|
|
200
|
+
*/
|
|
201
|
+
'astro/no-deprecated-astro-canonicalurl'?: Linter.RuleEntry<[]>;
|
|
202
|
+
/**
|
|
203
|
+
* disallow using deprecated `Astro.fetchContent()`
|
|
204
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-fetchcontent/
|
|
205
|
+
*/
|
|
206
|
+
'astro/no-deprecated-astro-fetchcontent'?: Linter.RuleEntry<[]>;
|
|
207
|
+
/**
|
|
208
|
+
* disallow using deprecated `Astro.resolve()`
|
|
209
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-astro-resolve/
|
|
210
|
+
*/
|
|
211
|
+
'astro/no-deprecated-astro-resolve'?: Linter.RuleEntry<[]>;
|
|
212
|
+
/**
|
|
213
|
+
* disallow using deprecated `getEntryBySlug()`
|
|
214
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-deprecated-getentrybyslug/
|
|
215
|
+
*/
|
|
216
|
+
'astro/no-deprecated-getentrybyslug'?: Linter.RuleEntry<[]>;
|
|
217
|
+
/**
|
|
218
|
+
* disallow value export
|
|
219
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-exports-from-components/
|
|
220
|
+
*/
|
|
221
|
+
'astro/no-exports-from-components'?: Linter.RuleEntry<[]>;
|
|
222
|
+
/**
|
|
223
|
+
* disallow use of `set:html` to prevent XSS attack
|
|
224
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-html-directive/
|
|
225
|
+
*/
|
|
226
|
+
'astro/no-set-html-directive'?: Linter.RuleEntry<[]>;
|
|
227
|
+
/**
|
|
228
|
+
* disallow use of `set:text`
|
|
229
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
|
|
230
|
+
*/
|
|
231
|
+
'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
|
|
232
|
+
/**
|
|
233
|
+
* disallow inline `<script>` without `src` to encourage CSP-safe patterns
|
|
234
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
|
|
235
|
+
*/
|
|
236
|
+
'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
|
|
237
|
+
/**
|
|
238
|
+
* disallow selectors defined in `style` tag that don't use in HTML
|
|
239
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
|
|
240
|
+
*/
|
|
241
|
+
'astro/no-unused-css-selector'?: Linter.RuleEntry<[]>;
|
|
242
|
+
/**
|
|
243
|
+
* disallow unused `define:vars={...}` in `style` tag
|
|
244
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-define-vars-in-style/
|
|
245
|
+
*/
|
|
246
|
+
'astro/no-unused-define-vars-in-style'?: Linter.RuleEntry<[]>;
|
|
247
|
+
/**
|
|
248
|
+
* require `class:list` directives instead of `class` with expressions
|
|
249
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-class-list-directive/
|
|
250
|
+
*/
|
|
251
|
+
'astro/prefer-class-list-directive'?: Linter.RuleEntry<[]>;
|
|
252
|
+
/**
|
|
253
|
+
* require use object instead of ternary expression in `class:list`
|
|
254
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-object-class-list/
|
|
255
|
+
*/
|
|
256
|
+
'astro/prefer-object-class-list'?: Linter.RuleEntry<[]>;
|
|
257
|
+
/**
|
|
258
|
+
* require use split array elements in `class:list`
|
|
259
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/prefer-split-class-list/
|
|
260
|
+
*/
|
|
261
|
+
'astro/prefer-split-class-list'?: Linter.RuleEntry<AstroPreferSplitClassList>;
|
|
262
|
+
/**
|
|
263
|
+
* Require or disallow semicolons instead of ASI
|
|
264
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/semi/
|
|
265
|
+
*/
|
|
266
|
+
'astro/semi'?: Linter.RuleEntry<AstroSemi>;
|
|
267
|
+
/**
|
|
268
|
+
* enforce sorting of attributes
|
|
269
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/sort-attributes/
|
|
270
|
+
*/
|
|
271
|
+
'astro/sort-attributes'?: Linter.RuleEntry<AstroSortAttributes>;
|
|
272
|
+
/**
|
|
273
|
+
* disallow warnings when compiling.
|
|
274
|
+
* @see https://ota-meshi.github.io/eslint-plugin-astro/rules/valid-compile/
|
|
275
|
+
*/
|
|
276
|
+
'astro/valid-compile'?: Linter.RuleEntry<[]>;
|
|
277
|
+
/**
|
|
278
|
+
* Automatically sort exports.
|
|
279
|
+
* @see https://github.com/lydell/eslint-plugin-simple-import-sort#sort-order
|
|
280
|
+
*/
|
|
281
|
+
'import-sort/exports'?: Linter.RuleEntry<[]>;
|
|
282
|
+
/**
|
|
283
|
+
* Automatically sort imports.
|
|
284
|
+
* @see https://github.com/lydell/eslint-plugin-simple-import-sort#sort-order
|
|
285
|
+
*/
|
|
286
|
+
'import-sort/imports'?: Linter.RuleEntry<ImportSortImports>;
|
|
287
|
+
/**
|
|
288
|
+
* Enforce or ban the use of inline type-only markers for named imports.
|
|
289
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
|
|
290
|
+
*/
|
|
291
|
+
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
292
|
+
/**
|
|
293
|
+
* Ensure a default export is present, given a default import.
|
|
294
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
295
|
+
*/
|
|
296
|
+
'import/default'?: Linter.RuleEntry<[]>;
|
|
297
|
+
/**
|
|
298
|
+
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
299
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
300
|
+
*/
|
|
301
|
+
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
302
|
+
/**
|
|
303
|
+
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
304
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
305
|
+
*/
|
|
306
|
+
'import/export'?: Linter.RuleEntry<[]>;
|
|
307
|
+
/**
|
|
308
|
+
* Ensure all exports appear after other statements.
|
|
309
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
310
|
+
*/
|
|
311
|
+
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
312
|
+
/**
|
|
313
|
+
* Ensure consistent use of file extension within the import path.
|
|
314
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
315
|
+
*/
|
|
316
|
+
'import/extensions'?: Linter.RuleEntry<ImportExtensions>;
|
|
317
|
+
/**
|
|
318
|
+
* Ensure all imports appear before other statements.
|
|
319
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
|
|
320
|
+
*/
|
|
321
|
+
'import/first'?: Linter.RuleEntry<ImportFirst>;
|
|
322
|
+
/**
|
|
323
|
+
* Prefer named exports to be grouped together in a single export declaration.
|
|
324
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
325
|
+
*/
|
|
326
|
+
'import/group-exports'?: Linter.RuleEntry<[]>;
|
|
327
|
+
/**
|
|
328
|
+
* Replaced by `import-x/first`.
|
|
329
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
330
|
+
* @deprecated
|
|
331
|
+
*/
|
|
332
|
+
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>;
|
|
333
|
+
/**
|
|
334
|
+
* Enforce the maximum number of dependencies a module can have.
|
|
335
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
336
|
+
*/
|
|
337
|
+
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
338
|
+
/**
|
|
339
|
+
* Ensure named imports correspond to a named export in the remote file.
|
|
340
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
341
|
+
*/
|
|
342
|
+
'import/named'?: Linter.RuleEntry<ImportNamed>;
|
|
343
|
+
/**
|
|
344
|
+
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
345
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
346
|
+
*/
|
|
347
|
+
'import/namespace'?: Linter.RuleEntry<ImportNamespace>;
|
|
348
|
+
/**
|
|
349
|
+
* Enforce a newline after import statements.
|
|
350
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
|
|
351
|
+
*/
|
|
352
|
+
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
353
|
+
/**
|
|
354
|
+
* Forbid import of modules using absolute paths.
|
|
355
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
356
|
+
*/
|
|
357
|
+
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
358
|
+
/**
|
|
359
|
+
* Forbid AMD `require` and `define` calls.
|
|
360
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
361
|
+
*/
|
|
362
|
+
'import/no-amd'?: Linter.RuleEntry<[]>;
|
|
363
|
+
/**
|
|
364
|
+
* Forbid anonymous values as default exports.
|
|
365
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
366
|
+
*/
|
|
367
|
+
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
368
|
+
/**
|
|
369
|
+
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
370
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
371
|
+
*/
|
|
372
|
+
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
373
|
+
/**
|
|
374
|
+
* Forbid a module from importing a module with a dependency path back to itself.
|
|
375
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
376
|
+
*/
|
|
377
|
+
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>;
|
|
378
|
+
/**
|
|
379
|
+
* Forbid default exports.
|
|
380
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
|
|
381
|
+
*/
|
|
382
|
+
'import/no-default-export'?: Linter.RuleEntry<[]>;
|
|
383
|
+
/**
|
|
384
|
+
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
385
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
386
|
+
*/
|
|
387
|
+
'import/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
388
|
+
/**
|
|
389
|
+
* Forbid repeated import of the same module in multiple places.
|
|
390
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
|
|
391
|
+
*/
|
|
392
|
+
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
393
|
+
/**
|
|
394
|
+
* Forbid `require()` calls with expressions.
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
396
|
+
*/
|
|
397
|
+
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
398
|
+
/**
|
|
399
|
+
* Forbid empty named import blocks.
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
401
|
+
*/
|
|
402
|
+
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
403
|
+
/**
|
|
404
|
+
* Forbid the use of extraneous packages.
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
406
|
+
*/
|
|
407
|
+
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
408
|
+
/**
|
|
409
|
+
* Forbid import statements with CommonJS module.exports.
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
411
|
+
*/
|
|
412
|
+
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
413
|
+
/**
|
|
414
|
+
* Forbid importing the submodules of other modules.
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
416
|
+
*/
|
|
417
|
+
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
418
|
+
/**
|
|
419
|
+
* Forbid the use of mutable exports with `var` or `let`.
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
|
|
421
|
+
*/
|
|
422
|
+
'import/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
423
|
+
/**
|
|
424
|
+
* Forbid use of exported name as identifier of default export.
|
|
425
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
426
|
+
*/
|
|
427
|
+
'import/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
428
|
+
/**
|
|
429
|
+
* Forbid use of exported name as property of default export.
|
|
430
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
431
|
+
*/
|
|
432
|
+
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
433
|
+
/**
|
|
434
|
+
* Forbid named default exports.
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
|
|
436
|
+
*/
|
|
437
|
+
'import/no-named-default'?: Linter.RuleEntry<[]>;
|
|
438
|
+
/**
|
|
439
|
+
* Forbid named exports.
|
|
440
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
441
|
+
*/
|
|
442
|
+
'import/no-named-export'?: Linter.RuleEntry<[]>;
|
|
443
|
+
/**
|
|
444
|
+
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
445
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
446
|
+
*/
|
|
447
|
+
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>;
|
|
448
|
+
/**
|
|
449
|
+
* Forbid Node.js builtin modules.
|
|
450
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
451
|
+
*/
|
|
452
|
+
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
453
|
+
/**
|
|
454
|
+
* Forbid importing packages through relative paths.
|
|
455
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
456
|
+
*/
|
|
457
|
+
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
458
|
+
/**
|
|
459
|
+
* Forbid importing modules from parent directories.
|
|
460
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
461
|
+
*/
|
|
462
|
+
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
463
|
+
/**
|
|
464
|
+
* Forbid importing a default export by a different name.
|
|
465
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
466
|
+
*/
|
|
467
|
+
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
468
|
+
/**
|
|
469
|
+
* Enforce which files can be imported in a given folder.
|
|
470
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
471
|
+
*/
|
|
472
|
+
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
473
|
+
/**
|
|
474
|
+
* Forbid a module from importing itself.
|
|
475
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
476
|
+
*/
|
|
477
|
+
'import/no-self-import'?: Linter.RuleEntry<[]>;
|
|
478
|
+
/**
|
|
479
|
+
* Forbid unassigned imports.
|
|
480
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
481
|
+
*/
|
|
482
|
+
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
483
|
+
/**
|
|
484
|
+
* Ensure imports point to a file/module that can be resolved.
|
|
485
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
486
|
+
*/
|
|
487
|
+
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
488
|
+
/**
|
|
489
|
+
* Forbid modules without exports, or exports without matching import in another module.
|
|
490
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
491
|
+
*/
|
|
492
|
+
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
493
|
+
/**
|
|
494
|
+
* Forbid unnecessary path segments in import and require statements.
|
|
495
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
496
|
+
*/
|
|
497
|
+
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
498
|
+
/**
|
|
499
|
+
* Forbid webpack loader syntax in imports.
|
|
500
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
501
|
+
*/
|
|
502
|
+
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
503
|
+
/**
|
|
504
|
+
* Enforce a convention in module import order.
|
|
505
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
506
|
+
*/
|
|
507
|
+
'import/order'?: Linter.RuleEntry<ImportOrder>;
|
|
508
|
+
/**
|
|
509
|
+
* Prefer a default export if module exports a single name or multiple names.
|
|
510
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
511
|
+
*/
|
|
512
|
+
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
513
|
+
/**
|
|
514
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
515
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
516
|
+
*/
|
|
517
|
+
'import/prefer-namespace-import'?: Linter.RuleEntry<ImportPreferNamespaceImport>;
|
|
518
|
+
/**
|
|
519
|
+
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
520
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
521
|
+
*/
|
|
522
|
+
'import/unambiguous'?: Linter.RuleEntry<[]>;
|
|
523
|
+
/**
|
|
524
|
+
* Enforce emojis are wrapped in `<span>` and provide screen reader access.
|
|
525
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/accessible-emoji.md
|
|
526
|
+
* @deprecated
|
|
527
|
+
*/
|
|
528
|
+
'jsx-a11y/accessible-emoji'?: Linter.RuleEntry<JsxA11YAccessibleEmoji>;
|
|
529
|
+
/**
|
|
530
|
+
* Enforce all elements that require alternative text have meaningful information to relay back to end user.
|
|
531
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/alt-text.md
|
|
532
|
+
*/
|
|
533
|
+
'jsx-a11y/alt-text'?: Linter.RuleEntry<JsxA11YAltText>;
|
|
534
|
+
/**
|
|
535
|
+
* Enforce `<a>` text to not exactly match "click here", "here", "link", or "a link".
|
|
536
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-ambiguous-text.md
|
|
537
|
+
*/
|
|
538
|
+
'jsx-a11y/anchor-ambiguous-text'?: Linter.RuleEntry<JsxA11YAnchorAmbiguousText>;
|
|
539
|
+
/**
|
|
540
|
+
* Enforce all anchors to contain accessible content.
|
|
541
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-has-content.md
|
|
542
|
+
*/
|
|
543
|
+
'jsx-a11y/anchor-has-content'?: Linter.RuleEntry<JsxA11YAnchorHasContent>;
|
|
544
|
+
/**
|
|
545
|
+
* Enforce all anchors are valid, navigable elements.
|
|
546
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/anchor-is-valid.md
|
|
547
|
+
*/
|
|
548
|
+
'jsx-a11y/anchor-is-valid'?: Linter.RuleEntry<JsxA11YAnchorIsValid>;
|
|
549
|
+
/**
|
|
550
|
+
* Enforce elements with aria-activedescendant are tabbable.
|
|
551
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-activedescendant-has-tabindex.md
|
|
552
|
+
*/
|
|
553
|
+
'jsx-a11y/aria-activedescendant-has-tabindex'?: Linter.RuleEntry<JsxA11YAriaActivedescendantHasTabindex>;
|
|
554
|
+
/**
|
|
555
|
+
* Enforce all `aria-*` props are valid.
|
|
556
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-props.md
|
|
557
|
+
*/
|
|
558
|
+
'jsx-a11y/aria-props'?: Linter.RuleEntry<JsxA11YAriaProps>;
|
|
559
|
+
/**
|
|
560
|
+
* Enforce ARIA state and property values are valid.
|
|
561
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-proptypes.md
|
|
562
|
+
*/
|
|
563
|
+
'jsx-a11y/aria-proptypes'?: Linter.RuleEntry<JsxA11YAriaProptypes>;
|
|
564
|
+
/**
|
|
565
|
+
* Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
566
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-role.md
|
|
567
|
+
*/
|
|
568
|
+
'jsx-a11y/aria-role'?: Linter.RuleEntry<JsxA11YAriaRole>;
|
|
569
|
+
/**
|
|
570
|
+
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
571
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/aria-unsupported-elements.md
|
|
572
|
+
*/
|
|
573
|
+
'jsx-a11y/aria-unsupported-elements'?: Linter.RuleEntry<JsxA11YAriaUnsupportedElements>;
|
|
574
|
+
/**
|
|
575
|
+
* Enforce that autocomplete attributes are used correctly.
|
|
576
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/autocomplete-valid.md
|
|
577
|
+
*/
|
|
578
|
+
'jsx-a11y/autocomplete-valid'?: Linter.RuleEntry<JsxA11YAutocompleteValid>;
|
|
579
|
+
/**
|
|
580
|
+
* Enforce a clickable non-interactive element has at least one keyboard event listener.
|
|
581
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/click-events-have-key-events.md
|
|
582
|
+
*/
|
|
583
|
+
'jsx-a11y/click-events-have-key-events'?: Linter.RuleEntry<JsxA11YClickEventsHaveKeyEvents>;
|
|
584
|
+
/**
|
|
585
|
+
* Enforce that a control (an interactive element) has a text label.
|
|
586
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/control-has-associated-label.md
|
|
587
|
+
*/
|
|
588
|
+
'jsx-a11y/control-has-associated-label'?: Linter.RuleEntry<JsxA11YControlHasAssociatedLabel>;
|
|
589
|
+
/**
|
|
590
|
+
* Enforce heading (`h1`, `h2`, etc) elements contain accessible content.
|
|
591
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/heading-has-content.md
|
|
592
|
+
*/
|
|
593
|
+
'jsx-a11y/heading-has-content'?: Linter.RuleEntry<JsxA11YHeadingHasContent>;
|
|
594
|
+
/**
|
|
595
|
+
* Enforce `<html>` element has `lang` prop.
|
|
596
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/html-has-lang.md
|
|
597
|
+
*/
|
|
598
|
+
'jsx-a11y/html-has-lang'?: Linter.RuleEntry<JsxA11YHtmlHasLang>;
|
|
599
|
+
/**
|
|
600
|
+
* Enforce iframe elements have a title attribute.
|
|
601
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/iframe-has-title.md
|
|
602
|
+
*/
|
|
603
|
+
'jsx-a11y/iframe-has-title'?: Linter.RuleEntry<JsxA11YIframeHasTitle>;
|
|
604
|
+
/**
|
|
605
|
+
* Enforce `<img>` alt prop does not contain the word "image", "picture", or "photo".
|
|
606
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/img-redundant-alt.md
|
|
607
|
+
*/
|
|
608
|
+
'jsx-a11y/img-redundant-alt'?: Linter.RuleEntry<JsxA11YImgRedundantAlt>;
|
|
609
|
+
/**
|
|
610
|
+
* Enforce that elements with interactive handlers like `onClick` must be focusable.
|
|
611
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/interactive-supports-focus.md
|
|
612
|
+
*/
|
|
613
|
+
'jsx-a11y/interactive-supports-focus'?: Linter.RuleEntry<JsxA11YInteractiveSupportsFocus>;
|
|
614
|
+
/**
|
|
615
|
+
* Enforce that a `label` tag has a text label and an associated control.
|
|
616
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/main/docs/rules/label-has-associated-control.md
|
|
617
|
+
*/
|
|
618
|
+
'jsx-a11y/label-has-associated-control'?: Linter.RuleEntry<JsxA11YLabelHasAssociatedControl>;
|
|
619
|
+
/**
|
|
620
|
+
* Enforce that `<label>` elements have the `htmlFor` prop.
|
|
621
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/label-has-for.md
|
|
622
|
+
* @deprecated
|
|
623
|
+
*/
|
|
624
|
+
'jsx-a11y/label-has-for'?: Linter.RuleEntry<JsxA11YLabelHasFor>;
|
|
625
|
+
/**
|
|
626
|
+
* Enforce lang attribute has a valid value.
|
|
627
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/lang.md
|
|
628
|
+
*/
|
|
629
|
+
'jsx-a11y/lang'?: Linter.RuleEntry<JsxA11YLang>;
|
|
630
|
+
/**
|
|
631
|
+
* Enforces that `<audio>` and `<video>` elements must have a `<track>` for captions.
|
|
632
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/media-has-caption.md
|
|
633
|
+
*/
|
|
634
|
+
'jsx-a11y/media-has-caption'?: Linter.RuleEntry<JsxA11YMediaHasCaption>;
|
|
635
|
+
/**
|
|
636
|
+
* Enforce that `onMouseOver`/`onMouseOut` are accompanied by `onFocus`/`onBlur` for keyboard-only users.
|
|
637
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/mouse-events-have-key-events.md
|
|
638
|
+
*/
|
|
639
|
+
'jsx-a11y/mouse-events-have-key-events'?: Linter.RuleEntry<JsxA11YMouseEventsHaveKeyEvents>;
|
|
640
|
+
/**
|
|
641
|
+
* Enforce that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader.
|
|
642
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-access-key.md
|
|
643
|
+
*/
|
|
644
|
+
'jsx-a11y/no-access-key'?: Linter.RuleEntry<JsxA11YNoAccessKey>;
|
|
645
|
+
/**
|
|
646
|
+
* Disallow `aria-hidden="true"` from being set on focusable elements.
|
|
647
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-aria-hidden-on-focusable.md
|
|
648
|
+
*/
|
|
649
|
+
'jsx-a11y/no-aria-hidden-on-focusable'?: Linter.RuleEntry<JsxA11YNoAriaHiddenOnFocusable>;
|
|
650
|
+
/**
|
|
651
|
+
* Enforce autoFocus prop is not used.
|
|
652
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-autofocus.md
|
|
653
|
+
*/
|
|
654
|
+
'jsx-a11y/no-autofocus'?: Linter.RuleEntry<JsxA11YNoAutofocus>;
|
|
655
|
+
/**
|
|
656
|
+
* Enforce distracting elements are not used.
|
|
657
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-distracting-elements.md
|
|
658
|
+
*/
|
|
659
|
+
'jsx-a11y/no-distracting-elements'?: Linter.RuleEntry<JsxA11YNoDistractingElements>;
|
|
660
|
+
/**
|
|
661
|
+
* Interactive elements should not be assigned non-interactive roles.
|
|
662
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-interactive-element-to-noninteractive-role.md
|
|
663
|
+
*/
|
|
664
|
+
'jsx-a11y/no-interactive-element-to-noninteractive-role'?: Linter.RuleEntry<JsxA11YNoInteractiveElementToNoninteractiveRole>;
|
|
665
|
+
/**
|
|
666
|
+
* Non-interactive elements should not be assigned mouse or keyboard event listeners.
|
|
667
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-interactions.md
|
|
668
|
+
*/
|
|
669
|
+
'jsx-a11y/no-noninteractive-element-interactions'?: Linter.RuleEntry<JsxA11YNoNoninteractiveElementInteractions>;
|
|
670
|
+
/**
|
|
671
|
+
* Non-interactive elements should not be assigned interactive roles.
|
|
672
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-element-to-interactive-role.md
|
|
673
|
+
*/
|
|
674
|
+
'jsx-a11y/no-noninteractive-element-to-interactive-role'?: Linter.RuleEntry<JsxA11YNoNoninteractiveElementToInteractiveRole>;
|
|
675
|
+
/**
|
|
676
|
+
* `tabIndex` should only be declared on interactive elements.
|
|
677
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-noninteractive-tabindex.md
|
|
678
|
+
*/
|
|
679
|
+
'jsx-a11y/no-noninteractive-tabindex'?: Linter.RuleEntry<JsxA11YNoNoninteractiveTabindex>;
|
|
680
|
+
/**
|
|
681
|
+
* Enforce usage of `onBlur` over `onChange` on select menus for accessibility.
|
|
682
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-onchange.md
|
|
683
|
+
* @deprecated
|
|
684
|
+
*/
|
|
685
|
+
'jsx-a11y/no-onchange'?: Linter.RuleEntry<JsxA11YNoOnchange>;
|
|
686
|
+
/**
|
|
687
|
+
* Enforce explicit role property is not the same as implicit/default role property on element.
|
|
688
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-redundant-roles.md
|
|
689
|
+
*/
|
|
690
|
+
'jsx-a11y/no-redundant-roles'?: Linter.RuleEntry<JsxA11YNoRedundantRoles>;
|
|
691
|
+
/**
|
|
692
|
+
* Enforce that non-interactive, visible elements (such as `<div>`) that have click handlers use the role attribute.
|
|
693
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/no-static-element-interactions.md
|
|
694
|
+
*/
|
|
695
|
+
'jsx-a11y/no-static-element-interactions'?: Linter.RuleEntry<JsxA11YNoStaticElementInteractions>;
|
|
696
|
+
/**
|
|
697
|
+
* Enforces using semantic DOM elements over the ARIA `role` property.
|
|
698
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/prefer-tag-over-role.md
|
|
699
|
+
*/
|
|
700
|
+
'jsx-a11y/prefer-tag-over-role'?: Linter.RuleEntry<JsxA11YPreferTagOverRole>;
|
|
701
|
+
/**
|
|
702
|
+
* Enforce that elements with ARIA roles must have all required attributes for that role.
|
|
703
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-has-required-aria-props.md
|
|
704
|
+
*/
|
|
705
|
+
'jsx-a11y/role-has-required-aria-props'?: Linter.RuleEntry<JsxA11YRoleHasRequiredAriaProps>;
|
|
706
|
+
/**
|
|
707
|
+
* Enforce that elements with explicit or implicit roles defined contain only `aria-*` properties supported by that `role`.
|
|
708
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/role-supports-aria-props.md
|
|
709
|
+
*/
|
|
710
|
+
'jsx-a11y/role-supports-aria-props'?: Linter.RuleEntry<JsxA11YRoleSupportsAriaProps>;
|
|
711
|
+
/**
|
|
712
|
+
* Enforce `scope` prop is only used on `<th>` elements.
|
|
713
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/scope.md
|
|
714
|
+
*/
|
|
715
|
+
'jsx-a11y/scope'?: Linter.RuleEntry<JsxA11YScope>;
|
|
716
|
+
/**
|
|
717
|
+
* Enforce `tabIndex` value is not greater than zero.
|
|
718
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/tabindex-no-positive.md
|
|
719
|
+
*/
|
|
720
|
+
'jsx-a11y/tabindex-no-positive'?: Linter.RuleEntry<JsxA11YTabindexNoPositive>;
|
|
721
|
+
/**
|
|
722
|
+
* Enforce font-display behavior with Google Fonts.
|
|
723
|
+
* @see https://nextjs.org/docs/messages/google-font-display
|
|
724
|
+
*/
|
|
725
|
+
'next/google-font-display'?: Linter.RuleEntry<[]>;
|
|
726
|
+
/**
|
|
727
|
+
* Ensure `preconnect` is used with Google Fonts.
|
|
728
|
+
* @see https://nextjs.org/docs/messages/google-font-preconnect
|
|
729
|
+
*/
|
|
730
|
+
'next/google-font-preconnect'?: Linter.RuleEntry<[]>;
|
|
731
|
+
/**
|
|
732
|
+
* Enforce `id` attribute on `next/script` components with inline content.
|
|
733
|
+
* @see https://nextjs.org/docs/messages/inline-script-id
|
|
734
|
+
*/
|
|
735
|
+
'next/inline-script-id'?: Linter.RuleEntry<[]>;
|
|
736
|
+
/**
|
|
737
|
+
* Prefer `next/script` component when using the inline script for Google Analytics.
|
|
738
|
+
* @see https://nextjs.org/docs/messages/next-script-for-ga
|
|
739
|
+
*/
|
|
740
|
+
'next/next-script-for-ga'?: Linter.RuleEntry<[]>;
|
|
741
|
+
/**
|
|
742
|
+
* Prevent assignment to the `module` variable.
|
|
743
|
+
* @see https://nextjs.org/docs/messages/no-assign-module-variable
|
|
744
|
+
*/
|
|
745
|
+
'next/no-assign-module-variable'?: Linter.RuleEntry<[]>;
|
|
746
|
+
/**
|
|
747
|
+
* Prevent Client Components from being async functions.
|
|
748
|
+
* @see https://nextjs.org/docs/messages/no-async-client-component
|
|
749
|
+
*/
|
|
750
|
+
'next/no-async-client-component'?: Linter.RuleEntry<[]>;
|
|
751
|
+
/**
|
|
752
|
+
* Prevent usage of `next/script`'s `beforeInteractive` strategy outside of `pages/_document.js`.
|
|
753
|
+
* @see https://nextjs.org/docs/messages/no-before-interactive-script-outside-document
|
|
754
|
+
*/
|
|
755
|
+
'next/no-before-interactive-script-outside-document'?: Linter.RuleEntry<[]>;
|
|
756
|
+
/**
|
|
757
|
+
* Prevent manual stylesheet tags.
|
|
758
|
+
* @see https://nextjs.org/docs/messages/no-css-tags
|
|
759
|
+
*/
|
|
760
|
+
'next/no-css-tags'?: Linter.RuleEntry<[]>;
|
|
761
|
+
/**
|
|
762
|
+
* Prevent importing `next/document` outside of `pages/_document.js`.
|
|
763
|
+
* @see https://nextjs.org/docs/messages/no-document-import-in-page
|
|
764
|
+
*/
|
|
765
|
+
'next/no-document-import-in-page'?: Linter.RuleEntry<[]>;
|
|
766
|
+
/**
|
|
767
|
+
* Prevent duplicate usage of `<Head>` in `pages/_document.js`.
|
|
768
|
+
* @see https://nextjs.org/docs/messages/no-duplicate-head
|
|
769
|
+
*/
|
|
770
|
+
'next/no-duplicate-head'?: Linter.RuleEntry<[]>;
|
|
771
|
+
/**
|
|
772
|
+
* Prevent usage of `<head>` element.
|
|
773
|
+
* @see https://nextjs.org/docs/messages/no-head-element
|
|
774
|
+
*/
|
|
775
|
+
'next/no-head-element'?: Linter.RuleEntry<[]>;
|
|
776
|
+
/**
|
|
777
|
+
* Prevent usage of `next/head` in `pages/_document.js`.
|
|
778
|
+
* @see https://nextjs.org/docs/messages/no-head-import-in-document
|
|
779
|
+
*/
|
|
780
|
+
'next/no-head-import-in-document'?: Linter.RuleEntry<[]>;
|
|
781
|
+
/**
|
|
782
|
+
* Prevent usage of `<a>` elements to navigate to internal Next.js pages.
|
|
783
|
+
* @see https://nextjs.org/docs/messages/no-html-link-for-pages
|
|
784
|
+
*/
|
|
785
|
+
'next/no-html-link-for-pages'?: Linter.RuleEntry<NextNoHtmlLinkForPages>;
|
|
786
|
+
/**
|
|
787
|
+
* Prevent usage of `<img>` element due to slower LCP and higher bandwidth.
|
|
788
|
+
* @see https://nextjs.org/docs/messages/no-img-element
|
|
789
|
+
*/
|
|
790
|
+
'next/no-img-element'?: Linter.RuleEntry<[]>;
|
|
791
|
+
/**
|
|
792
|
+
* Prevent page-only custom fonts.
|
|
793
|
+
* @see https://nextjs.org/docs/messages/no-page-custom-font
|
|
794
|
+
*/
|
|
795
|
+
'next/no-page-custom-font'?: Linter.RuleEntry<[]>;
|
|
796
|
+
/**
|
|
797
|
+
* Prevent usage of `next/script` in `next/head` component.
|
|
798
|
+
* @see https://nextjs.org/docs/messages/no-script-component-in-head
|
|
799
|
+
*/
|
|
800
|
+
'next/no-script-component-in-head'?: Linter.RuleEntry<[]>;
|
|
801
|
+
/**
|
|
802
|
+
* Prevent usage of `styled-jsx` in `pages/_document.js`.
|
|
803
|
+
* @see https://nextjs.org/docs/messages/no-styled-jsx-in-document
|
|
804
|
+
*/
|
|
805
|
+
'next/no-styled-jsx-in-document'?: Linter.RuleEntry<[]>;
|
|
806
|
+
/**
|
|
807
|
+
* Prevent synchronous scripts.
|
|
808
|
+
* @see https://nextjs.org/docs/messages/no-sync-scripts
|
|
809
|
+
*/
|
|
810
|
+
'next/no-sync-scripts'?: Linter.RuleEntry<[]>;
|
|
811
|
+
/**
|
|
812
|
+
* Prevent usage of `<title>` with `Head` component from `next/document`.
|
|
813
|
+
* @see https://nextjs.org/docs/messages/no-title-in-document-head
|
|
814
|
+
*/
|
|
815
|
+
'next/no-title-in-document-head'?: Linter.RuleEntry<[]>;
|
|
816
|
+
/**
|
|
817
|
+
* Prevent common typos in Next.js data fetching functions.
|
|
818
|
+
*/
|
|
819
|
+
'next/no-typos'?: Linter.RuleEntry<[]>;
|
|
820
|
+
/**
|
|
821
|
+
* Prevent duplicate polyfills from Polyfill.io.
|
|
822
|
+
* @see https://nextjs.org/docs/messages/no-unwanted-polyfillio
|
|
823
|
+
*/
|
|
824
|
+
'next/no-unwanted-polyfillio'?: Linter.RuleEntry<[]>;
|
|
825
|
+
/**
|
|
826
|
+
* require `return` statements after callbacks
|
|
827
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
|
|
828
|
+
*/
|
|
829
|
+
'node/callback-return'?: Linter.RuleEntry<NodeCallbackReturn>;
|
|
830
|
+
/**
|
|
831
|
+
* enforce either `module.exports` or `exports`
|
|
832
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/exports-style.md
|
|
833
|
+
*/
|
|
834
|
+
'node/exports-style'?: Linter.RuleEntry<NodeExportsStyle>;
|
|
835
|
+
/**
|
|
836
|
+
* enforce the style of file extensions in `import` declarations
|
|
837
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/file-extension-in-import.md
|
|
838
|
+
*/
|
|
839
|
+
'node/file-extension-in-import'?: Linter.RuleEntry<NodeFileExtensionInImport>;
|
|
840
|
+
/**
|
|
841
|
+
* require `require()` calls to be placed at top-level module scope
|
|
842
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/global-require.md
|
|
843
|
+
*/
|
|
844
|
+
'node/global-require'?: Linter.RuleEntry<[]>;
|
|
845
|
+
/**
|
|
846
|
+
* require error handling in callbacks
|
|
847
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/handle-callback-err.md
|
|
848
|
+
*/
|
|
849
|
+
'node/handle-callback-err'?: Linter.RuleEntry<NodeHandleCallbackErr>;
|
|
850
|
+
/**
|
|
851
|
+
* require correct usage of hashbang
|
|
852
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
853
|
+
*/
|
|
854
|
+
'node/hashbang'?: Linter.RuleEntry<NodeHashbang>;
|
|
855
|
+
/**
|
|
856
|
+
* enforce Node.js-style error-first callback pattern is followed
|
|
857
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-callback-literal.md
|
|
858
|
+
*/
|
|
859
|
+
'node/no-callback-literal'?: Linter.RuleEntry<[]>;
|
|
860
|
+
/**
|
|
861
|
+
* disallow deprecated APIs
|
|
862
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-deprecated-api.md
|
|
863
|
+
*/
|
|
864
|
+
'node/no-deprecated-api'?: Linter.RuleEntry<NodeNoDeprecatedApi>;
|
|
865
|
+
/**
|
|
866
|
+
* disallow the assignment to `exports`
|
|
867
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-exports-assign.md
|
|
868
|
+
*/
|
|
869
|
+
'node/no-exports-assign'?: Linter.RuleEntry<[]>;
|
|
870
|
+
/**
|
|
871
|
+
* disallow `import` declarations which import extraneous modules
|
|
872
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-import.md
|
|
873
|
+
*/
|
|
874
|
+
'node/no-extraneous-import'?: Linter.RuleEntry<NodeNoExtraneousImport>;
|
|
875
|
+
/**
|
|
876
|
+
* disallow `require()` expressions which import extraneous modules
|
|
877
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-extraneous-require.md
|
|
878
|
+
*/
|
|
879
|
+
'node/no-extraneous-require'?: Linter.RuleEntry<NodeNoExtraneousRequire>;
|
|
880
|
+
/**
|
|
881
|
+
* disallow third-party modules which are hiding core modules
|
|
882
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-hide-core-modules.md
|
|
883
|
+
* @deprecated
|
|
884
|
+
*/
|
|
885
|
+
'node/no-hide-core-modules'?: Linter.RuleEntry<NodeNoHideCoreModules>;
|
|
886
|
+
/**
|
|
887
|
+
* disallow `import` declarations which import missing modules
|
|
888
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-import.md
|
|
889
|
+
*/
|
|
890
|
+
'node/no-missing-import'?: Linter.RuleEntry<NodeNoMissingImport>;
|
|
891
|
+
/**
|
|
892
|
+
* disallow `require()` expressions which import missing modules
|
|
893
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-missing-require.md
|
|
894
|
+
*/
|
|
895
|
+
'node/no-missing-require'?: Linter.RuleEntry<NodeNoMissingRequire>;
|
|
896
|
+
/**
|
|
897
|
+
* disallow `require` calls to be mixed with regular variable declarations
|
|
898
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-mixed-requires.md
|
|
899
|
+
*/
|
|
900
|
+
'node/no-mixed-requires'?: Linter.RuleEntry<NodeNoMixedRequires>;
|
|
901
|
+
/**
|
|
902
|
+
* disallow `new` operators with calls to `require`
|
|
903
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-new-require.md
|
|
904
|
+
*/
|
|
905
|
+
'node/no-new-require'?: Linter.RuleEntry<[]>;
|
|
906
|
+
/**
|
|
907
|
+
* disallow string concatenation with `__dirname` and `__filename`
|
|
908
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-path-concat.md
|
|
909
|
+
*/
|
|
910
|
+
'node/no-path-concat'?: Linter.RuleEntry<[]>;
|
|
911
|
+
/**
|
|
912
|
+
* disallow the use of `process.env`
|
|
913
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-env.md
|
|
914
|
+
*/
|
|
915
|
+
'node/no-process-env'?: Linter.RuleEntry<NodeNoProcessEnv>;
|
|
916
|
+
/**
|
|
917
|
+
* disallow the use of `process.exit()`
|
|
918
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-process-exit.md
|
|
919
|
+
*/
|
|
920
|
+
'node/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
921
|
+
/**
|
|
922
|
+
* disallow specified modules when loaded by `import` declarations
|
|
923
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-import.md
|
|
924
|
+
*/
|
|
925
|
+
'node/no-restricted-import'?: Linter.RuleEntry<NodeNoRestrictedImport>;
|
|
926
|
+
/**
|
|
927
|
+
* disallow specified modules when loaded by `require`
|
|
928
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-restricted-require.md
|
|
929
|
+
*/
|
|
930
|
+
'node/no-restricted-require'?: Linter.RuleEntry<NodeNoRestrictedRequire>;
|
|
931
|
+
/**
|
|
932
|
+
* disallow synchronous methods
|
|
933
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
934
|
+
*/
|
|
935
|
+
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>;
|
|
936
|
+
/**
|
|
937
|
+
* disallow top-level `await` in published modules
|
|
938
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
939
|
+
*/
|
|
940
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>;
|
|
941
|
+
/**
|
|
942
|
+
* disallow `bin` files that npm ignores
|
|
943
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
944
|
+
*/
|
|
945
|
+
'node/no-unpublished-bin'?: Linter.RuleEntry<NodeNoUnpublishedBin>;
|
|
946
|
+
/**
|
|
947
|
+
* disallow `import` declarations which import private modules
|
|
948
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-import.md
|
|
949
|
+
*/
|
|
950
|
+
'node/no-unpublished-import'?: Linter.RuleEntry<NodeNoUnpublishedImport>;
|
|
951
|
+
/**
|
|
952
|
+
* disallow `require()` expressions which import private modules
|
|
953
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-require.md
|
|
954
|
+
*/
|
|
955
|
+
'node/no-unpublished-require'?: Linter.RuleEntry<NodeNoUnpublishedRequire>;
|
|
956
|
+
/**
|
|
957
|
+
* disallow unsupported ECMAScript built-ins on the specified version
|
|
958
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-builtins.md
|
|
959
|
+
*/
|
|
960
|
+
'node/no-unsupported-features/es-builtins'?: Linter.RuleEntry<NodeNoUnsupportedFeaturesEsBuiltins>;
|
|
961
|
+
/**
|
|
962
|
+
* disallow unsupported ECMAScript syntax on the specified version
|
|
963
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/es-syntax.md
|
|
964
|
+
*/
|
|
965
|
+
'node/no-unsupported-features/es-syntax'?: Linter.RuleEntry<NodeNoUnsupportedFeaturesEsSyntax>;
|
|
966
|
+
/**
|
|
967
|
+
* disallow unsupported Node.js built-in APIs on the specified version
|
|
968
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unsupported-features/node-builtins.md
|
|
969
|
+
*/
|
|
970
|
+
'node/no-unsupported-features/node-builtins'?: Linter.RuleEntry<NodeNoUnsupportedFeaturesNodeBuiltins>;
|
|
971
|
+
/**
|
|
972
|
+
* enforce either `Buffer` or `require("buffer").Buffer`
|
|
973
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/buffer.md
|
|
974
|
+
*/
|
|
975
|
+
'node/prefer-global/buffer'?: Linter.RuleEntry<NodePreferGlobalBuffer>;
|
|
976
|
+
/**
|
|
977
|
+
* enforce either `console` or `require("console")`
|
|
978
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/console.md
|
|
979
|
+
*/
|
|
980
|
+
'node/prefer-global/console'?: Linter.RuleEntry<NodePreferGlobalConsole>;
|
|
981
|
+
/**
|
|
982
|
+
* enforce either `process` or `require("process")`
|
|
983
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/process.md
|
|
984
|
+
*/
|
|
985
|
+
'node/prefer-global/process'?: Linter.RuleEntry<NodePreferGlobalProcess>;
|
|
986
|
+
/**
|
|
987
|
+
* enforce either `TextDecoder` or `require("util").TextDecoder`
|
|
988
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-decoder.md
|
|
989
|
+
*/
|
|
990
|
+
'node/prefer-global/text-decoder'?: Linter.RuleEntry<NodePreferGlobalTextDecoder>;
|
|
991
|
+
/**
|
|
992
|
+
* enforce either `TextEncoder` or `require("util").TextEncoder`
|
|
993
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/text-encoder.md
|
|
994
|
+
*/
|
|
995
|
+
'node/prefer-global/text-encoder'?: Linter.RuleEntry<NodePreferGlobalTextEncoder>;
|
|
996
|
+
/**
|
|
997
|
+
* enforce either `URL` or `require("url").URL`
|
|
998
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url.md
|
|
999
|
+
*/
|
|
1000
|
+
'node/prefer-global/url'?: Linter.RuleEntry<NodePreferGlobalUrl>;
|
|
1001
|
+
/**
|
|
1002
|
+
* enforce either `URLSearchParams` or `require("url").URLSearchParams`
|
|
1003
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-global/url-search-params.md
|
|
1004
|
+
*/
|
|
1005
|
+
'node/prefer-global/url-search-params'?: Linter.RuleEntry<NodePreferGlobalUrlSearchParams>;
|
|
1006
|
+
/**
|
|
1007
|
+
* enforce using the `node:` protocol when importing Node.js builtin modules.
|
|
1008
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-node-protocol.md
|
|
1009
|
+
*/
|
|
1010
|
+
'node/prefer-node-protocol'?: Linter.RuleEntry<NodePreferNodeProtocol>;
|
|
1011
|
+
/**
|
|
1012
|
+
* enforce `require("dns").promises`
|
|
1013
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/dns.md
|
|
1014
|
+
*/
|
|
1015
|
+
'node/prefer-promises/dns'?: Linter.RuleEntry<[]>;
|
|
1016
|
+
/**
|
|
1017
|
+
* enforce `require("fs").promises`
|
|
1018
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/prefer-promises/fs.md
|
|
1019
|
+
*/
|
|
1020
|
+
'node/prefer-promises/fs'?: Linter.RuleEntry<[]>;
|
|
1021
|
+
/**
|
|
1022
|
+
* require that `process.exit()` expressions use the same code path as `throw`
|
|
1023
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/process-exit-as-throw.md
|
|
1024
|
+
*/
|
|
1025
|
+
'node/process-exit-as-throw'?: Linter.RuleEntry<[]>;
|
|
1026
|
+
/**
|
|
1027
|
+
* require correct usage of hashbang
|
|
1028
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
1029
|
+
* @deprecated
|
|
1030
|
+
*/
|
|
1031
|
+
'node/shebang'?: Linter.RuleEntry<NodeShebang>;
|
|
1032
|
+
/**
|
|
1033
|
+
* For a perfect SEO score, always provide href attribute for <a> elements.
|
|
1034
|
+
* @see https://qwik.dev/docs/advanced/dollar/
|
|
1035
|
+
*/
|
|
1036
|
+
'qwik/jsx-a'?: Linter.RuleEntry<[]>;
|
|
1037
|
+
/**
|
|
1038
|
+
* For performance reasons, always provide width and height attributes for <img> elements, it will help to prevent layout shifts.
|
|
1039
|
+
* @see https://qwik.dev/docs/advanced/eslint/#jsx-img
|
|
1040
|
+
*/
|
|
1041
|
+
'qwik/jsx-img'?: Linter.RuleEntry<[]>;
|
|
1042
|
+
/**
|
|
1043
|
+
* Disallow missing `key` props in iterators/collection literals
|
|
1044
|
+
* @see https://qwik.dev/docs/advanced/eslint/#jsx-key
|
|
1045
|
+
*/
|
|
1046
|
+
'qwik/jsx-key'?: Linter.RuleEntry<QwikJsxKey>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Disallow javascript: URLs.
|
|
1049
|
+
* @see https://qwik.dev/docs/advanced/eslint/#jsx-no-script-url
|
|
1050
|
+
*/
|
|
1051
|
+
'qwik/jsx-no-script-url'?: Linter.RuleEntry<[]>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Detect declaration location of loader$.
|
|
1054
|
+
* @see https://qwik.dev/docs/advanced/eslint/#loader-location
|
|
1055
|
+
*/
|
|
1056
|
+
'qwik/loader-location'?: Linter.RuleEntry<QwikLoaderLocation>;
|
|
1057
|
+
/**
|
|
1058
|
+
* Disallow usage of React-specific `className`/`htmlFor` props.
|
|
1059
|
+
* @see https://qwik.dev/docs/advanced/eslint/#no-react-props
|
|
1060
|
+
*/
|
|
1061
|
+
'qwik/no-react-props'?: Linter.RuleEntry<[]>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Detect useVisibleTask$() functions.
|
|
1064
|
+
* @see https://qwik.dev/docs/guides/best-practices/#use-usevisibletask-as-a-last-resort
|
|
1065
|
+
*/
|
|
1066
|
+
'qwik/no-use-visible-task'?: Linter.RuleEntry<[]>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.
|
|
1069
|
+
* @see https://qwik.dev/docs/advanced/eslint/#prefer-classlist
|
|
1070
|
+
*/
|
|
1071
|
+
'qwik/prefer-classlist'?: Linter.RuleEntry<QwikPreferClasslist>;
|
|
1072
|
+
/**
|
|
1073
|
+
* Detect unused server$() functions.
|
|
1074
|
+
* @see https://qwik.dev/docs/advanced/eslint/#unused-server
|
|
1075
|
+
*/
|
|
1076
|
+
'qwik/unused-server'?: Linter.RuleEntry<[]>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Detect invalid use of use hooks.
|
|
1079
|
+
* @see https://qwik.dev/docs/advanced/eslint/#use-method-usage
|
|
1080
|
+
*/
|
|
1081
|
+
'qwik/use-method-usage'?: Linter.RuleEntry<[]>;
|
|
1082
|
+
/**
|
|
1083
|
+
* Used the tsc typechecker to detect the capture of unserializable data in dollar ($) scopes.
|
|
1084
|
+
* @see https://qwik.dev/docs/advanced/eslint/#valid-lexical-scope
|
|
1085
|
+
*/
|
|
1086
|
+
'qwik/valid-lexical-scope'?: Linter.RuleEntry<QwikValidLexicalScope>;
|
|
1087
|
+
/**
|
|
1088
|
+
* Enforces consistent naming for boolean props
|
|
1089
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
|
|
1090
|
+
*/
|
|
1091
|
+
'react/boolean-prop-naming'?: Linter.RuleEntry<ReactBooleanPropNaming>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Disallow usage of `button` elements without an explicit `type` attribute
|
|
1094
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/button-has-type.md
|
|
1095
|
+
*/
|
|
1096
|
+
'react/button-has-type'?: Linter.RuleEntry<ReactButtonHasType>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Enforce using `onChange` or `readonly` attribute when `checked` is used
|
|
1099
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/checked-requires-onchange-or-readonly.md
|
|
1100
|
+
*/
|
|
1101
|
+
'react/checked-requires-onchange-or-readonly'?: Linter.RuleEntry<ReactCheckedRequiresOnchangeOrReadonly>;
|
|
1102
|
+
/**
|
|
1103
|
+
* Enforce all defaultProps have a corresponding non-required PropType
|
|
1104
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/default-props-match-prop-types.md
|
|
1105
|
+
*/
|
|
1106
|
+
'react/default-props-match-prop-types'?: Linter.RuleEntry<ReactDefaultPropsMatchPropTypes>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Enforce consistent usage of destructuring assignment of props, state, and context
|
|
1109
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/destructuring-assignment.md
|
|
1110
|
+
*/
|
|
1111
|
+
'react/destructuring-assignment'?: Linter.RuleEntry<ReactDestructuringAssignment>;
|
|
1112
|
+
/**
|
|
1113
|
+
* Disallow missing displayName in a React component definition
|
|
1114
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/display-name.md
|
|
1115
|
+
*/
|
|
1116
|
+
'react/display-name'?: Linter.RuleEntry<ReactDisplayName>;
|
|
1117
|
+
/**
|
|
1118
|
+
* Disallow certain props on components
|
|
1119
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-component-props.md
|
|
1120
|
+
*/
|
|
1121
|
+
'react/forbid-component-props'?: Linter.RuleEntry<ReactForbidComponentProps>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Disallow certain props on DOM Nodes
|
|
1124
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-dom-props.md
|
|
1125
|
+
*/
|
|
1126
|
+
'react/forbid-dom-props'?: Linter.RuleEntry<ReactForbidDomProps>;
|
|
1127
|
+
/**
|
|
1128
|
+
* Disallow certain elements
|
|
1129
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-elements.md
|
|
1130
|
+
*/
|
|
1131
|
+
'react/forbid-elements'?: Linter.RuleEntry<ReactForbidElements>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Disallow using another component's propTypes
|
|
1134
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-foreign-prop-types.md
|
|
1135
|
+
*/
|
|
1136
|
+
'react/forbid-foreign-prop-types'?: Linter.RuleEntry<ReactForbidForeignPropTypes>;
|
|
1137
|
+
/**
|
|
1138
|
+
* Disallow certain propTypes
|
|
1139
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-prop-types.md
|
|
1140
|
+
*/
|
|
1141
|
+
'react/forbid-prop-types'?: Linter.RuleEntry<ReactForbidPropTypes>;
|
|
1142
|
+
/**
|
|
1143
|
+
* Require all forwardRef components include a ref parameter
|
|
1144
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forward-ref-uses-ref.md
|
|
1145
|
+
*/
|
|
1146
|
+
'react/forward-ref-uses-ref'?: Linter.RuleEntry<[]>;
|
|
1147
|
+
/**
|
|
1148
|
+
* Enforce a specific function type for function components
|
|
1149
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/function-component-definition.md
|
|
1150
|
+
*/
|
|
1151
|
+
'react/function-component-definition'?: Linter.RuleEntry<ReactFunctionComponentDefinition>;
|
|
1152
|
+
/**
|
|
1153
|
+
* Ensure destructuring and symmetric naming of useState hook value and setter variables
|
|
1154
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/hook-use-state.md
|
|
1155
|
+
*/
|
|
1156
|
+
'react/hook-use-state'?: Linter.RuleEntry<ReactHookUseState>;
|
|
1157
|
+
/**
|
|
1158
|
+
* Enforce sandbox attribute on iframe elements
|
|
1159
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/iframe-missing-sandbox.md
|
|
1160
|
+
*/
|
|
1161
|
+
'react/iframe-missing-sandbox'?: Linter.RuleEntry<[]>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Enforce boolean attributes notation in JSX
|
|
1164
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-boolean-value.md
|
|
1165
|
+
*/
|
|
1166
|
+
'react/jsx-boolean-value'?: Linter.RuleEntry<ReactJsxBooleanValue>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
1169
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-child-element-spacing.md
|
|
1170
|
+
*/
|
|
1171
|
+
'react/jsx-child-element-spacing'?: Linter.RuleEntry<[]>;
|
|
1172
|
+
/**
|
|
1173
|
+
* Enforce closing bracket location in JSX
|
|
1174
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-bracket-location.md
|
|
1175
|
+
*/
|
|
1176
|
+
'react/jsx-closing-bracket-location'?: Linter.RuleEntry<ReactJsxClosingBracketLocation>;
|
|
1177
|
+
/**
|
|
1178
|
+
* Enforce closing tag location for multiline JSX
|
|
1179
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-tag-location.md
|
|
1180
|
+
*/
|
|
1181
|
+
'react/jsx-closing-tag-location'?: Linter.RuleEntry<ReactJsxClosingTagLocation>;
|
|
1182
|
+
/**
|
|
1183
|
+
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
1184
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-brace-presence.md
|
|
1185
|
+
*/
|
|
1186
|
+
'react/jsx-curly-brace-presence'?: Linter.RuleEntry<ReactJsxCurlyBracePresence>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
1189
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-newline.md
|
|
1190
|
+
*/
|
|
1191
|
+
'react/jsx-curly-newline'?: Linter.RuleEntry<ReactJsxCurlyNewline>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
1194
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-spacing.md
|
|
1195
|
+
*/
|
|
1196
|
+
'react/jsx-curly-spacing'?: Linter.RuleEntry<ReactJsxCurlySpacing>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
1199
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-equals-spacing.md
|
|
1200
|
+
*/
|
|
1201
|
+
'react/jsx-equals-spacing'?: Linter.RuleEntry<ReactJsxEqualsSpacing>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Disallow file extensions that may contain JSX
|
|
1204
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-filename-extension.md
|
|
1205
|
+
*/
|
|
1206
|
+
'react/jsx-filename-extension'?: Linter.RuleEntry<ReactJsxFilenameExtension>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Enforce proper position of the first property in JSX
|
|
1209
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-first-prop-new-line.md
|
|
1210
|
+
*/
|
|
1211
|
+
'react/jsx-first-prop-new-line'?: Linter.RuleEntry<ReactJsxFirstPropNewLine>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Enforce shorthand or standard form for React fragments
|
|
1214
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-fragments.md
|
|
1215
|
+
*/
|
|
1216
|
+
'react/jsx-fragments'?: Linter.RuleEntry<ReactJsxFragments>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Enforce event handler naming conventions in JSX
|
|
1219
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-handler-names.md
|
|
1220
|
+
*/
|
|
1221
|
+
'react/jsx-handler-names'?: Linter.RuleEntry<ReactJsxHandlerNames>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Enforce JSX indentation
|
|
1224
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-indent.md
|
|
1225
|
+
*/
|
|
1226
|
+
'react/jsx-indent'?: Linter.RuleEntry<ReactJsxIndent>;
|
|
1227
|
+
/**
|
|
1228
|
+
* Enforce props indentation in JSX
|
|
1229
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-indent-props.md
|
|
1230
|
+
*/
|
|
1231
|
+
'react/jsx-indent-props'?: Linter.RuleEntry<ReactJsxIndentProps>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Disallow missing `key` props in iterators/collection literals
|
|
1234
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-key.md
|
|
1235
|
+
*/
|
|
1236
|
+
'react/jsx-key'?: Linter.RuleEntry<ReactJsxKey>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Enforce JSX maximum depth
|
|
1239
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-depth.md
|
|
1240
|
+
*/
|
|
1241
|
+
'react/jsx-max-depth'?: Linter.RuleEntry<ReactJsxMaxDepth>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Enforce maximum of props on a single line in JSX
|
|
1244
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-max-props-per-line.md
|
|
1245
|
+
*/
|
|
1246
|
+
'react/jsx-max-props-per-line'?: Linter.RuleEntry<ReactJsxMaxPropsPerLine>;
|
|
1247
|
+
/**
|
|
1248
|
+
* Require or prevent a new line after jsx elements and expressions.
|
|
1249
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-newline.md
|
|
1250
|
+
*/
|
|
1251
|
+
'react/jsx-newline'?: Linter.RuleEntry<ReactJsxNewline>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Disallow `.bind()` or arrow functions in JSX props
|
|
1254
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-bind.md
|
|
1255
|
+
*/
|
|
1256
|
+
'react/jsx-no-bind'?: Linter.RuleEntry<ReactJsxNoBind>;
|
|
1257
|
+
/**
|
|
1258
|
+
* Disallow comments from being inserted as text nodes
|
|
1259
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md
|
|
1260
|
+
*/
|
|
1261
|
+
'react/jsx-no-comment-textnodes'?: Linter.RuleEntry<[]>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Disallows JSX context provider values from taking values that will cause needless rerenders
|
|
1264
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-constructed-context-values.md
|
|
1265
|
+
*/
|
|
1266
|
+
'react/jsx-no-constructed-context-values'?: Linter.RuleEntry<[]>;
|
|
1267
|
+
/**
|
|
1268
|
+
* Disallow duplicate properties in JSX
|
|
1269
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md
|
|
1270
|
+
*/
|
|
1271
|
+
'react/jsx-no-duplicate-props'?: Linter.RuleEntry<ReactJsxNoDuplicateProps>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Disallow problematic leaked values from being rendered
|
|
1274
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-leaked-render.md
|
|
1275
|
+
*/
|
|
1276
|
+
'react/jsx-no-leaked-render'?: Linter.RuleEntry<ReactJsxNoLeakedRender>;
|
|
1277
|
+
/**
|
|
1278
|
+
* Disallow usage of string literals in JSX
|
|
1279
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-literals.md
|
|
1280
|
+
*/
|
|
1281
|
+
'react/jsx-no-literals'?: Linter.RuleEntry<ReactJsxNoLiterals>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Disallow usage of `javascript:` URLs
|
|
1284
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-script-url.md
|
|
1285
|
+
*/
|
|
1286
|
+
'react/jsx-no-script-url'?: Linter.RuleEntry<ReactJsxNoScriptUrl>;
|
|
1287
|
+
/**
|
|
1288
|
+
* Disallow `target="_blank"` attribute without `rel="noreferrer"`
|
|
1289
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-target-blank.md
|
|
1290
|
+
*/
|
|
1291
|
+
'react/jsx-no-target-blank'?: Linter.RuleEntry<ReactJsxNoTargetBlank>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Disallow undeclared variables in JSX
|
|
1294
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-undef.md
|
|
1295
|
+
*/
|
|
1296
|
+
'react/jsx-no-undef'?: Linter.RuleEntry<ReactJsxNoUndef>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Disallow unnecessary fragments
|
|
1299
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-useless-fragment.md
|
|
1300
|
+
*/
|
|
1301
|
+
'react/jsx-no-useless-fragment'?: Linter.RuleEntry<ReactJsxNoUselessFragment>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Require one JSX element per line
|
|
1304
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-one-expression-per-line.md
|
|
1305
|
+
*/
|
|
1306
|
+
'react/jsx-one-expression-per-line'?: Linter.RuleEntry<ReactJsxOneExpressionPerLine>;
|
|
1307
|
+
/**
|
|
1308
|
+
* Enforce PascalCase for user-defined JSX components
|
|
1309
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-pascal-case.md
|
|
1310
|
+
*/
|
|
1311
|
+
'react/jsx-pascal-case'?: Linter.RuleEntry<ReactJsxPascalCase>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Disallow multiple spaces between inline JSX props
|
|
1314
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-multi-spaces.md
|
|
1315
|
+
*/
|
|
1316
|
+
'react/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Disallow JSX prop spreading the same identifier multiple times
|
|
1319
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spread-multi.md
|
|
1320
|
+
*/
|
|
1321
|
+
'react/jsx-props-no-spread-multi'?: Linter.RuleEntry<[]>;
|
|
1322
|
+
/**
|
|
1323
|
+
* Disallow JSX prop spreading
|
|
1324
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spreading.md
|
|
1325
|
+
*/
|
|
1326
|
+
'react/jsx-props-no-spreading'?: Linter.RuleEntry<ReactJsxPropsNoSpreading>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Enforce defaultProps declarations alphabetical sorting
|
|
1329
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-sort-default-props.md
|
|
1330
|
+
* @deprecated
|
|
1331
|
+
*/
|
|
1332
|
+
'react/jsx-sort-default-props'?: Linter.RuleEntry<ReactJsxSortDefaultProps>;
|
|
1333
|
+
/**
|
|
1334
|
+
* Enforce props alphabetical sorting
|
|
1335
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-sort-props.md
|
|
1336
|
+
*/
|
|
1337
|
+
'react/jsx-sort-props'?: Linter.RuleEntry<ReactJsxSortProps>;
|
|
1338
|
+
/**
|
|
1339
|
+
* Enforce spacing before closing bracket in JSX
|
|
1340
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-space-before-closing.md
|
|
1341
|
+
* @deprecated
|
|
1342
|
+
*/
|
|
1343
|
+
'react/jsx-space-before-closing'?: Linter.RuleEntry<ReactJsxSpaceBeforeClosing>;
|
|
1344
|
+
/**
|
|
1345
|
+
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
1346
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-tag-spacing.md
|
|
1347
|
+
*/
|
|
1348
|
+
'react/jsx-tag-spacing'?: Linter.RuleEntry<ReactJsxTagSpacing>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Disallow React to be incorrectly marked as unused
|
|
1351
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-uses-react.md
|
|
1352
|
+
*/
|
|
1353
|
+
'react/jsx-uses-react'?: Linter.RuleEntry<[]>;
|
|
1354
|
+
/**
|
|
1355
|
+
* Disallow variables used in JSX to be incorrectly marked as unused
|
|
1356
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-uses-vars.md
|
|
1357
|
+
*/
|
|
1358
|
+
'react/jsx-uses-vars'?: Linter.RuleEntry<[]>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Disallow missing parentheses around multiline JSX
|
|
1361
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-wrap-multilines.md
|
|
1362
|
+
*/
|
|
1363
|
+
'react/jsx-wrap-multilines'?: Linter.RuleEntry<ReactJsxWrapMultilines>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Disallow when this.state is accessed within setState
|
|
1366
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-access-state-in-setstate.md
|
|
1367
|
+
*/
|
|
1368
|
+
'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>;
|
|
1369
|
+
/**
|
|
1370
|
+
* Disallow adjacent inline elements not separated by whitespace.
|
|
1371
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-adjacent-inline-elements.md
|
|
1372
|
+
*/
|
|
1373
|
+
'react/no-adjacent-inline-elements'?: Linter.RuleEntry<[]>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Disallow usage of Array index in keys
|
|
1376
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-array-index-key.md
|
|
1377
|
+
*/
|
|
1378
|
+
'react/no-array-index-key'?: Linter.RuleEntry<[]>;
|
|
1379
|
+
/**
|
|
1380
|
+
* Lifecycle methods should be methods on the prototype, not class fields
|
|
1381
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-arrow-function-lifecycle.md
|
|
1382
|
+
*/
|
|
1383
|
+
'react/no-arrow-function-lifecycle'?: Linter.RuleEntry<[]>;
|
|
1384
|
+
/**
|
|
1385
|
+
* Disallow passing of children as props
|
|
1386
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-children-prop.md
|
|
1387
|
+
*/
|
|
1388
|
+
'react/no-children-prop'?: Linter.RuleEntry<ReactNoChildrenProp>;
|
|
1389
|
+
/**
|
|
1390
|
+
* Disallow usage of dangerous JSX properties
|
|
1391
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger.md
|
|
1392
|
+
*/
|
|
1393
|
+
'react/no-danger'?: Linter.RuleEntry<ReactNoDanger>;
|
|
1394
|
+
/**
|
|
1395
|
+
* Disallow when a DOM element is using both children and dangerouslySetInnerHTML
|
|
1396
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger-with-children.md
|
|
1397
|
+
*/
|
|
1398
|
+
'react/no-danger-with-children'?: Linter.RuleEntry<[]>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Disallow usage of deprecated methods
|
|
1401
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-deprecated.md
|
|
1402
|
+
*/
|
|
1403
|
+
'react/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Disallow usage of setState in componentDidMount
|
|
1406
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-did-mount-set-state.md
|
|
1407
|
+
*/
|
|
1408
|
+
'react/no-did-mount-set-state'?: Linter.RuleEntry<ReactNoDidMountSetState>;
|
|
1409
|
+
/**
|
|
1410
|
+
* Disallow usage of setState in componentDidUpdate
|
|
1411
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-did-update-set-state.md
|
|
1412
|
+
*/
|
|
1413
|
+
'react/no-did-update-set-state'?: Linter.RuleEntry<ReactNoDidUpdateSetState>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Disallow direct mutation of this.state
|
|
1416
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-direct-mutation-state.md
|
|
1417
|
+
*/
|
|
1418
|
+
'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>;
|
|
1419
|
+
/**
|
|
1420
|
+
* Disallow usage of findDOMNode
|
|
1421
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-find-dom-node.md
|
|
1422
|
+
*/
|
|
1423
|
+
'react/no-find-dom-node'?: Linter.RuleEntry<[]>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Disallow usage of invalid attributes
|
|
1426
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-invalid-html-attribute.md
|
|
1427
|
+
*/
|
|
1428
|
+
'react/no-invalid-html-attribute'?: Linter.RuleEntry<ReactNoInvalidHtmlAttribute>;
|
|
1429
|
+
/**
|
|
1430
|
+
* Disallow usage of isMounted
|
|
1431
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-is-mounted.md
|
|
1432
|
+
*/
|
|
1433
|
+
'react/no-is-mounted'?: Linter.RuleEntry<[]>;
|
|
1434
|
+
/**
|
|
1435
|
+
* Disallow multiple component definition per file
|
|
1436
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-multi-comp.md
|
|
1437
|
+
*/
|
|
1438
|
+
'react/no-multi-comp'?: Linter.RuleEntry<ReactNoMultiComp>;
|
|
1439
|
+
/**
|
|
1440
|
+
* Enforce that namespaces are not used in React elements
|
|
1441
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-namespace.md
|
|
1442
|
+
*/
|
|
1443
|
+
'react/no-namespace'?: Linter.RuleEntry<[]>;
|
|
1444
|
+
/**
|
|
1445
|
+
* Disallow usage of referential-type variables as default param in functional component
|
|
1446
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-object-type-as-default-prop.md
|
|
1447
|
+
*/
|
|
1448
|
+
'react/no-object-type-as-default-prop'?: Linter.RuleEntry<[]>;
|
|
1449
|
+
/**
|
|
1450
|
+
* Disallow usage of shouldComponentUpdate when extending React.PureComponent
|
|
1451
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-redundant-should-component-update.md
|
|
1452
|
+
*/
|
|
1453
|
+
'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>;
|
|
1454
|
+
/**
|
|
1455
|
+
* Disallow usage of the return value of ReactDOM.render
|
|
1456
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-render-return-value.md
|
|
1457
|
+
*/
|
|
1458
|
+
'react/no-render-return-value'?: Linter.RuleEntry<[]>;
|
|
1459
|
+
/**
|
|
1460
|
+
* Disallow usage of setState
|
|
1461
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-set-state.md
|
|
1462
|
+
*/
|
|
1463
|
+
'react/no-set-state'?: Linter.RuleEntry<[]>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Disallow using string references
|
|
1466
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-string-refs.md
|
|
1467
|
+
*/
|
|
1468
|
+
'react/no-string-refs'?: Linter.RuleEntry<ReactNoStringRefs>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Disallow `this` from being used in stateless functional components
|
|
1471
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-this-in-sfc.md
|
|
1472
|
+
*/
|
|
1473
|
+
'react/no-this-in-sfc'?: Linter.RuleEntry<[]>;
|
|
1474
|
+
/**
|
|
1475
|
+
* Disallow common typos
|
|
1476
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-typos.md
|
|
1477
|
+
*/
|
|
1478
|
+
'react/no-typos'?: Linter.RuleEntry<[]>;
|
|
1479
|
+
/**
|
|
1480
|
+
* Disallow unescaped HTML entities from appearing in markup
|
|
1481
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unescaped-entities.md
|
|
1482
|
+
*/
|
|
1483
|
+
'react/no-unescaped-entities'?: Linter.RuleEntry<ReactNoUnescapedEntities>;
|
|
1484
|
+
/**
|
|
1485
|
+
* Disallow usage of unknown DOM property
|
|
1486
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unknown-property.md
|
|
1487
|
+
*/
|
|
1488
|
+
'react/no-unknown-property'?: Linter.RuleEntry<ReactNoUnknownProperty>;
|
|
1489
|
+
/**
|
|
1490
|
+
* Disallow usage of unsafe lifecycle methods
|
|
1491
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unsafe.md
|
|
1492
|
+
*/
|
|
1493
|
+
'react/no-unsafe'?: Linter.RuleEntry<ReactNoUnsafe>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Disallow creating unstable components inside components
|
|
1496
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unstable-nested-components.md
|
|
1497
|
+
*/
|
|
1498
|
+
'react/no-unstable-nested-components'?: Linter.RuleEntry<ReactNoUnstableNestedComponents>;
|
|
1499
|
+
/**
|
|
1500
|
+
* Disallow declaring unused methods of component class
|
|
1501
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unused-class-component-methods.md
|
|
1502
|
+
*/
|
|
1503
|
+
'react/no-unused-class-component-methods'?: Linter.RuleEntry<[]>;
|
|
1504
|
+
/**
|
|
1505
|
+
* Disallow definitions of unused propTypes
|
|
1506
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unused-prop-types.md
|
|
1507
|
+
*/
|
|
1508
|
+
'react/no-unused-prop-types'?: Linter.RuleEntry<ReactNoUnusedPropTypes>;
|
|
1509
|
+
/**
|
|
1510
|
+
* Disallow definitions of unused state
|
|
1511
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unused-state.md
|
|
1512
|
+
*/
|
|
1513
|
+
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Disallow usage of setState in componentWillUpdate
|
|
1516
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-will-update-set-state.md
|
|
1517
|
+
*/
|
|
1518
|
+
'react/no-will-update-set-state'?: Linter.RuleEntry<ReactNoWillUpdateSetState>;
|
|
1519
|
+
/**
|
|
1520
|
+
* Enforce ES5 or ES6 class for React Components
|
|
1521
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-es6-class.md
|
|
1522
|
+
*/
|
|
1523
|
+
'react/prefer-es6-class'?: Linter.RuleEntry<ReactPreferEs6Class>;
|
|
1524
|
+
/**
|
|
1525
|
+
* Prefer exact proptype definitions
|
|
1526
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-exact-props.md
|
|
1527
|
+
*/
|
|
1528
|
+
'react/prefer-exact-props'?: Linter.RuleEntry<[]>;
|
|
1529
|
+
/**
|
|
1530
|
+
* Enforce that props are read-only
|
|
1531
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-read-only-props.md
|
|
1532
|
+
*/
|
|
1533
|
+
'react/prefer-read-only-props'?: Linter.RuleEntry<[]>;
|
|
1534
|
+
/**
|
|
1535
|
+
* Enforce stateless components to be written as a pure function
|
|
1536
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prefer-stateless-function.md
|
|
1537
|
+
*/
|
|
1538
|
+
'react/prefer-stateless-function'?: Linter.RuleEntry<ReactPreferStatelessFunction>;
|
|
1539
|
+
/**
|
|
1540
|
+
* Disallow missing props validation in a React component definition
|
|
1541
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prop-types.md
|
|
1542
|
+
*/
|
|
1543
|
+
'react/prop-types'?: Linter.RuleEntry<ReactPropTypes>;
|
|
1544
|
+
/**
|
|
1545
|
+
* Disallow missing React when using JSX
|
|
1546
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/react-in-jsx-scope.md
|
|
1547
|
+
*/
|
|
1548
|
+
'react/react-in-jsx-scope'?: Linter.RuleEntry<[]>;
|
|
1549
|
+
/**
|
|
1550
|
+
* Enforce a defaultProps definition for every prop that is not a required prop
|
|
1551
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-default-props.md
|
|
1552
|
+
*/
|
|
1553
|
+
'react/require-default-props'?: Linter.RuleEntry<ReactRequireDefaultProps>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Enforce React components to have a shouldComponentUpdate method
|
|
1556
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-optimization.md
|
|
1557
|
+
*/
|
|
1558
|
+
'react/require-optimization'?: Linter.RuleEntry<ReactRequireOptimization>;
|
|
1559
|
+
/**
|
|
1560
|
+
* Enforce ES5 or ES6 class for returning value in render function
|
|
1561
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-render-return.md
|
|
1562
|
+
*/
|
|
1563
|
+
'react/require-render-return'?: Linter.RuleEntry<[]>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Disallow extra closing tags for components without children
|
|
1566
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/self-closing-comp.md
|
|
1567
|
+
*/
|
|
1568
|
+
'react/self-closing-comp'?: Linter.RuleEntry<ReactSelfClosingComp>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Enforce component methods order
|
|
1571
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-comp.md
|
|
1572
|
+
*/
|
|
1573
|
+
'react/sort-comp'?: Linter.RuleEntry<ReactSortComp>;
|
|
1574
|
+
/**
|
|
1575
|
+
* Enforce defaultProps declarations alphabetical sorting
|
|
1576
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-default-props.md
|
|
1577
|
+
*/
|
|
1578
|
+
'react/sort-default-props'?: Linter.RuleEntry<ReactSortDefaultProps>;
|
|
1579
|
+
/**
|
|
1580
|
+
* Enforce propTypes declarations alphabetical sorting
|
|
1581
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/sort-prop-types.md
|
|
1582
|
+
*/
|
|
1583
|
+
'react/sort-prop-types'?: Linter.RuleEntry<ReactSortPropTypes>;
|
|
1584
|
+
/**
|
|
1585
|
+
* Enforce class component state initialization style
|
|
1586
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/state-in-constructor.md
|
|
1587
|
+
*/
|
|
1588
|
+
'react/state-in-constructor'?: Linter.RuleEntry<ReactStateInConstructor>;
|
|
1589
|
+
/**
|
|
1590
|
+
* Enforces where React component static properties should be positioned.
|
|
1591
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/static-property-placement.md
|
|
1592
|
+
*/
|
|
1593
|
+
'react/static-property-placement'?: Linter.RuleEntry<ReactStaticPropertyPlacement>;
|
|
1594
|
+
/**
|
|
1595
|
+
* Enforce style prop value is an object
|
|
1596
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/style-prop-object.md
|
|
1597
|
+
*/
|
|
1598
|
+
'react/style-prop-object'?: Linter.RuleEntry<ReactStylePropObject>;
|
|
1599
|
+
/**
|
|
1600
|
+
* Disallow void DOM elements (e.g. `<img />`, `<br />`) from receiving children
|
|
1601
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/void-dom-elements-no-children.md
|
|
1602
|
+
*/
|
|
1603
|
+
'react/void-dom-elements-no-children'?: Linter.RuleEntry<[]>;
|
|
1604
|
+
/**
|
|
1605
|
+
* disallow confusing quantifiers
|
|
1606
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
1607
|
+
*/
|
|
1608
|
+
'regexp/confusing-quantifier'?: Linter.RuleEntry<[]>;
|
|
1609
|
+
/**
|
|
1610
|
+
* enforce consistent escaping of control characters
|
|
1611
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/control-character-escape.html
|
|
1612
|
+
*/
|
|
1613
|
+
'regexp/control-character-escape'?: Linter.RuleEntry<[]>;
|
|
1614
|
+
/**
|
|
1615
|
+
* enforce single grapheme in string literal
|
|
1616
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/grapheme-string-literal.html
|
|
1617
|
+
*/
|
|
1618
|
+
'regexp/grapheme-string-literal'?: Linter.RuleEntry<[]>;
|
|
1619
|
+
/**
|
|
1620
|
+
* enforce consistent usage of hexadecimal escape
|
|
1621
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/hexadecimal-escape.html
|
|
1622
|
+
*/
|
|
1623
|
+
'regexp/hexadecimal-escape'?: Linter.RuleEntry<RegexpHexadecimalEscape>;
|
|
1624
|
+
/**
|
|
1625
|
+
* enforce into your favorite case
|
|
1626
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/letter-case.html
|
|
1627
|
+
*/
|
|
1628
|
+
'regexp/letter-case'?: Linter.RuleEntry<RegexpLetterCase>;
|
|
1629
|
+
/**
|
|
1630
|
+
* enforce match any character style
|
|
1631
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/match-any.html
|
|
1632
|
+
*/
|
|
1633
|
+
'regexp/match-any'?: Linter.RuleEntry<RegexpMatchAny>;
|
|
1634
|
+
/**
|
|
1635
|
+
* enforce use of escapes on negation
|
|
1636
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/negation.html
|
|
1637
|
+
*/
|
|
1638
|
+
'regexp/negation'?: Linter.RuleEntry<[]>;
|
|
1639
|
+
/**
|
|
1640
|
+
* disallow elements that contradict assertions
|
|
1641
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-contradiction-with-assertion.html
|
|
1642
|
+
*/
|
|
1643
|
+
'regexp/no-contradiction-with-assertion'?: Linter.RuleEntry<[]>;
|
|
1644
|
+
/**
|
|
1645
|
+
* disallow control characters
|
|
1646
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-control-character.html
|
|
1647
|
+
*/
|
|
1648
|
+
'regexp/no-control-character'?: Linter.RuleEntry<[]>;
|
|
1649
|
+
/**
|
|
1650
|
+
* disallow duplicate characters in the RegExp character class
|
|
1651
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-characters-character-class.html
|
|
1652
|
+
*/
|
|
1653
|
+
'regexp/no-dupe-characters-character-class'?: Linter.RuleEntry<[]>;
|
|
1654
|
+
/**
|
|
1655
|
+
* disallow duplicate disjunctions
|
|
1656
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-dupe-disjunctions.html
|
|
1657
|
+
*/
|
|
1658
|
+
'regexp/no-dupe-disjunctions'?: Linter.RuleEntry<RegexpNoDupeDisjunctions>;
|
|
1659
|
+
/**
|
|
1660
|
+
* disallow alternatives without elements
|
|
1661
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-alternative.html
|
|
1662
|
+
*/
|
|
1663
|
+
'regexp/no-empty-alternative'?: Linter.RuleEntry<[]>;
|
|
1664
|
+
/**
|
|
1665
|
+
* disallow capturing group that captures empty.
|
|
1666
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-capturing-group.html
|
|
1667
|
+
*/
|
|
1668
|
+
'regexp/no-empty-capturing-group'?: Linter.RuleEntry<[]>;
|
|
1669
|
+
/**
|
|
1670
|
+
* disallow character classes that match no characters
|
|
1671
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-character-class.html
|
|
1672
|
+
*/
|
|
1673
|
+
'regexp/no-empty-character-class'?: Linter.RuleEntry<[]>;
|
|
1674
|
+
/**
|
|
1675
|
+
* disallow empty group
|
|
1676
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-group.html
|
|
1677
|
+
*/
|
|
1678
|
+
'regexp/no-empty-group'?: Linter.RuleEntry<[]>;
|
|
1679
|
+
/**
|
|
1680
|
+
* disallow empty lookahead assertion or empty lookbehind assertion
|
|
1681
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-lookarounds-assertion.html
|
|
1682
|
+
*/
|
|
1683
|
+
'regexp/no-empty-lookarounds-assertion'?: Linter.RuleEntry<[]>;
|
|
1684
|
+
/**
|
|
1685
|
+
* disallow empty string literals in character classes
|
|
1686
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html
|
|
1687
|
+
*/
|
|
1688
|
+
'regexp/no-empty-string-literal'?: Linter.RuleEntry<[]>;
|
|
1689
|
+
/**
|
|
1690
|
+
* disallow escape backspace (`[\b]`)
|
|
1691
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-escape-backspace.html
|
|
1692
|
+
*/
|
|
1693
|
+
'regexp/no-escape-backspace'?: Linter.RuleEntry<[]>;
|
|
1694
|
+
/**
|
|
1695
|
+
* disallow unnecessary nested lookaround assertions
|
|
1696
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-extra-lookaround-assertions.html
|
|
1697
|
+
*/
|
|
1698
|
+
'regexp/no-extra-lookaround-assertions'?: Linter.RuleEntry<[]>;
|
|
1699
|
+
/**
|
|
1700
|
+
* disallow invalid regular expression strings in `RegExp` constructors
|
|
1701
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invalid-regexp.html
|
|
1702
|
+
*/
|
|
1703
|
+
'regexp/no-invalid-regexp'?: Linter.RuleEntry<[]>;
|
|
1704
|
+
/**
|
|
1705
|
+
* disallow invisible raw character
|
|
1706
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-invisible-character.html
|
|
1707
|
+
*/
|
|
1708
|
+
'regexp/no-invisible-character'?: Linter.RuleEntry<[]>;
|
|
1709
|
+
/**
|
|
1710
|
+
* disallow lazy quantifiers at the end of an expression
|
|
1711
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-lazy-ends.html
|
|
1712
|
+
*/
|
|
1713
|
+
'regexp/no-lazy-ends'?: Linter.RuleEntry<RegexpNoLazyEnds>;
|
|
1714
|
+
/**
|
|
1715
|
+
* disallow legacy RegExp features
|
|
1716
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-legacy-features.html
|
|
1717
|
+
*/
|
|
1718
|
+
'regexp/no-legacy-features'?: Linter.RuleEntry<RegexpNoLegacyFeatures>;
|
|
1719
|
+
/**
|
|
1720
|
+
* disallow capturing groups that do not behave as one would expect
|
|
1721
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-capturing-group.html
|
|
1722
|
+
*/
|
|
1723
|
+
'regexp/no-misleading-capturing-group'?: Linter.RuleEntry<RegexpNoMisleadingCapturingGroup>;
|
|
1724
|
+
/**
|
|
1725
|
+
* disallow multi-code-point characters in character classes and quantifiers
|
|
1726
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-misleading-unicode-character.html
|
|
1727
|
+
*/
|
|
1728
|
+
'regexp/no-misleading-unicode-character'?: Linter.RuleEntry<RegexpNoMisleadingUnicodeCharacter>;
|
|
1729
|
+
/**
|
|
1730
|
+
* disallow missing `g` flag in patterns used in `String#matchAll` and `String#replaceAll`
|
|
1731
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-missing-g-flag.html
|
|
1732
|
+
*/
|
|
1733
|
+
'regexp/no-missing-g-flag'?: Linter.RuleEntry<RegexpNoMissingGFlag>;
|
|
1734
|
+
/**
|
|
1735
|
+
* disallow non-standard flags
|
|
1736
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-non-standard-flag.html
|
|
1737
|
+
*/
|
|
1738
|
+
'regexp/no-non-standard-flag'?: Linter.RuleEntry<[]>;
|
|
1739
|
+
/**
|
|
1740
|
+
* disallow obscure character ranges
|
|
1741
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-obscure-range.html
|
|
1742
|
+
*/
|
|
1743
|
+
'regexp/no-obscure-range'?: Linter.RuleEntry<RegexpNoObscureRange>;
|
|
1744
|
+
/**
|
|
1745
|
+
* disallow octal escape sequence
|
|
1746
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-octal.html
|
|
1747
|
+
*/
|
|
1748
|
+
'regexp/no-octal'?: Linter.RuleEntry<[]>;
|
|
1749
|
+
/**
|
|
1750
|
+
* disallow optional assertions
|
|
1751
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-optional-assertion.html
|
|
1752
|
+
*/
|
|
1753
|
+
'regexp/no-optional-assertion'?: Linter.RuleEntry<[]>;
|
|
1754
|
+
/**
|
|
1755
|
+
* disallow backreferences that reference a group that might not be matched
|
|
1756
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-potentially-useless-backreference.html
|
|
1757
|
+
*/
|
|
1758
|
+
'regexp/no-potentially-useless-backreference'?: Linter.RuleEntry<[]>;
|
|
1759
|
+
/**
|
|
1760
|
+
* disallow standalone backslashes (`\`)
|
|
1761
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-standalone-backslash.html
|
|
1762
|
+
*/
|
|
1763
|
+
'regexp/no-standalone-backslash'?: Linter.RuleEntry<[]>;
|
|
1764
|
+
/**
|
|
1765
|
+
* disallow exponential and polynomial backtracking
|
|
1766
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-backtracking.html
|
|
1767
|
+
*/
|
|
1768
|
+
'regexp/no-super-linear-backtracking'?: Linter.RuleEntry<RegexpNoSuperLinearBacktracking>;
|
|
1769
|
+
/**
|
|
1770
|
+
* disallow quantifiers that cause quadratic moves
|
|
1771
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-super-linear-move.html
|
|
1772
|
+
*/
|
|
1773
|
+
'regexp/no-super-linear-move'?: Linter.RuleEntry<RegexpNoSuperLinearMove>;
|
|
1774
|
+
/**
|
|
1775
|
+
* disallow trivially nested assertions
|
|
1776
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-assertion.html
|
|
1777
|
+
*/
|
|
1778
|
+
'regexp/no-trivially-nested-assertion'?: Linter.RuleEntry<[]>;
|
|
1779
|
+
/**
|
|
1780
|
+
* disallow nested quantifiers that can be rewritten as one quantifier
|
|
1781
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-trivially-nested-quantifier.html
|
|
1782
|
+
*/
|
|
1783
|
+
'regexp/no-trivially-nested-quantifier'?: Linter.RuleEntry<[]>;
|
|
1784
|
+
/**
|
|
1785
|
+
* disallow unused capturing group
|
|
1786
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-unused-capturing-group.html
|
|
1787
|
+
*/
|
|
1788
|
+
'regexp/no-unused-capturing-group'?: Linter.RuleEntry<RegexpNoUnusedCapturingGroup>;
|
|
1789
|
+
/**
|
|
1790
|
+
* disallow assertions that are known to always accept (or reject)
|
|
1791
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-assertions.html
|
|
1792
|
+
*/
|
|
1793
|
+
'regexp/no-useless-assertions'?: Linter.RuleEntry<[]>;
|
|
1794
|
+
/**
|
|
1795
|
+
* disallow useless backreferences in regular expressions
|
|
1796
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-backreference.html
|
|
1797
|
+
*/
|
|
1798
|
+
'regexp/no-useless-backreference'?: Linter.RuleEntry<[]>;
|
|
1799
|
+
/**
|
|
1800
|
+
* disallow character class with one character
|
|
1801
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-character-class.html
|
|
1802
|
+
*/
|
|
1803
|
+
'regexp/no-useless-character-class'?: Linter.RuleEntry<RegexpNoUselessCharacterClass>;
|
|
1804
|
+
/**
|
|
1805
|
+
* disallow useless `$` replacements in replacement string
|
|
1806
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-dollar-replacements.html
|
|
1807
|
+
*/
|
|
1808
|
+
'regexp/no-useless-dollar-replacements'?: Linter.RuleEntry<[]>;
|
|
1809
|
+
/**
|
|
1810
|
+
* disallow unnecessary escape characters in RegExp
|
|
1811
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-escape.html
|
|
1812
|
+
*/
|
|
1813
|
+
'regexp/no-useless-escape'?: Linter.RuleEntry<[]>;
|
|
1814
|
+
/**
|
|
1815
|
+
* disallow unnecessary regex flags
|
|
1816
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-flag.html
|
|
1817
|
+
*/
|
|
1818
|
+
'regexp/no-useless-flag'?: Linter.RuleEntry<RegexpNoUselessFlag>;
|
|
1819
|
+
/**
|
|
1820
|
+
* disallow unnecessarily non-greedy quantifiers
|
|
1821
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-lazy.html
|
|
1822
|
+
*/
|
|
1823
|
+
'regexp/no-useless-lazy'?: Linter.RuleEntry<[]>;
|
|
1824
|
+
/**
|
|
1825
|
+
* disallow unnecessary non-capturing group
|
|
1826
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-non-capturing-group.html
|
|
1827
|
+
*/
|
|
1828
|
+
'regexp/no-useless-non-capturing-group'?: Linter.RuleEntry<RegexpNoUselessNonCapturingGroup>;
|
|
1829
|
+
/**
|
|
1830
|
+
* disallow quantifiers that can be removed
|
|
1831
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-quantifier.html
|
|
1832
|
+
*/
|
|
1833
|
+
'regexp/no-useless-quantifier'?: Linter.RuleEntry<[]>;
|
|
1834
|
+
/**
|
|
1835
|
+
* disallow unnecessary character ranges
|
|
1836
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-range.html
|
|
1837
|
+
*/
|
|
1838
|
+
'regexp/no-useless-range'?: Linter.RuleEntry<[]>;
|
|
1839
|
+
/**
|
|
1840
|
+
* disallow unnecessary elements in expression character classes
|
|
1841
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-set-operand.html
|
|
1842
|
+
*/
|
|
1843
|
+
'regexp/no-useless-set-operand'?: Linter.RuleEntry<[]>;
|
|
1844
|
+
/**
|
|
1845
|
+
* disallow string disjunction of single characters in `\q{...}`
|
|
1846
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-string-literal.html
|
|
1847
|
+
*/
|
|
1848
|
+
'regexp/no-useless-string-literal'?: Linter.RuleEntry<[]>;
|
|
1849
|
+
/**
|
|
1850
|
+
* disallow unnecessary `{n,m}` quantifier
|
|
1851
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-useless-two-nums-quantifier.html
|
|
1852
|
+
*/
|
|
1853
|
+
'regexp/no-useless-two-nums-quantifier'?: Linter.RuleEntry<[]>;
|
|
1854
|
+
/**
|
|
1855
|
+
* disallow quantifiers with a maximum of zero
|
|
1856
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-zero-quantifier.html
|
|
1857
|
+
*/
|
|
1858
|
+
'regexp/no-zero-quantifier'?: Linter.RuleEntry<[]>;
|
|
1859
|
+
/**
|
|
1860
|
+
* disallow the alternatives of lookarounds that end with a non-constant quantifier
|
|
1861
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-lookaround-quantifier.html
|
|
1862
|
+
*/
|
|
1863
|
+
'regexp/optimal-lookaround-quantifier'?: Linter.RuleEntry<[]>;
|
|
1864
|
+
/**
|
|
1865
|
+
* require optimal quantifiers for concatenated quantifiers
|
|
1866
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/optimal-quantifier-concatenation.html
|
|
1867
|
+
*/
|
|
1868
|
+
'regexp/optimal-quantifier-concatenation'?: Linter.RuleEntry<RegexpOptimalQuantifierConcatenation>;
|
|
1869
|
+
/**
|
|
1870
|
+
* enforce using character class
|
|
1871
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-character-class.html
|
|
1872
|
+
*/
|
|
1873
|
+
'regexp/prefer-character-class'?: Linter.RuleEntry<RegexpPreferCharacterClass>;
|
|
1874
|
+
/**
|
|
1875
|
+
* enforce using `\d`
|
|
1876
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-d.html
|
|
1877
|
+
*/
|
|
1878
|
+
'regexp/prefer-d'?: Linter.RuleEntry<RegexpPreferD>;
|
|
1879
|
+
/**
|
|
1880
|
+
* enforces escape of replacement `$` character (`$$`).
|
|
1881
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-escape-replacement-dollar-char.html
|
|
1882
|
+
*/
|
|
1883
|
+
'regexp/prefer-escape-replacement-dollar-char'?: Linter.RuleEntry<[]>;
|
|
1884
|
+
/**
|
|
1885
|
+
* prefer lookarounds over capturing group that do not replace
|
|
1886
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-lookaround.html
|
|
1887
|
+
*/
|
|
1888
|
+
'regexp/prefer-lookaround'?: Linter.RuleEntry<RegexpPreferLookaround>;
|
|
1889
|
+
/**
|
|
1890
|
+
* enforce using named backreferences
|
|
1891
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-backreference.html
|
|
1892
|
+
*/
|
|
1893
|
+
'regexp/prefer-named-backreference'?: Linter.RuleEntry<[]>;
|
|
1894
|
+
/**
|
|
1895
|
+
* enforce using named capture groups
|
|
1896
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-capture-group.html
|
|
1897
|
+
*/
|
|
1898
|
+
'regexp/prefer-named-capture-group'?: Linter.RuleEntry<[]>;
|
|
1899
|
+
/**
|
|
1900
|
+
* enforce using named replacement
|
|
1901
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-named-replacement.html
|
|
1902
|
+
*/
|
|
1903
|
+
'regexp/prefer-named-replacement'?: Linter.RuleEntry<RegexpPreferNamedReplacement>;
|
|
1904
|
+
/**
|
|
1905
|
+
* enforce using `+` quantifier
|
|
1906
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-plus-quantifier.html
|
|
1907
|
+
*/
|
|
1908
|
+
'regexp/prefer-plus-quantifier'?: Linter.RuleEntry<[]>;
|
|
1909
|
+
/**
|
|
1910
|
+
* prefer predefined assertion over equivalent lookarounds
|
|
1911
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-predefined-assertion.html
|
|
1912
|
+
*/
|
|
1913
|
+
'regexp/prefer-predefined-assertion'?: Linter.RuleEntry<[]>;
|
|
1914
|
+
/**
|
|
1915
|
+
* enforce using quantifier
|
|
1916
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-quantifier.html
|
|
1917
|
+
*/
|
|
1918
|
+
'regexp/prefer-quantifier'?: Linter.RuleEntry<RegexpPreferQuantifier>;
|
|
1919
|
+
/**
|
|
1920
|
+
* enforce using `?` quantifier
|
|
1921
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-question-quantifier.html
|
|
1922
|
+
*/
|
|
1923
|
+
'regexp/prefer-question-quantifier'?: Linter.RuleEntry<[]>;
|
|
1924
|
+
/**
|
|
1925
|
+
* enforce using character class range
|
|
1926
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-range.html
|
|
1927
|
+
*/
|
|
1928
|
+
'regexp/prefer-range'?: Linter.RuleEntry<RegexpPreferRange>;
|
|
1929
|
+
/**
|
|
1930
|
+
* enforce that `RegExp#exec` is used instead of `String#match` if no global flag is provided
|
|
1931
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-exec.html
|
|
1932
|
+
*/
|
|
1933
|
+
'regexp/prefer-regexp-exec'?: Linter.RuleEntry<[]>;
|
|
1934
|
+
/**
|
|
1935
|
+
* enforce that `RegExp#test` is used instead of `String#match` and `RegExp#exec`
|
|
1936
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-regexp-test.html
|
|
1937
|
+
*/
|
|
1938
|
+
'regexp/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
1939
|
+
/**
|
|
1940
|
+
* enforce using result array `groups`
|
|
1941
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-result-array-groups.html
|
|
1942
|
+
*/
|
|
1943
|
+
'regexp/prefer-result-array-groups'?: Linter.RuleEntry<RegexpPreferResultArrayGroups>;
|
|
1944
|
+
/**
|
|
1945
|
+
* prefer character class set operations instead of lookarounds
|
|
1946
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-set-operation.html
|
|
1947
|
+
*/
|
|
1948
|
+
'regexp/prefer-set-operation'?: Linter.RuleEntry<[]>;
|
|
1949
|
+
/**
|
|
1950
|
+
* enforce using `*` quantifier
|
|
1951
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-star-quantifier.html
|
|
1952
|
+
*/
|
|
1953
|
+
'regexp/prefer-star-quantifier'?: Linter.RuleEntry<[]>;
|
|
1954
|
+
/**
|
|
1955
|
+
* enforce use of unicode codepoint escapes
|
|
1956
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-unicode-codepoint-escapes.html
|
|
1957
|
+
*/
|
|
1958
|
+
'regexp/prefer-unicode-codepoint-escapes'?: Linter.RuleEntry<[]>;
|
|
1959
|
+
/**
|
|
1960
|
+
* enforce using `\w`
|
|
1961
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/prefer-w.html
|
|
1962
|
+
*/
|
|
1963
|
+
'regexp/prefer-w'?: Linter.RuleEntry<[]>;
|
|
1964
|
+
/**
|
|
1965
|
+
* enforce the use of the `u` flag
|
|
1966
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-regexp.html
|
|
1967
|
+
*/
|
|
1968
|
+
'regexp/require-unicode-regexp'?: Linter.RuleEntry<[]>;
|
|
1969
|
+
/**
|
|
1970
|
+
* enforce the use of the `v` flag
|
|
1971
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/require-unicode-sets-regexp.html
|
|
1972
|
+
*/
|
|
1973
|
+
'regexp/require-unicode-sets-regexp'?: Linter.RuleEntry<[]>;
|
|
1974
|
+
/**
|
|
1975
|
+
* require simplify set operations
|
|
1976
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/simplify-set-operations.html
|
|
1977
|
+
*/
|
|
1978
|
+
'regexp/simplify-set-operations'?: Linter.RuleEntry<[]>;
|
|
1979
|
+
/**
|
|
1980
|
+
* sort alternatives if order doesn't matter
|
|
1981
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-alternatives.html
|
|
1982
|
+
*/
|
|
1983
|
+
'regexp/sort-alternatives'?: Linter.RuleEntry<[]>;
|
|
1984
|
+
/**
|
|
1985
|
+
* enforces elements order in character class
|
|
1986
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-character-class-elements.html
|
|
1987
|
+
*/
|
|
1988
|
+
'regexp/sort-character-class-elements'?: Linter.RuleEntry<RegexpSortCharacterClassElements>;
|
|
1989
|
+
/**
|
|
1990
|
+
* require regex flags to be sorted
|
|
1991
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/sort-flags.html
|
|
1992
|
+
*/
|
|
1993
|
+
'regexp/sort-flags'?: Linter.RuleEntry<[]>;
|
|
1994
|
+
/**
|
|
1995
|
+
* disallow not strictly valid regular expressions
|
|
1996
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/strict.html
|
|
1997
|
+
*/
|
|
1998
|
+
'regexp/strict'?: Linter.RuleEntry<[]>;
|
|
1999
|
+
/**
|
|
2000
|
+
* enforce consistent usage of unicode escape or unicode codepoint escape
|
|
2001
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-escape.html
|
|
2002
|
+
*/
|
|
2003
|
+
'regexp/unicode-escape'?: Linter.RuleEntry<RegexpUnicodeEscape>;
|
|
2004
|
+
/**
|
|
2005
|
+
* enforce consistent naming of unicode properties
|
|
2006
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/unicode-property.html
|
|
2007
|
+
*/
|
|
2008
|
+
'regexp/unicode-property'?: Linter.RuleEntry<RegexpUnicodeProperty>;
|
|
2009
|
+
/**
|
|
2010
|
+
* use the `i` flag if it simplifies the pattern
|
|
2011
|
+
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/use-ignore-case.html
|
|
2012
|
+
*/
|
|
2013
|
+
'regexp/use-ignore-case'?: Linter.RuleEntry<[]>;
|
|
2014
|
+
/**
|
|
2015
|
+
* Interactions should be awaited
|
|
2016
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/await-interactions.md
|
|
2017
|
+
*/
|
|
2018
|
+
'storybook/await-interactions'?: Linter.RuleEntry<[]>;
|
|
2019
|
+
/**
|
|
2020
|
+
* Pass a context when invoking play function of another story
|
|
2021
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/context-in-play-function.md
|
|
2022
|
+
*/
|
|
2023
|
+
'storybook/context-in-play-function'?: Linter.RuleEntry<[]>;
|
|
2024
|
+
/**
|
|
2025
|
+
* The component property should be set
|
|
2026
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/csf-component.md
|
|
2027
|
+
*/
|
|
2028
|
+
'storybook/csf-component'?: Linter.RuleEntry<[]>;
|
|
2029
|
+
/**
|
|
2030
|
+
* Story files should have a default export
|
|
2031
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/default-exports.md
|
|
2032
|
+
*/
|
|
2033
|
+
'storybook/default-exports'?: Linter.RuleEntry<[]>;
|
|
2034
|
+
/**
|
|
2035
|
+
* Deprecated hierarchy separator in title property
|
|
2036
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/hierarchy-separator.md
|
|
2037
|
+
*/
|
|
2038
|
+
'storybook/hierarchy-separator'?: Linter.RuleEntry<[]>;
|
|
2039
|
+
/**
|
|
2040
|
+
* Meta should only have inline properties
|
|
2041
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/meta-inline-properties.md
|
|
2042
|
+
*/
|
|
2043
|
+
'storybook/meta-inline-properties'?: Linter.RuleEntry<StorybookMetaInlineProperties>;
|
|
2044
|
+
/**
|
|
2045
|
+
* Meta should use `satisfies Meta`
|
|
2046
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/meta-satisfies-type.md
|
|
2047
|
+
*/
|
|
2048
|
+
'storybook/meta-satisfies-type'?: Linter.RuleEntry<[]>;
|
|
2049
|
+
/**
|
|
2050
|
+
* A story should not have a redundant name property
|
|
2051
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-redundant-story-name.md
|
|
2052
|
+
*/
|
|
2053
|
+
'storybook/no-redundant-story-name'?: Linter.RuleEntry<[]>;
|
|
2054
|
+
/**
|
|
2055
|
+
* Do not import renderer packages directly in stories
|
|
2056
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-renderer-packages.md
|
|
2057
|
+
*/
|
|
2058
|
+
'storybook/no-renderer-packages'?: Linter.RuleEntry<[]>;
|
|
2059
|
+
/**
|
|
2060
|
+
* storiesOf is deprecated and should not be used
|
|
2061
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-stories-of.md
|
|
2062
|
+
*/
|
|
2063
|
+
'storybook/no-stories-of'?: Linter.RuleEntry<[]>;
|
|
2064
|
+
/**
|
|
2065
|
+
* Do not define a title in meta
|
|
2066
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-title-property-in-meta.md
|
|
2067
|
+
*/
|
|
2068
|
+
'storybook/no-title-property-in-meta'?: Linter.RuleEntry<[]>;
|
|
2069
|
+
/**
|
|
2070
|
+
* This rule identifies storybook addons that are invalid because they are either not installed or contain a typo in their name.
|
|
2071
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/no-uninstalled-addons.md
|
|
2072
|
+
*/
|
|
2073
|
+
'storybook/no-uninstalled-addons'?: Linter.RuleEntry<StorybookNoUninstalledAddons>;
|
|
2074
|
+
/**
|
|
2075
|
+
* Stories should use PascalCase
|
|
2076
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/prefer-pascal-case.md
|
|
2077
|
+
*/
|
|
2078
|
+
'storybook/prefer-pascal-case'?: Linter.RuleEntry<[]>;
|
|
2079
|
+
/**
|
|
2080
|
+
* A story file must contain at least one story export
|
|
2081
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/story-exports.md
|
|
2082
|
+
*/
|
|
2083
|
+
'storybook/story-exports'?: Linter.RuleEntry<[]>;
|
|
2084
|
+
/**
|
|
2085
|
+
* Use expect from `@storybook/test`, `storybook/test` or `@storybook/jest`
|
|
2086
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/use-storybook-expect.md
|
|
2087
|
+
*/
|
|
2088
|
+
'storybook/use-storybook-expect'?: Linter.RuleEntry<[]>;
|
|
2089
|
+
/**
|
|
2090
|
+
* Do not use testing-library directly on stories
|
|
2091
|
+
* @see https://github.com/storybookjs/storybook/blob/next/code/lib/eslint-plugin/docs/rules/use-storybook-testing-library.md
|
|
2092
|
+
*/
|
|
2093
|
+
'storybook/use-storybook-testing-library'?: Linter.RuleEntry<[]>;
|
|
2094
|
+
/**
|
|
2095
|
+
* Improve regexes by making them shorter, consistent, and safer.
|
|
2096
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
2097
|
+
*/
|
|
2098
|
+
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
2099
|
+
/**
|
|
2100
|
+
* Enforce a specific parameter name in catch clauses.
|
|
2101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
2102
|
+
*/
|
|
2103
|
+
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
2104
|
+
/**
|
|
2105
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
2106
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
2107
|
+
*/
|
|
2108
|
+
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
2109
|
+
/**
|
|
2110
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
2111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
2112
|
+
*/
|
|
2113
|
+
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
2114
|
+
/**
|
|
2115
|
+
* Use destructured variables over properties.
|
|
2116
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
2117
|
+
*/
|
|
2118
|
+
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
2121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
2122
|
+
*/
|
|
2123
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
2124
|
+
/**
|
|
2125
|
+
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
2126
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
2127
|
+
*/
|
|
2128
|
+
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Move function definitions to the highest possible scope.
|
|
2131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
2132
|
+
*/
|
|
2133
|
+
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
2134
|
+
/**
|
|
2135
|
+
* Enforce correct `Error` subclassing.
|
|
2136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
2137
|
+
*/
|
|
2138
|
+
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
2139
|
+
/**
|
|
2140
|
+
* Enforce no spaces between braces.
|
|
2141
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
2142
|
+
*/
|
|
2143
|
+
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Enforce passing a `message` value when creating a built-in error.
|
|
2146
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
2147
|
+
*/
|
|
2148
|
+
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
2149
|
+
/**
|
|
2150
|
+
* Require escape sequences to use uppercase or lowercase values.
|
|
2151
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
2152
|
+
*/
|
|
2153
|
+
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
2154
|
+
/**
|
|
2155
|
+
* Add expiration conditions to TODO comments.
|
|
2156
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
2157
|
+
*/
|
|
2158
|
+
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
2159
|
+
/**
|
|
2160
|
+
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
2161
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
2162
|
+
*/
|
|
2163
|
+
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
2164
|
+
/**
|
|
2165
|
+
* Enforce a case style for filenames.
|
|
2166
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
2167
|
+
*/
|
|
2168
|
+
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
2169
|
+
/**
|
|
2170
|
+
* Enforce specific import styles per module.
|
|
2171
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
2172
|
+
*/
|
|
2173
|
+
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
2174
|
+
/**
|
|
2175
|
+
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
2176
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
2177
|
+
*/
|
|
2178
|
+
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
2179
|
+
/**
|
|
2180
|
+
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
2181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
2182
|
+
*/
|
|
2183
|
+
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
2184
|
+
/**
|
|
2185
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
2186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
2187
|
+
*/
|
|
2188
|
+
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
2189
|
+
/**
|
|
2190
|
+
* Disallow anonymous functions and classes as the default export.
|
|
2191
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
2192
|
+
*/
|
|
2193
|
+
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
2194
|
+
/**
|
|
2195
|
+
* Prevent passing a function reference directly to iterator methods.
|
|
2196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
2197
|
+
*/
|
|
2198
|
+
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Prefer `for…of` over the `forEach` method.
|
|
2201
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
2202
|
+
*/
|
|
2203
|
+
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
|
|
2204
|
+
/**
|
|
2205
|
+
* Disallow using the `this` argument in array methods.
|
|
2206
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
2207
|
+
*/
|
|
2208
|
+
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
2209
|
+
/**
|
|
2210
|
+
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
2211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
2212
|
+
* @deprecated
|
|
2213
|
+
*/
|
|
2214
|
+
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
2215
|
+
/**
|
|
2216
|
+
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
2217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
2218
|
+
*/
|
|
2219
|
+
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
2220
|
+
/**
|
|
2221
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
2222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
2223
|
+
*/
|
|
2224
|
+
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
2225
|
+
/**
|
|
2226
|
+
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
2227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
2228
|
+
*/
|
|
2229
|
+
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
2230
|
+
/**
|
|
2231
|
+
* Disallow member access from await expression.
|
|
2232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
2233
|
+
*/
|
|
2234
|
+
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
2235
|
+
/**
|
|
2236
|
+
* Disallow using `await` in `Promise` method parameters.
|
|
2237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
2238
|
+
*/
|
|
2239
|
+
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
2240
|
+
/**
|
|
2241
|
+
* Do not use leading/trailing space between `console.log` parameters.
|
|
2242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
2243
|
+
*/
|
|
2244
|
+
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
2245
|
+
/**
|
|
2246
|
+
* Do not use `document.cookie` directly.
|
|
2247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
2248
|
+
*/
|
|
2249
|
+
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
2250
|
+
/**
|
|
2251
|
+
* Disallow empty files.
|
|
2252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
2253
|
+
*/
|
|
2254
|
+
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
|
|
2255
|
+
/**
|
|
2256
|
+
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
2257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
2258
|
+
*/
|
|
2259
|
+
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
2260
|
+
/**
|
|
2261
|
+
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
2262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
2263
|
+
*/
|
|
2264
|
+
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
2265
|
+
/**
|
|
2266
|
+
* Disallow immediate mutation after variable assignment.
|
|
2267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
2268
|
+
*/
|
|
2269
|
+
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
|
|
2270
|
+
/**
|
|
2271
|
+
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
2272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
2273
|
+
* @deprecated
|
|
2274
|
+
*/
|
|
2275
|
+
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
2276
|
+
/**
|
|
2277
|
+
* Disallow `instanceof` with built-in objects
|
|
2278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
2279
|
+
*/
|
|
2280
|
+
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
2281
|
+
/**
|
|
2282
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
2283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
2284
|
+
*/
|
|
2285
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
2286
|
+
/**
|
|
2287
|
+
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
2288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
2289
|
+
*/
|
|
2290
|
+
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Disallow identifiers starting with `new` or `class`.
|
|
2293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
2294
|
+
*/
|
|
2295
|
+
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
2296
|
+
/**
|
|
2297
|
+
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
2298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
2299
|
+
* @deprecated
|
|
2300
|
+
*/
|
|
2301
|
+
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
2302
|
+
/**
|
|
2303
|
+
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
2304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
2305
|
+
*/
|
|
2306
|
+
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
2307
|
+
/**
|
|
2308
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
2309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
2310
|
+
*/
|
|
2311
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
2312
|
+
/**
|
|
2313
|
+
* Disallow named usage of default import and export.
|
|
2314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
2315
|
+
*/
|
|
2316
|
+
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
2317
|
+
/**
|
|
2318
|
+
* Disallow negated conditions.
|
|
2319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
2320
|
+
*/
|
|
2321
|
+
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Disallow negated expression in equality check.
|
|
2324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
2325
|
+
*/
|
|
2326
|
+
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
2327
|
+
/**
|
|
2328
|
+
* Disallow nested ternary expressions.
|
|
2329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
2330
|
+
*/
|
|
2331
|
+
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
2332
|
+
/**
|
|
2333
|
+
* Disallow `new Array()`.
|
|
2334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
2335
|
+
*/
|
|
2336
|
+
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
2337
|
+
/**
|
|
2338
|
+
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
2339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
2340
|
+
*/
|
|
2341
|
+
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
2342
|
+
/**
|
|
2343
|
+
* Disallow the use of the `null` literal.
|
|
2344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
2345
|
+
*/
|
|
2346
|
+
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
2347
|
+
/**
|
|
2348
|
+
* Disallow the use of objects as default parameters.
|
|
2349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
2350
|
+
*/
|
|
2351
|
+
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
2352
|
+
/**
|
|
2353
|
+
* Disallow `process.exit()`.
|
|
2354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
2355
|
+
*/
|
|
2356
|
+
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
2357
|
+
/**
|
|
2358
|
+
* Disallow passing single-element arrays to `Promise` methods.
|
|
2359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
2360
|
+
*/
|
|
2361
|
+
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
2362
|
+
/**
|
|
2363
|
+
* Disallow classes that only have static members.
|
|
2364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
2365
|
+
*/
|
|
2366
|
+
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
2367
|
+
/**
|
|
2368
|
+
* Disallow `then` property.
|
|
2369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
2370
|
+
*/
|
|
2371
|
+
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
2372
|
+
/**
|
|
2373
|
+
* Disallow assigning `this` to a variable.
|
|
2374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
2375
|
+
*/
|
|
2376
|
+
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
2377
|
+
/**
|
|
2378
|
+
* Disallow comparing `undefined` using `typeof`.
|
|
2379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
2380
|
+
*/
|
|
2381
|
+
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
2382
|
+
/**
|
|
2383
|
+
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
2384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
2385
|
+
*/
|
|
2386
|
+
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
2387
|
+
/**
|
|
2388
|
+
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
2389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
2390
|
+
*/
|
|
2391
|
+
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
2392
|
+
/**
|
|
2393
|
+
* Disallow awaiting non-promise values.
|
|
2394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
2395
|
+
*/
|
|
2396
|
+
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
2397
|
+
/**
|
|
2398
|
+
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
2399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
2400
|
+
*/
|
|
2401
|
+
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
2402
|
+
/**
|
|
2403
|
+
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
2404
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
2405
|
+
*/
|
|
2406
|
+
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
2407
|
+
/**
|
|
2408
|
+
* Disallow unreadable array destructuring.
|
|
2409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
2410
|
+
*/
|
|
2411
|
+
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
|
|
2412
|
+
/**
|
|
2413
|
+
* Disallow unreadable IIFEs.
|
|
2414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
2415
|
+
*/
|
|
2416
|
+
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
2417
|
+
/**
|
|
2418
|
+
* Disallow unused object properties.
|
|
2419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
2420
|
+
*/
|
|
2421
|
+
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
2422
|
+
/**
|
|
2423
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
2424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
2425
|
+
*/
|
|
2426
|
+
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
2427
|
+
/**
|
|
2428
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
2429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
2430
|
+
*/
|
|
2431
|
+
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
2432
|
+
/**
|
|
2433
|
+
* Disallow useless fallback when spreading in object literals.
|
|
2434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
2435
|
+
*/
|
|
2436
|
+
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
2437
|
+
/**
|
|
2438
|
+
* Disallow useless array length check.
|
|
2439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
2440
|
+
*/
|
|
2441
|
+
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
2442
|
+
/**
|
|
2443
|
+
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
2444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
2445
|
+
*/
|
|
2446
|
+
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
2447
|
+
/**
|
|
2448
|
+
* Disallow unnecessary spread.
|
|
2449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
2450
|
+
*/
|
|
2451
|
+
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
2452
|
+
/**
|
|
2453
|
+
* Disallow useless case in switch statements.
|
|
2454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
2455
|
+
*/
|
|
2456
|
+
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
2457
|
+
/**
|
|
2458
|
+
* Disallow useless `undefined`.
|
|
2459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
2460
|
+
*/
|
|
2461
|
+
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
2462
|
+
/**
|
|
2463
|
+
* Disallow number literals with zero fractions or dangling dots.
|
|
2464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
2465
|
+
*/
|
|
2466
|
+
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
2467
|
+
/**
|
|
2468
|
+
* Enforce proper case for numeric literals.
|
|
2469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
2470
|
+
*/
|
|
2471
|
+
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
2472
|
+
/**
|
|
2473
|
+
* Enforce the style of numeric separators by correctly grouping digits.
|
|
2474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
2475
|
+
*/
|
|
2476
|
+
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
2477
|
+
/**
|
|
2478
|
+
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
2479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
2480
|
+
*/
|
|
2481
|
+
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
2482
|
+
/**
|
|
2483
|
+
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
2484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
2485
|
+
*/
|
|
2486
|
+
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
2487
|
+
/**
|
|
2488
|
+
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
2489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
2490
|
+
*/
|
|
2491
|
+
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
2492
|
+
/**
|
|
2493
|
+
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
2494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
2495
|
+
*/
|
|
2496
|
+
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
2497
|
+
/**
|
|
2498
|
+
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
2499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
2500
|
+
*/
|
|
2501
|
+
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
2502
|
+
/**
|
|
2503
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
2504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
2505
|
+
*/
|
|
2506
|
+
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
2507
|
+
/**
|
|
2508
|
+
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
2509
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
2510
|
+
*/
|
|
2511
|
+
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
2512
|
+
/**
|
|
2513
|
+
* Prefer `BigInt` literals over the constructor.
|
|
2514
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
2515
|
+
*/
|
|
2516
|
+
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
2517
|
+
/**
|
|
2518
|
+
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
2519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
2520
|
+
*/
|
|
2521
|
+
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
2522
|
+
/**
|
|
2523
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
2524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
2525
|
+
*/
|
|
2526
|
+
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
2527
|
+
/**
|
|
2528
|
+
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
2529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
2530
|
+
*/
|
|
2531
|
+
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
2532
|
+
/**
|
|
2533
|
+
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
2534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
2535
|
+
*/
|
|
2536
|
+
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
2537
|
+
/**
|
|
2538
|
+
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
2539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
2540
|
+
*/
|
|
2541
|
+
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
2542
|
+
/**
|
|
2543
|
+
* Prefer default parameters over reassignment.
|
|
2544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
2545
|
+
*/
|
|
2546
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
2547
|
+
/**
|
|
2548
|
+
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
2549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
2550
|
+
*/
|
|
2551
|
+
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
2552
|
+
/**
|
|
2553
|
+
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
2554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
2555
|
+
*/
|
|
2556
|
+
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
2557
|
+
/**
|
|
2558
|
+
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
2559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
2560
|
+
*/
|
|
2561
|
+
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
2562
|
+
/**
|
|
2563
|
+
* Prefer `.textContent` over `.innerText`.
|
|
2564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
2565
|
+
*/
|
|
2566
|
+
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
2567
|
+
/**
|
|
2568
|
+
* Prefer `EventTarget` over `EventEmitter`.
|
|
2569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
2570
|
+
*/
|
|
2571
|
+
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
2572
|
+
/**
|
|
2573
|
+
* Prefer `export…from` when re-exporting.
|
|
2574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
2575
|
+
*/
|
|
2576
|
+
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
2577
|
+
/**
|
|
2578
|
+
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
2579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
2580
|
+
*/
|
|
2581
|
+
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
2582
|
+
/**
|
|
2583
|
+
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
2584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
2585
|
+
*/
|
|
2586
|
+
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
2587
|
+
/**
|
|
2588
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
2589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
2590
|
+
*/
|
|
2591
|
+
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
2592
|
+
/**
|
|
2593
|
+
* Prefer reading a JSON file as a buffer.
|
|
2594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
2595
|
+
*/
|
|
2596
|
+
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
2597
|
+
/**
|
|
2598
|
+
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
2599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
2600
|
+
*/
|
|
2601
|
+
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
2602
|
+
/**
|
|
2603
|
+
* Prefer using a logical operator over a ternary.
|
|
2604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
2605
|
+
*/
|
|
2606
|
+
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
2607
|
+
/**
|
|
2608
|
+
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
2609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
2610
|
+
*/
|
|
2611
|
+
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
2612
|
+
/**
|
|
2613
|
+
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
2614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
2615
|
+
*/
|
|
2616
|
+
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
2617
|
+
/**
|
|
2618
|
+
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
2619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
2620
|
+
*/
|
|
2621
|
+
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
2622
|
+
/**
|
|
2623
|
+
* Prefer modern `Math` APIs over legacy patterns.
|
|
2624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
2625
|
+
*/
|
|
2626
|
+
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
2627
|
+
/**
|
|
2628
|
+
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
2629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
2630
|
+
*/
|
|
2631
|
+
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
2632
|
+
/**
|
|
2633
|
+
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
2634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
2635
|
+
*/
|
|
2636
|
+
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
2637
|
+
/**
|
|
2638
|
+
* Prefer negative index over `.length - index` when possible.
|
|
2639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
2640
|
+
*/
|
|
2641
|
+
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
2642
|
+
/**
|
|
2643
|
+
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
2644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
2645
|
+
*/
|
|
2646
|
+
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
2647
|
+
/**
|
|
2648
|
+
* Prefer `Number` static properties over global ones.
|
|
2649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
2650
|
+
*/
|
|
2651
|
+
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
2652
|
+
/**
|
|
2653
|
+
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
2654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
2655
|
+
*/
|
|
2656
|
+
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
2657
|
+
/**
|
|
2658
|
+
* Prefer omitting the `catch` binding parameter.
|
|
2659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
2660
|
+
*/
|
|
2661
|
+
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
2662
|
+
/**
|
|
2663
|
+
* Prefer borrowing methods from the prototype instead of the instance.
|
|
2664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
2665
|
+
*/
|
|
2666
|
+
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
2667
|
+
/**
|
|
2668
|
+
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
2669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
2670
|
+
*/
|
|
2671
|
+
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
|
|
2672
|
+
/**
|
|
2673
|
+
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
2674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
2675
|
+
*/
|
|
2676
|
+
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
2677
|
+
/**
|
|
2678
|
+
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
2679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
2680
|
+
*/
|
|
2681
|
+
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
2682
|
+
/**
|
|
2683
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
2684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
2685
|
+
*/
|
|
2686
|
+
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
2687
|
+
/**
|
|
2688
|
+
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
2689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
2690
|
+
*/
|
|
2691
|
+
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
|
|
2692
|
+
/**
|
|
2693
|
+
* Prefer using `Set#size` instead of `Array#length`.
|
|
2694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
2695
|
+
*/
|
|
2696
|
+
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
2697
|
+
/**
|
|
2698
|
+
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
2699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
2700
|
+
*/
|
|
2701
|
+
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
2702
|
+
/**
|
|
2703
|
+
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
2704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
2705
|
+
*/
|
|
2706
|
+
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
2707
|
+
/**
|
|
2708
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
2709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
2710
|
+
*/
|
|
2711
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
2712
|
+
/**
|
|
2713
|
+
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
2714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
2715
|
+
*/
|
|
2716
|
+
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
2717
|
+
/**
|
|
2718
|
+
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
2719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
2720
|
+
*/
|
|
2721
|
+
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
2722
|
+
/**
|
|
2723
|
+
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
2724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
2725
|
+
*/
|
|
2726
|
+
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
2727
|
+
/**
|
|
2728
|
+
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
2729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
2730
|
+
*/
|
|
2731
|
+
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
2732
|
+
/**
|
|
2733
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
2734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
2735
|
+
*/
|
|
2736
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
2737
|
+
/**
|
|
2738
|
+
* Prefer `switch` over multiple `else-if`.
|
|
2739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
2740
|
+
*/
|
|
2741
|
+
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Prefer ternary expressions over simple `if-else` statements.
|
|
2744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
2745
|
+
*/
|
|
2746
|
+
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
2747
|
+
/**
|
|
2748
|
+
* Prefer top-level await over top-level promises and async function calls.
|
|
2749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
2750
|
+
*/
|
|
2751
|
+
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
2752
|
+
/**
|
|
2753
|
+
* Enforce throwing `TypeError` in type checking conditions.
|
|
2754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
2755
|
+
*/
|
|
2756
|
+
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
2757
|
+
/**
|
|
2758
|
+
* Prevent abbreviations.
|
|
2759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
2760
|
+
*/
|
|
2761
|
+
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
2762
|
+
/**
|
|
2763
|
+
* Enforce consistent relative URL style.
|
|
2764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
2765
|
+
*/
|
|
2766
|
+
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Enforce using the separator argument with `Array#join()`.
|
|
2769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
2770
|
+
*/
|
|
2771
|
+
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
2772
|
+
/**
|
|
2773
|
+
* Require non-empty module attributes for imports and exports
|
|
2774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
2775
|
+
*/
|
|
2776
|
+
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
2777
|
+
/**
|
|
2778
|
+
* Require non-empty specifier list in import and export statements.
|
|
2779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
2780
|
+
*/
|
|
2781
|
+
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
2782
|
+
/**
|
|
2783
|
+
* Enforce using the digits argument with `Number#toFixed()`.
|
|
2784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
2785
|
+
*/
|
|
2786
|
+
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
2787
|
+
/**
|
|
2788
|
+
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
2789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
2790
|
+
*/
|
|
2791
|
+
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
2792
|
+
/**
|
|
2793
|
+
* Enforce better string content.
|
|
2794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
2795
|
+
*/
|
|
2796
|
+
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
2797
|
+
/**
|
|
2798
|
+
* Enforce consistent brace style for `case` clauses.
|
|
2799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
2800
|
+
*/
|
|
2801
|
+
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
2802
|
+
/**
|
|
2803
|
+
* Fix whitespace-insensitive template indentation.
|
|
2804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
2805
|
+
*/
|
|
2806
|
+
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
2807
|
+
/**
|
|
2808
|
+
* Enforce consistent case for text encoding identifiers.
|
|
2809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
2810
|
+
*/
|
|
2811
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
2812
|
+
/**
|
|
2813
|
+
* Require `new` when creating an error.
|
|
2814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
2815
|
+
*/
|
|
2816
|
+
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
2817
|
+
}
|
|
2818
|
+
type AstroJsxA11YAltText = [] | [{
|
|
2819
|
+
elements?: string[];
|
|
2820
|
+
img?: string[];
|
|
2821
|
+
object?: string[];
|
|
2822
|
+
area?: string[];
|
|
2823
|
+
"input[type=\"image\"]"?: string[];
|
|
2824
|
+
[k: string]: unknown | undefined;
|
|
2825
|
+
}];
|
|
2826
|
+
type AstroJsxA11YAnchorAmbiguousText = [] | [{
|
|
2827
|
+
words?: string[];
|
|
2828
|
+
[k: string]: unknown | undefined;
|
|
2829
|
+
}];
|
|
2830
|
+
type AstroJsxA11YAnchorHasContent = [] | [{
|
|
2831
|
+
components?: string[];
|
|
2832
|
+
[k: string]: unknown | undefined;
|
|
2833
|
+
}];
|
|
2834
|
+
type AstroJsxA11YAnchorIsValid = [] | [{
|
|
2835
|
+
components?: string[];
|
|
2836
|
+
specialLink?: string[];
|
|
2837
|
+
aspects?: [("noHref" | "invalidHref" | "preferButton"), ...(("noHref" | "invalidHref" | "preferButton"))[]];
|
|
2838
|
+
[k: string]: unknown | undefined;
|
|
2839
|
+
}];
|
|
2840
|
+
type AstroJsxA11YAriaActivedescendantHasTabindex = [] | [{
|
|
2841
|
+
[k: string]: unknown | undefined;
|
|
2842
|
+
}];
|
|
2843
|
+
type AstroJsxA11YAriaProps = [] | [{
|
|
2844
|
+
[k: string]: unknown | undefined;
|
|
2845
|
+
}];
|
|
2846
|
+
type AstroJsxA11YAriaProptypes = [] | [{
|
|
2847
|
+
[k: string]: unknown | undefined;
|
|
2848
|
+
}];
|
|
2849
|
+
type AstroJsxA11YAriaRole = [] | [{
|
|
2850
|
+
allowedInvalidRoles?: string[];
|
|
2851
|
+
ignoreNonDOM?: boolean;
|
|
2852
|
+
[k: string]: unknown | undefined;
|
|
2853
|
+
}];
|
|
2854
|
+
type AstroJsxA11YAriaUnsupportedElements = [] | [{
|
|
2855
|
+
[k: string]: unknown | undefined;
|
|
2856
|
+
}];
|
|
2857
|
+
type AstroJsxA11YAutocompleteValid = [] | [{
|
|
2858
|
+
inputComponents?: string[];
|
|
2859
|
+
[k: string]: unknown | undefined;
|
|
2860
|
+
}];
|
|
2861
|
+
type AstroJsxA11YClickEventsHaveKeyEvents = [] | [{
|
|
2862
|
+
[k: string]: unknown | undefined;
|
|
2863
|
+
}];
|
|
2864
|
+
type AstroJsxA11YControlHasAssociatedLabel = [] | [{
|
|
2865
|
+
labelAttributes?: string[];
|
|
2866
|
+
controlComponents?: string[];
|
|
2867
|
+
ignoreElements?: string[];
|
|
2868
|
+
ignoreRoles?: string[];
|
|
2869
|
+
depth?: number;
|
|
2870
|
+
[k: string]: unknown | undefined;
|
|
2871
|
+
}];
|
|
2872
|
+
type AstroJsxA11YHeadingHasContent = [] | [{
|
|
2873
|
+
components?: string[];
|
|
2874
|
+
[k: string]: unknown | undefined;
|
|
2875
|
+
}];
|
|
2876
|
+
type AstroJsxA11YHtmlHasLang = [] | [{
|
|
2877
|
+
[k: string]: unknown | undefined;
|
|
2878
|
+
}];
|
|
2879
|
+
type AstroJsxA11YIframeHasTitle = [] | [{
|
|
2880
|
+
[k: string]: unknown | undefined;
|
|
2881
|
+
}];
|
|
2882
|
+
type AstroJsxA11YImgRedundantAlt = [] | [{
|
|
2883
|
+
components?: string[];
|
|
2884
|
+
words?: string[];
|
|
2885
|
+
[k: string]: unknown | undefined;
|
|
2886
|
+
}];
|
|
2887
|
+
type AstroJsxA11YInteractiveSupportsFocus = [] | [{
|
|
2888
|
+
tabbable?: ("button" | "checkbox" | "columnheader" | "combobox" | "grid" | "gridcell" | "link" | "listbox" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "radiogroup" | "row" | "rowheader" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tablist" | "textbox" | "tree" | "treegrid" | "treeitem" | "doc-backlink" | "doc-biblioref" | "doc-glossref" | "doc-noteref")[];
|
|
2889
|
+
[k: string]: unknown | undefined;
|
|
2890
|
+
}];
|
|
2891
|
+
type AstroJsxA11YLabelHasAssociatedControl = [] | [{
|
|
2892
|
+
labelComponents?: string[];
|
|
2893
|
+
labelAttributes?: string[];
|
|
2894
|
+
controlComponents?: string[];
|
|
2895
|
+
assert?: ("htmlFor" | "nesting" | "both" | "either");
|
|
2896
|
+
depth?: number;
|
|
2897
|
+
[k: string]: unknown | undefined;
|
|
2898
|
+
}];
|
|
2899
|
+
type AstroJsxA11YLang = [] | [{
|
|
2900
|
+
[k: string]: unknown | undefined;
|
|
2901
|
+
}];
|
|
2902
|
+
type AstroJsxA11YMediaHasCaption = [] | [{
|
|
2903
|
+
audio?: string[];
|
|
2904
|
+
video?: string[];
|
|
2905
|
+
track?: string[];
|
|
2906
|
+
[k: string]: unknown | undefined;
|
|
2907
|
+
}];
|
|
2908
|
+
type AstroJsxA11YMouseEventsHaveKeyEvents = [] | [{
|
|
2909
|
+
hoverInHandlers?: string[];
|
|
2910
|
+
hoverOutHandlers?: string[];
|
|
2911
|
+
[k: string]: unknown | undefined;
|
|
2912
|
+
}];
|
|
2913
|
+
type AstroJsxA11YNoAccessKey = [] | [{
|
|
2914
|
+
[k: string]: unknown | undefined;
|
|
2915
|
+
}];
|
|
2916
|
+
type AstroJsxA11YNoAriaHiddenOnFocusable = [] | [{
|
|
2917
|
+
[k: string]: unknown | undefined;
|
|
2918
|
+
}];
|
|
2919
|
+
type AstroJsxA11YNoAutofocus = [] | [{
|
|
2920
|
+
ignoreNonDOM?: boolean;
|
|
2921
|
+
[k: string]: unknown | undefined;
|
|
2922
|
+
}];
|
|
2923
|
+
type AstroJsxA11YNoDistractingElements = [] | [{
|
|
2924
|
+
elements?: ("marquee" | "blink")[];
|
|
2925
|
+
[k: string]: unknown | undefined;
|
|
2926
|
+
}];
|
|
2927
|
+
type AstroJsxA11YNoInteractiveElementToNoninteractiveRole = [] | [{
|
|
2928
|
+
[k: string]: string[] | undefined;
|
|
2929
|
+
}];
|
|
2930
|
+
type AstroJsxA11YNoNoninteractiveElementInteractions = [] | [{
|
|
2931
|
+
handlers?: string[];
|
|
2932
|
+
[k: string]: unknown | undefined;
|
|
2933
|
+
}];
|
|
2934
|
+
type AstroJsxA11YNoNoninteractiveElementToInteractiveRole = [] | [{
|
|
2935
|
+
[k: string]: string[] | undefined;
|
|
2936
|
+
}];
|
|
2937
|
+
type AstroJsxA11YNoNoninteractiveTabindex = [] | [{
|
|
2938
|
+
roles?: string[];
|
|
2939
|
+
tags?: string[];
|
|
2940
|
+
[k: string]: unknown | undefined;
|
|
2941
|
+
}];
|
|
2942
|
+
type AstroJsxA11YNoRedundantRoles = [] | [{
|
|
2943
|
+
[k: string]: string[] | undefined;
|
|
2944
|
+
}];
|
|
2945
|
+
type AstroJsxA11YNoStaticElementInteractions = [] | [{
|
|
2946
|
+
handlers?: string[];
|
|
2947
|
+
[k: string]: unknown | undefined;
|
|
2948
|
+
}];
|
|
2949
|
+
type AstroJsxA11YPreferTagOverRole = [] | [{
|
|
2950
|
+
[k: string]: unknown | undefined;
|
|
2951
|
+
}];
|
|
2952
|
+
type AstroJsxA11YRoleHasRequiredAriaProps = [] | [{
|
|
2953
|
+
[k: string]: unknown | undefined;
|
|
2954
|
+
}];
|
|
2955
|
+
type AstroJsxA11YRoleSupportsAriaProps = [] | [{
|
|
2956
|
+
[k: string]: unknown | undefined;
|
|
2957
|
+
}];
|
|
2958
|
+
type AstroJsxA11YScope = [] | [{
|
|
2959
|
+
[k: string]: unknown | undefined;
|
|
2960
|
+
}];
|
|
2961
|
+
type AstroJsxA11YTabindexNoPositive = [] | [{
|
|
2962
|
+
[k: string]: unknown | undefined;
|
|
2963
|
+
}];
|
|
2964
|
+
type AstroNoUnsafeInlineScripts = [] | [{
|
|
2965
|
+
allowDefineVars?: boolean;
|
|
2966
|
+
allowModuleScripts?: boolean;
|
|
2967
|
+
allowNonExecutingTypes?: string[];
|
|
2968
|
+
allowNonce?: boolean;
|
|
2969
|
+
}];
|
|
2970
|
+
type AstroPreferSplitClassList = [] | [{
|
|
2971
|
+
splitLiteral?: boolean;
|
|
2972
|
+
}];
|
|
2973
|
+
type AstroSemi = ([] | ["never"] | ["never", {
|
|
2974
|
+
beforeStatementContinuationChars?: ("always" | "any" | "never");
|
|
2975
|
+
}] | [] | ["always"] | ["always", {
|
|
2976
|
+
omitLastInOneLineBlock?: boolean;
|
|
2977
|
+
omitLastInOneLineClassBody?: boolean;
|
|
2978
|
+
}]);
|
|
2979
|
+
type AstroSortAttributes = [] | [{
|
|
2980
|
+
type?: ("alphabetical" | "line-length");
|
|
2981
|
+
ignoreCase?: boolean;
|
|
2982
|
+
order?: ("asc" | "desc");
|
|
2983
|
+
}];
|
|
2984
|
+
type ImportSortImports = [] | [{
|
|
2985
|
+
groups?: string[][];
|
|
2986
|
+
}];
|
|
2987
|
+
type ImportConsistentTypeSpecifierStyle = [] | [("prefer-top-level" | "prefer-inline")];
|
|
2988
|
+
type ImportDynamicImportChunkname = [] | [{
|
|
2989
|
+
importFunctions?: string[];
|
|
2990
|
+
allowEmpty?: boolean;
|
|
2991
|
+
webpackChunknameFormat?: string;
|
|
2992
|
+
[k: string]: unknown | undefined;
|
|
2993
|
+
}];
|
|
2994
|
+
type ImportExtensions = ([] | [("always" | "ignorePackages" | "never")] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
2995
|
+
pattern?: {
|
|
2996
|
+
[k: string]: ("always" | "ignorePackages" | "never");
|
|
2997
|
+
};
|
|
2998
|
+
ignorePackages?: boolean;
|
|
2999
|
+
checkTypeImports?: boolean;
|
|
3000
|
+
pathGroupOverrides?: {
|
|
3001
|
+
pattern: string;
|
|
3002
|
+
patternOptions?: {
|
|
3003
|
+
[k: string]: unknown | undefined;
|
|
3004
|
+
};
|
|
3005
|
+
action: ("enforce" | "ignore");
|
|
3006
|
+
}[];
|
|
3007
|
+
fix?: boolean;
|
|
3008
|
+
[k: string]: unknown | undefined;
|
|
3009
|
+
}] | [] | [{
|
|
3010
|
+
pattern?: {
|
|
3011
|
+
[k: string]: ("always" | "ignorePackages" | "never");
|
|
3012
|
+
};
|
|
3013
|
+
ignorePackages?: boolean;
|
|
3014
|
+
checkTypeImports?: boolean;
|
|
3015
|
+
pathGroupOverrides?: {
|
|
3016
|
+
pattern: string;
|
|
3017
|
+
patternOptions?: {
|
|
3018
|
+
[k: string]: unknown | undefined;
|
|
3019
|
+
};
|
|
3020
|
+
action: ("enforce" | "ignore");
|
|
3021
|
+
}[];
|
|
3022
|
+
fix?: boolean;
|
|
3023
|
+
[k: string]: unknown | undefined;
|
|
3024
|
+
}] | [] | [("always" | "ignorePackages" | "never")] | [("always" | "ignorePackages" | "never"), {
|
|
3025
|
+
[k: string]: ("always" | "ignorePackages" | "never");
|
|
3026
|
+
}] | [] | [{
|
|
3027
|
+
[k: string]: ("always" | "ignorePackages" | "never");
|
|
3028
|
+
}]);
|
|
3029
|
+
type ImportFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
3030
|
+
type ImportImportsFirst = [] | [("absolute-first" | "disable-absolute-first")];
|
|
3031
|
+
type ImportMaxDependencies = [] | [{
|
|
3032
|
+
max?: number;
|
|
3033
|
+
ignoreTypeImports?: boolean;
|
|
3034
|
+
}];
|
|
3035
|
+
type ImportNamed = [] | [{
|
|
3036
|
+
commonjs?: boolean;
|
|
3037
|
+
}];
|
|
3038
|
+
type ImportNamespace = [] | [{
|
|
3039
|
+
allowComputed?: boolean;
|
|
3040
|
+
}];
|
|
3041
|
+
type ImportNewlineAfterImport = [] | [{
|
|
3042
|
+
count?: number;
|
|
3043
|
+
exactCount?: boolean;
|
|
3044
|
+
considerComments?: boolean;
|
|
3045
|
+
}];
|
|
3046
|
+
type ImportNoAbsolutePath = [] | [{
|
|
3047
|
+
commonjs?: boolean;
|
|
3048
|
+
amd?: boolean;
|
|
3049
|
+
esmodule?: boolean;
|
|
3050
|
+
ignore?: [string, ...(string)[]];
|
|
3051
|
+
}];
|
|
3052
|
+
type ImportNoAnonymousDefaultExport = [] | [{
|
|
3053
|
+
allowArray?: boolean;
|
|
3054
|
+
allowArrowFunction?: boolean;
|
|
3055
|
+
allowCallExpression?: boolean;
|
|
3056
|
+
allowAnonymousClass?: boolean;
|
|
3057
|
+
allowAnonymousFunction?: boolean;
|
|
3058
|
+
allowLiteral?: boolean;
|
|
3059
|
+
allowObject?: boolean;
|
|
3060
|
+
allowNew?: boolean;
|
|
3061
|
+
}];
|
|
3062
|
+
type ImportNoCommonjs = ([] | ["allow-primitive-modules"] | [] | [{
|
|
3063
|
+
allowPrimitiveModules?: boolean;
|
|
3064
|
+
allowRequire?: boolean;
|
|
3065
|
+
allowConditionalRequire?: boolean;
|
|
3066
|
+
}]);
|
|
3067
|
+
type ImportNoCycle = [] | [{
|
|
3068
|
+
commonjs?: boolean;
|
|
3069
|
+
amd?: boolean;
|
|
3070
|
+
esmodule?: boolean;
|
|
3071
|
+
ignore?: [string, ...(string)[]];
|
|
3072
|
+
maxDepth?: (number | "∞");
|
|
3073
|
+
ignoreExternal?: boolean;
|
|
3074
|
+
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
3075
|
+
}];
|
|
3076
|
+
type ImportNoDuplicates = [] | [{
|
|
3077
|
+
considerQueryString?: boolean;
|
|
3078
|
+
"prefer-inline"?: boolean;
|
|
3079
|
+
}];
|
|
3080
|
+
type ImportNoDynamicRequire = [] | [{
|
|
3081
|
+
esmodule?: boolean;
|
|
3082
|
+
}];
|
|
3083
|
+
type ImportNoExtraneousDependencies = [] | [{
|
|
3084
|
+
devDependencies?: (boolean | unknown[]);
|
|
3085
|
+
optionalDependencies?: (boolean | unknown[]);
|
|
3086
|
+
peerDependencies?: (boolean | unknown[]);
|
|
3087
|
+
bundledDependencies?: (boolean | unknown[]);
|
|
3088
|
+
packageDir?: (string | unknown[]);
|
|
3089
|
+
includeInternal?: boolean;
|
|
3090
|
+
includeTypes?: boolean;
|
|
3091
|
+
whitelist?: unknown[];
|
|
3092
|
+
}];
|
|
3093
|
+
type ImportNoImportModuleExports = [] | [{
|
|
3094
|
+
exceptions?: unknown[];
|
|
3095
|
+
}];
|
|
3096
|
+
type ImportNoInternalModules = [] | [({
|
|
3097
|
+
allow?: string[];
|
|
3098
|
+
} | {
|
|
3099
|
+
forbid?: string[];
|
|
3100
|
+
})];
|
|
3101
|
+
type ImportNoNamespace = [] | [{
|
|
3102
|
+
ignore?: string[];
|
|
3103
|
+
[k: string]: unknown | undefined;
|
|
3104
|
+
}];
|
|
3105
|
+
type ImportNoNodejsModules = [] | [{
|
|
3106
|
+
allow?: string[];
|
|
3107
|
+
}];
|
|
3108
|
+
type ImportNoRelativePackages = [] | [{
|
|
3109
|
+
commonjs?: boolean;
|
|
3110
|
+
amd?: boolean;
|
|
3111
|
+
esmodule?: boolean;
|
|
3112
|
+
ignore?: [string, ...(string)[]];
|
|
3113
|
+
}];
|
|
3114
|
+
type ImportNoRelativeParentImports = [] | [{
|
|
3115
|
+
commonjs?: boolean;
|
|
3116
|
+
amd?: boolean;
|
|
3117
|
+
esmodule?: boolean;
|
|
3118
|
+
ignore?: [string, ...(string)[]];
|
|
3119
|
+
}];
|
|
3120
|
+
type ImportNoRenameDefault = [] | [{
|
|
3121
|
+
commonjs?: boolean;
|
|
3122
|
+
preventRenamingBindings?: boolean;
|
|
3123
|
+
}];
|
|
3124
|
+
type ImportNoRestrictedPaths = [] | [{
|
|
3125
|
+
zones?: [{
|
|
3126
|
+
target?: (string | [string, ...(string)[]]);
|
|
3127
|
+
from?: (string | [string, ...(string)[]]);
|
|
3128
|
+
except?: string[];
|
|
3129
|
+
message?: string;
|
|
3130
|
+
}, ...({
|
|
3131
|
+
target?: (string | [string, ...(string)[]]);
|
|
3132
|
+
from?: (string | [string, ...(string)[]]);
|
|
3133
|
+
except?: string[];
|
|
3134
|
+
message?: string;
|
|
3135
|
+
})[]];
|
|
3136
|
+
basePath?: string;
|
|
3137
|
+
}];
|
|
3138
|
+
type ImportNoUnassignedImport = [] | [{
|
|
3139
|
+
devDependencies?: (boolean | unknown[]);
|
|
3140
|
+
optionalDependencies?: (boolean | unknown[]);
|
|
3141
|
+
peerDependencies?: (boolean | unknown[]);
|
|
3142
|
+
allow?: string[];
|
|
3143
|
+
}];
|
|
3144
|
+
type ImportNoUnresolved = [] | [{
|
|
3145
|
+
commonjs?: boolean;
|
|
3146
|
+
amd?: boolean;
|
|
3147
|
+
esmodule?: boolean;
|
|
3148
|
+
ignore?: [string, ...(string)[]];
|
|
3149
|
+
caseSensitive?: boolean;
|
|
3150
|
+
caseSensitiveStrict?: boolean;
|
|
3151
|
+
}];
|
|
3152
|
+
type ImportNoUnusedModules = [] | [({
|
|
3153
|
+
unusedExports: true;
|
|
3154
|
+
src?: [unknown, ...(unknown)[]];
|
|
3155
|
+
[k: string]: unknown | undefined;
|
|
3156
|
+
} | {
|
|
3157
|
+
missingExports: true;
|
|
3158
|
+
[k: string]: unknown | undefined;
|
|
3159
|
+
})];
|
|
3160
|
+
type ImportNoUselessPathSegments = [] | [{
|
|
3161
|
+
commonjs?: boolean;
|
|
3162
|
+
noUselessIndex?: boolean;
|
|
3163
|
+
}];
|
|
3164
|
+
type ImportOrder = [] | [{
|
|
3165
|
+
groups?: unknown[];
|
|
3166
|
+
pathGroupsExcludedImportTypes?: unknown[];
|
|
3167
|
+
distinctGroup?: boolean;
|
|
3168
|
+
pathGroups?: {
|
|
3169
|
+
pattern: string;
|
|
3170
|
+
patternOptions?: {
|
|
3171
|
+
[k: string]: unknown | undefined;
|
|
3172
|
+
};
|
|
3173
|
+
group: ("builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type");
|
|
3174
|
+
position?: ("after" | "before");
|
|
3175
|
+
}[];
|
|
3176
|
+
"newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
3177
|
+
"newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never");
|
|
3178
|
+
consolidateIslands?: ("inside-groups" | "never");
|
|
3179
|
+
sortTypesGroup?: boolean;
|
|
3180
|
+
named?: (boolean | {
|
|
3181
|
+
enabled?: boolean;
|
|
3182
|
+
import?: boolean;
|
|
3183
|
+
export?: boolean;
|
|
3184
|
+
require?: boolean;
|
|
3185
|
+
cjsExports?: boolean;
|
|
3186
|
+
types?: ("mixed" | "types-first" | "types-last");
|
|
3187
|
+
});
|
|
3188
|
+
alphabetize?: {
|
|
3189
|
+
caseInsensitive?: boolean;
|
|
3190
|
+
order?: ("ignore" | "asc" | "desc");
|
|
3191
|
+
orderImportKind?: ("ignore" | "asc" | "desc");
|
|
3192
|
+
};
|
|
3193
|
+
warnOnUnassignedImports?: boolean;
|
|
3194
|
+
}];
|
|
3195
|
+
type ImportPreferDefaultExport = [] | [{
|
|
3196
|
+
target?: ("single" | "any");
|
|
3197
|
+
}];
|
|
3198
|
+
type ImportPreferNamespaceImport = [] | [{
|
|
3199
|
+
patterns?: string[];
|
|
3200
|
+
}];
|
|
3201
|
+
type JsxA11YAccessibleEmoji = [] | [{
|
|
3202
|
+
[k: string]: unknown | undefined;
|
|
3203
|
+
}];
|
|
3204
|
+
type JsxA11YAltText = [] | [{
|
|
3205
|
+
elements?: string[];
|
|
3206
|
+
img?: string[];
|
|
3207
|
+
object?: string[];
|
|
3208
|
+
area?: string[];
|
|
3209
|
+
"input[type=\"image\"]"?: string[];
|
|
3210
|
+
[k: string]: unknown | undefined;
|
|
3211
|
+
}];
|
|
3212
|
+
type JsxA11YAnchorAmbiguousText = [] | [{
|
|
3213
|
+
words?: string[];
|
|
3214
|
+
[k: string]: unknown | undefined;
|
|
3215
|
+
}];
|
|
3216
|
+
type JsxA11YAnchorHasContent = [] | [{
|
|
3217
|
+
components?: string[];
|
|
3218
|
+
[k: string]: unknown | undefined;
|
|
3219
|
+
}];
|
|
3220
|
+
type JsxA11YAnchorIsValid = [] | [{
|
|
3221
|
+
components?: string[];
|
|
3222
|
+
specialLink?: string[];
|
|
3223
|
+
aspects?: [("noHref" | "invalidHref" | "preferButton"), ...(("noHref" | "invalidHref" | "preferButton"))[]];
|
|
3224
|
+
[k: string]: unknown | undefined;
|
|
3225
|
+
}];
|
|
3226
|
+
type JsxA11YAriaActivedescendantHasTabindex = [] | [{
|
|
3227
|
+
[k: string]: unknown | undefined;
|
|
3228
|
+
}];
|
|
3229
|
+
type JsxA11YAriaProps = [] | [{
|
|
3230
|
+
[k: string]: unknown | undefined;
|
|
3231
|
+
}];
|
|
3232
|
+
type JsxA11YAriaProptypes = [] | [{
|
|
3233
|
+
[k: string]: unknown | undefined;
|
|
3234
|
+
}];
|
|
3235
|
+
type JsxA11YAriaRole = [] | [{
|
|
3236
|
+
allowedInvalidRoles?: string[];
|
|
3237
|
+
ignoreNonDOM?: boolean;
|
|
3238
|
+
[k: string]: unknown | undefined;
|
|
3239
|
+
}];
|
|
3240
|
+
type JsxA11YAriaUnsupportedElements = [] | [{
|
|
3241
|
+
[k: string]: unknown | undefined;
|
|
3242
|
+
}];
|
|
3243
|
+
type JsxA11YAutocompleteValid = [] | [{
|
|
3244
|
+
inputComponents?: string[];
|
|
3245
|
+
[k: string]: unknown | undefined;
|
|
3246
|
+
}];
|
|
3247
|
+
type JsxA11YClickEventsHaveKeyEvents = [] | [{
|
|
3248
|
+
[k: string]: unknown | undefined;
|
|
3249
|
+
}];
|
|
3250
|
+
type JsxA11YControlHasAssociatedLabel = [] | [{
|
|
3251
|
+
labelAttributes?: string[];
|
|
3252
|
+
controlComponents?: string[];
|
|
3253
|
+
ignoreElements?: string[];
|
|
3254
|
+
ignoreRoles?: string[];
|
|
3255
|
+
depth?: number;
|
|
3256
|
+
[k: string]: unknown | undefined;
|
|
3257
|
+
}];
|
|
3258
|
+
type JsxA11YHeadingHasContent = [] | [{
|
|
3259
|
+
components?: string[];
|
|
3260
|
+
[k: string]: unknown | undefined;
|
|
3261
|
+
}];
|
|
3262
|
+
type JsxA11YHtmlHasLang = [] | [{
|
|
3263
|
+
[k: string]: unknown | undefined;
|
|
3264
|
+
}];
|
|
3265
|
+
type JsxA11YIframeHasTitle = [] | [{
|
|
3266
|
+
[k: string]: unknown | undefined;
|
|
3267
|
+
}];
|
|
3268
|
+
type JsxA11YImgRedundantAlt = [] | [{
|
|
3269
|
+
components?: string[];
|
|
3270
|
+
words?: string[];
|
|
3271
|
+
[k: string]: unknown | undefined;
|
|
3272
|
+
}];
|
|
3273
|
+
type JsxA11YInteractiveSupportsFocus = [] | [{
|
|
3274
|
+
tabbable?: ("button" | "checkbox" | "columnheader" | "combobox" | "grid" | "gridcell" | "link" | "listbox" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "option" | "progressbar" | "radio" | "radiogroup" | "row" | "rowheader" | "scrollbar" | "searchbox" | "slider" | "spinbutton" | "switch" | "tab" | "tablist" | "textbox" | "tree" | "treegrid" | "treeitem" | "doc-backlink" | "doc-biblioref" | "doc-glossref" | "doc-noteref")[];
|
|
3275
|
+
[k: string]: unknown | undefined;
|
|
3276
|
+
}];
|
|
3277
|
+
type JsxA11YLabelHasAssociatedControl = [] | [{
|
|
3278
|
+
labelComponents?: string[];
|
|
3279
|
+
labelAttributes?: string[];
|
|
3280
|
+
controlComponents?: string[];
|
|
3281
|
+
assert?: ("htmlFor" | "nesting" | "both" | "either");
|
|
3282
|
+
depth?: number;
|
|
3283
|
+
[k: string]: unknown | undefined;
|
|
3284
|
+
}];
|
|
3285
|
+
type JsxA11YLabelHasFor = [] | [{
|
|
3286
|
+
components?: string[];
|
|
3287
|
+
required?: (("nesting" | "id") | {
|
|
3288
|
+
some: ("nesting" | "id")[];
|
|
3289
|
+
[k: string]: unknown | undefined;
|
|
3290
|
+
} | {
|
|
3291
|
+
every: ("nesting" | "id")[];
|
|
3292
|
+
[k: string]: unknown | undefined;
|
|
3293
|
+
});
|
|
3294
|
+
allowChildren?: boolean;
|
|
3295
|
+
[k: string]: unknown | undefined;
|
|
3296
|
+
}];
|
|
3297
|
+
type JsxA11YLang = [] | [{
|
|
3298
|
+
[k: string]: unknown | undefined;
|
|
3299
|
+
}];
|
|
3300
|
+
type JsxA11YMediaHasCaption = [] | [{
|
|
3301
|
+
audio?: string[];
|
|
3302
|
+
video?: string[];
|
|
3303
|
+
track?: string[];
|
|
3304
|
+
[k: string]: unknown | undefined;
|
|
3305
|
+
}];
|
|
3306
|
+
type JsxA11YMouseEventsHaveKeyEvents = [] | [{
|
|
3307
|
+
hoverInHandlers?: string[];
|
|
3308
|
+
hoverOutHandlers?: string[];
|
|
3309
|
+
[k: string]: unknown | undefined;
|
|
3310
|
+
}];
|
|
3311
|
+
type JsxA11YNoAccessKey = [] | [{
|
|
3312
|
+
[k: string]: unknown | undefined;
|
|
3313
|
+
}];
|
|
3314
|
+
type JsxA11YNoAriaHiddenOnFocusable = [] | [{
|
|
3315
|
+
[k: string]: unknown | undefined;
|
|
3316
|
+
}];
|
|
3317
|
+
type JsxA11YNoAutofocus = [] | [{
|
|
3318
|
+
ignoreNonDOM?: boolean;
|
|
3319
|
+
[k: string]: unknown | undefined;
|
|
3320
|
+
}];
|
|
3321
|
+
type JsxA11YNoDistractingElements = [] | [{
|
|
3322
|
+
elements?: ("marquee" | "blink")[];
|
|
3323
|
+
[k: string]: unknown | undefined;
|
|
3324
|
+
}];
|
|
3325
|
+
type JsxA11YNoInteractiveElementToNoninteractiveRole = [] | [{
|
|
3326
|
+
[k: string]: string[] | undefined;
|
|
3327
|
+
}];
|
|
3328
|
+
type JsxA11YNoNoninteractiveElementInteractions = [] | [{
|
|
3329
|
+
handlers?: string[];
|
|
3330
|
+
[k: string]: unknown | undefined;
|
|
3331
|
+
}];
|
|
3332
|
+
type JsxA11YNoNoninteractiveElementToInteractiveRole = [] | [{
|
|
3333
|
+
[k: string]: string[] | undefined;
|
|
3334
|
+
}];
|
|
3335
|
+
type JsxA11YNoNoninteractiveTabindex = [] | [{
|
|
3336
|
+
roles?: string[];
|
|
3337
|
+
tags?: string[];
|
|
3338
|
+
[k: string]: unknown | undefined;
|
|
3339
|
+
}];
|
|
3340
|
+
type JsxA11YNoOnchange = [] | [{
|
|
3341
|
+
[k: string]: unknown | undefined;
|
|
3342
|
+
}];
|
|
3343
|
+
type JsxA11YNoRedundantRoles = [] | [{
|
|
3344
|
+
[k: string]: string[] | undefined;
|
|
3345
|
+
}];
|
|
3346
|
+
type JsxA11YNoStaticElementInteractions = [] | [{
|
|
3347
|
+
handlers?: string[];
|
|
3348
|
+
[k: string]: unknown | undefined;
|
|
3349
|
+
}];
|
|
3350
|
+
type JsxA11YPreferTagOverRole = [] | [{
|
|
3351
|
+
[k: string]: unknown | undefined;
|
|
3352
|
+
}];
|
|
3353
|
+
type JsxA11YRoleHasRequiredAriaProps = [] | [{
|
|
3354
|
+
[k: string]: unknown | undefined;
|
|
3355
|
+
}];
|
|
3356
|
+
type JsxA11YRoleSupportsAriaProps = [] | [{
|
|
3357
|
+
[k: string]: unknown | undefined;
|
|
3358
|
+
}];
|
|
3359
|
+
type JsxA11YScope = [] | [{
|
|
3360
|
+
[k: string]: unknown | undefined;
|
|
3361
|
+
}];
|
|
3362
|
+
type JsxA11YTabindexNoPositive = [] | [{
|
|
3363
|
+
[k: string]: unknown | undefined;
|
|
3364
|
+
}];
|
|
3365
|
+
type NextNoHtmlLinkForPages = [] | [(string | string[])];
|
|
3366
|
+
type NodeCallbackReturn = [] | [string[]];
|
|
3367
|
+
type NodeExportsStyle = [] | [("module.exports" | "exports")] | [("module.exports" | "exports"), {
|
|
3368
|
+
allowBatchAssign?: boolean;
|
|
3369
|
+
}];
|
|
3370
|
+
type NodeFileExtensionInImport = [] | [("always" | "never")] | [("always" | "never"), {
|
|
3371
|
+
[k: string]: ("always" | "never") | undefined;
|
|
3372
|
+
}];
|
|
3373
|
+
type NodeHandleCallbackErr = [] | [string];
|
|
3374
|
+
type NodeHashbang = [] | [{
|
|
3375
|
+
convertPath?: ({
|
|
3376
|
+
[k: string]: [string, string];
|
|
3377
|
+
} | [{
|
|
3378
|
+
include: [string, ...(string)[]];
|
|
3379
|
+
exclude?: string[];
|
|
3380
|
+
replace: [string, string];
|
|
3381
|
+
}, ...({
|
|
3382
|
+
include: [string, ...(string)[]];
|
|
3383
|
+
exclude?: string[];
|
|
3384
|
+
replace: [string, string];
|
|
3385
|
+
})[]]);
|
|
3386
|
+
ignoreUnpublished?: boolean;
|
|
3387
|
+
additionalExecutables?: string[];
|
|
3388
|
+
executableMap?: {
|
|
3389
|
+
[k: string]: string;
|
|
3390
|
+
};
|
|
3391
|
+
}];
|
|
3392
|
+
type NodeNoDeprecatedApi = [] | [{
|
|
3393
|
+
version?: string;
|
|
3394
|
+
ignoreModuleItems?: ("_linklist" | "_stream_wrap" | "async_hooks.currentId" | "async_hooks.triggerId" | "buffer.Buffer()" | "new buffer.Buffer()" | "buffer.SlowBuffer" | "constants" | "crypto._toBuf" | "crypto.Credentials" | "crypto.DEFAULT_ENCODING" | "crypto.createCipher" | "crypto.createCredentials" | "crypto.createDecipher" | "crypto.fips" | "crypto.prng" | "crypto.pseudoRandomBytes" | "crypto.rng" | "domain" | "events.EventEmitter.listenerCount" | "events.listenerCount" | "freelist" | "fs.SyncWriteStream" | "fs.exists" | "fs.lchmod" | "fs.lchmodSync" | "http.createClient" | "module.Module.createRequireFromPath" | "module.Module.requireRepl" | "module.Module._debug" | "module.createRequireFromPath" | "module.requireRepl" | "module._debug" | "net._setSimultaneousAccepts" | "os.getNetworkInterfaces" | "os.tmpDir" | "path._makeLong" | "process.EventEmitter" | "process.assert" | "process.binding" | "process.env.NODE_REPL_HISTORY_FILE" | "process.report.triggerReport" | "punycode" | "readline.codePointAt" | "readline.getStringWidth" | "readline.isFullWidthCodePoint" | "readline.stripVTControlCharacters" | "repl.REPLServer" | "repl.Recoverable" | "repl.REPL_MODE_MAGIC" | "repl.builtinModules" | "safe-buffer.Buffer()" | "new safe-buffer.Buffer()" | "safe-buffer.SlowBuffer" | "sys" | "timers.enroll" | "timers.unenroll" | "tls.CleartextStream" | "tls.CryptoStream" | "tls.SecurePair" | "tls.convertNPNProtocols" | "tls.createSecurePair" | "tls.parseCertString" | "tty.setRawMode" | "url.parse" | "url.resolve" | "util.debug" | "util.error" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util.print" | "util.pump" | "util.puts" | "util._extend" | "vm.runInDebugContext" | "zlib.BrotliCompress()" | "zlib.BrotliDecompress()" | "zlib.Deflate()" | "zlib.DeflateRaw()" | "zlib.Gunzip()" | "zlib.Gzip()" | "zlib.Inflate()" | "zlib.InflateRaw()" | "zlib.Unzip()")[];
|
|
3395
|
+
ignoreGlobalItems?: ("Buffer()" | "new Buffer()" | "COUNTER_NET_SERVER_CONNECTION" | "COUNTER_NET_SERVER_CONNECTION_CLOSE" | "COUNTER_HTTP_SERVER_REQUEST" | "COUNTER_HTTP_SERVER_RESPONSE" | "COUNTER_HTTP_CLIENT_REQUEST" | "COUNTER_HTTP_CLIENT_RESPONSE" | "GLOBAL" | "Intl.v8BreakIterator" | "require.extensions" | "root" | "process.EventEmitter" | "process.assert" | "process.binding" | "process.env.NODE_REPL_HISTORY_FILE" | "process.report.triggerReport")[];
|
|
3396
|
+
ignoreIndirectDependencies?: boolean;
|
|
3397
|
+
}];
|
|
3398
|
+
type NodeNoExtraneousImport = [] | [{
|
|
3399
|
+
allowModules?: string[];
|
|
3400
|
+
convertPath?: ({
|
|
3401
|
+
[k: string]: [string, string];
|
|
3402
|
+
} | [{
|
|
3403
|
+
include: [string, ...(string)[]];
|
|
3404
|
+
exclude?: string[];
|
|
3405
|
+
replace: [string, string];
|
|
3406
|
+
}, ...({
|
|
3407
|
+
include: [string, ...(string)[]];
|
|
3408
|
+
exclude?: string[];
|
|
3409
|
+
replace: [string, string];
|
|
3410
|
+
})[]]);
|
|
3411
|
+
resolvePaths?: string[];
|
|
3412
|
+
resolverConfig?: {
|
|
3413
|
+
[k: string]: unknown | undefined;
|
|
3414
|
+
};
|
|
3415
|
+
}];
|
|
3416
|
+
type NodeNoExtraneousRequire = [] | [{
|
|
3417
|
+
allowModules?: string[];
|
|
3418
|
+
convertPath?: ({
|
|
3419
|
+
[k: string]: [string, string];
|
|
3420
|
+
} | [{
|
|
3421
|
+
include: [string, ...(string)[]];
|
|
3422
|
+
exclude?: string[];
|
|
3423
|
+
replace: [string, string];
|
|
3424
|
+
}, ...({
|
|
3425
|
+
include: [string, ...(string)[]];
|
|
3426
|
+
exclude?: string[];
|
|
3427
|
+
replace: [string, string];
|
|
3428
|
+
})[]]);
|
|
3429
|
+
resolvePaths?: string[];
|
|
3430
|
+
resolverConfig?: {
|
|
3431
|
+
[k: string]: unknown | undefined;
|
|
3432
|
+
};
|
|
3433
|
+
tryExtensions?: string[];
|
|
3434
|
+
}];
|
|
3435
|
+
type NodeNoHideCoreModules = [] | [{
|
|
3436
|
+
allow?: ("assert" | "buffer" | "child_process" | "cluster" | "console" | "constants" | "crypto" | "dgram" | "dns" | "events" | "fs" | "http" | "https" | "module" | "net" | "os" | "path" | "querystring" | "readline" | "repl" | "stream" | "string_decoder" | "timers" | "tls" | "tty" | "url" | "util" | "vm" | "zlib")[];
|
|
3437
|
+
ignoreDirectDependencies?: boolean;
|
|
3438
|
+
ignoreIndirectDependencies?: boolean;
|
|
3439
|
+
}];
|
|
3440
|
+
type NodeNoMissingImport = [] | [{
|
|
3441
|
+
allowModules?: string[];
|
|
3442
|
+
resolvePaths?: string[];
|
|
3443
|
+
resolverConfig?: {
|
|
3444
|
+
[k: string]: unknown | undefined;
|
|
3445
|
+
};
|
|
3446
|
+
tryExtensions?: string[];
|
|
3447
|
+
ignoreTypeImport?: boolean;
|
|
3448
|
+
tsconfigPath?: string;
|
|
3449
|
+
typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"));
|
|
3450
|
+
}];
|
|
3451
|
+
type NodeNoMissingRequire = [] | [{
|
|
3452
|
+
allowModules?: string[];
|
|
3453
|
+
tryExtensions?: string[];
|
|
3454
|
+
resolvePaths?: string[];
|
|
3455
|
+
resolverConfig?: {
|
|
3456
|
+
[k: string]: unknown | undefined;
|
|
3457
|
+
};
|
|
3458
|
+
typescriptExtensionMap?: (unknown[][] | ("react" | "react-jsx" | "react-jsxdev" | "react-native" | "preserve"));
|
|
3459
|
+
tsconfigPath?: string;
|
|
3460
|
+
}];
|
|
3461
|
+
type NodeNoMixedRequires = [] | [(boolean | {
|
|
3462
|
+
grouping?: boolean;
|
|
3463
|
+
allowCall?: boolean;
|
|
3464
|
+
})];
|
|
3465
|
+
type NodeNoProcessEnv = [] | [{
|
|
3466
|
+
allowedVariables?: string[];
|
|
3467
|
+
}];
|
|
3468
|
+
type NodeNoRestrictedImport = [] | [(string | {
|
|
3469
|
+
name: (string | string[]);
|
|
3470
|
+
message?: string;
|
|
3471
|
+
})[]];
|
|
3472
|
+
type NodeNoRestrictedRequire = [] | [(string | {
|
|
3473
|
+
name: (string | string[]);
|
|
3474
|
+
message?: string;
|
|
3475
|
+
})[]];
|
|
3476
|
+
type NodeNoSync = [] | [{
|
|
3477
|
+
allowAtRootLevel?: boolean;
|
|
3478
|
+
ignores?: (string | {
|
|
3479
|
+
from?: "file";
|
|
3480
|
+
path?: string;
|
|
3481
|
+
name?: string[];
|
|
3482
|
+
} | {
|
|
3483
|
+
from?: "lib";
|
|
3484
|
+
name?: string[];
|
|
3485
|
+
} | {
|
|
3486
|
+
from?: "package";
|
|
3487
|
+
package?: string;
|
|
3488
|
+
name?: string[];
|
|
3489
|
+
})[];
|
|
3490
|
+
}];
|
|
3491
|
+
type NodeNoTopLevelAwait = [] | [{
|
|
3492
|
+
ignoreBin?: boolean;
|
|
3493
|
+
convertPath?: ({
|
|
3494
|
+
[k: string]: [string, string];
|
|
3495
|
+
} | [{
|
|
3496
|
+
include: [string, ...(string)[]];
|
|
3497
|
+
exclude?: string[];
|
|
3498
|
+
replace: [string, string];
|
|
3499
|
+
}, ...({
|
|
3500
|
+
include: [string, ...(string)[]];
|
|
3501
|
+
exclude?: string[];
|
|
3502
|
+
replace: [string, string];
|
|
3503
|
+
})[]]);
|
|
3504
|
+
}];
|
|
3505
|
+
type NodeNoUnpublishedBin = [] | [{
|
|
3506
|
+
convertPath?: ({
|
|
3507
|
+
[k: string]: [string, string];
|
|
3508
|
+
} | [{
|
|
3509
|
+
include: [string, ...(string)[]];
|
|
3510
|
+
exclude?: string[];
|
|
3511
|
+
replace: [string, string];
|
|
3512
|
+
}, ...({
|
|
3513
|
+
include: [string, ...(string)[]];
|
|
3514
|
+
exclude?: string[];
|
|
3515
|
+
replace: [string, string];
|
|
3516
|
+
})[]]);
|
|
3517
|
+
[k: string]: unknown | undefined;
|
|
3518
|
+
}];
|
|
3519
|
+
type NodeNoUnpublishedImport = [] | [{
|
|
3520
|
+
allowModules?: string[];
|
|
3521
|
+
convertPath?: ({
|
|
3522
|
+
[k: string]: [string, string];
|
|
3523
|
+
} | [{
|
|
3524
|
+
include: [string, ...(string)[]];
|
|
3525
|
+
exclude?: string[];
|
|
3526
|
+
replace: [string, string];
|
|
3527
|
+
}, ...({
|
|
3528
|
+
include: [string, ...(string)[]];
|
|
3529
|
+
exclude?: string[];
|
|
3530
|
+
replace: [string, string];
|
|
3531
|
+
})[]]);
|
|
3532
|
+
resolvePaths?: string[];
|
|
3533
|
+
resolverConfig?: {
|
|
3534
|
+
[k: string]: unknown | undefined;
|
|
3535
|
+
};
|
|
3536
|
+
tryExtensions?: string[];
|
|
3537
|
+
ignoreTypeImport?: boolean;
|
|
3538
|
+
ignorePrivate?: boolean;
|
|
3539
|
+
}];
|
|
3540
|
+
type NodeNoUnpublishedRequire = [] | [{
|
|
3541
|
+
allowModules?: string[];
|
|
3542
|
+
convertPath?: ({
|
|
3543
|
+
[k: string]: [string, string];
|
|
3544
|
+
} | [{
|
|
3545
|
+
include: [string, ...(string)[]];
|
|
3546
|
+
exclude?: string[];
|
|
3547
|
+
replace: [string, string];
|
|
3548
|
+
}, ...({
|
|
3549
|
+
include: [string, ...(string)[]];
|
|
3550
|
+
exclude?: string[];
|
|
3551
|
+
replace: [string, string];
|
|
3552
|
+
})[]]);
|
|
3553
|
+
resolvePaths?: string[];
|
|
3554
|
+
resolverConfig?: {
|
|
3555
|
+
[k: string]: unknown | undefined;
|
|
3556
|
+
};
|
|
3557
|
+
tryExtensions?: string[];
|
|
3558
|
+
ignorePrivate?: boolean;
|
|
3559
|
+
}];
|
|
3560
|
+
type NodeNoUnsupportedFeaturesEsBuiltins = [] | [{
|
|
3561
|
+
version?: string;
|
|
3562
|
+
ignores?: ("AggregateError" | "Array" | "Array.from" | "Array.isArray" | "Array.length" | "Array.of" | "Array.toLocaleString" | "ArrayBuffer" | "ArrayBuffer.isView" | "Atomics" | "Atomics.add" | "Atomics.and" | "Atomics.compareExchange" | "Atomics.exchange" | "Atomics.isLockFree" | "Atomics.load" | "Atomics.notify" | "Atomics.or" | "Atomics.store" | "Atomics.sub" | "Atomics.wait" | "Atomics.waitAsync" | "Atomics.xor" | "BigInt" | "BigInt.asIntN" | "BigInt.asUintN" | "BigInt64Array" | "BigInt64Array.BYTES_PER_ELEMENT" | "BigInt64Array.from" | "BigInt64Array.name" | "BigInt64Array.of" | "BigUint64Array" | "BigUint64Array.BYTES_PER_ELEMENT" | "BigUint64Array.from" | "BigUint64Array.name" | "BigUint64Array.of" | "Boolean" | "DataView" | "Date" | "Date.UTC" | "Date.now" | "Date.parse" | "Date.toLocaleDateString" | "Date.toLocaleString" | "Date.toLocaleTimeString" | "Error" | "Error.cause" | "EvalError" | "FinalizationRegistry" | "Float32Array" | "Float32Array.BYTES_PER_ELEMENT" | "Float32Array.from" | "Float32Array.name" | "Float32Array.of" | "Float64Array" | "Float64Array.BYTES_PER_ELEMENT" | "Float64Array.from" | "Float64Array.name" | "Float64Array.of" | "Function" | "Function.length" | "Function.name" | "Infinity" | "Int16Array" | "Int16Array.BYTES_PER_ELEMENT" | "Int16Array.from" | "Int16Array.name" | "Int16Array.of" | "Int32Array" | "Int32Array.BYTES_PER_ELEMENT" | "Int32Array.from" | "Int32Array.name" | "Int32Array.of" | "Int8Array" | "Int8Array.BYTES_PER_ELEMENT" | "Int8Array.from" | "Int8Array.name" | "Int8Array.of" | "Intl" | "Intl.Collator" | "Intl.DateTimeFormat" | "Intl.DisplayNames" | "Intl.ListFormat" | "Intl.Locale" | "Intl.NumberFormat" | "Intl.PluralRules" | "Intl.RelativeTimeFormat" | "Intl.Segmenter" | "Intl.Segments" | "Intl.getCanonicalLocales" | "Intl.supportedValuesOf" | "JSON" | "JSON.parse" | "JSON.stringify" | "Map" | "Map.groupBy" | "Math" | "Math.E" | "Math.LN10" | "Math.LN2" | "Math.LOG10E" | "Math.LOG2E" | "Math.PI" | "Math.SQRT1_2" | "Math.SQRT2" | "Math.abs" | "Math.acos" | "Math.acosh" | "Math.asin" | "Math.asinh" | "Math.atan" | "Math.atan2" | "Math.atanh" | "Math.cbrt" | "Math.ceil" | "Math.clz32" | "Math.cos" | "Math.cosh" | "Math.exp" | "Math.expm1" | "Math.floor" | "Math.fround" | "Math.hypot" | "Math.imul" | "Math.log" | "Math.log10" | "Math.log1p" | "Math.log2" | "Math.max" | "Math.min" | "Math.pow" | "Math.random" | "Math.round" | "Math.sign" | "Math.sin" | "Math.sinh" | "Math.sqrt" | "Math.tan" | "Math.tanh" | "Math.trunc" | "NaN" | "Number.EPSILON" | "Number.MAX_SAFE_INTEGER" | "Number.MAX_VALUE" | "Number.MIN_SAFE_INTEGER" | "Number.MIN_VALUE" | "Number.NEGATIVE_INFINITY" | "Number.NaN" | "Number.POSITIVE_INFINITY" | "Number.isFinite" | "Number.isInteger" | "Number.isNaN" | "Number.isSafeInteger" | "Number.parseFloat" | "Number.parseInt" | "Number.toLocaleString" | "Object.assign" | "Object.create" | "Object.defineGetter" | "Object.defineProperties" | "Object.defineProperty" | "Object.defineSetter" | "Object.entries" | "Object.freeze" | "Object.fromEntries" | "Object.getOwnPropertyDescriptor" | "Object.getOwnPropertyDescriptors" | "Object.getOwnPropertyNames" | "Object.getOwnPropertySymbols" | "Object.getPrototypeOf" | "Object.groupBy" | "Object.hasOwn" | "Object.is" | "Object.isExtensible" | "Object.isFrozen" | "Object.isSealed" | "Object.keys" | "Object.lookupGetter" | "Object.lookupSetter" | "Object.preventExtensions" | "Object.proto" | "Object.seal" | "Object.setPrototypeOf" | "Object.values" | "Promise" | "Promise.all" | "Promise.allSettled" | "Promise.any" | "Promise.race" | "Promise.reject" | "Promise.resolve" | "Proxy" | "Proxy.revocable" | "RangeError" | "ReferenceError" | "Reflect" | "Reflect.apply" | "Reflect.construct" | "Reflect.defineProperty" | "Reflect.deleteProperty" | "Reflect.get" | "Reflect.getOwnPropertyDescriptor" | "Reflect.getPrototypeOf" | "Reflect.has" | "Reflect.isExtensible" | "Reflect.ownKeys" | "Reflect.preventExtensions" | "Reflect.set" | "Reflect.setPrototypeOf" | "RegExp" | "RegExp.dotAll" | "RegExp.hasIndices" | "RegExp.input" | "RegExp.lastIndex" | "RegExp.lastMatch" | "RegExp.lastParen" | "RegExp.leftContext" | "RegExp.n" | "RegExp.rightContext" | "Set" | "SharedArrayBuffer" | "String" | "String.fromCharCode" | "String.fromCodePoint" | "String.length" | "String.localeCompare" | "String.raw" | "String.toLocaleLowerCase" | "String.toLocaleUpperCase" | "Symbol" | "Symbol.asyncIterator" | "Symbol.for" | "Symbol.hasInstance" | "Symbol.isConcatSpreadable" | "Symbol.iterator" | "Symbol.keyFor" | "Symbol.match" | "Symbol.matchAll" | "Symbol.replace" | "Symbol.search" | "Symbol.species" | "Symbol.split" | "Symbol.toPrimitive" | "Symbol.toStringTag" | "Symbol.unscopables" | "SyntaxError" | "TypeError" | "URIError" | "Uint16Array" | "Uint16Array.BYTES_PER_ELEMENT" | "Uint16Array.from" | "Uint16Array.name" | "Uint16Array.of" | "Uint32Array" | "Uint32Array.BYTES_PER_ELEMENT" | "Uint32Array.from" | "Uint32Array.name" | "Uint32Array.of" | "Uint8Array" | "Uint8Array.BYTES_PER_ELEMENT" | "Uint8Array.from" | "Uint8Array.name" | "Uint8Array.of" | "Uint8ClampedArray" | "Uint8ClampedArray.BYTES_PER_ELEMENT" | "Uint8ClampedArray.from" | "Uint8ClampedArray.name" | "Uint8ClampedArray.of" | "WeakMap" | "WeakRef" | "WeakSet" | "decodeURI" | "decodeURIComponent" | "encodeURI" | "encodeURIComponent" | "escape" | "eval" | "globalThis" | "isFinite" | "isNaN" | "parseFloat" | "parseInt" | "unescape")[];
|
|
3563
|
+
}];
|
|
3564
|
+
type NodeNoUnsupportedFeaturesEsSyntax = [] | [{
|
|
3565
|
+
version?: string;
|
|
3566
|
+
ignores?: ("no-accessor-properties" | "accessor-properties" | "accessorProperties" | "no-arbitrary-module-namespace-names" | "arbitrary-module-namespace-names" | "arbitraryModuleNamespaceNames" | "no-array-from" | "array-from" | "arrayFrom" | "no-array-isarray" | "array-isarray" | "arrayIsarray" | "no-array-of" | "array-of" | "arrayOf" | "no-array-prototype-copywithin" | "array-prototype-copywithin" | "arrayPrototypeCopywithin" | "no-array-prototype-entries" | "array-prototype-entries" | "arrayPrototypeEntries" | "no-array-prototype-every" | "array-prototype-every" | "arrayPrototypeEvery" | "no-array-prototype-fill" | "array-prototype-fill" | "arrayPrototypeFill" | "no-array-prototype-filter" | "array-prototype-filter" | "arrayPrototypeFilter" | "no-array-prototype-find" | "array-prototype-find" | "arrayPrototypeFind" | "no-array-prototype-findindex" | "array-prototype-findindex" | "arrayPrototypeFindindex" | "no-array-prototype-findlast-findlastindex" | "array-prototype-findlast-findlastindex" | "arrayPrototypeFindlastFindlastindex" | "no-array-prototype-flat" | "array-prototype-flat" | "arrayPrototypeFlat" | "no-array-prototype-foreach" | "array-prototype-foreach" | "arrayPrototypeForeach" | "no-array-prototype-includes" | "array-prototype-includes" | "arrayPrototypeIncludes" | "no-array-prototype-indexof" | "array-prototype-indexof" | "arrayPrototypeIndexof" | "no-array-prototype-keys" | "array-prototype-keys" | "arrayPrototypeKeys" | "no-array-prototype-lastindexof" | "array-prototype-lastindexof" | "arrayPrototypeLastindexof" | "no-array-prototype-map" | "array-prototype-map" | "arrayPrototypeMap" | "no-array-prototype-reduce" | "array-prototype-reduce" | "arrayPrototypeReduce" | "no-array-prototype-reduceright" | "array-prototype-reduceright" | "arrayPrototypeReduceright" | "no-array-prototype-some" | "array-prototype-some" | "arrayPrototypeSome" | "no-array-prototype-toreversed" | "array-prototype-toreversed" | "arrayPrototypeToreversed" | "no-array-prototype-tosorted" | "array-prototype-tosorted" | "arrayPrototypeTosorted" | "no-array-prototype-tospliced" | "array-prototype-tospliced" | "arrayPrototypeTospliced" | "no-array-prototype-values" | "array-prototype-values" | "arrayPrototypeValues" | "no-array-prototype-with" | "array-prototype-with" | "arrayPrototypeWith" | "no-array-string-prototype-at" | "array-string-prototype-at" | "arrayStringPrototypeAt" | "no-arrow-functions" | "arrow-functions" | "arrowFunctions" | "no-async-functions" | "async-functions" | "asyncFunctions" | "no-async-iteration" | "async-iteration" | "asyncIteration" | "no-atomics-waitasync" | "atomics-waitasync" | "atomicsWaitasync" | "no-atomics" | "atomics" | "no-bigint" | "bigint" | "no-binary-numeric-literals" | "binary-numeric-literals" | "binaryNumericLiterals" | "no-block-scoped-functions" | "block-scoped-functions" | "blockScopedFunctions" | "no-block-scoped-variables" | "block-scoped-variables" | "blockScopedVariables" | "no-class-fields" | "class-fields" | "classFields" | "no-class-static-block" | "class-static-block" | "classStaticBlock" | "no-classes" | "classes" | "no-computed-properties" | "computed-properties" | "computedProperties" | "no-date-now" | "date-now" | "dateNow" | "no-date-prototype-getyear-setyear" | "date-prototype-getyear-setyear" | "datePrototypeGetyearSetyear" | "no-date-prototype-togmtstring" | "date-prototype-togmtstring" | "datePrototypeTogmtstring" | "no-default-parameters" | "default-parameters" | "defaultParameters" | "no-destructuring" | "destructuring" | "no-dynamic-import" | "dynamic-import" | "dynamicImport" | "no-error-cause" | "error-cause" | "errorCause" | "no-escape-unescape" | "escape-unescape" | "escapeUnescape" | "no-exponential-operators" | "exponential-operators" | "exponentialOperators" | "no-export-ns-from" | "export-ns-from" | "exportNsFrom" | "no-for-of-loops" | "for-of-loops" | "forOfLoops" | "no-function-declarations-in-if-statement-clauses-without-block" | "function-declarations-in-if-statement-clauses-without-block" | "functionDeclarationsInIfStatementClausesWithoutBlock" | "no-function-prototype-bind" | "function-prototype-bind" | "functionPrototypeBind" | "no-generators" | "generators" | "no-global-this" | "global-this" | "globalThis" | "no-hashbang" | "hashbang" | "no-import-meta" | "import-meta" | "importMeta" | "no-initializers-in-for-in" | "initializers-in-for-in" | "initializersInForIn" | "no-intl-datetimeformat-prototype-formatrange" | "intl-datetimeformat-prototype-formatrange" | "intlDatetimeformatPrototypeFormatrange" | "no-intl-datetimeformat-prototype-formattoparts" | "intl-datetimeformat-prototype-formattoparts" | "intlDatetimeformatPrototypeFormattoparts" | "no-intl-displaynames" | "intl-displaynames" | "intlDisplaynames" | "no-intl-getcanonicallocales" | "intl-getcanonicallocales" | "intlGetcanonicallocales" | "no-intl-listformat" | "intl-listformat" | "intlListformat" | "no-intl-locale" | "intl-locale" | "intlLocale" | "no-intl-numberformat-prototype-formatrange" | "intl-numberformat-prototype-formatrange" | "intlNumberformatPrototypeFormatrange" | "no-intl-numberformat-prototype-formatrangetoparts" | "intl-numberformat-prototype-formatrangetoparts" | "intlNumberformatPrototypeFormatrangetoparts" | "no-intl-numberformat-prototype-formattoparts" | "intl-numberformat-prototype-formattoparts" | "intlNumberformatPrototypeFormattoparts" | "no-intl-pluralrules-prototype-selectrange" | "intl-pluralrules-prototype-selectrange" | "intlPluralrulesPrototypeSelectrange" | "no-intl-pluralrules" | "intl-pluralrules" | "intlPluralrules" | "no-intl-relativetimeformat" | "intl-relativetimeformat" | "intlRelativetimeformat" | "no-intl-segmenter" | "intl-segmenter" | "intlSegmenter" | "no-intl-supportedvaluesof" | "intl-supportedvaluesof" | "intlSupportedvaluesof" | "no-json-superset" | "json-superset" | "jsonSuperset" | "no-json" | "json" | "no-keyword-properties" | "keyword-properties" | "keywordProperties" | "no-labelled-function-declarations" | "labelled-function-declarations" | "labelledFunctionDeclarations" | "no-legacy-object-prototype-accessor-methods" | "legacy-object-prototype-accessor-methods" | "legacyObjectPrototypeAccessorMethods" | "no-logical-assignment-operators" | "logical-assignment-operators" | "logicalAssignmentOperators" | "no-malformed-template-literals" | "malformed-template-literals" | "malformedTemplateLiterals" | "no-map" | "map" | "no-math-acosh" | "math-acosh" | "mathAcosh" | "no-math-asinh" | "math-asinh" | "mathAsinh" | "no-math-atanh" | "math-atanh" | "mathAtanh" | "no-math-cbrt" | "math-cbrt" | "mathCbrt" | "no-math-clz32" | "math-clz32" | "mathClz32" | "no-math-cosh" | "math-cosh" | "mathCosh" | "no-math-expm1" | "math-expm1" | "mathExpm1" | "no-math-fround" | "math-fround" | "mathFround" | "no-math-hypot" | "math-hypot" | "mathHypot" | "no-math-imul" | "math-imul" | "mathImul" | "no-math-log10" | "math-log10" | "mathLog10" | "no-math-log1p" | "math-log1p" | "mathLog1p" | "no-math-log2" | "math-log2" | "mathLog2" | "no-math-sign" | "math-sign" | "mathSign" | "no-math-sinh" | "math-sinh" | "mathSinh" | "no-math-tanh" | "math-tanh" | "mathTanh" | "no-math-trunc" | "math-trunc" | "mathTrunc" | "no-modules" | "modules" | "no-new-target" | "new-target" | "newTarget" | "new.target" | "no-nullish-coalescing-operators" | "nullish-coalescing-operators" | "nullishCoalescingOperators" | "no-number-epsilon" | "number-epsilon" | "numberEpsilon" | "no-number-isfinite" | "number-isfinite" | "numberIsfinite" | "no-number-isinteger" | "number-isinteger" | "numberIsinteger" | "no-number-isnan" | "number-isnan" | "numberIsnan" | "no-number-issafeinteger" | "number-issafeinteger" | "numberIssafeinteger" | "no-number-maxsafeinteger" | "number-maxsafeinteger" | "numberMaxsafeinteger" | "no-number-minsafeinteger" | "number-minsafeinteger" | "numberMinsafeinteger" | "no-number-parsefloat" | "number-parsefloat" | "numberParsefloat" | "no-number-parseint" | "number-parseint" | "numberParseint" | "no-numeric-separators" | "numeric-separators" | "numericSeparators" | "no-object-assign" | "object-assign" | "objectAssign" | "no-object-create" | "object-create" | "objectCreate" | "no-object-defineproperties" | "object-defineproperties" | "objectDefineproperties" | "no-object-defineproperty" | "object-defineproperty" | "objectDefineproperty" | "no-object-entries" | "object-entries" | "objectEntries" | "no-object-freeze" | "object-freeze" | "objectFreeze" | "no-object-fromentries" | "object-fromentries" | "objectFromentries" | "no-object-getownpropertydescriptor" | "object-getownpropertydescriptor" | "objectGetownpropertydescriptor" | "no-object-getownpropertydescriptors" | "object-getownpropertydescriptors" | "objectGetownpropertydescriptors" | "no-object-getownpropertynames" | "object-getownpropertynames" | "objectGetownpropertynames" | "no-object-getownpropertysymbols" | "object-getownpropertysymbols" | "objectGetownpropertysymbols" | "no-object-getprototypeof" | "object-getprototypeof" | "objectGetprototypeof" | "no-object-hasown" | "object-hasown" | "objectHasown" | "no-object-is" | "object-is" | "objectIs" | "no-object-isextensible" | "object-isextensible" | "objectIsextensible" | "no-object-isfrozen" | "object-isfrozen" | "objectIsfrozen" | "no-object-issealed" | "object-issealed" | "objectIssealed" | "no-object-keys" | "object-keys" | "objectKeys" | "no-object-map-groupby" | "object-map-groupby" | "objectMapGroupby" | "no-object-preventextensions" | "object-preventextensions" | "objectPreventextensions" | "no-object-seal" | "object-seal" | "objectSeal" | "no-object-setprototypeof" | "object-setprototypeof" | "objectSetprototypeof" | "no-object-super-properties" | "object-super-properties" | "objectSuperProperties" | "no-object-values" | "object-values" | "objectValues" | "no-octal-numeric-literals" | "octal-numeric-literals" | "octalNumericLiterals" | "no-optional-catch-binding" | "optional-catch-binding" | "optionalCatchBinding" | "no-optional-chaining" | "optional-chaining" | "optionalChaining" | "no-private-in" | "private-in" | "privateIn" | "no-promise-all-settled" | "promise-all-settled" | "promiseAllSettled" | "no-promise-any" | "promise-any" | "promiseAny" | "no-promise-prototype-finally" | "promise-prototype-finally" | "promisePrototypeFinally" | "no-promise-withresolvers" | "promise-withresolvers" | "promiseWithresolvers" | "no-promise" | "promise" | "no-property-shorthands" | "property-shorthands" | "propertyShorthands" | "no-proxy" | "proxy" | "no-reflect" | "reflect" | "no-regexp-d-flag" | "regexp-d-flag" | "regexpDFlag" | "no-regexp-lookbehind-assertions" | "regexp-lookbehind-assertions" | "regexpLookbehindAssertions" | "regexpLookbehind" | "no-regexp-named-capture-groups" | "regexp-named-capture-groups" | "regexpNamedCaptureGroups" | "no-regexp-prototype-compile" | "regexp-prototype-compile" | "regexpPrototypeCompile" | "no-regexp-prototype-flags" | "regexp-prototype-flags" | "regexpPrototypeFlags" | "no-regexp-s-flag" | "regexp-s-flag" | "regexpSFlag" | "regexpS" | "no-regexp-u-flag" | "regexp-u-flag" | "regexpUFlag" | "regexpU" | "no-regexp-unicode-property-escapes-2019" | "regexp-unicode-property-escapes-2019" | "regexpUnicodePropertyEscapes2019" | "no-regexp-unicode-property-escapes-2020" | "regexp-unicode-property-escapes-2020" | "regexpUnicodePropertyEscapes2020" | "no-regexp-unicode-property-escapes-2021" | "regexp-unicode-property-escapes-2021" | "regexpUnicodePropertyEscapes2021" | "no-regexp-unicode-property-escapes-2022" | "regexp-unicode-property-escapes-2022" | "regexpUnicodePropertyEscapes2022" | "no-regexp-unicode-property-escapes-2023" | "regexp-unicode-property-escapes-2023" | "regexpUnicodePropertyEscapes2023" | "no-regexp-unicode-property-escapes" | "regexp-unicode-property-escapes" | "regexpUnicodePropertyEscapes" | "regexpUnicodeProperties" | "no-regexp-v-flag" | "regexp-v-flag" | "regexpVFlag" | "no-regexp-y-flag" | "regexp-y-flag" | "regexpYFlag" | "regexpY" | "no-resizable-and-growable-arraybuffers" | "resizable-and-growable-arraybuffers" | "resizableAndGrowableArraybuffers" | "no-rest-parameters" | "rest-parameters" | "restParameters" | "no-rest-spread-properties" | "rest-spread-properties" | "restSpreadProperties" | "no-set" | "set" | "no-shadow-catch-param" | "shadow-catch-param" | "shadowCatchParam" | "no-shared-array-buffer" | "shared-array-buffer" | "sharedArrayBuffer" | "no-spread-elements" | "spread-elements" | "spreadElements" | "no-string-create-html-methods" | "string-create-html-methods" | "stringCreateHtmlMethods" | "no-string-fromcodepoint" | "string-fromcodepoint" | "stringFromcodepoint" | "no-string-prototype-codepointat" | "string-prototype-codepointat" | "stringPrototypeCodepointat" | "no-string-prototype-endswith" | "string-prototype-endswith" | "stringPrototypeEndswith" | "no-string-prototype-includes" | "string-prototype-includes" | "stringPrototypeIncludes" | "no-string-prototype-iswellformed-towellformed" | "string-prototype-iswellformed-towellformed" | "stringPrototypeIswellformedTowellformed" | "no-string-prototype-matchall" | "string-prototype-matchall" | "stringPrototypeMatchall" | "no-string-prototype-normalize" | "string-prototype-normalize" | "stringPrototypeNormalize" | "no-string-prototype-padstart-padend" | "string-prototype-padstart-padend" | "stringPrototypePadstartPadend" | "no-string-prototype-repeat" | "string-prototype-repeat" | "stringPrototypeRepeat" | "no-string-prototype-replaceall" | "string-prototype-replaceall" | "stringPrototypeReplaceall" | "no-string-prototype-startswith" | "string-prototype-startswith" | "stringPrototypeStartswith" | "no-string-prototype-substr" | "string-prototype-substr" | "stringPrototypeSubstr" | "no-string-prototype-trim" | "string-prototype-trim" | "stringPrototypeTrim" | "no-string-prototype-trimleft-trimright" | "string-prototype-trimleft-trimright" | "stringPrototypeTrimleftTrimright" | "no-string-prototype-trimstart-trimend" | "string-prototype-trimstart-trimend" | "stringPrototypeTrimstartTrimend" | "no-string-raw" | "string-raw" | "stringRaw" | "no-subclassing-builtins" | "subclassing-builtins" | "subclassingBuiltins" | "no-symbol-prototype-description" | "symbol-prototype-description" | "symbolPrototypeDescription" | "no-symbol" | "symbol" | "no-template-literals" | "template-literals" | "templateLiterals" | "no-top-level-await" | "top-level-await" | "topLevelAwait" | "no-trailing-commas" | "trailing-commas" | "trailingCommas" | "no-trailing-function-commas" | "trailing-function-commas" | "trailingFunctionCommas" | "trailingCommasInFunctions" | "no-typed-arrays" | "typed-arrays" | "typedArrays" | "no-unicode-codepoint-escapes" | "unicode-codepoint-escapes" | "unicodeCodepointEscapes" | "unicodeCodePointEscapes" | "no-weak-map" | "weak-map" | "weakMap" | "no-weak-set" | "weak-set" | "weakSet" | "no-weakrefs" | "weakrefs")[];
|
|
3567
|
+
}];
|
|
3568
|
+
type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
3569
|
+
version?: string;
|
|
3570
|
+
allowExperimental?: boolean;
|
|
3571
|
+
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")[];
|
|
3572
|
+
}];
|
|
3573
|
+
type NodePreferGlobalBuffer = [] | [("always" | "never")];
|
|
3574
|
+
type NodePreferGlobalConsole = [] | [("always" | "never")];
|
|
3575
|
+
type NodePreferGlobalProcess = [] | [("always" | "never")];
|
|
3576
|
+
type NodePreferGlobalTextDecoder = [] | [("always" | "never")];
|
|
3577
|
+
type NodePreferGlobalTextEncoder = [] | [("always" | "never")];
|
|
3578
|
+
type NodePreferGlobalUrl = [] | [("always" | "never")];
|
|
3579
|
+
type NodePreferGlobalUrlSearchParams = [] | [("always" | "never")];
|
|
3580
|
+
type NodePreferNodeProtocol = [] | [{
|
|
3581
|
+
version?: string;
|
|
3582
|
+
}];
|
|
3583
|
+
type NodeShebang = [] | [{
|
|
3584
|
+
convertPath?: ({
|
|
3585
|
+
[k: string]: [string, string];
|
|
3586
|
+
} | [{
|
|
3587
|
+
include: [string, ...(string)[]];
|
|
3588
|
+
exclude?: string[];
|
|
3589
|
+
replace: [string, string];
|
|
3590
|
+
}, ...({
|
|
3591
|
+
include: [string, ...(string)[]];
|
|
3592
|
+
exclude?: string[];
|
|
3593
|
+
replace: [string, string];
|
|
3594
|
+
})[]]);
|
|
3595
|
+
ignoreUnpublished?: boolean;
|
|
3596
|
+
additionalExecutables?: string[];
|
|
3597
|
+
executableMap?: {
|
|
3598
|
+
[k: string]: string;
|
|
3599
|
+
};
|
|
3600
|
+
}];
|
|
3601
|
+
type QwikJsxKey = [] | [{
|
|
3602
|
+
checkFragmentShorthand?: boolean;
|
|
3603
|
+
checkKeyMustBeforeSpread?: boolean;
|
|
3604
|
+
warnOnDuplicates?: boolean;
|
|
3605
|
+
}];
|
|
3606
|
+
type QwikLoaderLocation = [] | [{
|
|
3607
|
+
routesDir?: string;
|
|
3608
|
+
}];
|
|
3609
|
+
type QwikPreferClasslist = [] | [{
|
|
3610
|
+
classnames?: string[];
|
|
3611
|
+
}];
|
|
3612
|
+
type QwikValidLexicalScope = [] | [{
|
|
3613
|
+
allowAny?: boolean;
|
|
3614
|
+
}];
|
|
3615
|
+
type ReactBooleanPropNaming = [] | [{
|
|
3616
|
+
propTypeNames?: [string, ...(string)[]];
|
|
3617
|
+
rule?: string;
|
|
3618
|
+
message?: string;
|
|
3619
|
+
validateNested?: boolean;
|
|
3620
|
+
}];
|
|
3621
|
+
type ReactButtonHasType = [] | [{
|
|
3622
|
+
button?: boolean;
|
|
3623
|
+
submit?: boolean;
|
|
3624
|
+
reset?: boolean;
|
|
3625
|
+
}];
|
|
3626
|
+
type ReactCheckedRequiresOnchangeOrReadonly = [] | [{
|
|
3627
|
+
ignoreMissingProperties?: boolean;
|
|
3628
|
+
ignoreExclusiveCheckedAttribute?: boolean;
|
|
3629
|
+
}];
|
|
3630
|
+
type ReactDefaultPropsMatchPropTypes = [] | [{
|
|
3631
|
+
allowRequiredDefaults?: boolean;
|
|
3632
|
+
}];
|
|
3633
|
+
type ReactDestructuringAssignment = [] | [("always" | "never")] | [("always" | "never"), {
|
|
3634
|
+
ignoreClassFields?: boolean;
|
|
3635
|
+
destructureInSignature?: ("always" | "ignore");
|
|
3636
|
+
}];
|
|
3637
|
+
type ReactDisplayName = [] | [{
|
|
3638
|
+
ignoreTranspilerName?: boolean;
|
|
3639
|
+
checkContextObjects?: boolean;
|
|
3640
|
+
}];
|
|
3641
|
+
type ReactForbidComponentProps = [] | [{
|
|
3642
|
+
forbid?: (string | {
|
|
3643
|
+
propName?: string;
|
|
3644
|
+
allowedFor?: string[];
|
|
3645
|
+
allowedForPatterns?: string[];
|
|
3646
|
+
message?: string;
|
|
3647
|
+
} | ({
|
|
3648
|
+
[k: string]: unknown | undefined;
|
|
3649
|
+
} | {
|
|
3650
|
+
[k: string]: unknown | undefined;
|
|
3651
|
+
}) | {
|
|
3652
|
+
propNamePattern?: string;
|
|
3653
|
+
allowedFor?: string[];
|
|
3654
|
+
allowedForPatterns?: string[];
|
|
3655
|
+
message?: string;
|
|
3656
|
+
} | ({
|
|
3657
|
+
[k: string]: unknown | undefined;
|
|
3658
|
+
} | {
|
|
3659
|
+
[k: string]: unknown | undefined;
|
|
3660
|
+
}))[];
|
|
3661
|
+
[k: string]: unknown | undefined;
|
|
3662
|
+
}];
|
|
3663
|
+
type ReactForbidDomProps = [] | [{
|
|
3664
|
+
forbid?: (string | {
|
|
3665
|
+
propName?: string;
|
|
3666
|
+
disallowedFor?: string[];
|
|
3667
|
+
message?: string;
|
|
3668
|
+
[k: string]: unknown | undefined;
|
|
3669
|
+
})[];
|
|
3670
|
+
}];
|
|
3671
|
+
type ReactForbidElements = [] | [{
|
|
3672
|
+
forbid?: (string | {
|
|
3673
|
+
element: string;
|
|
3674
|
+
message?: string;
|
|
3675
|
+
})[];
|
|
3676
|
+
}];
|
|
3677
|
+
type ReactForbidForeignPropTypes = [] | [{
|
|
3678
|
+
allowInPropTypes?: boolean;
|
|
3679
|
+
}];
|
|
3680
|
+
type ReactForbidPropTypes = [] | [{
|
|
3681
|
+
forbid?: string[];
|
|
3682
|
+
checkContextTypes?: boolean;
|
|
3683
|
+
checkChildContextTypes?: boolean;
|
|
3684
|
+
[k: string]: unknown | undefined;
|
|
3685
|
+
}];
|
|
3686
|
+
type ReactFunctionComponentDefinition = [] | [{
|
|
3687
|
+
namedComponents?: (("function-declaration" | "arrow-function" | "function-expression") | ("function-declaration" | "arrow-function" | "function-expression")[]);
|
|
3688
|
+
unnamedComponents?: (("arrow-function" | "function-expression") | ("arrow-function" | "function-expression")[]);
|
|
3689
|
+
[k: string]: unknown | undefined;
|
|
3690
|
+
}];
|
|
3691
|
+
type ReactHookUseState = [] | [{
|
|
3692
|
+
allowDestructuredState?: boolean;
|
|
3693
|
+
}];
|
|
3694
|
+
type ReactJsxBooleanValue = ([] | [("always" | "never")] | [] | ["always"] | ["always", {
|
|
3695
|
+
never?: string[];
|
|
3696
|
+
assumeUndefinedIsFalse?: boolean;
|
|
3697
|
+
}] | [] | ["never"] | ["never", {
|
|
3698
|
+
always?: string[];
|
|
3699
|
+
assumeUndefinedIsFalse?: boolean;
|
|
3700
|
+
}]);
|
|
3701
|
+
type ReactJsxClosingBracketLocation = [] | [(("after-props" | "props-aligned" | "tag-aligned" | "line-aligned") | {
|
|
3702
|
+
location?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned");
|
|
3703
|
+
} | {
|
|
3704
|
+
nonEmpty?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false);
|
|
3705
|
+
selfClosing?: ("after-props" | "props-aligned" | "tag-aligned" | "line-aligned" | false);
|
|
3706
|
+
})];
|
|
3707
|
+
type ReactJsxClosingTagLocation = [] | [(("tag-aligned" | "line-aligned") | {
|
|
3708
|
+
location?: ("tag-aligned" | "line-aligned");
|
|
3709
|
+
})];
|
|
3710
|
+
type ReactJsxCurlyBracePresence = [] | [({
|
|
3711
|
+
props?: ("always" | "never" | "ignore");
|
|
3712
|
+
children?: ("always" | "never" | "ignore");
|
|
3713
|
+
propElementValues?: ("always" | "never" | "ignore");
|
|
3714
|
+
} | ("always" | "never" | "ignore"))];
|
|
3715
|
+
type ReactJsxCurlyNewline = [] | [(("consistent" | "never") | {
|
|
3716
|
+
singleline?: ("consistent" | "require" | "forbid");
|
|
3717
|
+
multiline?: ("consistent" | "require" | "forbid");
|
|
3718
|
+
})];
|
|
3719
|
+
type ReactJsxCurlySpacing = [] | [((_ReactJsxCurlySpacing_BasicConfig & {
|
|
3720
|
+
attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean;
|
|
3721
|
+
children?: _ReactJsxCurlySpacingBasicConfigOrBoolean;
|
|
3722
|
+
[k: string]: unknown | undefined;
|
|
3723
|
+
}) | ("always" | "never"))] | [((_ReactJsxCurlySpacing_BasicConfig & {
|
|
3724
|
+
attributes?: _ReactJsxCurlySpacingBasicConfigOrBoolean;
|
|
3725
|
+
children?: _ReactJsxCurlySpacingBasicConfigOrBoolean;
|
|
3726
|
+
[k: string]: unknown | undefined;
|
|
3727
|
+
}) | ("always" | "never")), {
|
|
3728
|
+
allowMultiline?: boolean;
|
|
3729
|
+
spacing?: {
|
|
3730
|
+
objectLiterals?: ("always" | "never");
|
|
3731
|
+
[k: string]: unknown | undefined;
|
|
3732
|
+
};
|
|
3733
|
+
}];
|
|
3734
|
+
type _ReactJsxCurlySpacingBasicConfigOrBoolean = (_ReactJsxCurlySpacing_BasicConfig | boolean);
|
|
3735
|
+
interface _ReactJsxCurlySpacing_BasicConfig {
|
|
3736
|
+
when?: ("always" | "never");
|
|
3737
|
+
allowMultiline?: boolean;
|
|
3738
|
+
spacing?: {
|
|
3739
|
+
objectLiterals?: ("always" | "never");
|
|
3740
|
+
[k: string]: unknown | undefined;
|
|
3741
|
+
};
|
|
3742
|
+
[k: string]: unknown | undefined;
|
|
3743
|
+
}
|
|
3744
|
+
type ReactJsxEqualsSpacing = [] | [("always" | "never")];
|
|
3745
|
+
type ReactJsxFilenameExtension = [] | [{
|
|
3746
|
+
allow?: ("always" | "as-needed");
|
|
3747
|
+
extensions?: string[];
|
|
3748
|
+
ignoreFilesWithoutCode?: boolean;
|
|
3749
|
+
}];
|
|
3750
|
+
type ReactJsxFirstPropNewLine = [] | [("always" | "never" | "multiline" | "multiline-multiprop" | "multiprop")];
|
|
3751
|
+
type ReactJsxFragments = [] | [("syntax" | "element")];
|
|
3752
|
+
type ReactJsxHandlerNames = [] | [({
|
|
3753
|
+
eventHandlerPrefix?: string;
|
|
3754
|
+
eventHandlerPropPrefix?: string;
|
|
3755
|
+
checkLocalVariables?: boolean;
|
|
3756
|
+
checkInlineFunction?: boolean;
|
|
3757
|
+
ignoreComponentNames?: string[];
|
|
3758
|
+
} | {
|
|
3759
|
+
eventHandlerPrefix?: string;
|
|
3760
|
+
eventHandlerPropPrefix?: false;
|
|
3761
|
+
checkLocalVariables?: boolean;
|
|
3762
|
+
checkInlineFunction?: boolean;
|
|
3763
|
+
ignoreComponentNames?: string[];
|
|
3764
|
+
} | {
|
|
3765
|
+
eventHandlerPrefix?: false;
|
|
3766
|
+
eventHandlerPropPrefix?: string;
|
|
3767
|
+
checkLocalVariables?: boolean;
|
|
3768
|
+
checkInlineFunction?: boolean;
|
|
3769
|
+
ignoreComponentNames?: string[];
|
|
3770
|
+
} | {
|
|
3771
|
+
checkLocalVariables?: boolean;
|
|
3772
|
+
} | {
|
|
3773
|
+
checkInlineFunction?: boolean;
|
|
3774
|
+
} | {
|
|
3775
|
+
ignoreComponentNames?: string[];
|
|
3776
|
+
[k: string]: unknown | undefined;
|
|
3777
|
+
})];
|
|
3778
|
+
type ReactJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
|
|
3779
|
+
checkAttributes?: boolean;
|
|
3780
|
+
indentLogicalExpressions?: boolean;
|
|
3781
|
+
}];
|
|
3782
|
+
type ReactJsxIndentProps = [] | [(("tab" | "first") | number | {
|
|
3783
|
+
indentMode?: (("tab" | "first") | number);
|
|
3784
|
+
ignoreTernaryOperator?: boolean;
|
|
3785
|
+
[k: string]: unknown | undefined;
|
|
3786
|
+
})];
|
|
3787
|
+
type ReactJsxKey = [] | [{
|
|
3788
|
+
checkFragmentShorthand?: boolean;
|
|
3789
|
+
checkKeyMustBeforeSpread?: boolean;
|
|
3790
|
+
warnOnDuplicates?: boolean;
|
|
3791
|
+
}];
|
|
3792
|
+
type ReactJsxMaxDepth = [] | [{
|
|
3793
|
+
max?: number;
|
|
3794
|
+
}];
|
|
3795
|
+
type ReactJsxMaxPropsPerLine = [] | [({
|
|
3796
|
+
maximum?: {
|
|
3797
|
+
single?: number;
|
|
3798
|
+
multi?: number;
|
|
3799
|
+
[k: string]: unknown | undefined;
|
|
3800
|
+
};
|
|
3801
|
+
} | {
|
|
3802
|
+
maximum?: number;
|
|
3803
|
+
when?: ("always" | "multiline");
|
|
3804
|
+
})];
|
|
3805
|
+
type ReactJsxNewline = [] | [{
|
|
3806
|
+
prevent?: boolean;
|
|
3807
|
+
allowMultilines?: boolean;
|
|
3808
|
+
}];
|
|
3809
|
+
type ReactJsxNoBind = [] | [{
|
|
3810
|
+
allowArrowFunctions?: boolean;
|
|
3811
|
+
allowBind?: boolean;
|
|
3812
|
+
allowFunctions?: boolean;
|
|
3813
|
+
ignoreRefs?: boolean;
|
|
3814
|
+
ignoreDOMComponents?: boolean;
|
|
3815
|
+
}];
|
|
3816
|
+
type ReactJsxNoDuplicateProps = [] | [{
|
|
3817
|
+
ignoreCase?: boolean;
|
|
3818
|
+
}];
|
|
3819
|
+
type ReactJsxNoLeakedRender = [] | [{
|
|
3820
|
+
validStrategies?: ("ternary" | "coerce")[];
|
|
3821
|
+
}];
|
|
3822
|
+
type ReactJsxNoLiterals = [] | [{
|
|
3823
|
+
elementOverrides?: {
|
|
3824
|
+
[k: string]: {
|
|
3825
|
+
applyToNestedElements?: boolean;
|
|
3826
|
+
noStrings?: boolean;
|
|
3827
|
+
allowedStrings?: string[];
|
|
3828
|
+
ignoreProps?: boolean;
|
|
3829
|
+
noAttributeStrings?: boolean;
|
|
3830
|
+
[k: string]: unknown | undefined;
|
|
3831
|
+
};
|
|
3832
|
+
};
|
|
3833
|
+
noStrings?: boolean;
|
|
3834
|
+
allowedStrings?: string[];
|
|
3835
|
+
ignoreProps?: boolean;
|
|
3836
|
+
noAttributeStrings?: boolean;
|
|
3837
|
+
}];
|
|
3838
|
+
type ReactJsxNoScriptUrl = ([] | [{
|
|
3839
|
+
name: string;
|
|
3840
|
+
props: string[];
|
|
3841
|
+
}[]] | [{
|
|
3842
|
+
name: string;
|
|
3843
|
+
props: string[];
|
|
3844
|
+
}[], {
|
|
3845
|
+
includeFromSettings?: boolean;
|
|
3846
|
+
[k: string]: unknown | undefined;
|
|
3847
|
+
}] | [] | [{
|
|
3848
|
+
includeFromSettings?: boolean;
|
|
3849
|
+
[k: string]: unknown | undefined;
|
|
3850
|
+
}]);
|
|
3851
|
+
type ReactJsxNoTargetBlank = [] | [{
|
|
3852
|
+
allowReferrer?: boolean;
|
|
3853
|
+
enforceDynamicLinks?: ("always" | "never");
|
|
3854
|
+
warnOnSpreadAttributes?: boolean;
|
|
3855
|
+
links?: boolean;
|
|
3856
|
+
forms?: boolean;
|
|
3857
|
+
}];
|
|
3858
|
+
type ReactJsxNoUndef = [] | [{
|
|
3859
|
+
allowGlobals?: boolean;
|
|
3860
|
+
}];
|
|
3861
|
+
type ReactJsxNoUselessFragment = [] | [{
|
|
3862
|
+
allowExpressions?: boolean;
|
|
3863
|
+
[k: string]: unknown | undefined;
|
|
3864
|
+
}];
|
|
3865
|
+
type ReactJsxOneExpressionPerLine = [] | [{
|
|
3866
|
+
allow?: ("none" | "literal" | "single-child" | "non-jsx");
|
|
3867
|
+
}];
|
|
3868
|
+
type ReactJsxPascalCase = [] | [{
|
|
3869
|
+
allowAllCaps?: boolean;
|
|
3870
|
+
allowLeadingUnderscore?: boolean;
|
|
3871
|
+
allowNamespace?: boolean;
|
|
3872
|
+
ignore?: [] | [string];
|
|
3873
|
+
}];
|
|
3874
|
+
type ReactJsxPropsNoSpreading = [] | [({
|
|
3875
|
+
html?: ("enforce" | "ignore");
|
|
3876
|
+
custom?: ("enforce" | "ignore");
|
|
3877
|
+
explicitSpread?: ("enforce" | "ignore");
|
|
3878
|
+
exceptions?: string[];
|
|
3879
|
+
[k: string]: unknown | undefined;
|
|
3880
|
+
} & {
|
|
3881
|
+
[k: string]: unknown | undefined;
|
|
3882
|
+
})];
|
|
3883
|
+
type ReactJsxSortDefaultProps = [] | [{
|
|
3884
|
+
ignoreCase?: boolean;
|
|
3885
|
+
}];
|
|
3886
|
+
type ReactJsxSortProps = [] | [{
|
|
3887
|
+
callbacksLast?: boolean;
|
|
3888
|
+
shorthandFirst?: boolean;
|
|
3889
|
+
shorthandLast?: boolean;
|
|
3890
|
+
multiline?: ("ignore" | "first" | "last");
|
|
3891
|
+
ignoreCase?: boolean;
|
|
3892
|
+
noSortAlphabetically?: boolean;
|
|
3893
|
+
reservedFirst?: (unknown[] | boolean);
|
|
3894
|
+
locale?: string;
|
|
3895
|
+
}];
|
|
3896
|
+
type ReactJsxSpaceBeforeClosing = [] | [("always" | "never")];
|
|
3897
|
+
type ReactJsxTagSpacing = [] | [{
|
|
3898
|
+
closingSlash?: ("always" | "never" | "allow");
|
|
3899
|
+
beforeSelfClosing?: ("always" | "proportional-always" | "never" | "allow");
|
|
3900
|
+
afterOpening?: ("always" | "allow-multiline" | "never" | "allow");
|
|
3901
|
+
beforeClosing?: ("always" | "proportional-always" | "never" | "allow");
|
|
3902
|
+
}];
|
|
3903
|
+
type ReactJsxWrapMultilines = [] | [{
|
|
3904
|
+
declaration?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3905
|
+
assignment?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3906
|
+
return?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3907
|
+
arrow?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3908
|
+
condition?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3909
|
+
logical?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3910
|
+
prop?: (true | false | "ignore" | "parens" | "parens-new-line" | "never");
|
|
3911
|
+
}];
|
|
3912
|
+
type ReactNoChildrenProp = [] | [{
|
|
3913
|
+
allowFunctions?: boolean;
|
|
3914
|
+
}];
|
|
3915
|
+
type ReactNoDanger = [] | [{
|
|
3916
|
+
customComponentNames?: string[];
|
|
3917
|
+
[k: string]: unknown | undefined;
|
|
3918
|
+
}];
|
|
3919
|
+
type ReactNoDidMountSetState = [] | ["disallow-in-func"];
|
|
3920
|
+
type ReactNoDidUpdateSetState = [] | ["disallow-in-func"];
|
|
3921
|
+
type ReactNoInvalidHtmlAttribute = [] | [("rel")[]];
|
|
3922
|
+
type ReactNoMultiComp = [] | [{
|
|
3923
|
+
ignoreStateless?: boolean;
|
|
3924
|
+
}];
|
|
3925
|
+
type ReactNoStringRefs = [] | [{
|
|
3926
|
+
noTemplateLiterals?: boolean;
|
|
3927
|
+
}];
|
|
3928
|
+
type ReactNoUnescapedEntities = [] | [{
|
|
3929
|
+
forbid?: (string | {
|
|
3930
|
+
char?: string;
|
|
3931
|
+
alternatives?: string[];
|
|
3932
|
+
[k: string]: unknown | undefined;
|
|
3933
|
+
})[];
|
|
3934
|
+
}];
|
|
3935
|
+
type ReactNoUnknownProperty = [] | [{
|
|
3936
|
+
ignore?: string[];
|
|
3937
|
+
requireDataLowercase?: boolean;
|
|
3938
|
+
}];
|
|
3939
|
+
type ReactNoUnsafe = [] | [{
|
|
3940
|
+
checkAliases?: boolean;
|
|
3941
|
+
}];
|
|
3942
|
+
type ReactNoUnstableNestedComponents = [] | [{
|
|
3943
|
+
customValidators?: string[];
|
|
3944
|
+
allowAsProps?: boolean;
|
|
3945
|
+
propNamePattern?: string;
|
|
3946
|
+
}];
|
|
3947
|
+
type ReactNoUnusedPropTypes = [] | [{
|
|
3948
|
+
ignore?: string[];
|
|
3949
|
+
customValidators?: string[];
|
|
3950
|
+
skipShapeProps?: boolean;
|
|
3951
|
+
}];
|
|
3952
|
+
type ReactNoWillUpdateSetState = [] | ["disallow-in-func"];
|
|
3953
|
+
type ReactPreferEs6Class = [] | [("always" | "never")];
|
|
3954
|
+
type ReactPreferStatelessFunction = [] | [{
|
|
3955
|
+
ignorePureComponents?: boolean;
|
|
3956
|
+
}];
|
|
3957
|
+
type ReactPropTypes = [] | [{
|
|
3958
|
+
ignore?: string[];
|
|
3959
|
+
customValidators?: string[];
|
|
3960
|
+
skipUndeclared?: boolean;
|
|
3961
|
+
}];
|
|
3962
|
+
type ReactRequireDefaultProps = [] | [{
|
|
3963
|
+
forbidDefaultForRequired?: boolean;
|
|
3964
|
+
classes?: ("defaultProps" | "ignore");
|
|
3965
|
+
functions?: ("defaultArguments" | "defaultProps" | "ignore");
|
|
3966
|
+
ignoreFunctionalComponents?: boolean;
|
|
3967
|
+
}];
|
|
3968
|
+
type ReactRequireOptimization = [] | [{
|
|
3969
|
+
allowDecorators?: string[];
|
|
3970
|
+
}];
|
|
3971
|
+
type ReactSelfClosingComp = [] | [{
|
|
3972
|
+
component?: boolean;
|
|
3973
|
+
html?: boolean;
|
|
3974
|
+
}];
|
|
3975
|
+
type ReactSortComp = [] | [{
|
|
3976
|
+
order?: string[];
|
|
3977
|
+
groups?: {
|
|
3978
|
+
[k: string]: string[];
|
|
3979
|
+
};
|
|
3980
|
+
}];
|
|
3981
|
+
type ReactSortDefaultProps = [] | [{
|
|
3982
|
+
ignoreCase?: boolean;
|
|
3983
|
+
}];
|
|
3984
|
+
type ReactSortPropTypes = [] | [{
|
|
3985
|
+
requiredFirst?: boolean;
|
|
3986
|
+
callbacksLast?: boolean;
|
|
3987
|
+
ignoreCase?: boolean;
|
|
3988
|
+
noSortAlphabetically?: boolean;
|
|
3989
|
+
sortShapeProp?: boolean;
|
|
3990
|
+
checkTypes?: boolean;
|
|
3991
|
+
}];
|
|
3992
|
+
type ReactStateInConstructor = [] | [("always" | "never")];
|
|
3993
|
+
type ReactStaticPropertyPlacement = [] | [("static public field" | "static getter" | "property assignment")] | [("static public field" | "static getter" | "property assignment"), {
|
|
3994
|
+
propTypes?: ("static public field" | "static getter" | "property assignment");
|
|
3995
|
+
defaultProps?: ("static public field" | "static getter" | "property assignment");
|
|
3996
|
+
childContextTypes?: ("static public field" | "static getter" | "property assignment");
|
|
3997
|
+
contextTypes?: ("static public field" | "static getter" | "property assignment");
|
|
3998
|
+
contextType?: ("static public field" | "static getter" | "property assignment");
|
|
3999
|
+
displayName?: ("static public field" | "static getter" | "property assignment");
|
|
4000
|
+
}];
|
|
4001
|
+
type ReactStylePropObject = [] | [{
|
|
4002
|
+
allow?: string[];
|
|
4003
|
+
[k: string]: unknown | undefined;
|
|
4004
|
+
}];
|
|
4005
|
+
type RegexpHexadecimalEscape = [] | [("always" | "never")];
|
|
4006
|
+
type RegexpLetterCase = [] | [{
|
|
4007
|
+
caseInsensitive?: ("lowercase" | "uppercase" | "ignore");
|
|
4008
|
+
unicodeEscape?: ("lowercase" | "uppercase" | "ignore");
|
|
4009
|
+
hexadecimalEscape?: ("lowercase" | "uppercase" | "ignore");
|
|
4010
|
+
controlEscape?: ("lowercase" | "uppercase" | "ignore");
|
|
4011
|
+
}];
|
|
4012
|
+
type RegexpMatchAny = [] | [{
|
|
4013
|
+
allows?: [("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"), ...(("[\\s\\S]" | "[\\S\\s]" | "[^]" | "dotAll"))[]];
|
|
4014
|
+
}];
|
|
4015
|
+
type RegexpNoDupeDisjunctions = [] | [{
|
|
4016
|
+
report?: ("all" | "trivial" | "interesting");
|
|
4017
|
+
reportExponentialBacktracking?: ("none" | "certain" | "potential");
|
|
4018
|
+
reportUnreachable?: ("certain" | "potential");
|
|
4019
|
+
}];
|
|
4020
|
+
type RegexpNoLazyEnds = [] | [{
|
|
4021
|
+
ignorePartial?: boolean;
|
|
4022
|
+
}];
|
|
4023
|
+
type RegexpNoLegacyFeatures = [] | [{
|
|
4024
|
+
staticProperties?: ("input" | "$_" | "lastMatch" | "$&" | "lastParen" | "$+" | "leftContext" | "$`" | "rightContext" | "$'" | "$1" | "$2" | "$3" | "$4" | "$5" | "$6" | "$7" | "$8" | "$9")[];
|
|
4025
|
+
prototypeMethods?: ("compile")[];
|
|
4026
|
+
}];
|
|
4027
|
+
type RegexpNoMisleadingCapturingGroup = [] | [{
|
|
4028
|
+
reportBacktrackingEnds?: boolean;
|
|
4029
|
+
}];
|
|
4030
|
+
type RegexpNoMisleadingUnicodeCharacter = [] | [{
|
|
4031
|
+
fixable?: boolean;
|
|
4032
|
+
}];
|
|
4033
|
+
type RegexpNoMissingGFlag = [] | [{
|
|
4034
|
+
strictTypes?: boolean;
|
|
4035
|
+
}];
|
|
4036
|
+
type RegexpNoObscureRange = [] | [{
|
|
4037
|
+
allowed?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
4038
|
+
}];
|
|
4039
|
+
type RegexpNoSuperLinearBacktracking = [] | [{
|
|
4040
|
+
report?: ("certain" | "potential");
|
|
4041
|
+
}];
|
|
4042
|
+
type RegexpNoSuperLinearMove = [] | [{
|
|
4043
|
+
report?: ("certain" | "potential");
|
|
4044
|
+
ignoreSticky?: boolean;
|
|
4045
|
+
ignorePartial?: boolean;
|
|
4046
|
+
}];
|
|
4047
|
+
type RegexpNoUnusedCapturingGroup = [] | [{
|
|
4048
|
+
fixable?: boolean;
|
|
4049
|
+
allowNamed?: boolean;
|
|
4050
|
+
}];
|
|
4051
|
+
type RegexpNoUselessCharacterClass = [] | [{
|
|
4052
|
+
ignores?: string[];
|
|
4053
|
+
}];
|
|
4054
|
+
type RegexpNoUselessFlag = [] | [{
|
|
4055
|
+
ignore?: ("i" | "m" | "s" | "g" | "y")[];
|
|
4056
|
+
strictTypes?: boolean;
|
|
4057
|
+
}];
|
|
4058
|
+
type RegexpNoUselessNonCapturingGroup = [] | [{
|
|
4059
|
+
allowTop?: (boolean | ("always" | "never" | "partial"));
|
|
4060
|
+
}];
|
|
4061
|
+
type RegexpOptimalQuantifierConcatenation = [] | [{
|
|
4062
|
+
capturingGroups?: ("ignore" | "report");
|
|
4063
|
+
}];
|
|
4064
|
+
type RegexpPreferCharacterClass = [] | [{
|
|
4065
|
+
minAlternatives?: number;
|
|
4066
|
+
}];
|
|
4067
|
+
type RegexpPreferD = [] | [{
|
|
4068
|
+
insideCharacterClass?: ("ignore" | "range" | "d");
|
|
4069
|
+
}];
|
|
4070
|
+
type RegexpPreferLookaround = [] | [{
|
|
4071
|
+
lookbehind?: boolean;
|
|
4072
|
+
strictTypes?: boolean;
|
|
4073
|
+
}];
|
|
4074
|
+
type RegexpPreferNamedReplacement = [] | [{
|
|
4075
|
+
strictTypes?: boolean;
|
|
4076
|
+
}];
|
|
4077
|
+
type RegexpPreferQuantifier = [] | [{
|
|
4078
|
+
allows?: string[];
|
|
4079
|
+
}];
|
|
4080
|
+
type RegexpPreferRange = [] | [{
|
|
4081
|
+
target?: (("all" | "alphanumeric") | [("all" | "alphanumeric")] | [("alphanumeric" | string), ...(("alphanumeric" | string))[]]);
|
|
4082
|
+
}];
|
|
4083
|
+
type RegexpPreferResultArrayGroups = [] | [{
|
|
4084
|
+
strictTypes?: boolean;
|
|
4085
|
+
}];
|
|
4086
|
+
type RegexpSortCharacterClassElements = [] | [{
|
|
4087
|
+
order?: ("\\s" | "\\w" | "\\d" | "\\p" | "*" | "\\q" | "[]")[];
|
|
4088
|
+
}];
|
|
4089
|
+
type RegexpUnicodeEscape = [] | [("unicodeCodePointEscape" | "unicodeEscape")];
|
|
4090
|
+
type RegexpUnicodeProperty = [] | [{
|
|
4091
|
+
generalCategory?: ("always" | "never" | "ignore");
|
|
4092
|
+
key?: ("short" | "long" | "ignore");
|
|
4093
|
+
property?: (("short" | "long" | "ignore") | {
|
|
4094
|
+
binary?: ("short" | "long" | "ignore");
|
|
4095
|
+
generalCategory?: ("short" | "long" | "ignore");
|
|
4096
|
+
script?: ("short" | "long" | "ignore");
|
|
4097
|
+
});
|
|
4098
|
+
}];
|
|
4099
|
+
type StorybookMetaInlineProperties = [] | [{
|
|
4100
|
+
csfVersion?: number;
|
|
4101
|
+
}];
|
|
4102
|
+
type StorybookNoUninstalledAddons = [] | [{
|
|
4103
|
+
packageJsonLocation?: string;
|
|
4104
|
+
ignore?: string[];
|
|
4105
|
+
[k: string]: unknown | undefined;
|
|
4106
|
+
}];
|
|
4107
|
+
type UnicornBetterRegex = [] | [{
|
|
4108
|
+
sortCharacterClasses?: boolean;
|
|
4109
|
+
}];
|
|
4110
|
+
type UnicornCatchErrorName = [] | [{
|
|
4111
|
+
name?: string;
|
|
4112
|
+
ignore?: unknown[];
|
|
4113
|
+
}];
|
|
4114
|
+
type UnicornConsistentFunctionScoping = [] | [{
|
|
4115
|
+
checkArrowFunctions?: boolean;
|
|
4116
|
+
}];
|
|
4117
|
+
type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
|
|
4118
|
+
type UnicornExpiringTodoComments = [] | [{
|
|
4119
|
+
terms?: string[];
|
|
4120
|
+
ignore?: unknown[];
|
|
4121
|
+
ignoreDatesOnPullRequests?: boolean;
|
|
4122
|
+
allowWarningComments?: boolean;
|
|
4123
|
+
date?: string;
|
|
4124
|
+
}];
|
|
4125
|
+
type UnicornExplicitLengthCheck = [] | [{
|
|
4126
|
+
"non-zero"?: ("greater-than" | "not-equal");
|
|
4127
|
+
}];
|
|
4128
|
+
type UnicornFilenameCase = [] | [({
|
|
4129
|
+
case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase");
|
|
4130
|
+
ignore?: unknown[];
|
|
4131
|
+
multipleFileExtensions?: boolean;
|
|
4132
|
+
} | {
|
|
4133
|
+
cases?: {
|
|
4134
|
+
camelCase?: boolean;
|
|
4135
|
+
snakeCase?: boolean;
|
|
4136
|
+
kebabCase?: boolean;
|
|
4137
|
+
pascalCase?: boolean;
|
|
4138
|
+
};
|
|
4139
|
+
ignore?: unknown[];
|
|
4140
|
+
multipleFileExtensions?: boolean;
|
|
4141
|
+
})];
|
|
4142
|
+
type UnicornImportStyle = [] | [{
|
|
4143
|
+
checkImport?: boolean;
|
|
4144
|
+
checkDynamicImport?: boolean;
|
|
4145
|
+
checkExportFrom?: boolean;
|
|
4146
|
+
checkRequire?: boolean;
|
|
4147
|
+
extendDefaultStyles?: boolean;
|
|
4148
|
+
styles?: _UnicornImportStyle_ModuleStyles;
|
|
4149
|
+
}];
|
|
4150
|
+
type _UnicornImportStyleStyles = (false | _UnicornImportStyle_BooleanObject) | undefined;
|
|
4151
|
+
interface _UnicornImportStyle_ModuleStyles {
|
|
4152
|
+
[k: string]: _UnicornImportStyleStyles | undefined;
|
|
4153
|
+
}
|
|
4154
|
+
interface _UnicornImportStyle_BooleanObject {
|
|
4155
|
+
[k: string]: boolean | undefined;
|
|
4156
|
+
}
|
|
4157
|
+
type UnicornNoArrayReduce = [] | [{
|
|
4158
|
+
allowSimpleOperations?: boolean;
|
|
4159
|
+
}];
|
|
4160
|
+
type UnicornNoArrayReverse = [] | [{
|
|
4161
|
+
allowExpressionStatement?: boolean;
|
|
4162
|
+
}];
|
|
4163
|
+
type UnicornNoArraySort = [] | [{
|
|
4164
|
+
allowExpressionStatement?: boolean;
|
|
4165
|
+
}];
|
|
4166
|
+
type UnicornNoInstanceofBuiltins = [] | [{
|
|
4167
|
+
useErrorIsError?: boolean;
|
|
4168
|
+
strategy?: ("loose" | "strict");
|
|
4169
|
+
include?: string[];
|
|
4170
|
+
exclude?: string[];
|
|
4171
|
+
}];
|
|
4172
|
+
type UnicornNoKeywordPrefix = [] | [{
|
|
4173
|
+
disallowedPrefixes?: [] | [string];
|
|
4174
|
+
checkProperties?: boolean;
|
|
4175
|
+
onlyCamelCase?: boolean;
|
|
4176
|
+
}];
|
|
4177
|
+
type UnicornNoNull = [] | [{
|
|
4178
|
+
checkStrictEquality?: boolean;
|
|
4179
|
+
}];
|
|
4180
|
+
type UnicornNoTypeofUndefined = [] | [{
|
|
4181
|
+
checkGlobalVariables?: boolean;
|
|
4182
|
+
}];
|
|
4183
|
+
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
4184
|
+
targets: (string | unknown[] | {
|
|
4185
|
+
[k: string]: unknown | undefined;
|
|
4186
|
+
});
|
|
4187
|
+
}];
|
|
4188
|
+
type UnicornNoUselessUndefined = [] | [{
|
|
4189
|
+
checkArguments?: boolean;
|
|
4190
|
+
checkArrowFunctionBody?: boolean;
|
|
4191
|
+
}];
|
|
4192
|
+
type UnicornNumberLiteralCase = [] | [{
|
|
4193
|
+
hexadecimalValue?: ("uppercase" | "lowercase");
|
|
4194
|
+
}];
|
|
4195
|
+
type UnicornNumericSeparatorsStyle = [] | [{
|
|
4196
|
+
binary?: {
|
|
4197
|
+
onlyIfContainsSeparator?: boolean;
|
|
4198
|
+
minimumDigits?: number;
|
|
4199
|
+
groupLength?: number;
|
|
4200
|
+
};
|
|
4201
|
+
octal?: {
|
|
4202
|
+
onlyIfContainsSeparator?: boolean;
|
|
4203
|
+
minimumDigits?: number;
|
|
4204
|
+
groupLength?: number;
|
|
4205
|
+
};
|
|
4206
|
+
hexadecimal?: {
|
|
4207
|
+
onlyIfContainsSeparator?: boolean;
|
|
4208
|
+
minimumDigits?: number;
|
|
4209
|
+
groupLength?: number;
|
|
4210
|
+
};
|
|
4211
|
+
number?: {
|
|
4212
|
+
onlyIfContainsSeparator?: boolean;
|
|
4213
|
+
minimumDigits?: number;
|
|
4214
|
+
groupLength?: number;
|
|
4215
|
+
};
|
|
4216
|
+
onlyIfContainsSeparator?: boolean;
|
|
4217
|
+
}];
|
|
4218
|
+
type UnicornPreferAddEventListener = [] | [{
|
|
4219
|
+
excludedPackages?: string[];
|
|
4220
|
+
}];
|
|
4221
|
+
type UnicornPreferArrayFind = [] | [{
|
|
4222
|
+
checkFromLast?: boolean;
|
|
4223
|
+
}];
|
|
4224
|
+
type UnicornPreferArrayFlat = [] | [{
|
|
4225
|
+
functions?: unknown[];
|
|
4226
|
+
}];
|
|
4227
|
+
type UnicornPreferAt = [] | [{
|
|
4228
|
+
getLastElementFunctions?: unknown[];
|
|
4229
|
+
checkAllIndexAccess?: boolean;
|
|
4230
|
+
}];
|
|
4231
|
+
type UnicornPreferExportFrom = [] | [{
|
|
4232
|
+
ignoreUsedVariables?: boolean;
|
|
4233
|
+
}];
|
|
4234
|
+
type UnicornPreferNumberProperties = [] | [{
|
|
4235
|
+
checkInfinity?: boolean;
|
|
4236
|
+
checkNaN?: boolean;
|
|
4237
|
+
}];
|
|
4238
|
+
type UnicornPreferObjectFromEntries = [] | [{
|
|
4239
|
+
functions?: unknown[];
|
|
4240
|
+
}];
|
|
4241
|
+
type UnicornPreferSingleCall = [] | [{
|
|
4242
|
+
ignore?: unknown[];
|
|
4243
|
+
}];
|
|
4244
|
+
type UnicornPreferStructuredClone = [] | [{
|
|
4245
|
+
functions?: unknown[];
|
|
4246
|
+
}];
|
|
4247
|
+
type UnicornPreferSwitch = [] | [{
|
|
4248
|
+
minimumCases?: number;
|
|
4249
|
+
emptyDefaultCase?: ("no-default-comment" | "do-nothing-comment" | "no-default-case");
|
|
4250
|
+
}];
|
|
4251
|
+
type UnicornPreferTernary = [] | [("always" | "only-single-line")];
|
|
4252
|
+
type UnicornPreventAbbreviations = [] | [{
|
|
4253
|
+
checkProperties?: boolean;
|
|
4254
|
+
checkVariables?: boolean;
|
|
4255
|
+
checkDefaultAndNamespaceImports?: (boolean | string);
|
|
4256
|
+
checkShorthandImports?: (boolean | string);
|
|
4257
|
+
checkShorthandProperties?: boolean;
|
|
4258
|
+
checkFilenames?: boolean;
|
|
4259
|
+
extendDefaultReplacements?: boolean;
|
|
4260
|
+
replacements?: _UnicornPreventAbbreviations_Abbreviations;
|
|
4261
|
+
extendDefaultAllowList?: boolean;
|
|
4262
|
+
allowList?: _UnicornPreventAbbreviations_BooleanObject;
|
|
4263
|
+
ignore?: unknown[];
|
|
4264
|
+
}];
|
|
4265
|
+
type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbreviations_BooleanObject) | undefined;
|
|
4266
|
+
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
4267
|
+
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
4268
|
+
}
|
|
4269
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
4270
|
+
[k: string]: boolean | undefined;
|
|
4271
|
+
}
|
|
4272
|
+
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
4273
|
+
type UnicornStringContent = [] | [{
|
|
4274
|
+
patterns?: {
|
|
4275
|
+
[k: string]: (string | {
|
|
4276
|
+
suggest: string;
|
|
4277
|
+
fix?: boolean;
|
|
4278
|
+
message?: string;
|
|
4279
|
+
}) | undefined;
|
|
4280
|
+
};
|
|
4281
|
+
}];
|
|
4282
|
+
type UnicornSwitchCaseBraces = [] | [("always" | "avoid")];
|
|
4283
|
+
type UnicornTemplateIndent = [] | [{
|
|
4284
|
+
indent?: (string | number);
|
|
4285
|
+
tags?: string[];
|
|
4286
|
+
functions?: string[];
|
|
4287
|
+
selectors?: string[];
|
|
4288
|
+
comments?: string[];
|
|
4289
|
+
}];
|
|
4290
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
4291
|
+
withDash?: boolean;
|
|
4292
|
+
}];
|
|
4293
|
+
//#endregion
|
|
4294
|
+
//#region src/eslint/types.d.ts
|
|
4295
|
+
type Rules = Linter.RulesRecord & RuleOptions;
|
|
4296
|
+
interface ConfigItem extends Omit<Linter.Config, "plugins" | "rules"> {
|
|
4297
|
+
/**
|
|
4298
|
+
* An object containing a name-value mapping of plugin names to plugin
|
|
4299
|
+
* objects. When files is specified, these plugins are only available to the
|
|
4300
|
+
* matching files.
|
|
4301
|
+
*/
|
|
4302
|
+
plugins?: Record<string, any>;
|
|
4303
|
+
/**
|
|
4304
|
+
* An object containing the configured rules. When files or ignores are
|
|
4305
|
+
* specified, these rule configurations are only available to the matching
|
|
4306
|
+
* files.
|
|
4307
|
+
*/
|
|
4308
|
+
rules?: Rules;
|
|
4309
|
+
}
|
|
4310
|
+
interface OptionsConfig extends OptionsComponentExts, OptionsDisableTypeCheckedFiles {
|
|
4311
|
+
/**
|
|
4312
|
+
* Ignore files.
|
|
4313
|
+
*
|
|
4314
|
+
* @defaultValue some common ignore files
|
|
4315
|
+
*/
|
|
4316
|
+
ignores?: string[];
|
|
4317
|
+
/**
|
|
4318
|
+
* Enable .gitignore support.
|
|
4319
|
+
*
|
|
4320
|
+
* Passing an object to configure the options.
|
|
4321
|
+
*
|
|
4322
|
+
* @defaultValue `true`
|
|
4323
|
+
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
4324
|
+
*/
|
|
4325
|
+
gitignore?: boolean | FlatGitignoreOptions;
|
|
4326
|
+
/**
|
|
4327
|
+
* Enable TypeScript support.
|
|
4328
|
+
*
|
|
4329
|
+
* @defaultValue it will be auto-detected based on the dependencies.
|
|
4330
|
+
*/
|
|
4331
|
+
typescript?: boolean;
|
|
4332
|
+
/**
|
|
4333
|
+
* Enable React support.
|
|
4334
|
+
*
|
|
4335
|
+
* @defaultValue it will be auto-detected based on the dependencies.
|
|
4336
|
+
*/
|
|
4337
|
+
react?: boolean;
|
|
4338
|
+
/**
|
|
4339
|
+
* Enable Next.js support.
|
|
4340
|
+
*
|
|
4341
|
+
* @defaultValue it will be auto-detected based on the dependencies.
|
|
4342
|
+
*/
|
|
4343
|
+
next?: boolean;
|
|
4344
|
+
/**
|
|
4345
|
+
* Enable Qwik support.
|
|
4346
|
+
*
|
|
4347
|
+
* @defaultValue it will be auto-detected based on the dependencies.
|
|
4348
|
+
*/
|
|
4349
|
+
qwik?: boolean;
|
|
4350
|
+
/**
|
|
4351
|
+
* Enable Astro support.
|
|
4352
|
+
*
|
|
4353
|
+
* @defaultValue it will be auto-detected based on the dependencies.
|
|
4354
|
+
*/
|
|
4355
|
+
astro?: boolean;
|
|
4356
|
+
/**
|
|
4357
|
+
* Enable Storybook support.
|
|
4358
|
+
*
|
|
4359
|
+
* @defaultValue it will be auto-detected based on the dependencies.
|
|
4360
|
+
*/
|
|
4361
|
+
storybook?: boolean;
|
|
4362
|
+
}
|
|
4363
|
+
interface OptionsHasTypeScript {
|
|
4364
|
+
/**
|
|
4365
|
+
* Enable TypeScript support.
|
|
4366
|
+
*/
|
|
4367
|
+
typescript?: boolean;
|
|
4368
|
+
}
|
|
4369
|
+
interface OptionsComponentExts {
|
|
4370
|
+
/**
|
|
4371
|
+
* Additional extensions for component files.
|
|
4372
|
+
*
|
|
4373
|
+
* @example Astro and Svelte
|
|
4374
|
+
*
|
|
4375
|
+
* ```ts
|
|
4376
|
+
* {
|
|
4377
|
+
* "componentExts": ["astro", "svelte"]
|
|
4378
|
+
* }
|
|
4379
|
+
* ```
|
|
4380
|
+
*
|
|
4381
|
+
* @defaultValue The default is `[]`, but it will be auto-detected based on the dependencies.
|
|
4382
|
+
*/
|
|
4383
|
+
componentExts?: string[];
|
|
4384
|
+
}
|
|
4385
|
+
interface OptionsDisableTypeCheckedFiles {
|
|
4386
|
+
/**
|
|
4387
|
+
* Glob patterns of files to disable type checking.
|
|
4388
|
+
*
|
|
4389
|
+
* @defaultValue `[]`
|
|
4390
|
+
*/
|
|
4391
|
+
disableTypeCheckedFiles?: string[];
|
|
4392
|
+
}
|
|
4393
|
+
//#endregion
|
|
4394
|
+
//#region src/eslint/configs/astro.d.ts
|
|
4395
|
+
declare function astro(options?: OptionsHasTypeScript): Promise<ConfigItem[]>;
|
|
4396
|
+
//#endregion
|
|
4397
|
+
//#region src/eslint/configs/base.d.ts
|
|
4398
|
+
declare function base(): ConfigItem[];
|
|
4399
|
+
//#endregion
|
|
4400
|
+
//#region src/eslint/configs/disable-type-checked.d.ts
|
|
4401
|
+
declare function disableTypeChecked(options?: OptionsDisableTypeCheckedFiles): Promise<ConfigItem[]>;
|
|
4402
|
+
//#endregion
|
|
4403
|
+
//#region src/eslint/configs/import-sort.d.ts
|
|
4404
|
+
declare function importSort(): ConfigItem[];
|
|
4405
|
+
//#endregion
|
|
4406
|
+
//#region src/eslint/configs/imports.d.ts
|
|
4407
|
+
declare function imports(options: OptionsHasTypeScript): ConfigItem[];
|
|
4408
|
+
//#endregion
|
|
4409
|
+
//#region src/eslint/configs/javascript.d.ts
|
|
4410
|
+
declare function javascript(): ConfigItem[];
|
|
4411
|
+
//#endregion
|
|
4412
|
+
//#region src/eslint/configs/jsx-a11y.d.ts
|
|
4413
|
+
declare function jsxA11y(): ConfigItem[];
|
|
4414
|
+
//#endregion
|
|
4415
|
+
//#region src/eslint/configs/next.d.ts
|
|
4416
|
+
declare function next(): Promise<ConfigItem[]>;
|
|
4417
|
+
//#endregion
|
|
4418
|
+
//#region src/eslint/configs/node.d.ts
|
|
4419
|
+
declare function node(): ConfigItem[];
|
|
4420
|
+
//#endregion
|
|
4421
|
+
//#region src/eslint/configs/qwik.d.ts
|
|
4422
|
+
declare function qwik(): Promise<ConfigItem[]>;
|
|
4423
|
+
//#endregion
|
|
4424
|
+
//#region src/eslint/configs/react.d.ts
|
|
4425
|
+
declare function react(options?: OptionsHasTypeScript): Promise<ConfigItem[]>;
|
|
4426
|
+
//#endregion
|
|
4427
|
+
//#region src/eslint/configs/regexp.d.ts
|
|
4428
|
+
declare function regexp(): ConfigItem[];
|
|
4429
|
+
//#endregion
|
|
4430
|
+
//#region src/eslint/configs/storybook.d.ts
|
|
4431
|
+
declare function storybook(): Promise<ConfigItem[]>;
|
|
4432
|
+
//#endregion
|
|
4433
|
+
//#region src/eslint/configs/typescript.d.ts
|
|
4434
|
+
declare function typescript(options?: OptionsComponentExts): Promise<ConfigItem[]>;
|
|
4435
|
+
//#endregion
|
|
4436
|
+
//#region src/eslint/configs/unicorn.d.ts
|
|
4437
|
+
declare function unicorn(): ConfigItem[];
|
|
4438
|
+
//#endregion
|
|
4439
|
+
//#region src/eslint/factory.d.ts
|
|
4440
|
+
declare function shun_shobon(options?: OptionsConfig, ...userConfigs: ConfigItem[]): Promise<ConfigItem[]>;
|
|
4441
|
+
//#endregion
|
|
4442
|
+
//#region src/eslint/index.d.ts
|
|
4443
|
+
declare module "@eslint/core" {
|
|
4444
|
+
interface RulesConfig extends RuleOptions {}
|
|
4445
|
+
}
|
|
4446
|
+
//#endregion
|
|
4447
|
+
export { type RulesConfig, astro, base, disableTypeChecked, importSort, imports, javascript, jsxA11y, next, node, qwik, react, regexp, shun_shobon, storybook, typescript, unicorn };
|
|
4448
|
+
//# sourceMappingURL=index.d.mts.map
|