@quentinhsu/biome-config 0.3.2 → 0.3.5
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 +12 -0
- package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +321 -0
- package/dist/types/src/generated/biome/no-label-var-options.d.ts +1076 -0
- package/dist/types/src/generated/biome/no-magic-numbers-options.d.ts +291 -0
- package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +1236 -0
- package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +1440 -0
- package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +1337 -0
- package/dist/types/src/generated/biome/schema.d.ts +291 -0
- package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +1304 -0
- package/dist/types/src/generated/biome/use-focusable-interactive-configuration.d.ts +163 -0
- package/dist/types/src/generated/biome/use-qwik-classlist-configuration.d.ts +241 -0
- package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +571 -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 +29 -28
|
@@ -0,0 +1,321 @@
|
|
|
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 | null;
|
|
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 | null;
|
|
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 | null;
|
|
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 | null;
|
|
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 | null;
|
|
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[] | null;
|
|
135
|
+
}
|
|
136
|
+
export interface UseValidForDirectionOptions {
|
|
137
|
+
}
|
|
138
|
+
export interface UseValidTypeofOptions {
|
|
139
|
+
}
|
|
140
|
+
export interface UseYieldOptions {
|
|
141
|
+
}
|
|
142
|
+
export interface NoContinueOptions {
|
|
143
|
+
}
|
|
144
|
+
export interface NoDeprecatedImportsOptions {
|
|
145
|
+
}
|
|
146
|
+
export interface NoDuplicateDependenciesOptions {
|
|
147
|
+
}
|
|
148
|
+
export interface NoEmptySourceOptions {
|
|
149
|
+
/**
|
|
150
|
+
* Whether comments are considered meaningful
|
|
151
|
+
*/
|
|
152
|
+
allowComments?: boolean | null;
|
|
153
|
+
}
|
|
154
|
+
export interface NoFloatingPromisesOptions {
|
|
155
|
+
}
|
|
156
|
+
export interface NoImportCyclesOptions {
|
|
157
|
+
/**
|
|
158
|
+
* 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.
|
|
159
|
+
*/
|
|
160
|
+
ignoreTypes?: boolean | null;
|
|
161
|
+
}
|
|
162
|
+
export interface NoIncrementDecrementOptions {
|
|
163
|
+
/**
|
|
164
|
+
* Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
|
|
165
|
+
*/
|
|
166
|
+
allowForLoopAfterthoughts?: boolean | null;
|
|
167
|
+
}
|
|
168
|
+
export interface NoJsxLiteralsOptions {
|
|
169
|
+
/**
|
|
170
|
+
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
171
|
+
*/
|
|
172
|
+
allowedStrings?: string[] | null;
|
|
173
|
+
/**
|
|
174
|
+
* When enabled, strings inside props are always ignored
|
|
175
|
+
*/
|
|
176
|
+
ignoreProps?: boolean | null;
|
|
177
|
+
/**
|
|
178
|
+
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
179
|
+
*/
|
|
180
|
+
noStrings?: boolean | null;
|
|
181
|
+
}
|
|
182
|
+
export interface NoMisusedPromisesOptions {
|
|
183
|
+
}
|
|
184
|
+
export interface NoNextAsyncClientComponentOptions {
|
|
185
|
+
}
|
|
186
|
+
export interface NoParametersOnlyUsedInRecursionOptions {
|
|
187
|
+
}
|
|
188
|
+
export interface NoReactForwardRefOptions {
|
|
189
|
+
}
|
|
190
|
+
export interface NoShadowOptions {
|
|
191
|
+
}
|
|
192
|
+
export interface NoUnknownAttributeOptions {
|
|
193
|
+
ignore?: string[] | null;
|
|
194
|
+
}
|
|
195
|
+
export interface NoUnnecessaryConditionsOptions {
|
|
196
|
+
}
|
|
197
|
+
export interface NoUnresolvedImportsOptions {
|
|
198
|
+
}
|
|
199
|
+
export interface NoUnusedExpressionsOptions {
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Options for the `noUselessCatchBinding` rule. Currently empty; reserved for future extensions (e.g. allowlist of names).
|
|
203
|
+
*/
|
|
204
|
+
export interface NoUselessCatchBindingOptions {
|
|
205
|
+
}
|
|
206
|
+
export interface NoUselessUndefinedOptions {
|
|
207
|
+
}
|
|
208
|
+
export interface NoVueDataObjectDeclarationOptions {
|
|
209
|
+
}
|
|
210
|
+
export interface NoVueDuplicateKeysOptions {
|
|
211
|
+
}
|
|
212
|
+
export interface NoVueReservedKeysOptions {
|
|
213
|
+
}
|
|
214
|
+
export interface NoVueReservedPropsOptions {
|
|
215
|
+
}
|
|
216
|
+
export interface UseArraySortCompareOptions {
|
|
217
|
+
}
|
|
218
|
+
export type UseConsistentArrowReturnStyle = 'asNeeded' | 'always' | 'never';
|
|
219
|
+
export interface UseDeprecatedDateOptions {
|
|
220
|
+
argumentName?: string | null;
|
|
221
|
+
}
|
|
222
|
+
export interface UseExhaustiveSwitchCasesOptions {
|
|
223
|
+
}
|
|
224
|
+
export interface UseExplicitTypeOptions {
|
|
225
|
+
}
|
|
226
|
+
export interface UseMaxParamsOptions {
|
|
227
|
+
/**
|
|
228
|
+
* Maximum number of parameters allowed (default: 4)
|
|
229
|
+
*/
|
|
230
|
+
max?: number | null;
|
|
231
|
+
}
|
|
232
|
+
export interface UseQwikMethodUsageOptions {
|
|
233
|
+
}
|
|
234
|
+
export interface UseQwikValidLexicalScopeOptions {
|
|
235
|
+
}
|
|
236
|
+
export interface UseSortedClassesOptions {
|
|
237
|
+
/**
|
|
238
|
+
* Additional attributes that will be sorted.
|
|
239
|
+
*/
|
|
240
|
+
attributes?: string[] | null;
|
|
241
|
+
/**
|
|
242
|
+
* Names of the functions or tagged templates that will be sorted.
|
|
243
|
+
*/
|
|
244
|
+
functions?: string[] | null;
|
|
245
|
+
}
|
|
246
|
+
export interface UseVueDefineMacrosOrderOptions {
|
|
247
|
+
/**
|
|
248
|
+
* The order of the Vue define macros.
|
|
249
|
+
*/
|
|
250
|
+
order?: string[] | null;
|
|
251
|
+
}
|
|
252
|
+
export interface UseVueMultiWordComponentNamesOptions {
|
|
253
|
+
/**
|
|
254
|
+
* Component names to ignore (allowed to be single-word).
|
|
255
|
+
*/
|
|
256
|
+
ignores?: string[];
|
|
257
|
+
}
|
|
258
|
+
export interface NoAccumulatingSpreadOptions {
|
|
259
|
+
}
|
|
260
|
+
export interface NoAwaitInLoopsOptions {
|
|
261
|
+
}
|
|
262
|
+
export interface NoBarrelFileOptions {
|
|
263
|
+
}
|
|
264
|
+
export interface NoDeleteOptions {
|
|
265
|
+
}
|
|
266
|
+
export interface NoDynamicNamespaceImportAccessOptions {
|
|
267
|
+
}
|
|
268
|
+
export interface NoImgElementOptions {
|
|
269
|
+
}
|
|
270
|
+
export interface NoNamespaceImportOptions {
|
|
271
|
+
}
|
|
272
|
+
export interface NoReExportAllOptions {
|
|
273
|
+
}
|
|
274
|
+
export interface NoUnwantedPolyfillioOptions {
|
|
275
|
+
}
|
|
276
|
+
export interface UseGoogleFontPreconnectOptions {
|
|
277
|
+
}
|
|
278
|
+
export interface UseSolidForComponentOptions {
|
|
279
|
+
}
|
|
280
|
+
export interface UseTopLevelRegexOptions {
|
|
281
|
+
}
|
|
282
|
+
export interface NoBlankTargetOptions {
|
|
283
|
+
/**
|
|
284
|
+
* List of domains where `target="_blank"` is allowed without `rel="noopener"`.
|
|
285
|
+
*/
|
|
286
|
+
allowDomains?: string[];
|
|
287
|
+
/**
|
|
288
|
+
* Whether `noreferrer` is allowed in addition to `noopener`.
|
|
289
|
+
*/
|
|
290
|
+
allowNoReferrer?: boolean | null;
|
|
291
|
+
}
|
|
292
|
+
export interface NoDangerouslySetInnerHtmlOptions {
|
|
293
|
+
}
|
|
294
|
+
export interface NoDangerouslySetInnerHtmlWithChildrenOptions {
|
|
295
|
+
}
|
|
296
|
+
export interface NoGlobalEvalOptions {
|
|
297
|
+
}
|
|
298
|
+
export interface NoSecretsOptions {
|
|
299
|
+
/**
|
|
300
|
+
* Set entropy threshold (default is 41).
|
|
301
|
+
*/
|
|
302
|
+
entropyThreshold?: number | null;
|
|
303
|
+
}
|
|
304
|
+
export interface NoCommonJsOptions {
|
|
305
|
+
}
|
|
306
|
+
export interface NoDefaultExportOptions {
|
|
307
|
+
}
|
|
308
|
+
export interface NoDescendingSpecificityOptions {
|
|
309
|
+
}
|
|
310
|
+
export interface NoDoneCallbackOptions {
|
|
311
|
+
}
|
|
312
|
+
export interface NoEnumOptions {
|
|
313
|
+
}
|
|
314
|
+
export interface NoExportedImportsOptions {
|
|
315
|
+
}
|
|
316
|
+
export interface NoHeadElementOptions {
|
|
317
|
+
}
|
|
318
|
+
export interface NoImplicitBooleanOptions {
|
|
319
|
+
}
|
|
320
|
+
export interface NoInferrableTypesOptions {
|
|
321
|
+
}
|