@quentinhsu/biome-config 0.3.1 → 0.3.3
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/build.mjs +388 -0
- package/dist/index.jsonc +153 -0
- package/dist/index.mjs +358 -0
- package/dist/next.jsonc +170 -0
- package/dist/nuxt.jsonc +225 -0
- package/dist/react.jsonc +168 -0
- package/dist/types/scripts/build-presets.d.ts +1 -0
- package/dist/types/scripts/generate-biome-types.d.ts +1 -0
- package/dist/types/scripts/utils/biome-version.d.ts +12 -0
- package/dist/types/src/build.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -0
- package/dist/types/src/generated/biome/index.d.ts +11 -0
- package/dist/types/src/generated/biome/no-assign-in-expressions-configuration.d.ts +1002 -0
- package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +241 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +320 -0
- package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +1116 -0
- package/dist/types/src/generated/biome/no-non-null-assertion-options.d.ts +291 -0
- package/dist/types/src/generated/biome/nursery.d.ts +1023 -0
- package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +1148 -0
- package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +1440 -0
- package/dist/types/src/generated/biome/schema.d.ts +291 -0
- package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +1341 -0
- package/dist/types/src/generated/biome/use-semantic-elements-configuration.d.ts +163 -0
- package/dist/types/src/index.d.ts +15 -0
- package/dist/types/src/presets/next.d.ts +1 -0
- package/dist/types/src/presets/nuxt.d.ts +1 -0
- package/dist/types/src/presets/react.d.ts +1 -0
- package/dist/types/src/presets/vue.d.ts +1 -0
- package/dist/types/src/source/index.d.ts +2 -0
- package/dist/types/src/types.d.ts +1 -0
- package/dist/types/src/utils/merge.d.ts +2 -0
- package/dist/vue.jsonc +177 -0
- package/package.json +12 -11
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import type { FixKind, RulePlainConfiguration } from './schema.ts';
|
|
2
|
+
import type { Kind, Regex, Scope } from './no-non-null-assertion-options.ts';
|
|
3
|
+
import type { RuleWithNoEmptySourceOptions, RuleWithNoFloatingPromisesOptions, RuleWithNoImportCyclesOptions, RuleWithNoIncrementDecrementOptions, RuleWithNoJsxLiteralsOptions, RuleWithNoMisusedPromisesOptions, RuleWithNoNextAsyncClientComponentOptions, RuleWithNoReactForwardRefOptions, RuleWithNoShadowOptions, RuleWithNoUnnecessaryConditionsOptions, RuleWithNoUnresolvedImportsOptions, RuleWithNoUnusedExpressionsOptions, RuleWithNoUselessCatchBindingOptions, RuleWithNoUselessUndefinedOptions, RuleWithNoVueDataObjectDeclarationOptions, RuleWithNoVueDuplicateKeysOptions, RuleWithNoVueReservedKeysOptions, RuleWithNoVueReservedPropsOptions } from './rule-with-no-implicit-coercions-options.ts';
|
|
4
|
+
import type { CustomRestrictedType, FilenameCases, Modifiers, NoParameterAssignOptions, RuleWithNoAccumulatingSpreadOptions, RuleWithNoAlertOptions, RuleWithNoApproximativeNumericConstantOptions, RuleWithNoArrayIndexKeyOptions, RuleWithNoAwaitInLoopsOptions, RuleWithNoBarrelFileOptions, RuleWithNoBlankTargetOptions, RuleWithNoCommonJsOptions, RuleWithNoDangerouslySetInnerHtmlOptions, RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions, RuleWithNoDefaultExportOptions, RuleWithNoDeleteOptions, RuleWithNoDescendingSpecificityOptions, RuleWithNoDoneCallbackOptions, RuleWithNoDynamicNamespaceImportAccessOptions, RuleWithNoEnumOptions, RuleWithNoExportedImportsOptions, RuleWithNoGlobalEvalOptions, RuleWithNoHeadElementOptions, RuleWithNoImgElementOptions, RuleWithNoImplicitBooleanOptions, RuleWithNoInferrableTypesOptions, RuleWithNoMagicNumbersOptions, RuleWithNoNamespaceImportOptions, RuleWithNoNamespaceOptions, RuleWithNoNegationElseOptions, RuleWithNoNestedTernaryOptions, RuleWithNoNonNullAssertionOptions, RuleWithNoParameterPropertiesOptions, RuleWithNoProcessEnvOptions, RuleWithNoReExportAllOptions, RuleWithNoRestrictedGlobalsOptions, RuleWithNoSecretsOptions, RuleWithNoShoutyConstantsOptions, RuleWithNoSubstrOptions, RuleWithNoUnusedTemplateLiteralOptions, RuleWithNoUnwantedPolyfillioOptions, RuleWithNoUselessElseOptions, RuleWithNoValueAtRuleOptions, RuleWithNoYodaExpressionOptions, RuleWithUseArrayLiteralsOptions, RuleWithUseAsConstAssertionOptions, RuleWithUseAtIndexOptions, RuleWithUseBlockStatementsOptions, RuleWithUseCollapsedElseIfOptions, RuleWithUseCollapsedIfOptions, RuleWithUseComponentExportOnlyModulesOptions, RuleWithUseConsistentBuiltinInstantiationOptions, RuleWithUseConsistentCurlyBracesOptions, RuleWithUseConstOptions, RuleWithUseDefaultParameterLastOptions, RuleWithUseDefaultSwitchClauseOptions, RuleWithUseDeprecatedDateOptions, RuleWithUseDeprecatedReasonOptions, RuleWithUseEnumInitializersOptions, RuleWithUseExhaustiveSwitchCasesOptions, RuleWithUseExplicitLengthCheckOptions, RuleWithUseExplicitTypeOptions, RuleWithUseExponentiationOperatorOptions, RuleWithUseExportTypeOptions, RuleWithUseExportsLastOptions, RuleWithUseForOfOptions, RuleWithUseFragmentSyntaxOptions, RuleWithUseGoogleFontPreconnectOptions, RuleWithUseGraphqlNamingConventionOptions, RuleWithUseGroupedAccessorPairsOptions, RuleWithUseLiteralEnumMembersOptions, RuleWithUseMaxParamsOptions, RuleWithUseNodeAssertStrictOptions, RuleWithUseNodejsImportProtocolOptions, RuleWithUseNumberNamespaceOptions, RuleWithUseNumericSeparatorsOptions, RuleWithUseObjectSpreadOptions, RuleWithUseQwikMethodUsageOptions, RuleWithUseQwikValidLexicalScopeOptions, RuleWithUseReactFunctionComponentsOptions, RuleWithUseReadonlyClassPropertiesOptions, RuleWithUseSelfClosingElementsOptions, RuleWithUseShorthandAssignOptions, RuleWithUseShorthandFunctionTypeOptions, RuleWithUseSingleVarDeclaratorOptions, RuleWithUseSolidForComponentOptions, RuleWithUseSortedClassesOptions, RuleWithUseSymbolDescriptionOptions, RuleWithUseTemplateOptions, RuleWithUseThrowNewErrorOptions, RuleWithUseThrowOnlyErrorOptions, RuleWithUseTopLevelRegexOptions, RuleWithUseTrimStartEndOptions, RuleWithUseUnifiedTypeSignaturesOptions, RuleWithUseVueDefineMacrosOrderOptions, RuleWithUseVueMultiWordComponentNamesOptions, UseConsistentArrayTypeOptions, UseConsistentArrowReturnOptions, UseConsistentMemberAccessibilityOptions, UseConsistentObjectDefinitionsOptions, UseConsistentTypeDefinitionsOptions, UseImportTypeOptions } from './use-consistent-arrow-return-options.ts';
|
|
5
|
+
export type NoEmptySourceConfiguration = RulePlainConfiguration | RuleWithNoEmptySourceOptions;
|
|
6
|
+
export type NoFloatingPromisesConfiguration = RulePlainConfiguration | RuleWithNoFloatingPromisesOptions;
|
|
7
|
+
export type NoImportCyclesConfiguration = RulePlainConfiguration | RuleWithNoImportCyclesOptions;
|
|
8
|
+
export type NoIncrementDecrementConfiguration = RulePlainConfiguration | RuleWithNoIncrementDecrementOptions;
|
|
9
|
+
export type NoJsxLiteralsConfiguration = RulePlainConfiguration | RuleWithNoJsxLiteralsOptions;
|
|
10
|
+
export type NoMisusedPromisesConfiguration = RulePlainConfiguration | RuleWithNoMisusedPromisesOptions;
|
|
11
|
+
export type NoNextAsyncClientComponentConfiguration = RulePlainConfiguration | RuleWithNoNextAsyncClientComponentOptions;
|
|
12
|
+
export type NoReactForwardRefConfiguration = RulePlainConfiguration | RuleWithNoReactForwardRefOptions;
|
|
13
|
+
export type NoShadowConfiguration = RulePlainConfiguration | RuleWithNoShadowOptions;
|
|
14
|
+
export type NoUnnecessaryConditionsConfiguration = RulePlainConfiguration | RuleWithNoUnnecessaryConditionsOptions;
|
|
15
|
+
export type NoUnresolvedImportsConfiguration = RulePlainConfiguration | RuleWithNoUnresolvedImportsOptions;
|
|
16
|
+
export type NoUnusedExpressionsConfiguration = RulePlainConfiguration | RuleWithNoUnusedExpressionsOptions;
|
|
17
|
+
export type NoUselessCatchBindingConfiguration = RulePlainConfiguration | RuleWithNoUselessCatchBindingOptions;
|
|
18
|
+
export type NoUselessUndefinedConfiguration = RulePlainConfiguration | RuleWithNoUselessUndefinedOptions;
|
|
19
|
+
export type NoVueDataObjectDeclarationConfiguration = RulePlainConfiguration | RuleWithNoVueDataObjectDeclarationOptions;
|
|
20
|
+
export type NoVueDuplicateKeysConfiguration = RulePlainConfiguration | RuleWithNoVueDuplicateKeysOptions;
|
|
21
|
+
export type NoVueReservedKeysConfiguration = RulePlainConfiguration | RuleWithNoVueReservedKeysOptions;
|
|
22
|
+
export type NoVueReservedPropsConfiguration = RulePlainConfiguration | RuleWithNoVueReservedPropsOptions;
|
|
23
|
+
export interface RuleWithUseConsistentArrowReturnOptions {
|
|
24
|
+
/**
|
|
25
|
+
* The kind of the code actions emitted by the rule
|
|
26
|
+
*/
|
|
27
|
+
fix?: FixKind | null;
|
|
28
|
+
/**
|
|
29
|
+
* The severity of the emitted diagnostics by the rule
|
|
30
|
+
*/
|
|
31
|
+
level: RulePlainConfiguration;
|
|
32
|
+
/**
|
|
33
|
+
* Rule's options
|
|
34
|
+
*/
|
|
35
|
+
options: UseConsistentArrowReturnOptions;
|
|
36
|
+
}
|
|
37
|
+
export type UseDeprecatedDateConfiguration = RulePlainConfiguration | RuleWithUseDeprecatedDateOptions;
|
|
38
|
+
export type UseExhaustiveSwitchCasesConfiguration = RulePlainConfiguration | RuleWithUseExhaustiveSwitchCasesOptions;
|
|
39
|
+
export type UseExplicitTypeConfiguration = RulePlainConfiguration | RuleWithUseExplicitTypeOptions;
|
|
40
|
+
export type UseMaxParamsConfiguration = RulePlainConfiguration | RuleWithUseMaxParamsOptions;
|
|
41
|
+
export type UseQwikMethodUsageConfiguration = RulePlainConfiguration | RuleWithUseQwikMethodUsageOptions;
|
|
42
|
+
export type UseQwikValidLexicalScopeConfiguration = RulePlainConfiguration | RuleWithUseQwikValidLexicalScopeOptions;
|
|
43
|
+
export type UseSortedClassesConfiguration = RulePlainConfiguration | RuleWithUseSortedClassesOptions;
|
|
44
|
+
export type UseVueDefineMacrosOrderConfiguration = RulePlainConfiguration | RuleWithUseVueDefineMacrosOrderOptions;
|
|
45
|
+
export type UseVueMultiWordComponentNamesConfiguration = RulePlainConfiguration | RuleWithUseVueMultiWordComponentNamesOptions;
|
|
46
|
+
export type NoAccumulatingSpreadConfiguration = RulePlainConfiguration | RuleWithNoAccumulatingSpreadOptions;
|
|
47
|
+
export type NoAwaitInLoopsConfiguration = RulePlainConfiguration | RuleWithNoAwaitInLoopsOptions;
|
|
48
|
+
export type NoBarrelFileConfiguration = RulePlainConfiguration | RuleWithNoBarrelFileOptions;
|
|
49
|
+
export type NoDeleteConfiguration = RulePlainConfiguration | RuleWithNoDeleteOptions;
|
|
50
|
+
export type NoDynamicNamespaceImportAccessConfiguration = RulePlainConfiguration | RuleWithNoDynamicNamespaceImportAccessOptions;
|
|
51
|
+
export type NoImgElementConfiguration = RulePlainConfiguration | RuleWithNoImgElementOptions;
|
|
52
|
+
export type NoNamespaceImportConfiguration = RulePlainConfiguration | RuleWithNoNamespaceImportOptions;
|
|
53
|
+
export type NoReExportAllConfiguration = RulePlainConfiguration | RuleWithNoReExportAllOptions;
|
|
54
|
+
export type NoUnwantedPolyfillioConfiguration = RulePlainConfiguration | RuleWithNoUnwantedPolyfillioOptions;
|
|
55
|
+
export type UseGoogleFontPreconnectConfiguration = RulePlainConfiguration | RuleWithUseGoogleFontPreconnectOptions;
|
|
56
|
+
export type UseSolidForComponentConfiguration = RulePlainConfiguration | RuleWithUseSolidForComponentOptions;
|
|
57
|
+
export type UseTopLevelRegexConfiguration = RulePlainConfiguration | RuleWithUseTopLevelRegexOptions;
|
|
58
|
+
export type NoBlankTargetConfiguration = RulePlainConfiguration | RuleWithNoBlankTargetOptions;
|
|
59
|
+
export type NoDangerouslySetInnerHtmlConfiguration = RulePlainConfiguration | RuleWithNoDangerouslySetInnerHtmlOptions;
|
|
60
|
+
export type NoDangerouslySetInnerHtmlWithChildrenConfiguration = RulePlainConfiguration | RuleWithNoDangerouslySetInnerHtmlWithChildrenOptions;
|
|
61
|
+
export type NoGlobalEvalConfiguration = RulePlainConfiguration | RuleWithNoGlobalEvalOptions;
|
|
62
|
+
export type NoSecretsConfiguration = RulePlainConfiguration | RuleWithNoSecretsOptions;
|
|
63
|
+
export type NoCommonJsConfiguration = RulePlainConfiguration | RuleWithNoCommonJsOptions;
|
|
64
|
+
export type NoDefaultExportConfiguration = RulePlainConfiguration | RuleWithNoDefaultExportOptions;
|
|
65
|
+
export type NoDescendingSpecificityConfiguration = RulePlainConfiguration | RuleWithNoDescendingSpecificityOptions;
|
|
66
|
+
export type NoDoneCallbackConfiguration = RulePlainConfiguration | RuleWithNoDoneCallbackOptions;
|
|
67
|
+
export type NoEnumConfiguration = RulePlainConfiguration | RuleWithNoEnumOptions;
|
|
68
|
+
export type NoExportedImportsConfiguration = RulePlainConfiguration | RuleWithNoExportedImportsOptions;
|
|
69
|
+
export type NoHeadElementConfiguration = RulePlainConfiguration | RuleWithNoHeadElementOptions;
|
|
70
|
+
export type NoImplicitBooleanConfiguration = RulePlainConfiguration | RuleWithNoImplicitBooleanOptions;
|
|
71
|
+
export type NoInferrableTypesConfiguration = RulePlainConfiguration | RuleWithNoInferrableTypesOptions;
|
|
72
|
+
export type NoMagicNumbersConfiguration = RulePlainConfiguration | RuleWithNoMagicNumbersOptions;
|
|
73
|
+
export type NoNamespaceConfiguration = RulePlainConfiguration | RuleWithNoNamespaceOptions;
|
|
74
|
+
export type NoNegationElseConfiguration = RulePlainConfiguration | RuleWithNoNegationElseOptions;
|
|
75
|
+
export type NoNestedTernaryConfiguration = RulePlainConfiguration | RuleWithNoNestedTernaryOptions;
|
|
76
|
+
export type NoNonNullAssertionConfiguration = RulePlainConfiguration | RuleWithNoNonNullAssertionOptions;
|
|
77
|
+
export interface RuleWithNoParameterAssignOptions {
|
|
78
|
+
/**
|
|
79
|
+
* The severity of the emitted diagnostics by the rule
|
|
80
|
+
*/
|
|
81
|
+
level: RulePlainConfiguration;
|
|
82
|
+
/**
|
|
83
|
+
* Rule's options
|
|
84
|
+
*/
|
|
85
|
+
options: NoParameterAssignOptions;
|
|
86
|
+
}
|
|
87
|
+
export type NoParameterPropertiesConfiguration = RulePlainConfiguration | RuleWithNoParameterPropertiesOptions;
|
|
88
|
+
export type NoProcessEnvConfiguration = RulePlainConfiguration | RuleWithNoProcessEnvOptions;
|
|
89
|
+
export type NoRestrictedGlobalsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedGlobalsOptions;
|
|
90
|
+
export interface NoRestrictedTypesOptions {
|
|
91
|
+
types?: {
|
|
92
|
+
[k: string]: CustomRestrictedType;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
export type NoShoutyConstantsConfiguration = RulePlainConfiguration | RuleWithNoShoutyConstantsOptions;
|
|
96
|
+
export type NoSubstrConfiguration = RulePlainConfiguration | RuleWithNoSubstrOptions;
|
|
97
|
+
export type NoUnusedTemplateLiteralConfiguration = RulePlainConfiguration | RuleWithNoUnusedTemplateLiteralOptions;
|
|
98
|
+
export type NoUselessElseConfiguration = RulePlainConfiguration | RuleWithNoUselessElseOptions;
|
|
99
|
+
export type NoValueAtRuleConfiguration = RulePlainConfiguration | RuleWithNoValueAtRuleOptions;
|
|
100
|
+
export type NoYodaExpressionConfiguration = RulePlainConfiguration | RuleWithNoYodaExpressionOptions;
|
|
101
|
+
export type UseArrayLiteralsConfiguration = RulePlainConfiguration | RuleWithUseArrayLiteralsOptions;
|
|
102
|
+
export type UseAsConstAssertionConfiguration = RulePlainConfiguration | RuleWithUseAsConstAssertionOptions;
|
|
103
|
+
export type UseAtIndexConfiguration = RulePlainConfiguration | RuleWithUseAtIndexOptions;
|
|
104
|
+
export type UseBlockStatementsConfiguration = RulePlainConfiguration | RuleWithUseBlockStatementsOptions;
|
|
105
|
+
export type UseCollapsedElseIfConfiguration = RulePlainConfiguration | RuleWithUseCollapsedElseIfOptions;
|
|
106
|
+
export type UseCollapsedIfConfiguration = RulePlainConfiguration | RuleWithUseCollapsedIfOptions;
|
|
107
|
+
export type UseComponentExportOnlyModulesConfiguration = RulePlainConfiguration | RuleWithUseComponentExportOnlyModulesOptions;
|
|
108
|
+
export interface RuleWithUseConsistentArrayTypeOptions {
|
|
109
|
+
/**
|
|
110
|
+
* The kind of the code actions emitted by the rule
|
|
111
|
+
*/
|
|
112
|
+
fix?: FixKind | null;
|
|
113
|
+
/**
|
|
114
|
+
* The severity of the emitted diagnostics by the rule
|
|
115
|
+
*/
|
|
116
|
+
level: RulePlainConfiguration;
|
|
117
|
+
/**
|
|
118
|
+
* Rule's options
|
|
119
|
+
*/
|
|
120
|
+
options: UseConsistentArrayTypeOptions;
|
|
121
|
+
}
|
|
122
|
+
export type UseConsistentBuiltinInstantiationConfiguration = RulePlainConfiguration | RuleWithUseConsistentBuiltinInstantiationOptions;
|
|
123
|
+
export type UseConsistentCurlyBracesConfiguration = RulePlainConfiguration | RuleWithUseConsistentCurlyBracesOptions;
|
|
124
|
+
export interface RuleWithUseConsistentMemberAccessibilityOptions {
|
|
125
|
+
/**
|
|
126
|
+
* The severity of the emitted diagnostics by the rule
|
|
127
|
+
*/
|
|
128
|
+
level: RulePlainConfiguration;
|
|
129
|
+
/**
|
|
130
|
+
* Rule's options
|
|
131
|
+
*/
|
|
132
|
+
options: UseConsistentMemberAccessibilityOptions;
|
|
133
|
+
}
|
|
134
|
+
export interface RuleWithUseConsistentObjectDefinitionsOptions {
|
|
135
|
+
/**
|
|
136
|
+
* The kind of the code actions emitted by the rule
|
|
137
|
+
*/
|
|
138
|
+
fix?: FixKind | null;
|
|
139
|
+
/**
|
|
140
|
+
* The severity of the emitted diagnostics by the rule
|
|
141
|
+
*/
|
|
142
|
+
level: RulePlainConfiguration;
|
|
143
|
+
/**
|
|
144
|
+
* Rule's options
|
|
145
|
+
*/
|
|
146
|
+
options: UseConsistentObjectDefinitionsOptions;
|
|
147
|
+
}
|
|
148
|
+
export interface RuleWithUseConsistentTypeDefinitionsOptions {
|
|
149
|
+
/**
|
|
150
|
+
* The kind of the code actions emitted by the rule
|
|
151
|
+
*/
|
|
152
|
+
fix?: FixKind | null;
|
|
153
|
+
/**
|
|
154
|
+
* The severity of the emitted diagnostics by the rule
|
|
155
|
+
*/
|
|
156
|
+
level: RulePlainConfiguration;
|
|
157
|
+
/**
|
|
158
|
+
* Rule's options
|
|
159
|
+
*/
|
|
160
|
+
options: UseConsistentTypeDefinitionsOptions;
|
|
161
|
+
}
|
|
162
|
+
export type UseConstConfiguration = RulePlainConfiguration | RuleWithUseConstOptions;
|
|
163
|
+
export type UseDefaultParameterLastConfiguration = RulePlainConfiguration | RuleWithUseDefaultParameterLastOptions;
|
|
164
|
+
export type UseDefaultSwitchClauseConfiguration = RulePlainConfiguration | RuleWithUseDefaultSwitchClauseOptions;
|
|
165
|
+
export type UseDeprecatedReasonConfiguration = RulePlainConfiguration | RuleWithUseDeprecatedReasonOptions;
|
|
166
|
+
export type UseEnumInitializersConfiguration = RulePlainConfiguration | RuleWithUseEnumInitializersOptions;
|
|
167
|
+
export type UseExplicitLengthCheckConfiguration = RulePlainConfiguration | RuleWithUseExplicitLengthCheckOptions;
|
|
168
|
+
export type UseExponentiationOperatorConfiguration = RulePlainConfiguration | RuleWithUseExponentiationOperatorOptions;
|
|
169
|
+
export type UseExportTypeConfiguration = RulePlainConfiguration | RuleWithUseExportTypeOptions;
|
|
170
|
+
export type UseExportsLastConfiguration = RulePlainConfiguration | RuleWithUseExportsLastOptions;
|
|
171
|
+
export interface UseFilenamingConventionOptions {
|
|
172
|
+
/**
|
|
173
|
+
* Allowed cases for file names.
|
|
174
|
+
*/
|
|
175
|
+
filenameCases?: FilenameCases;
|
|
176
|
+
/**
|
|
177
|
+
* Regular expression to enforce
|
|
178
|
+
*/
|
|
179
|
+
match?: Regex | null;
|
|
180
|
+
/**
|
|
181
|
+
* If `false`, then non-ASCII characters are allowed.
|
|
182
|
+
*/
|
|
183
|
+
requireAscii?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
|
|
186
|
+
*/
|
|
187
|
+
strictCase?: boolean;
|
|
188
|
+
}
|
|
189
|
+
export type UseForOfConfiguration = RulePlainConfiguration | RuleWithUseForOfOptions;
|
|
190
|
+
export type UseFragmentSyntaxConfiguration = RulePlainConfiguration | RuleWithUseFragmentSyntaxOptions;
|
|
191
|
+
export type UseGraphqlNamingConventionConfiguration = RulePlainConfiguration | RuleWithUseGraphqlNamingConventionOptions;
|
|
192
|
+
export type UseGroupedAccessorPairsConfiguration = RulePlainConfiguration | RuleWithUseGroupedAccessorPairsOptions;
|
|
193
|
+
export interface RuleWithUseImportTypeOptions {
|
|
194
|
+
/**
|
|
195
|
+
* The kind of the code actions emitted by the rule
|
|
196
|
+
*/
|
|
197
|
+
fix?: FixKind | null;
|
|
198
|
+
/**
|
|
199
|
+
* The severity of the emitted diagnostics by the rule
|
|
200
|
+
*/
|
|
201
|
+
level: RulePlainConfiguration;
|
|
202
|
+
/**
|
|
203
|
+
* Rule's options
|
|
204
|
+
*/
|
|
205
|
+
options: UseImportTypeOptions;
|
|
206
|
+
}
|
|
207
|
+
export type UseLiteralEnumMembersConfiguration = RulePlainConfiguration | RuleWithUseLiteralEnumMembersOptions;
|
|
208
|
+
export interface Selector {
|
|
209
|
+
/**
|
|
210
|
+
* Declaration kind
|
|
211
|
+
*/
|
|
212
|
+
kind?: Kind;
|
|
213
|
+
/**
|
|
214
|
+
* Modifiers used on the declaration
|
|
215
|
+
*/
|
|
216
|
+
modifiers?: Modifiers;
|
|
217
|
+
/**
|
|
218
|
+
* Scope of the declaration
|
|
219
|
+
*/
|
|
220
|
+
scope?: Scope;
|
|
221
|
+
}
|
|
222
|
+
export type UseNodeAssertStrictConfiguration = RulePlainConfiguration | RuleWithUseNodeAssertStrictOptions;
|
|
223
|
+
export type UseNodejsImportProtocolConfiguration = RulePlainConfiguration | RuleWithUseNodejsImportProtocolOptions;
|
|
224
|
+
export type UseNumberNamespaceConfiguration = RulePlainConfiguration | RuleWithUseNumberNamespaceOptions;
|
|
225
|
+
export type UseNumericSeparatorsConfiguration = RulePlainConfiguration | RuleWithUseNumericSeparatorsOptions;
|
|
226
|
+
export type UseObjectSpreadConfiguration = RulePlainConfiguration | RuleWithUseObjectSpreadOptions;
|
|
227
|
+
export type UseReactFunctionComponentsConfiguration = RulePlainConfiguration | RuleWithUseReactFunctionComponentsOptions;
|
|
228
|
+
export type UseReadonlyClassPropertiesConfiguration = RulePlainConfiguration | RuleWithUseReadonlyClassPropertiesOptions;
|
|
229
|
+
export type UseSelfClosingElementsConfiguration = RulePlainConfiguration | RuleWithUseSelfClosingElementsOptions;
|
|
230
|
+
export type UseShorthandAssignConfiguration = RulePlainConfiguration | RuleWithUseShorthandAssignOptions;
|
|
231
|
+
export type UseShorthandFunctionTypeConfiguration = RulePlainConfiguration | RuleWithUseShorthandFunctionTypeOptions;
|
|
232
|
+
export type UseSingleVarDeclaratorConfiguration = RulePlainConfiguration | RuleWithUseSingleVarDeclaratorOptions;
|
|
233
|
+
export type UseSymbolDescriptionConfiguration = RulePlainConfiguration | RuleWithUseSymbolDescriptionOptions;
|
|
234
|
+
export type UseTemplateConfiguration = RulePlainConfiguration | RuleWithUseTemplateOptions;
|
|
235
|
+
export type UseThrowNewErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowNewErrorOptions;
|
|
236
|
+
export type UseThrowOnlyErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowOnlyErrorOptions;
|
|
237
|
+
export type UseTrimStartEndConfiguration = RulePlainConfiguration | RuleWithUseTrimStartEndOptions;
|
|
238
|
+
export type UseUnifiedTypeSignaturesConfiguration = RulePlainConfiguration | RuleWithUseUnifiedTypeSignaturesOptions;
|
|
239
|
+
export type NoAlertConfiguration = RulePlainConfiguration | RuleWithNoAlertOptions;
|
|
240
|
+
export type NoApproximativeNumericConstantConfiguration = RulePlainConfiguration | RuleWithNoApproximativeNumericConstantOptions;
|
|
241
|
+
export type NoArrayIndexKeyConfiguration = RulePlainConfiguration | RuleWithNoArrayIndexKeyOptions;
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
export interface NoGlobalObjectCallsOptions {
|
|
2
|
+
}
|
|
3
|
+
export interface NoInnerDeclarationsOptions {
|
|
4
|
+
}
|
|
5
|
+
export interface NoInvalidBuiltinInstantiationOptions {
|
|
6
|
+
}
|
|
7
|
+
export interface NoInvalidConstructorSuperOptions {
|
|
8
|
+
}
|
|
9
|
+
export interface NoInvalidDirectionInLinearGradientOptions {
|
|
10
|
+
}
|
|
11
|
+
export interface NoInvalidGridAreasOptions {
|
|
12
|
+
}
|
|
13
|
+
export interface NoInvalidPositionAtImportRuleOptions {
|
|
14
|
+
}
|
|
15
|
+
export interface NoInvalidUseBeforeDeclarationOptions {
|
|
16
|
+
}
|
|
17
|
+
export interface NoMissingVarFunctionOptions {
|
|
18
|
+
}
|
|
19
|
+
export interface NoNestedComponentDefinitionsOptions {
|
|
20
|
+
}
|
|
21
|
+
export interface NoNodejsModulesOptions {
|
|
22
|
+
}
|
|
23
|
+
export interface NoNonoctalDecimalEscapeOptions {
|
|
24
|
+
}
|
|
25
|
+
export interface NoPrecisionLossOptions {
|
|
26
|
+
}
|
|
27
|
+
export type Visibility = 'public' | 'package' | 'private';
|
|
28
|
+
export interface NoProcessGlobalOptions {
|
|
29
|
+
}
|
|
30
|
+
export interface NoQwikUseVisibleTaskOptions {
|
|
31
|
+
}
|
|
32
|
+
export interface NoReactPropAssignmentsOptions {
|
|
33
|
+
}
|
|
34
|
+
export interface NoRenderReturnValueOptions {
|
|
35
|
+
}
|
|
36
|
+
export interface CustomRestrictedElements {
|
|
37
|
+
[k: string]: string;
|
|
38
|
+
}
|
|
39
|
+
export interface NoSelfAssignOptions {
|
|
40
|
+
}
|
|
41
|
+
export interface NoSetterReturnOptions {
|
|
42
|
+
}
|
|
43
|
+
export interface NoSolidDestructuredPropsOptions {
|
|
44
|
+
}
|
|
45
|
+
export interface NoStringCaseMismatchOptions {
|
|
46
|
+
}
|
|
47
|
+
export interface NoSwitchDeclarationsOptions {
|
|
48
|
+
}
|
|
49
|
+
export type DependencyAvailability = boolean | [string, ...string[]];
|
|
50
|
+
export interface NoUndeclaredVariablesOptions {
|
|
51
|
+
/**
|
|
52
|
+
* Check undeclared types.
|
|
53
|
+
*/
|
|
54
|
+
checkTypes?: boolean;
|
|
55
|
+
}
|
|
56
|
+
export interface NoUnknownFunctionOptions {
|
|
57
|
+
}
|
|
58
|
+
export interface NoUnknownMediaFeatureNameOptions {
|
|
59
|
+
}
|
|
60
|
+
export interface NoUnknownPropertyOptions {
|
|
61
|
+
}
|
|
62
|
+
export interface NoUnknownPseudoClassOptions {
|
|
63
|
+
}
|
|
64
|
+
export interface NoUnknownPseudoElementOptions {
|
|
65
|
+
}
|
|
66
|
+
export interface NoUnknownTypeSelectorOptions {
|
|
67
|
+
}
|
|
68
|
+
export interface NoUnknownUnitOptions {
|
|
69
|
+
}
|
|
70
|
+
export interface NoUnmatchableAnbSelectorOptions {
|
|
71
|
+
}
|
|
72
|
+
export interface NoUnreachableOptions {
|
|
73
|
+
}
|
|
74
|
+
export interface NoUnreachableSuperOptions {
|
|
75
|
+
}
|
|
76
|
+
export interface NoUnsafeFinallyOptions {
|
|
77
|
+
}
|
|
78
|
+
export interface NoUnsafeOptionalChainingOptions {
|
|
79
|
+
}
|
|
80
|
+
export interface NoUnusedFunctionParametersOptions {
|
|
81
|
+
/**
|
|
82
|
+
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
83
|
+
*/
|
|
84
|
+
ignoreRestSiblings?: boolean;
|
|
85
|
+
}
|
|
86
|
+
export interface NoUnusedImportsOptions {
|
|
87
|
+
}
|
|
88
|
+
export interface NoUnusedLabelsOptions {
|
|
89
|
+
}
|
|
90
|
+
export interface NoUnusedPrivateClassMembersOptions {
|
|
91
|
+
}
|
|
92
|
+
export interface NoUnusedVariablesOptions {
|
|
93
|
+
/**
|
|
94
|
+
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
95
|
+
*/
|
|
96
|
+
ignoreRestSiblings?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface NoVoidElementsWithChildrenOptions {
|
|
99
|
+
}
|
|
100
|
+
export interface NoVoidTypeReturnOptions {
|
|
101
|
+
}
|
|
102
|
+
export type StableHookResult = boolean | [number, ...number[]] | [string, ...string[]];
|
|
103
|
+
export interface UseGraphqlNamedOperationsOptions {
|
|
104
|
+
}
|
|
105
|
+
export interface UseHookAtTopLevelOptions {
|
|
106
|
+
}
|
|
107
|
+
export type UseImageSizeOptions = null;
|
|
108
|
+
export interface UseImportExtensionsOptions {
|
|
109
|
+
/**
|
|
110
|
+
* If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.
|
|
111
|
+
*/
|
|
112
|
+
forceJsExtensions?: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface UseIsNanOptions {
|
|
115
|
+
}
|
|
116
|
+
export interface UseJsonImportAttributesOptions {
|
|
117
|
+
}
|
|
118
|
+
export interface UseJsxKeyInIterableOptions {
|
|
119
|
+
/**
|
|
120
|
+
* Set to `true` to check shorthand fragments (`<></>`)
|
|
121
|
+
*/
|
|
122
|
+
checkShorthandFragments?: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface UseParseIntRadixOptions {
|
|
125
|
+
}
|
|
126
|
+
export interface UseQwikClasslistOptions {
|
|
127
|
+
}
|
|
128
|
+
export interface UseSingleJsDocAsteriskOptions {
|
|
129
|
+
}
|
|
130
|
+
export interface UseUniqueElementIdsOptions {
|
|
131
|
+
/**
|
|
132
|
+
* Component names that accept an `id` prop that does not translate to a DOM element id.
|
|
133
|
+
*/
|
|
134
|
+
excludedComponents?: string[];
|
|
135
|
+
}
|
|
136
|
+
export interface UseValidForDirectionOptions {
|
|
137
|
+
}
|
|
138
|
+
export interface UseValidTypeofOptions {
|
|
139
|
+
}
|
|
140
|
+
export interface UseYieldOptions {
|
|
141
|
+
}
|
|
142
|
+
export interface NoDeprecatedImportsOptions {
|
|
143
|
+
}
|
|
144
|
+
export interface NoDuplicateDependenciesOptions {
|
|
145
|
+
}
|
|
146
|
+
export interface NoEmptySourceOptions {
|
|
147
|
+
/**
|
|
148
|
+
* Whether comments are considered meaningful
|
|
149
|
+
*/
|
|
150
|
+
allowComments?: boolean;
|
|
151
|
+
}
|
|
152
|
+
export interface NoFloatingPromisesOptions {
|
|
153
|
+
}
|
|
154
|
+
export interface NoImportCyclesOptions {
|
|
155
|
+
/**
|
|
156
|
+
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`) will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type imports (`import { type Foo }`) aren't considered as type-only because it's not removed by the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
|
|
157
|
+
*/
|
|
158
|
+
ignoreTypes?: boolean;
|
|
159
|
+
}
|
|
160
|
+
export interface NoIncrementDecrementOptions {
|
|
161
|
+
/**
|
|
162
|
+
* Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
|
|
163
|
+
*/
|
|
164
|
+
allowForLoopAfterthoughts?: boolean;
|
|
165
|
+
}
|
|
166
|
+
export interface NoJsxLiteralsOptions {
|
|
167
|
+
/**
|
|
168
|
+
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
169
|
+
*/
|
|
170
|
+
allowedStrings?: string[];
|
|
171
|
+
/**
|
|
172
|
+
* When enabled, strings inside props are always ignored
|
|
173
|
+
*/
|
|
174
|
+
ignoreProps?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
177
|
+
*/
|
|
178
|
+
noStrings?: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface NoMisusedPromisesOptions {
|
|
181
|
+
}
|
|
182
|
+
export interface NoNextAsyncClientComponentOptions {
|
|
183
|
+
}
|
|
184
|
+
export interface NoReactForwardRefOptions {
|
|
185
|
+
}
|
|
186
|
+
export interface NoShadowOptions {
|
|
187
|
+
}
|
|
188
|
+
export interface NoUnnecessaryConditionsOptions {
|
|
189
|
+
}
|
|
190
|
+
export interface NoUnresolvedImportsOptions {
|
|
191
|
+
}
|
|
192
|
+
export interface NoUnusedExpressionsOptions {
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Options for the `noUselessCatchBinding` rule. Currently empty; reserved for future extensions (e.g. allowlist of names).
|
|
196
|
+
*/
|
|
197
|
+
export interface NoUselessCatchBindingOptions {
|
|
198
|
+
}
|
|
199
|
+
export interface NoUselessUndefinedOptions {
|
|
200
|
+
}
|
|
201
|
+
export interface NoVueDataObjectDeclarationOptions {
|
|
202
|
+
}
|
|
203
|
+
export interface NoVueDuplicateKeysOptions {
|
|
204
|
+
}
|
|
205
|
+
export interface NoVueReservedKeysOptions {
|
|
206
|
+
}
|
|
207
|
+
export interface NoVueReservedPropsOptions {
|
|
208
|
+
}
|
|
209
|
+
export type UseConsistentArrowReturnStyle = 'asNeeded' | 'always' | 'never';
|
|
210
|
+
export interface UseDeprecatedDateOptions {
|
|
211
|
+
argumentName?: string;
|
|
212
|
+
}
|
|
213
|
+
export interface UseExhaustiveSwitchCasesOptions {
|
|
214
|
+
}
|
|
215
|
+
export interface UseExplicitTypeOptions {
|
|
216
|
+
}
|
|
217
|
+
export interface UseMaxParamsOptions {
|
|
218
|
+
/**
|
|
219
|
+
* Maximum number of parameters allowed (default: 4)
|
|
220
|
+
*/
|
|
221
|
+
max?: number;
|
|
222
|
+
}
|
|
223
|
+
export interface UseQwikMethodUsageOptions {
|
|
224
|
+
}
|
|
225
|
+
export interface UseQwikValidLexicalScopeOptions {
|
|
226
|
+
}
|
|
227
|
+
export interface UseSortedClassesOptions {
|
|
228
|
+
/**
|
|
229
|
+
* Additional attributes that will be sorted.
|
|
230
|
+
*/
|
|
231
|
+
attributes?: string[] | null;
|
|
232
|
+
/**
|
|
233
|
+
* Names of the functions or tagged templates that will be sorted.
|
|
234
|
+
*/
|
|
235
|
+
functions?: string[] | null;
|
|
236
|
+
}
|
|
237
|
+
export interface UseVueDefineMacrosOrderOptions {
|
|
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 {
|
|
312
|
+
}
|
|
313
|
+
export interface NoMagicNumbersOptions {
|
|
314
|
+
}
|
|
315
|
+
export interface NoNamespaceOptions {
|
|
316
|
+
}
|
|
317
|
+
export interface NoNegationElseOptions {
|
|
318
|
+
}
|
|
319
|
+
export interface NoNestedTernaryOptions {
|
|
320
|
+
}
|