@quentinhsu/biome-config 0.3.3 → 0.4.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/131.mjs +358 -0
- package/dist/build.mjs +108 -360
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +1 -358
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/rslib-runtime.mjs +38 -0
- package/dist/types/scripts/tag-release.d.ts +1 -0
- package/dist/types/scripts/validate-config-properties.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +11 -8
- package/dist/types/src/generated/biome/no-comment-text-options.d.ts +761 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +97 -97
- package/dist/types/src/generated/biome/no-sync-scripts-configuration.d.ts +185 -0
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → no-useless-constructor-configuration.d.ts} +31 -49
- package/dist/types/src/generated/biome/nursery.d.ts +393 -594
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → pattern-options.d.ts} +252 -179
- package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
- package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
- package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
- package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
- package/dist/types/src/generated/biome/schema.d.ts +35 -17
- package/dist/types/src/generated/biome/style.d.ts +614 -0
- package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → use-unique-variable-names-options.d.ts} +141 -119
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +38 -34
- package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +0 -241
- package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +0 -1116
- package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +0 -1148
- package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +0 -1440
- package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +0 -1341
|
@@ -33,6 +33,9 @@ export interface NoReactPropAssignmentsOptions {
|
|
|
33
33
|
}
|
|
34
34
|
export interface NoRenderReturnValueOptions {
|
|
35
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.
|
|
38
|
+
*/
|
|
36
39
|
export interface CustomRestrictedElements {
|
|
37
40
|
[k: string]: string;
|
|
38
41
|
}
|
|
@@ -51,7 +54,7 @@ export interface NoUndeclaredVariablesOptions {
|
|
|
51
54
|
/**
|
|
52
55
|
* Check undeclared types.
|
|
53
56
|
*/
|
|
54
|
-
checkTypes?: boolean;
|
|
57
|
+
checkTypes?: boolean | null;
|
|
55
58
|
}
|
|
56
59
|
export interface NoUnknownFunctionOptions {
|
|
57
60
|
}
|
|
@@ -81,7 +84,7 @@ export interface NoUnusedFunctionParametersOptions {
|
|
|
81
84
|
/**
|
|
82
85
|
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
83
86
|
*/
|
|
84
|
-
ignoreRestSiblings?: boolean;
|
|
87
|
+
ignoreRestSiblings?: boolean | null;
|
|
85
88
|
}
|
|
86
89
|
export interface NoUnusedImportsOptions {
|
|
87
90
|
}
|
|
@@ -93,7 +96,7 @@ export interface NoUnusedVariablesOptions {
|
|
|
93
96
|
/**
|
|
94
97
|
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
95
98
|
*/
|
|
96
|
-
ignoreRestSiblings?: boolean;
|
|
99
|
+
ignoreRestSiblings?: boolean | null;
|
|
97
100
|
}
|
|
98
101
|
export interface NoVoidElementsWithChildrenOptions {
|
|
99
102
|
}
|
|
@@ -107,9 +110,10 @@ export interface UseHookAtTopLevelOptions {
|
|
|
107
110
|
export type UseImageSizeOptions = null;
|
|
108
111
|
export interface UseImportExtensionsOptions {
|
|
109
112
|
/**
|
|
110
|
-
* If `true`, the suggested extension is always `.js` regardless of what
|
|
113
|
+
* If `true`, the suggested extension is always `.js` regardless of what
|
|
114
|
+
* extension the source file has in your project.
|
|
111
115
|
*/
|
|
112
|
-
forceJsExtensions?: boolean;
|
|
116
|
+
forceJsExtensions?: boolean | null;
|
|
113
117
|
}
|
|
114
118
|
export interface UseIsNanOptions {
|
|
115
119
|
}
|
|
@@ -119,7 +123,7 @@ export interface UseJsxKeyInIterableOptions {
|
|
|
119
123
|
/**
|
|
120
124
|
* Set to `true` to check shorthand fragments (`<></>`)
|
|
121
125
|
*/
|
|
122
|
-
checkShorthandFragments?: boolean;
|
|
126
|
+
checkShorthandFragments?: boolean | null;
|
|
123
127
|
}
|
|
124
128
|
export interface UseParseIntRadixOptions {
|
|
125
129
|
}
|
|
@@ -129,9 +133,10 @@ export interface UseSingleJsDocAsteriskOptions {
|
|
|
129
133
|
}
|
|
130
134
|
export interface UseUniqueElementIdsOptions {
|
|
131
135
|
/**
|
|
132
|
-
* Component names that accept an `id` prop that does not translate
|
|
136
|
+
* Component names that accept an `id` prop that does not translate
|
|
137
|
+
* to a DOM element id.
|
|
133
138
|
*/
|
|
134
|
-
excludedComponents?: string[];
|
|
139
|
+
excludedComponents?: string[] | null;
|
|
135
140
|
}
|
|
136
141
|
export interface UseValidForDirectionOptions {
|
|
137
142
|
}
|
|
@@ -139,52 +144,96 @@ export interface UseValidTypeofOptions {
|
|
|
139
144
|
}
|
|
140
145
|
export interface UseYieldOptions {
|
|
141
146
|
}
|
|
147
|
+
export interface NoAmbiguousAnchorTextOptions {
|
|
148
|
+
/**
|
|
149
|
+
* It allows users to modify the strings that can be checked for in the anchor text. Useful for specifying other words in other languages
|
|
150
|
+
*/
|
|
151
|
+
words?: string[] | null;
|
|
152
|
+
}
|
|
153
|
+
export interface NoBeforeInteractiveScriptOutsideDocumentOptions {
|
|
154
|
+
}
|
|
155
|
+
export interface NoContinueOptions {
|
|
156
|
+
}
|
|
142
157
|
export interface NoDeprecatedImportsOptions {
|
|
143
158
|
}
|
|
144
159
|
export interface NoDuplicateDependenciesOptions {
|
|
145
160
|
}
|
|
161
|
+
export interface NoDuplicatedSpreadPropsOptions {
|
|
162
|
+
}
|
|
146
163
|
export interface NoEmptySourceOptions {
|
|
147
164
|
/**
|
|
148
165
|
* Whether comments are considered meaningful
|
|
149
166
|
*/
|
|
150
|
-
allowComments?: boolean;
|
|
167
|
+
allowComments?: boolean | null;
|
|
168
|
+
}
|
|
169
|
+
export interface NoEqualsToNullOptions {
|
|
151
170
|
}
|
|
152
171
|
export interface NoFloatingPromisesOptions {
|
|
153
172
|
}
|
|
173
|
+
export interface NoForInOptions {
|
|
174
|
+
}
|
|
154
175
|
export interface NoImportCyclesOptions {
|
|
155
176
|
/**
|
|
156
|
-
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`)
|
|
177
|
+
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`)
|
|
178
|
+
* will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type
|
|
179
|
+
* imports (`import { type Foo }`) aren't considered as type-only because it's not removed by
|
|
180
|
+
* the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
|
|
157
181
|
*/
|
|
158
|
-
ignoreTypes?: boolean;
|
|
182
|
+
ignoreTypes?: boolean | null;
|
|
159
183
|
}
|
|
160
184
|
export interface NoIncrementDecrementOptions {
|
|
161
185
|
/**
|
|
162
186
|
* Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
|
|
163
187
|
*/
|
|
164
|
-
allowForLoopAfterthoughts?: boolean;
|
|
188
|
+
allowForLoopAfterthoughts?: boolean | null;
|
|
165
189
|
}
|
|
166
190
|
export interface NoJsxLiteralsOptions {
|
|
167
191
|
/**
|
|
168
192
|
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
169
193
|
*/
|
|
170
|
-
allowedStrings?: string[];
|
|
194
|
+
allowedStrings?: string[] | null;
|
|
171
195
|
/**
|
|
172
196
|
* When enabled, strings inside props are always ignored
|
|
173
197
|
*/
|
|
174
|
-
ignoreProps?: boolean;
|
|
198
|
+
ignoreProps?: boolean | null;
|
|
175
199
|
/**
|
|
176
200
|
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
177
201
|
*/
|
|
178
|
-
noStrings?: boolean;
|
|
202
|
+
noStrings?: boolean | null;
|
|
203
|
+
}
|
|
204
|
+
export interface NoJsxPropsBindOptions {
|
|
205
|
+
}
|
|
206
|
+
export interface NoLeakedRenderOptions {
|
|
207
|
+
[k: string]: unknown;
|
|
179
208
|
}
|
|
180
209
|
export interface NoMisusedPromisesOptions {
|
|
181
210
|
}
|
|
211
|
+
export interface NoMultiAssignOptions {
|
|
212
|
+
}
|
|
213
|
+
export interface NoMultiStrOptions {
|
|
214
|
+
}
|
|
182
215
|
export interface NoNextAsyncClientComponentOptions {
|
|
183
216
|
}
|
|
217
|
+
export interface NoParametersOnlyUsedInRecursionOptions {
|
|
218
|
+
}
|
|
219
|
+
export interface NoProtoOptions {
|
|
220
|
+
}
|
|
184
221
|
export interface NoReactForwardRefOptions {
|
|
185
222
|
}
|
|
223
|
+
export interface NoReturnAssignOptions {
|
|
224
|
+
}
|
|
225
|
+
export interface NoScriptUrlOptions {
|
|
226
|
+
}
|
|
186
227
|
export interface NoShadowOptions {
|
|
187
228
|
}
|
|
229
|
+
export interface NoSyncScriptsOptions {
|
|
230
|
+
}
|
|
231
|
+
export interface NoTernaryOptions {
|
|
232
|
+
}
|
|
233
|
+
export type Regex = string;
|
|
234
|
+
export interface NoUnknownAttributeOptions {
|
|
235
|
+
ignore?: string[] | null;
|
|
236
|
+
}
|
|
188
237
|
export interface NoUnnecessaryConditionsOptions {
|
|
189
238
|
}
|
|
190
239
|
export interface NoUnresolvedImportsOptions {
|
|
@@ -192,7 +241,8 @@ export interface NoUnresolvedImportsOptions {
|
|
|
192
241
|
export interface NoUnusedExpressionsOptions {
|
|
193
242
|
}
|
|
194
243
|
/**
|
|
195
|
-
* Options for the `noUselessCatchBinding` rule.
|
|
244
|
+
* Options for the `noUselessCatchBinding` rule.
|
|
245
|
+
* Currently empty; reserved for future extensions (e.g. allowlist of names).
|
|
196
246
|
*/
|
|
197
247
|
export interface NoUselessCatchBindingOptions {
|
|
198
248
|
}
|
|
@@ -206,24 +256,48 @@ export interface NoVueReservedKeysOptions {
|
|
|
206
256
|
}
|
|
207
257
|
export interface NoVueReservedPropsOptions {
|
|
208
258
|
}
|
|
259
|
+
export interface NoVueSetupPropsReactivityLossOptions {
|
|
260
|
+
}
|
|
261
|
+
export interface NoVueVIfWithVForOptions {
|
|
262
|
+
}
|
|
263
|
+
export interface UseArraySortCompareOptions {
|
|
264
|
+
}
|
|
265
|
+
export interface UseAwaitThenableOptions {
|
|
266
|
+
}
|
|
209
267
|
export type UseConsistentArrowReturnStyle = 'asNeeded' | 'always' | 'never';
|
|
268
|
+
/**
|
|
269
|
+
* The GraphQL description style to enforce.
|
|
270
|
+
*/
|
|
271
|
+
export type UseConsistentGraphqlDescriptionsStyle = 'block' | 'inline';
|
|
210
272
|
export interface UseDeprecatedDateOptions {
|
|
211
|
-
argumentName?: string;
|
|
273
|
+
argumentName?: string | null;
|
|
274
|
+
}
|
|
275
|
+
export interface UseDestructuringOptions {
|
|
212
276
|
}
|
|
213
277
|
export interface UseExhaustiveSwitchCasesOptions {
|
|
214
278
|
}
|
|
215
279
|
export interface UseExplicitTypeOptions {
|
|
216
280
|
}
|
|
281
|
+
export interface UseFindOptions {
|
|
282
|
+
}
|
|
217
283
|
export interface UseMaxParamsOptions {
|
|
218
284
|
/**
|
|
219
285
|
* Maximum number of parameters allowed (default: 4)
|
|
220
286
|
*/
|
|
221
|
-
max?: number;
|
|
287
|
+
max?: number | null;
|
|
222
288
|
}
|
|
223
289
|
export interface UseQwikMethodUsageOptions {
|
|
224
290
|
}
|
|
225
291
|
export interface UseQwikValidLexicalScopeOptions {
|
|
226
292
|
}
|
|
293
|
+
export interface UseRegexpExecOptions {
|
|
294
|
+
}
|
|
295
|
+
export interface UseRequiredScriptsOptions {
|
|
296
|
+
/**
|
|
297
|
+
* List of script names that must be present in package.json
|
|
298
|
+
*/
|
|
299
|
+
requiredScripts?: string[];
|
|
300
|
+
}
|
|
227
301
|
export interface UseSortedClassesOptions {
|
|
228
302
|
/**
|
|
229
303
|
* Additional attributes that will be sorted.
|
|
@@ -234,87 +308,13 @@ export interface UseSortedClassesOptions {
|
|
|
234
308
|
*/
|
|
235
309
|
functions?: string[] | null;
|
|
236
310
|
}
|
|
237
|
-
export interface
|
|
238
|
-
/**
|
|
239
|
-
* The order of the Vue define macros.
|
|
240
|
-
*/
|
|
241
|
-
order?: string[];
|
|
242
|
-
}
|
|
243
|
-
export interface UseVueMultiWordComponentNamesOptions {
|
|
244
|
-
/**
|
|
245
|
-
* Component names to ignore (allowed to be single-word).
|
|
246
|
-
*/
|
|
247
|
-
ignores?: string[];
|
|
248
|
-
}
|
|
249
|
-
export interface NoAccumulatingSpreadOptions {
|
|
250
|
-
}
|
|
251
|
-
export interface NoAwaitInLoopsOptions {
|
|
252
|
-
}
|
|
253
|
-
export interface NoBarrelFileOptions {
|
|
254
|
-
}
|
|
255
|
-
export interface NoDeleteOptions {
|
|
256
|
-
}
|
|
257
|
-
export interface NoDynamicNamespaceImportAccessOptions {
|
|
258
|
-
}
|
|
259
|
-
export interface NoImgElementOptions {
|
|
260
|
-
}
|
|
261
|
-
export interface NoNamespaceImportOptions {
|
|
262
|
-
}
|
|
263
|
-
export interface NoReExportAllOptions {
|
|
264
|
-
}
|
|
265
|
-
export interface NoUnwantedPolyfillioOptions {
|
|
266
|
-
}
|
|
267
|
-
export interface UseGoogleFontPreconnectOptions {
|
|
268
|
-
}
|
|
269
|
-
export interface UseSolidForComponentOptions {
|
|
270
|
-
}
|
|
271
|
-
export interface UseTopLevelRegexOptions {
|
|
272
|
-
}
|
|
273
|
-
export interface NoBlankTargetOptions {
|
|
274
|
-
/**
|
|
275
|
-
* List of domains where `target="_blank"` is allowed without `rel="noopener"`.
|
|
276
|
-
*/
|
|
277
|
-
allowDomains?: string[];
|
|
278
|
-
/**
|
|
279
|
-
* Whether `noreferrer` is allowed in addition to `noopener`.
|
|
280
|
-
*/
|
|
281
|
-
allowNoReferrer?: boolean;
|
|
282
|
-
}
|
|
283
|
-
export interface NoDangerouslySetInnerHtmlOptions {
|
|
284
|
-
}
|
|
285
|
-
export interface NoDangerouslySetInnerHtmlWithChildrenOptions {
|
|
286
|
-
}
|
|
287
|
-
export interface NoGlobalEvalOptions {
|
|
288
|
-
}
|
|
289
|
-
export interface NoSecretsOptions {
|
|
290
|
-
/**
|
|
291
|
-
* Set entropy threshold (default is 41).
|
|
292
|
-
*/
|
|
293
|
-
entropyThreshold?: number | null;
|
|
294
|
-
}
|
|
295
|
-
export interface NoCommonJsOptions {
|
|
296
|
-
}
|
|
297
|
-
export interface NoDefaultExportOptions {
|
|
298
|
-
}
|
|
299
|
-
export interface NoDescendingSpecificityOptions {
|
|
300
|
-
}
|
|
301
|
-
export interface NoDoneCallbackOptions {
|
|
302
|
-
}
|
|
303
|
-
export interface NoEnumOptions {
|
|
304
|
-
}
|
|
305
|
-
export interface NoExportedImportsOptions {
|
|
306
|
-
}
|
|
307
|
-
export interface NoHeadElementOptions {
|
|
308
|
-
}
|
|
309
|
-
export interface NoImplicitBooleanOptions {
|
|
310
|
-
}
|
|
311
|
-
export interface NoInferrableTypesOptions {
|
|
311
|
+
export interface UseSpreadOptions {
|
|
312
312
|
}
|
|
313
|
-
export interface
|
|
313
|
+
export interface UseUniqueArgumentNamesOptions {
|
|
314
314
|
}
|
|
315
|
-
export interface
|
|
315
|
+
export interface UseUniqueFieldDefinitionNamesOptions {
|
|
316
316
|
}
|
|
317
|
-
export interface
|
|
317
|
+
export interface UseUniqueGraphqlOperationNameOptions {
|
|
318
318
|
}
|
|
319
|
-
export interface
|
|
319
|
+
export interface UseUniqueInputFieldNamesOptions {
|
|
320
320
|
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import type { FixKind, RulePlainConfiguration } from './schema.ts';
|
|
2
|
+
import type { Regex } from './no-global-object-calls-options.ts';
|
|
3
|
+
import type { NoUndeclaredEnvVarsOptions, RuleWithNoAccumulatingSpreadOptions, RuleWithNoAwaitInLoopsOptions, RuleWithNoBarrelFileOptions, RuleWithNoDeleteOptions, RuleWithNoDynamicNamespaceImportAccessOptions, RuleWithNoImgElementOptions, RuleWithNoNamespaceImportOptions, RuleWithNoReExportAllOptions, RuleWithNoSyncScriptsOptions, RuleWithNoTernaryOptions, RuleWithNoUnknownAttributeOptions, RuleWithNoUnnecessaryConditionsOptions, RuleWithNoUnresolvedImportsOptions, RuleWithNoUnusedExpressionsOptions, RuleWithNoUnwantedPolyfillioOptions, RuleWithNoUselessCatchBindingOptions, RuleWithNoUselessUndefinedOptions, RuleWithNoVueDataObjectDeclarationOptions, RuleWithNoVueDuplicateKeysOptions, RuleWithNoVueReservedKeysOptions, RuleWithNoVueReservedPropsOptions, RuleWithNoVueSetupPropsReactivityLossOptions, RuleWithNoVueVIfWithVForOptions, RuleWithUseArraySortCompareOptions, RuleWithUseAwaitThenableOptions, RuleWithUseDeprecatedDateOptions, RuleWithUseDestructuringOptions, RuleWithUseExhaustiveSwitchCasesOptions, RuleWithUseExplicitTypeOptions, RuleWithUseFindOptions, RuleWithUseGoogleFontPreconnectOptions, RuleWithUseMaxParamsOptions, RuleWithUseQwikMethodUsageOptions, RuleWithUseQwikValidLexicalScopeOptions, RuleWithUseRegexpExecOptions, RuleWithUseRequiredScriptsOptions, RuleWithUseSolidForComponentOptions, RuleWithUseSortedClassesOptions, RuleWithUseSpreadOptions, RuleWithUseTopLevelRegexOptions, RuleWithUseUniqueArgumentNamesOptions, RuleWithUseUniqueFieldDefinitionNamesOptions, RuleWithUseUniqueGraphqlOperationNameOptions, RuleWithUseUniqueInputFieldNamesOptions, RuleWithUseUniqueVariableNamesOptions, RuleWithUseVueDefineMacrosOrderOptions, RuleWithUseVueHyphenatedAttributesOptions, RuleWithUseVueMultiWordComponentNamesOptions, RuleWithUseVueVForKeyOptions, RuleWithUseVueValidTemplateRootOptions, RuleWithUseVueValidVBindOptions, RuleWithUseVueValidVCloakOptions, RuleWithUseVueValidVElseIfOptions, RuleWithUseVueValidVElseOptions, RuleWithUseVueValidVHtmlOptions, RuleWithUseVueValidVIfOptions, RuleWithUseVueValidVOnOptions, RuleWithUseVueValidVOnceOptions, RuleWithUseVueValidVPreOptions, RuleWithUseVueValidVTextOptions, RuleWithUseVueVaporOptions, UseConsistentArrowReturnOptions, UseConsistentGraphqlDescriptionsOptions, UseVueConsistentDefinePropsDeclarationOptions, UseVueConsistentVBindStyleOptions, UseVueConsistentVOnStyleOptions } from './rule-with-no-unknown-unit-options.ts';
|
|
4
|
+
import type { CustomRestrictedType, FilenameCases, NoParameterAssignOptions, RuleWithNoBlankTargetOptions, RuleWithNoCommonJsOptions, RuleWithNoDangerouslySetInnerHtmlOptions, RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions, RuleWithNoDefaultExportOptions, RuleWithNoDescendingSpecificityOptions, RuleWithNoDoneCallbackOptions, RuleWithNoEnumOptions, RuleWithNoExportedImportsOptions, RuleWithNoGlobalEvalOptions, RuleWithNoHeadElementOptions, RuleWithNoImplicitBooleanOptions, RuleWithNoInferrableTypesOptions, RuleWithNoMagicNumbersOptions, RuleWithNoNamespaceOptions, RuleWithNoNegationElseOptions, RuleWithNoNestedTernaryOptions, RuleWithNoNonNullAssertionOptions, RuleWithNoParameterPropertiesOptions, RuleWithNoProcessEnvOptions, RuleWithNoRestrictedGlobalsOptions, RuleWithNoSecretsOptions, RuleWithNoShoutyConstantsOptions, RuleWithNoSubstrOptions, RuleWithNoUnusedTemplateLiteralOptions, RuleWithNoUselessElseOptions, RuleWithNoValueAtRuleOptions, RuleWithNoYodaExpressionOptions, RuleWithUseArrayLiteralsOptions, RuleWithUseAsConstAssertionOptions, RuleWithUseAtIndexOptions, RuleWithUseBlockStatementsOptions, RuleWithUseCollapsedElseIfOptions, RuleWithUseCollapsedIfOptions, RuleWithUseComponentExportOnlyModulesOptions, RuleWithUseConsistentBuiltinInstantiationOptions, RuleWithUseConsistentCurlyBracesOptions, RuleWithUseConstOptions, RuleWithUseDefaultParameterLastOptions, RuleWithUseDefaultSwitchClauseOptions, RuleWithUseDeprecatedReasonOptions, RuleWithUseEnumInitializersOptions, RuleWithUseExplicitLengthCheckOptions, RuleWithUseExponentiationOperatorOptions, RuleWithUseExportTypeOptions, RuleWithUseExportsLastOptions, UseConsistentArrayTypeOptions, UseConsistentMemberAccessibilityOptions, UseConsistentObjectDefinitionsOptions, UseConsistentTypeDefinitionsOptions } from './rule-with-no-blank-target-options.ts';
|
|
5
|
+
export type NoSyncScriptsConfiguration = RulePlainConfiguration | RuleWithNoSyncScriptsOptions;
|
|
6
|
+
export type NoTernaryConfiguration = RulePlainConfiguration | RuleWithNoTernaryOptions;
|
|
7
|
+
export interface RuleWithNoUndeclaredEnvVarsOptions {
|
|
8
|
+
level: RulePlainConfiguration;
|
|
9
|
+
options?: NoUndeclaredEnvVarsOptions;
|
|
10
|
+
}
|
|
11
|
+
export type NoUnknownAttributeConfiguration = RulePlainConfiguration | RuleWithNoUnknownAttributeOptions;
|
|
12
|
+
export type NoUnnecessaryConditionsConfiguration = RulePlainConfiguration | RuleWithNoUnnecessaryConditionsOptions;
|
|
13
|
+
export type NoUnresolvedImportsConfiguration = RulePlainConfiguration | RuleWithNoUnresolvedImportsOptions;
|
|
14
|
+
export type NoUnusedExpressionsConfiguration = RulePlainConfiguration | RuleWithNoUnusedExpressionsOptions;
|
|
15
|
+
export type NoUselessCatchBindingConfiguration = RulePlainConfiguration | RuleWithNoUselessCatchBindingOptions;
|
|
16
|
+
export type NoUselessUndefinedConfiguration = RulePlainConfiguration | RuleWithNoUselessUndefinedOptions;
|
|
17
|
+
export type NoVueDataObjectDeclarationConfiguration = RulePlainConfiguration | RuleWithNoVueDataObjectDeclarationOptions;
|
|
18
|
+
export type NoVueDuplicateKeysConfiguration = RulePlainConfiguration | RuleWithNoVueDuplicateKeysOptions;
|
|
19
|
+
export type NoVueReservedKeysConfiguration = RulePlainConfiguration | RuleWithNoVueReservedKeysOptions;
|
|
20
|
+
export type NoVueReservedPropsConfiguration = RulePlainConfiguration | RuleWithNoVueReservedPropsOptions;
|
|
21
|
+
export type NoVueSetupPropsReactivityLossConfiguration = RulePlainConfiguration | RuleWithNoVueSetupPropsReactivityLossOptions;
|
|
22
|
+
export type NoVueVIfWithVForConfiguration = RulePlainConfiguration | RuleWithNoVueVIfWithVForOptions;
|
|
23
|
+
export type UseArraySortCompareConfiguration = RulePlainConfiguration | RuleWithUseArraySortCompareOptions;
|
|
24
|
+
export type UseAwaitThenableConfiguration = RulePlainConfiguration | RuleWithUseAwaitThenableOptions;
|
|
25
|
+
export interface RuleWithUseConsistentArrowReturnOptions {
|
|
26
|
+
fix?: FixKind | null;
|
|
27
|
+
level: RulePlainConfiguration;
|
|
28
|
+
options?: UseConsistentArrowReturnOptions;
|
|
29
|
+
}
|
|
30
|
+
export interface RuleWithUseConsistentGraphqlDescriptionsOptions {
|
|
31
|
+
level: RulePlainConfiguration;
|
|
32
|
+
options?: UseConsistentGraphqlDescriptionsOptions;
|
|
33
|
+
}
|
|
34
|
+
export type UseDeprecatedDateConfiguration = RulePlainConfiguration | RuleWithUseDeprecatedDateOptions;
|
|
35
|
+
export type UseDestructuringConfiguration = RulePlainConfiguration | RuleWithUseDestructuringOptions;
|
|
36
|
+
export type UseExhaustiveSwitchCasesConfiguration = RulePlainConfiguration | RuleWithUseExhaustiveSwitchCasesOptions;
|
|
37
|
+
export type UseExplicitTypeConfiguration = RulePlainConfiguration | RuleWithUseExplicitTypeOptions;
|
|
38
|
+
export type UseFindConfiguration = RulePlainConfiguration | RuleWithUseFindOptions;
|
|
39
|
+
export type UseMaxParamsConfiguration = RulePlainConfiguration | RuleWithUseMaxParamsOptions;
|
|
40
|
+
export type UseQwikMethodUsageConfiguration = RulePlainConfiguration | RuleWithUseQwikMethodUsageOptions;
|
|
41
|
+
export type UseQwikValidLexicalScopeConfiguration = RulePlainConfiguration | RuleWithUseQwikValidLexicalScopeOptions;
|
|
42
|
+
export type UseRegexpExecConfiguration = RulePlainConfiguration | RuleWithUseRegexpExecOptions;
|
|
43
|
+
export type UseRequiredScriptsConfiguration = RulePlainConfiguration | RuleWithUseRequiredScriptsOptions;
|
|
44
|
+
export type UseSortedClassesConfiguration = RulePlainConfiguration | RuleWithUseSortedClassesOptions;
|
|
45
|
+
export type UseSpreadConfiguration = RulePlainConfiguration | RuleWithUseSpreadOptions;
|
|
46
|
+
export type UseUniqueArgumentNamesConfiguration = RulePlainConfiguration | RuleWithUseUniqueArgumentNamesOptions;
|
|
47
|
+
export type UseUniqueFieldDefinitionNamesConfiguration = RulePlainConfiguration | RuleWithUseUniqueFieldDefinitionNamesOptions;
|
|
48
|
+
export type UseUniqueGraphqlOperationNameConfiguration = RulePlainConfiguration | RuleWithUseUniqueGraphqlOperationNameOptions;
|
|
49
|
+
export type UseUniqueInputFieldNamesConfiguration = RulePlainConfiguration | RuleWithUseUniqueInputFieldNamesOptions;
|
|
50
|
+
export type UseUniqueVariableNamesConfiguration = RulePlainConfiguration | RuleWithUseUniqueVariableNamesOptions;
|
|
51
|
+
export interface RuleWithUseVueConsistentDefinePropsDeclarationOptions {
|
|
52
|
+
level: RulePlainConfiguration;
|
|
53
|
+
options?: UseVueConsistentDefinePropsDeclarationOptions;
|
|
54
|
+
}
|
|
55
|
+
export interface RuleWithUseVueConsistentVBindStyleOptions {
|
|
56
|
+
fix?: FixKind | null;
|
|
57
|
+
level: RulePlainConfiguration;
|
|
58
|
+
options?: UseVueConsistentVBindStyleOptions;
|
|
59
|
+
}
|
|
60
|
+
export interface RuleWithUseVueConsistentVOnStyleOptions {
|
|
61
|
+
fix?: FixKind | null;
|
|
62
|
+
level: RulePlainConfiguration;
|
|
63
|
+
options?: UseVueConsistentVOnStyleOptions;
|
|
64
|
+
}
|
|
65
|
+
export type UseVueDefineMacrosOrderConfiguration = RulePlainConfiguration | RuleWithUseVueDefineMacrosOrderOptions;
|
|
66
|
+
export type UseVueHyphenatedAttributesConfiguration = RulePlainConfiguration | RuleWithUseVueHyphenatedAttributesOptions;
|
|
67
|
+
export type UseVueMultiWordComponentNamesConfiguration = RulePlainConfiguration | RuleWithUseVueMultiWordComponentNamesOptions;
|
|
68
|
+
export type UseVueVForKeyConfiguration = RulePlainConfiguration | RuleWithUseVueVForKeyOptions;
|
|
69
|
+
export type UseVueValidTemplateRootConfiguration = RulePlainConfiguration | RuleWithUseVueValidTemplateRootOptions;
|
|
70
|
+
export type UseVueValidVBindConfiguration = RulePlainConfiguration | RuleWithUseVueValidVBindOptions;
|
|
71
|
+
export type UseVueValidVCloakConfiguration = RulePlainConfiguration | RuleWithUseVueValidVCloakOptions;
|
|
72
|
+
export type UseVueValidVElseConfiguration = RulePlainConfiguration | RuleWithUseVueValidVElseOptions;
|
|
73
|
+
export type UseVueValidVElseIfConfiguration = RulePlainConfiguration | RuleWithUseVueValidVElseIfOptions;
|
|
74
|
+
export type UseVueValidVHtmlConfiguration = RulePlainConfiguration | RuleWithUseVueValidVHtmlOptions;
|
|
75
|
+
export type UseVueValidVIfConfiguration = RulePlainConfiguration | RuleWithUseVueValidVIfOptions;
|
|
76
|
+
export type UseVueValidVOnConfiguration = RulePlainConfiguration | RuleWithUseVueValidVOnOptions;
|
|
77
|
+
export type UseVueValidVOnceConfiguration = RulePlainConfiguration | RuleWithUseVueValidVOnceOptions;
|
|
78
|
+
export type UseVueValidVPreConfiguration = RulePlainConfiguration | RuleWithUseVueValidVPreOptions;
|
|
79
|
+
export type UseVueValidVTextConfiguration = RulePlainConfiguration | RuleWithUseVueValidVTextOptions;
|
|
80
|
+
export type UseVueVaporConfiguration = RulePlainConfiguration | RuleWithUseVueVaporOptions;
|
|
81
|
+
export type NoAccumulatingSpreadConfiguration = RulePlainConfiguration | RuleWithNoAccumulatingSpreadOptions;
|
|
82
|
+
export type NoAwaitInLoopsConfiguration = RulePlainConfiguration | RuleWithNoAwaitInLoopsOptions;
|
|
83
|
+
export type NoBarrelFileConfiguration = RulePlainConfiguration | RuleWithNoBarrelFileOptions;
|
|
84
|
+
export type NoDeleteConfiguration = RulePlainConfiguration | RuleWithNoDeleteOptions;
|
|
85
|
+
export type NoDynamicNamespaceImportAccessConfiguration = RulePlainConfiguration | RuleWithNoDynamicNamespaceImportAccessOptions;
|
|
86
|
+
export type NoImgElementConfiguration = RulePlainConfiguration | RuleWithNoImgElementOptions;
|
|
87
|
+
export type NoNamespaceImportConfiguration = RulePlainConfiguration | RuleWithNoNamespaceImportOptions;
|
|
88
|
+
export type NoReExportAllConfiguration = RulePlainConfiguration | RuleWithNoReExportAllOptions;
|
|
89
|
+
export type NoUnwantedPolyfillioConfiguration = RulePlainConfiguration | RuleWithNoUnwantedPolyfillioOptions;
|
|
90
|
+
export type UseGoogleFontPreconnectConfiguration = RulePlainConfiguration | RuleWithUseGoogleFontPreconnectOptions;
|
|
91
|
+
export type UseSolidForComponentConfiguration = RulePlainConfiguration | RuleWithUseSolidForComponentOptions;
|
|
92
|
+
export type UseTopLevelRegexConfiguration = RulePlainConfiguration | RuleWithUseTopLevelRegexOptions;
|
|
93
|
+
export type NoBlankTargetConfiguration = RulePlainConfiguration | RuleWithNoBlankTargetOptions;
|
|
94
|
+
export type NoDangerouslySetInnerHtmlConfiguration = RulePlainConfiguration | RuleWithNoDangerouslySetInnerHtmlOptions;
|
|
95
|
+
export type NoDangerouslySetInnerHtmlWithChildrenConfiguration = RulePlainConfiguration | RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions;
|
|
96
|
+
export type NoGlobalEvalConfiguration = RulePlainConfiguration | RuleWithNoGlobalEvalOptions;
|
|
97
|
+
export type NoSecretsConfiguration = RulePlainConfiguration | RuleWithNoSecretsOptions;
|
|
98
|
+
export type NoCommonJsConfiguration = RulePlainConfiguration | RuleWithNoCommonJsOptions;
|
|
99
|
+
export type NoDefaultExportConfiguration = RulePlainConfiguration | RuleWithNoDefaultExportOptions;
|
|
100
|
+
export type NoDescendingSpecificityConfiguration = RulePlainConfiguration | RuleWithNoDescendingSpecificityOptions;
|
|
101
|
+
export type NoDoneCallbackConfiguration = RulePlainConfiguration | RuleWithNoDoneCallbackOptions;
|
|
102
|
+
export type NoEnumConfiguration = RulePlainConfiguration | RuleWithNoEnumOptions;
|
|
103
|
+
export type NoExportedImportsConfiguration = RulePlainConfiguration | RuleWithNoExportedImportsOptions;
|
|
104
|
+
export type NoHeadElementConfiguration = RulePlainConfiguration | RuleWithNoHeadElementOptions;
|
|
105
|
+
export type NoImplicitBooleanConfiguration = RulePlainConfiguration | RuleWithNoImplicitBooleanOptions;
|
|
106
|
+
export type NoInferrableTypesConfiguration = RulePlainConfiguration | RuleWithNoInferrableTypesOptions;
|
|
107
|
+
export type NoMagicNumbersConfiguration = RulePlainConfiguration | RuleWithNoMagicNumbersOptions;
|
|
108
|
+
export type NoNamespaceConfiguration = RulePlainConfiguration | RuleWithNoNamespaceOptions;
|
|
109
|
+
export type NoNegationElseConfiguration = RulePlainConfiguration | RuleWithNoNegationElseOptions;
|
|
110
|
+
export type NoNestedTernaryConfiguration = RulePlainConfiguration | RuleWithNoNestedTernaryOptions;
|
|
111
|
+
export type NoNonNullAssertionConfiguration = RulePlainConfiguration | RuleWithNoNonNullAssertionOptions;
|
|
112
|
+
export interface RuleWithNoParameterAssignOptions {
|
|
113
|
+
level: RulePlainConfiguration;
|
|
114
|
+
options?: NoParameterAssignOptions;
|
|
115
|
+
}
|
|
116
|
+
export type NoParameterPropertiesConfiguration = RulePlainConfiguration | RuleWithNoParameterPropertiesOptions;
|
|
117
|
+
export type NoProcessEnvConfiguration = RulePlainConfiguration | RuleWithNoProcessEnvOptions;
|
|
118
|
+
export type NoRestrictedGlobalsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedGlobalsOptions;
|
|
119
|
+
export interface NoRestrictedTypesOptions {
|
|
120
|
+
types?: {
|
|
121
|
+
[k: string]: CustomRestrictedType;
|
|
122
|
+
} | null;
|
|
123
|
+
}
|
|
124
|
+
export type NoShoutyConstantsConfiguration = RulePlainConfiguration | RuleWithNoShoutyConstantsOptions;
|
|
125
|
+
export type NoSubstrConfiguration = RulePlainConfiguration | RuleWithNoSubstrOptions;
|
|
126
|
+
export type NoUnusedTemplateLiteralConfiguration = RulePlainConfiguration | RuleWithNoUnusedTemplateLiteralOptions;
|
|
127
|
+
export type NoUselessElseConfiguration = RulePlainConfiguration | RuleWithNoUselessElseOptions;
|
|
128
|
+
export type NoValueAtRuleConfiguration = RulePlainConfiguration | RuleWithNoValueAtRuleOptions;
|
|
129
|
+
export type NoYodaExpressionConfiguration = RulePlainConfiguration | RuleWithNoYodaExpressionOptions;
|
|
130
|
+
export type UseArrayLiteralsConfiguration = RulePlainConfiguration | RuleWithUseArrayLiteralsOptions;
|
|
131
|
+
export type UseAsConstAssertionConfiguration = RulePlainConfiguration | RuleWithUseAsConstAssertionOptions;
|
|
132
|
+
export type UseAtIndexConfiguration = RulePlainConfiguration | RuleWithUseAtIndexOptions;
|
|
133
|
+
export type UseBlockStatementsConfiguration = RulePlainConfiguration | RuleWithUseBlockStatementsOptions;
|
|
134
|
+
export type UseCollapsedElseIfConfiguration = RulePlainConfiguration | RuleWithUseCollapsedElseIfOptions;
|
|
135
|
+
export type UseCollapsedIfConfiguration = RulePlainConfiguration | RuleWithUseCollapsedIfOptions;
|
|
136
|
+
export type UseComponentExportOnlyModulesConfiguration = RulePlainConfiguration | RuleWithUseComponentExportOnlyModulesOptions;
|
|
137
|
+
export interface RuleWithUseConsistentArrayTypeOptions {
|
|
138
|
+
fix?: FixKind | null;
|
|
139
|
+
level: RulePlainConfiguration;
|
|
140
|
+
options?: UseConsistentArrayTypeOptions;
|
|
141
|
+
}
|
|
142
|
+
export type UseConsistentBuiltinInstantiationConfiguration = RulePlainConfiguration | RuleWithUseConsistentBuiltinInstantiationOptions;
|
|
143
|
+
export type UseConsistentCurlyBracesConfiguration = RulePlainConfiguration | RuleWithUseConsistentCurlyBracesOptions;
|
|
144
|
+
export interface RuleWithUseConsistentMemberAccessibilityOptions {
|
|
145
|
+
level: RulePlainConfiguration;
|
|
146
|
+
options?: UseConsistentMemberAccessibilityOptions;
|
|
147
|
+
}
|
|
148
|
+
export interface RuleWithUseConsistentObjectDefinitionsOptions {
|
|
149
|
+
fix?: FixKind | null;
|
|
150
|
+
level: RulePlainConfiguration;
|
|
151
|
+
options?: UseConsistentObjectDefinitionsOptions;
|
|
152
|
+
}
|
|
153
|
+
export interface RuleWithUseConsistentTypeDefinitionsOptions {
|
|
154
|
+
fix?: FixKind | null;
|
|
155
|
+
level: RulePlainConfiguration;
|
|
156
|
+
options?: UseConsistentTypeDefinitionsOptions;
|
|
157
|
+
}
|
|
158
|
+
export type UseConstConfiguration = RulePlainConfiguration | RuleWithUseConstOptions;
|
|
159
|
+
export type UseDefaultParameterLastConfiguration = RulePlainConfiguration | RuleWithUseDefaultParameterLastOptions;
|
|
160
|
+
export type UseDefaultSwitchClauseConfiguration = RulePlainConfiguration | RuleWithUseDefaultSwitchClauseOptions;
|
|
161
|
+
export type UseDeprecatedReasonConfiguration = RulePlainConfiguration | RuleWithUseDeprecatedReasonOptions;
|
|
162
|
+
export type UseEnumInitializersConfiguration = RulePlainConfiguration | RuleWithUseEnumInitializersOptions;
|
|
163
|
+
export type UseExplicitLengthCheckConfiguration = RulePlainConfiguration | RuleWithUseExplicitLengthCheckOptions;
|
|
164
|
+
export type UseExponentiationOperatorConfiguration = RulePlainConfiguration | RuleWithUseExponentiationOperatorOptions;
|
|
165
|
+
export type UseExportTypeConfiguration = RulePlainConfiguration | RuleWithUseExportTypeOptions;
|
|
166
|
+
export type UseExportsLastConfiguration = RulePlainConfiguration | RuleWithUseExportsLastOptions;
|
|
167
|
+
export interface UseFilenamingConventionOptions {
|
|
168
|
+
/**
|
|
169
|
+
* Allowed cases for file names.
|
|
170
|
+
*/
|
|
171
|
+
filenameCases?: FilenameCases | null;
|
|
172
|
+
/**
|
|
173
|
+
* Regular expression to enforce
|
|
174
|
+
*/
|
|
175
|
+
match?: Regex | null;
|
|
176
|
+
/**
|
|
177
|
+
* If `false`, then non-ASCII characters are allowed.
|
|
178
|
+
*/
|
|
179
|
+
requireAscii?: boolean | null;
|
|
180
|
+
/**
|
|
181
|
+
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases.
|
|
182
|
+
* This does not affect other [Case].
|
|
183
|
+
*/
|
|
184
|
+
strictCase?: boolean | null;
|
|
185
|
+
}
|
|
@@ -1,29 +1,6 @@
|
|
|
1
1
|
import type { RulePlainConfiguration } from './schema.ts';
|
|
2
|
-
import type {
|
|
3
|
-
import type { Hook,
|
|
4
|
-
export type UseSemanticElementsConfiguration = RulePlainConfiguration | RuleWithUseSemanticElementsOptions;
|
|
5
|
-
export type UseValidAnchorConfiguration = RulePlainConfiguration | RuleWithUseValidAnchorOptions;
|
|
6
|
-
export type UseValidAriaPropsConfiguration = RulePlainConfiguration | RuleWithUseValidAriaPropsOptions;
|
|
7
|
-
export type UseValidAriaRoleConfiguration = RulePlainConfiguration | RuleWithUseValidAriaRoleOptions;
|
|
8
|
-
export type UseValidAriaValuesConfiguration = RulePlainConfiguration | RuleWithUseValidAriaValuesOptions;
|
|
9
|
-
export type UseValidAutocompleteConfiguration = RulePlainConfiguration | RuleWithUseValidAutocompleteOptions;
|
|
10
|
-
export type UseValidLangConfiguration = RulePlainConfiguration | RuleWithUseValidLangOptions;
|
|
11
|
-
export type NoAdjacentSpacesInRegexConfiguration = RulePlainConfiguration | RuleWithNoAdjacentSpacesInRegexOptions;
|
|
12
|
-
export type NoArgumentsConfiguration = RulePlainConfiguration | RuleWithNoArgumentsOptions;
|
|
13
|
-
export type NoBannedTypesConfiguration = RulePlainConfiguration | RuleWithNoBannedTypesOptions;
|
|
14
|
-
export type NoCommaOperatorConfiguration = RulePlainConfiguration | RuleWithNoCommaOperatorOptions;
|
|
15
|
-
export type NoEmptyTypeParametersConfiguration = RulePlainConfiguration | RuleWithNoEmptyTypeParametersOptions;
|
|
16
|
-
export type NoExcessiveCognitiveComplexityConfiguration = RulePlainConfiguration | RuleWithNoExcessiveCognitiveComplexityOptions;
|
|
17
|
-
export type NoExcessiveLinesPerFunctionConfiguration = RulePlainConfiguration | RuleWithNoExcessiveLinesPerFunctionOptions;
|
|
18
|
-
export type NoExcessiveNestedTestSuitesConfiguration = RulePlainConfiguration | RuleWithNoExcessiveNestedTestSuitesOptions;
|
|
19
|
-
export type NoExtraBooleanCastConfiguration = RulePlainConfiguration | RuleWithNoExtraBooleanCastOptions;
|
|
20
|
-
export type NoFlatMapIdentityConfiguration = RulePlainConfiguration | RuleWithNoFlatMapIdentityOptions;
|
|
21
|
-
export type NoForEachConfiguration = RulePlainConfiguration | RuleWithNoForEachOptions;
|
|
22
|
-
export type NoImplicitCoercionsConfiguration = RulePlainConfiguration | RuleWithNoImplicitCoercionsOptions;
|
|
23
|
-
export type NoImportantStylesConfiguration = RulePlainConfiguration | RuleWithNoImportantStylesOptions;
|
|
24
|
-
export type NoStaticOnlyClassConfiguration = RulePlainConfiguration | RuleWithNoStaticOnlyClassOptions;
|
|
25
|
-
export type NoThisInStaticConfiguration = RulePlainConfiguration | RuleWithNoThisInStaticOptions;
|
|
26
|
-
export type NoUselessCatchConfiguration = RulePlainConfiguration | RuleWithNoUselessCatchOptions;
|
|
2
|
+
import type { NoPrivateImportsOptions, NoRestrictedElementsOptions, NoUndeclaredDependenciesOptions, RuleWithNoChildrenPropOptions, RuleWithNoConstAssignOptions, RuleWithNoConstantConditionOptions, RuleWithNoConstantMathMinMaxClampOptions, RuleWithNoConstructorReturnOptions, RuleWithNoEmptyCharacterClassInRegexOptions, RuleWithNoEmptyPatternOptions, RuleWithNoGlobalDirnameFilenameOptions, RuleWithNoGlobalObjectCallsOptions, RuleWithNoInnerDeclarationsOptions, RuleWithNoInvalidBuiltinInstantiationOptions, RuleWithNoInvalidConstructorSuperOptions, RuleWithNoInvalidDirectionInLinearGradientOptions, RuleWithNoInvalidGridAreasOptions, RuleWithNoInvalidPositionAtImportRuleOptions, RuleWithNoInvalidUseBeforeDeclarationOptions, RuleWithNoMissingVarFunctionOptions, RuleWithNoNestedComponentDefinitionsOptions, RuleWithNoNodejsModulesOptions, RuleWithNoNonoctalDecimalEscapeOptions, RuleWithNoPrecisionLossOptions, RuleWithNoProcessGlobalOptions, RuleWithNoQwikUseVisibleTaskOptions, RuleWithNoReactPropAssignmentsOptions, RuleWithNoRenderReturnValueOptions, RuleWithNoSelfAssignOptions, RuleWithNoSetterReturnOptions, RuleWithNoSolidDestructuredPropsOptions, RuleWithNoStringCaseMismatchOptions, RuleWithNoSwitchDeclarationsOptions, RuleWithNoUndeclaredVariablesOptions, RuleWithNoUnknownFunctionOptions, RuleWithNoUnknownMediaFeatureNameOptions, RuleWithNoUnknownPropertyOptions, RuleWithNoUnknownPseudoClassOptions, RuleWithNoUnknownPseudoElementOptions, RuleWithNoUnknownTypeSelectorOptions, RuleWithNoUselessConstructorOptions, RuleWithNoUselessContinueOptions, RuleWithNoUselessEmptyExportOptions, RuleWithNoUselessEscapeInRegexOptions, RuleWithNoUselessFragmentsOptions, RuleWithNoUselessLabelOptions, RuleWithNoUselessLoneBlockStatementsOptions, RuleWithNoUselessRenameOptions, RuleWithNoUselessStringConcatOptions, RuleWithNoUselessStringRawOptions, RuleWithNoUselessSwitchCaseOptions, RuleWithNoUselessTernaryOptions, RuleWithNoUselessThisAliasOptions, RuleWithNoUselessTypeConstraintOptions, RuleWithNoUselessUndefinedInitializationOptions, RuleWithNoVoidOptions, RuleWithUseArrowFunctionOptions, RuleWithUseDateNowOptions, RuleWithUseFlatMapOptions, RuleWithUseIndexOfOptions, RuleWithUseLiteralKeysOptions, RuleWithUseNumericLiteralsOptions, RuleWithUseOptionalChainOptions, RuleWithUseRegexLiteralsOptions, RuleWithUseSimpleNumberKeysOptions, RuleWithUseSimplifiedLogicExpressionOptions, RuleWithUseWhileOptions } from './rule-with-no-access-key-options.ts';
|
|
3
|
+
import type { Hook, RuleWithNoAmbiguousAnchorTextOptions, RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions, RuleWithNoContinueOptions, RuleWithNoDeprecatedImportsOptions, RuleWithNoDuplicateDependenciesOptions, RuleWithNoDuplicatedSpreadPropsOptions, RuleWithNoEmptySourceOptions, RuleWithNoEqualsToNullOptions, RuleWithNoFloatingPromisesOptions, RuleWithNoForInOptions, RuleWithNoImportCyclesOptions, RuleWithNoIncrementDecrementOptions, RuleWithNoJsxLiteralsOptions, RuleWithNoJsxPropsBindOptions, RuleWithNoLeakedRenderOptions, RuleWithNoMisusedPromisesOptions, RuleWithNoMultiAssignOptions, RuleWithNoMultiStrOptions, RuleWithNoNextAsyncClientComponentOptions, RuleWithNoParametersOnlyUsedInRecursionOptions, RuleWithNoProtoOptions, RuleWithNoReactForwardRefOptions, RuleWithNoReturnAssignOptions, RuleWithNoScriptUrlOptions, RuleWithNoShadowOptions, RuleWithNoUnknownUnitOptions, RuleWithNoUnmatchableAnbSelectorOptions, RuleWithNoUnreachableOptions, RuleWithNoUnreachableSuperOptions, RuleWithNoUnsafeFinallyOptions, RuleWithNoUnsafeOptionalChainingOptions, RuleWithNoUnusedFunctionParametersOptions, RuleWithNoUnusedImportsOptions, RuleWithNoUnusedLabelsOptions, RuleWithNoUnusedPrivateClassMembersOptions, RuleWithNoUnusedVariablesOptions, RuleWithNoVoidElementsWithChildrenOptions, RuleWithNoVoidTypeReturnOptions, RuleWithUseGraphqlNamedOperationsOptions, RuleWithUseHookAtTopLevelOptions, RuleWithUseImageSizeOptions, RuleWithUseImportExtensionsOptions, RuleWithUseIsNanOptions, RuleWithUseJsonImportAttributesOptions, RuleWithUseJsxKeyInIterableOptions, RuleWithUseParseIntRadixOptions, RuleWithUseQwikClasslistOptions, RuleWithUseSingleJsDocAsteriskOptions, RuleWithUseUniqueElementIdsOptions, RuleWithUseValidForDirectionOptions, RuleWithUseValidTypeofOptions, RuleWithUseYieldOptions } from './rule-with-no-unknown-unit-options.ts';
|
|
27
4
|
export type NoUselessConstructorConfiguration = RulePlainConfiguration | RuleWithNoUselessConstructorOptions;
|
|
28
5
|
export type NoUselessContinueConfiguration = RulePlainConfiguration | RuleWithNoUselessContinueOptions;
|
|
29
6
|
export type NoUselessEmptyExportConfiguration = RulePlainConfiguration | RuleWithNoUselessEmptyExportOptions;
|
|
@@ -73,28 +50,16 @@ export type NoNodejsModulesConfiguration = RulePlainConfiguration | RuleWithNoNo
|
|
|
73
50
|
export type NoNonoctalDecimalEscapeConfiguration = RulePlainConfiguration | RuleWithNoNonoctalDecimalEscapeOptions;
|
|
74
51
|
export type NoPrecisionLossConfiguration = RulePlainConfiguration | RuleWithNoPrecisionLossOptions;
|
|
75
52
|
export interface RuleWithNoPrivateImportsOptions {
|
|
76
|
-
/**
|
|
77
|
-
* The severity of the emitted diagnostics by the rule
|
|
78
|
-
*/
|
|
79
53
|
level: RulePlainConfiguration;
|
|
80
|
-
|
|
81
|
-
* Rule's options
|
|
82
|
-
*/
|
|
83
|
-
options: NoPrivateImportsOptions;
|
|
54
|
+
options?: NoPrivateImportsOptions;
|
|
84
55
|
}
|
|
85
56
|
export type NoProcessGlobalConfiguration = RulePlainConfiguration | RuleWithNoProcessGlobalOptions;
|
|
86
57
|
export type NoQwikUseVisibleTaskConfiguration = RulePlainConfiguration | RuleWithNoQwikUseVisibleTaskOptions;
|
|
87
58
|
export type NoReactPropAssignmentsConfiguration = RulePlainConfiguration | RuleWithNoReactPropAssignmentsOptions;
|
|
88
59
|
export type NoRenderReturnValueConfiguration = RulePlainConfiguration | RuleWithNoRenderReturnValueOptions;
|
|
89
60
|
export interface RuleWithNoRestrictedElementsOptions {
|
|
90
|
-
/**
|
|
91
|
-
* The severity of the emitted diagnostics by the rule
|
|
92
|
-
*/
|
|
93
61
|
level: RulePlainConfiguration;
|
|
94
|
-
|
|
95
|
-
* Rule's options
|
|
96
|
-
*/
|
|
97
|
-
options: NoRestrictedElementsOptions;
|
|
62
|
+
options?: NoRestrictedElementsOptions;
|
|
98
63
|
}
|
|
99
64
|
export type NoSelfAssignConfiguration = RulePlainConfiguration | RuleWithNoSelfAssignOptions;
|
|
100
65
|
export type NoSetterReturnConfiguration = RulePlainConfiguration | RuleWithNoSetterReturnOptions;
|
|
@@ -102,14 +67,8 @@ export type NoSolidDestructuredPropsConfiguration = RulePlainConfiguration | Rul
|
|
|
102
67
|
export type NoStringCaseMismatchConfiguration = RulePlainConfiguration | RuleWithNoStringCaseMismatchOptions;
|
|
103
68
|
export type NoSwitchDeclarationsConfiguration = RulePlainConfiguration | RuleWithNoSwitchDeclarationsOptions;
|
|
104
69
|
export interface RuleWithNoUndeclaredDependenciesOptions {
|
|
105
|
-
/**
|
|
106
|
-
* The severity of the emitted diagnostics by the rule
|
|
107
|
-
*/
|
|
108
70
|
level: RulePlainConfiguration;
|
|
109
|
-
|
|
110
|
-
* Rule's options
|
|
111
|
-
*/
|
|
112
|
-
options: NoUndeclaredDependenciesOptions;
|
|
71
|
+
options?: NoUndeclaredDependenciesOptions;
|
|
113
72
|
}
|
|
114
73
|
export type NoUndeclaredVariablesConfiguration = RulePlainConfiguration | RuleWithNoUndeclaredVariablesOptions;
|
|
115
74
|
export type NoUnknownFunctionConfiguration = RulePlainConfiguration | RuleWithNoUnknownFunctionOptions;
|
|
@@ -135,15 +94,15 @@ export interface UseExhaustiveDependenciesOptions {
|
|
|
135
94
|
/**
|
|
136
95
|
* List of hooks of which the dependencies should be validated.
|
|
137
96
|
*/
|
|
138
|
-
hooks?: Hook[];
|
|
97
|
+
hooks?: Hook[] | null;
|
|
139
98
|
/**
|
|
140
99
|
* Whether to report an error when a hook has no dependencies array.
|
|
141
100
|
*/
|
|
142
|
-
reportMissingDependenciesArray?: boolean;
|
|
101
|
+
reportMissingDependenciesArray?: boolean | null;
|
|
143
102
|
/**
|
|
144
103
|
* Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.
|
|
145
104
|
*/
|
|
146
|
-
reportUnnecessaryDependencies?: boolean;
|
|
105
|
+
reportUnnecessaryDependencies?: boolean | null;
|
|
147
106
|
}
|
|
148
107
|
export type UseGraphqlNamedOperationsConfiguration = RulePlainConfiguration | RuleWithUseGraphqlNamedOperationsOptions;
|
|
149
108
|
export type UseHookAtTopLevelConfiguration = RulePlainConfiguration | RuleWithUseHookAtTopLevelOptions;
|
|
@@ -159,5 +118,28 @@ export type UseUniqueElementIdsConfiguration = RulePlainConfiguration | RuleWith
|
|
|
159
118
|
export type UseValidForDirectionConfiguration = RulePlainConfiguration | RuleWithUseValidForDirectionOptions;
|
|
160
119
|
export type UseValidTypeofConfiguration = RulePlainConfiguration | RuleWithUseValidTypeofOptions;
|
|
161
120
|
export type UseYieldConfiguration = RulePlainConfiguration | RuleWithUseYieldOptions;
|
|
121
|
+
export type NoAmbiguousAnchorTextConfiguration = RulePlainConfiguration | RuleWithNoAmbiguousAnchorTextOptions;
|
|
122
|
+
export type NoBeforeInteractiveScriptOutsideDocumentConfiguration = RulePlainConfiguration | RuleWithNoBeforeInteractiveScriptOutsideDocumentOptions;
|
|
123
|
+
export type NoContinueConfiguration = RulePlainConfiguration | RuleWithNoContinueOptions;
|
|
162
124
|
export type NoDeprecatedImportsConfiguration = RulePlainConfiguration | RuleWithNoDeprecatedImportsOptions;
|
|
163
125
|
export type NoDuplicateDependenciesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateDependenciesOptions;
|
|
126
|
+
export type NoDuplicatedSpreadPropsConfiguration = RulePlainConfiguration | RuleWithNoDuplicatedSpreadPropsOptions;
|
|
127
|
+
export type NoEmptySourceConfiguration = RulePlainConfiguration | RuleWithNoEmptySourceOptions;
|
|
128
|
+
export type NoEqualsToNullConfiguration = RulePlainConfiguration | RuleWithNoEqualsToNullOptions;
|
|
129
|
+
export type NoFloatingPromisesConfiguration = RulePlainConfiguration | RuleWithNoFloatingPromisesOptions;
|
|
130
|
+
export type NoForInConfiguration = RulePlainConfiguration | RuleWithNoForInOptions;
|
|
131
|
+
export type NoImportCyclesConfiguration = RulePlainConfiguration | RuleWithNoImportCyclesOptions;
|
|
132
|
+
export type NoIncrementDecrementConfiguration = RulePlainConfiguration | RuleWithNoIncrementDecrementOptions;
|
|
133
|
+
export type NoJsxLiteralsConfiguration = RulePlainConfiguration | RuleWithNoJsxLiteralsOptions;
|
|
134
|
+
export type NoJsxPropsBindConfiguration = RulePlainConfiguration | RuleWithNoJsxPropsBindOptions;
|
|
135
|
+
export type NoLeakedRenderConfiguration = RulePlainConfiguration | RuleWithNoLeakedRenderOptions;
|
|
136
|
+
export type NoMisusedPromisesConfiguration = RulePlainConfiguration | RuleWithNoMisusedPromisesOptions;
|
|
137
|
+
export type NoMultiAssignConfiguration = RulePlainConfiguration | RuleWithNoMultiAssignOptions;
|
|
138
|
+
export type NoMultiStrConfiguration = RulePlainConfiguration | RuleWithNoMultiStrOptions;
|
|
139
|
+
export type NoNextAsyncClientComponentConfiguration = RulePlainConfiguration | RuleWithNoNextAsyncClientComponentOptions;
|
|
140
|
+
export type NoParametersOnlyUsedInRecursionConfiguration = RulePlainConfiguration | RuleWithNoParametersOnlyUsedInRecursionOptions;
|
|
141
|
+
export type NoProtoConfiguration = RulePlainConfiguration | RuleWithNoProtoOptions;
|
|
142
|
+
export type NoReactForwardRefConfiguration = RulePlainConfiguration | RuleWithNoReactForwardRefOptions;
|
|
143
|
+
export type NoReturnAssignConfiguration = RulePlainConfiguration | RuleWithNoReturnAssignOptions;
|
|
144
|
+
export type NoScriptUrlConfiguration = RulePlainConfiguration | RuleWithNoScriptUrlOptions;
|
|
145
|
+
export type NoShadowConfiguration = RulePlainConfiguration | RuleWithNoShadowOptions;
|