@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.
Files changed (34) hide show
  1. package/dist/build.mjs +388 -0
  2. package/dist/index.jsonc +153 -0
  3. package/dist/index.mjs +358 -0
  4. package/dist/next.jsonc +170 -0
  5. package/dist/nuxt.jsonc +225 -0
  6. package/dist/react.jsonc +168 -0
  7. package/dist/types/scripts/build-presets.d.ts +1 -0
  8. package/dist/types/scripts/generate-biome-types.d.ts +1 -0
  9. package/dist/types/scripts/utils/biome-version.d.ts +12 -0
  10. package/dist/types/src/build.d.ts +1 -0
  11. package/dist/types/src/constants/biome.d.ts +1 -0
  12. package/dist/types/src/generated/biome/index.d.ts +12 -0
  13. package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +321 -0
  15. package/dist/types/src/generated/biome/no-label-var-options.d.ts +1076 -0
  16. package/dist/types/src/generated/biome/no-magic-numbers-options.d.ts +291 -0
  17. package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +1236 -0
  18. package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +1440 -0
  19. package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +1337 -0
  20. package/dist/types/src/generated/biome/schema.d.ts +291 -0
  21. package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +1304 -0
  22. package/dist/types/src/generated/biome/use-focusable-interactive-configuration.d.ts +163 -0
  23. package/dist/types/src/generated/biome/use-qwik-classlist-configuration.d.ts +241 -0
  24. package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +571 -0
  25. package/dist/types/src/index.d.ts +15 -0
  26. package/dist/types/src/presets/next.d.ts +1 -0
  27. package/dist/types/src/presets/nuxt.d.ts +1 -0
  28. package/dist/types/src/presets/react.d.ts +1 -0
  29. package/dist/types/src/presets/vue.d.ts +1 -0
  30. package/dist/types/src/source/index.d.ts +2 -0
  31. package/dist/types/src/types.d.ts +1 -0
  32. package/dist/types/src/utils/merge.d.ts +2 -0
  33. package/dist/vue.jsonc +177 -0
  34. package/package.json +29 -28
@@ -0,0 +1,571 @@
1
+ import type { FixKind, RuleAssistPlainConfiguration, RulePlainConfiguration } from './schema.ts';
2
+ import type { RuleWithNoAlertOptions, RuleWithNoApproximativeNumericConstantOptions, RuleWithNoArrayIndexKeyOptions, RuleWithNoAssignInExpressionsOptions, RuleWithNoAsyncPromiseExecutorOptions, RuleWithNoBiomeFirstExceptionOptions, RuleWithNoBitwiseOperatorsOptions, RuleWithNoCatchAssignOptions, RuleWithNoClassAssignOptions, RuleWithNoCommentTextOptions, RuleWithNoCompareNegZeroOptions, RuleWithUseShorthandAssignOptions, RuleWithUseShorthandFunctionTypeOptions, RuleWithUseSingleVarDeclaratorOptions, RuleWithUseSymbolDescriptionOptions, RuleWithUseTemplateOptions, RuleWithUseThrowNewErrorOptions, RuleWithUseThrowOnlyErrorOptions, RuleWithUseTrimStartEndOptions, RuleWithUseUnifiedTypeSignaturesOptions } from './rule-with-no-unused-expressions-options.ts';
3
+ import type { NoAccessKeyConfiguration, NoAriaHiddenOnFocusableConfiguration, NoAriaUnsupportedElementsConfiguration, NoAutofocusConfiguration, NoDistractingElementsConfiguration, NoHeaderScopeConfiguration, NoInteractiveElementToNoninteractiveRoleConfiguration, NoLabelWithoutControlConfiguration, NoNoninteractiveElementInteractionsConfiguration, NoNoninteractiveElementToInteractiveRoleConfiguration, NoNoninteractiveTabindexConfiguration, NoPositiveTabindexConfiguration, NoRedundantAltConfiguration, NoRedundantRolesConfiguration, NoStaticElementInteractionsConfiguration, NoSvgWithoutTitleConfiguration, RuleAssistWithOptionsFor_UseSortedAttributesOptions, RuleAssistWithOptionsFor_UseSortedKeysOptions, RuleWithNoConfusingLabelsOptions, RuleWithNoConfusingVoidTypeOptions, RuleWithNoConsoleOptions, RuleWithNoConstEnumOptions, RuleWithNoConstantBinaryExpressionsOptions, RuleWithNoControlCharactersInRegexOptions, RuleWithNoDebuggerOptions, RuleWithNoDocumentCookieOptions, RuleWithNoDocumentImportInPageOptions, RuleWithNoDoubleEqualsOptions, RuleWithNoDuplicateAtImportRulesOptions, RuleWithNoDuplicateCaseOptions, RuleWithNoDuplicateClassMembersOptions, RuleWithNoDuplicateCustomPropertiesOptions, RuleWithNoDuplicateElseIfOptions, RuleWithNoDuplicateFieldsOptions, RuleWithNoDuplicateFontNamesOptions, RuleWithNoDuplicateJsxPropsOptions, RuleWithNoDuplicateObjectKeysOptions, RuleWithNoDuplicateParametersOptions, RuleWithNoDuplicatePropertiesOptions, RuleWithNoDuplicateSelectorsKeyframeBlockOptions, RuleWithNoDuplicateTestHooksOptions, RuleWithNoEmptyBlockOptions, RuleWithNoEmptyBlockStatementsOptions, RuleWithNoEmptyInterfaceOptions, RuleWithNoEvolvingTypesOptions, RuleWithNoExplicitAnyOptions, RuleWithNoExportsInTestOptions, RuleWithNoExtraNonNullAssertionOptions, RuleWithNoFallthroughSwitchClauseOptions, RuleWithNoFocusedTestsOptions, RuleWithNoFunctionAssignOptions, RuleWithNoGlobalAssignOptions, RuleWithNoGlobalIsFiniteOptions, RuleWithNoGlobalIsNanOptions, RuleWithNoHeadImportInDocumentOptions, RuleWithNoImplicitAnyLetOptions, RuleWithNoImportAssignOptions, RuleWithNoImportantInKeyframeOptions, RuleWithNoIrregularWhitespaceOptions, RuleWithNoLabelVarOptions, RuleWithNoMisleadingCharacterClassOptions, RuleWithNoMisleadingInstantiatorOptions, RuleWithNoMisplacedAssertionOptions, RuleWithNoMisrefactoredShorthandAssignOptions, RuleWithNoNonNullAssertedOptionalChainOptions, RuleWithNoOctalEscapeOptions, RuleWithNoPrototypeBuiltinsOptions, RuleWithNoQuickfixBiomeOptions, RuleWithNoReactSpecificPropsOptions, RuleWithNoRedeclareOptions, RuleWithNoRedundantUseStrictOptions, RuleWithNoSelfCompareOptions, RuleWithNoShadowRestrictedNamesOptions, RuleWithNoShorthandPropertyOverridesOptions, RuleWithNoSkippedTestsOptions, RuleWithNoSparseArrayOptions, RuleWithNoSuspiciousSemicolonInJsxOptions, RuleWithNoTemplateCurlyInStringOptions, RuleWithNoThenPropertyOptions, RuleWithNoTsIgnoreOptions, RuleWithNoUnassignedVariablesOptions, RuleWithNoUnknownAtRulesOptions, RuleWithNoUnsafeDeclarationMergingOptions, RuleWithNoUnsafeNegationOptions, RuleWithNoUselessEscapeInStringOptions, RuleWithNoUselessRegexBackrefsOptions, RuleWithNoVarOptions, RuleWithNoWithOptions, RuleWithUseAdjacentOverloadSignaturesOptions, RuleWithUseAwaitOptions, RuleWithUseBiomeIgnoreFolderOptions, RuleWithUseDefaultSwitchClauseLastOptions, RuleWithUseErrorMessageOptions, RuleWithUseGetterReturnOptions, RuleWithUseGoogleFontDisplayOptions, RuleWithUseGuardForInOptions, RuleWithUseIsArrayOptions, RuleWithUseIterableCallbackReturnOptions, RuleWithUseNamespaceKeywordOptions, RuleWithUseNumberToFixedDigitsArgumentOptions, RuleWithUseStaticResponseMethodsOptions, RuleWithUseStrictModeOptions, SourceMatcher, UseAltTextConfiguration, UseAnchorContentConfiguration, UseAriaActivedescendantWithTabindexConfiguration, UseAriaPropsForRoleConfiguration, UseAriaPropsSupportedByRoleConfiguration, UseButtonTypeConfiguration } from './rule-with-no-confusing-labels-options.ts';
4
+ import type { NoAdjacentSpacesInRegexConfiguration, NoArgumentsConfiguration, NoBannedTypesConfiguration, NoCommaOperatorConfiguration, NoEmptyTypeParametersConfiguration, NoExcessiveCognitiveComplexityConfiguration, NoExcessiveLinesPerFunctionConfiguration, NoExcessiveNestedTestSuitesConfiguration, NoExtraBooleanCastConfiguration, NoFlatMapIdentityConfiguration, NoForEachConfiguration, NoImplicitCoercionsConfiguration, NoImportantStylesConfiguration, NoStaticOnlyClassConfiguration, NoThisInStaticConfiguration, NoUselessCatchConfiguration, NoUselessConstructorConfiguration, NoUselessContinueConfiguration, NoUselessEmptyExportConfiguration, NoUselessEscapeInRegexConfiguration, NoUselessFragmentsConfiguration, NoUselessLabelConfiguration, NoUselessLoneBlockStatementsConfiguration, NoUselessRenameConfiguration, NoUselessStringConcatConfiguration, NoUselessStringRawConfiguration, NoUselessSwitchCaseConfiguration, NoUselessTernaryConfiguration, NoUselessThisAliasConfiguration, NoUselessTypeConstraintConfiguration, NoUselessUndefinedInitializationConfiguration, NoVoidConfiguration, RuleWithNoPrivateImportsOptions, RuleWithNoRestrictedElementsOptions, RuleWithNoUndeclaredDependenciesOptions, UseArrowFunctionConfiguration, UseDateNowConfiguration, UseExhaustiveDependenciesOptions, UseFlatMapConfiguration, UseFocusableInteractiveConfiguration, UseGenericFontNamesConfiguration, UseHeadingContentConfiguration, UseHtmlLangConfiguration, UseIframeTitleConfiguration, UseIndexOfConfiguration, UseKeyWithClickEventsConfiguration, UseKeyWithMouseEventsConfiguration, UseLiteralKeysConfiguration, UseMediaCaptionConfiguration, UseNumericLiteralsConfiguration, UseOptionalChainConfiguration, UseRegexLiteralsConfiguration, UseSemanticElementsConfiguration, UseSimpleNumberKeysConfiguration, UseSimplifiedLogicExpressionConfiguration, UseValidAnchorConfiguration, UseValidAriaPropsConfiguration, UseValidAriaRoleConfiguration, UseValidAriaValuesConfiguration, UseValidAutocompleteConfiguration, UseValidLangConfiguration, UseWhileConfiguration } from './use-focusable-interactive-configuration.ts';
5
+ import type { NoAccumulatingSpreadConfiguration, NoAwaitInLoopsConfiguration, NoBarrelFileConfiguration, NoBlankTargetConfiguration, NoDangerouslySetInnerHtmlConfiguration, NoDangerouslySetInnerHtmlWithChildrenConfiguration, NoDeleteConfiguration, NoDynamicNamespaceImportAccessConfiguration, NoGlobalEvalConfiguration, NoImgElementConfiguration, NoNamespaceImportConfiguration, NoReExportAllConfiguration, NoRestrictedTypesOptions, NoSecretsConfiguration, NoUnwantedPolyfillioConfiguration, RuleWithNoParameterAssignOptions, RuleWithUseConsistentArrayTypeOptions, RuleWithUseConsistentArrowReturnOptions, RuleWithUseConsistentMemberAccessibilityOptions, UseGoogleFontPreconnectConfiguration, UseSolidForComponentConfiguration, UseTopLevelRegexConfiguration } from './use-qwik-classlist-configuration.ts';
6
+ export type UseShorthandAssignConfiguration = RulePlainConfiguration | RuleWithUseShorthandAssignOptions;
7
+ export type UseShorthandFunctionTypeConfiguration = RulePlainConfiguration | RuleWithUseShorthandFunctionTypeOptions;
8
+ export type UseSingleVarDeclaratorConfiguration = RulePlainConfiguration | RuleWithUseSingleVarDeclaratorOptions;
9
+ export type UseSymbolDescriptionConfiguration = RulePlainConfiguration | RuleWithUseSymbolDescriptionOptions;
10
+ export type UseTemplateConfiguration = RulePlainConfiguration | RuleWithUseTemplateOptions;
11
+ export type UseThrowNewErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowNewErrorOptions;
12
+ export type UseThrowOnlyErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowOnlyErrorOptions;
13
+ export type UseTrimStartEndConfiguration = RulePlainConfiguration | RuleWithUseTrimStartEndOptions;
14
+ export type UseUnifiedTypeSignaturesConfiguration = RulePlainConfiguration | RuleWithUseUnifiedTypeSignaturesOptions;
15
+ export type NoAlertConfiguration = RulePlainConfiguration | RuleWithNoAlertOptions;
16
+ export type NoApproximativeNumericConstantConfiguration = RulePlainConfiguration | RuleWithNoApproximativeNumericConstantOptions;
17
+ export type NoArrayIndexKeyConfiguration = RulePlainConfiguration | RuleWithNoArrayIndexKeyOptions;
18
+ export type NoAssignInExpressionsConfiguration = RulePlainConfiguration | RuleWithNoAssignInExpressionsOptions;
19
+ export type NoAsyncPromiseExecutorConfiguration = RulePlainConfiguration | RuleWithNoAsyncPromiseExecutorOptions;
20
+ export type NoBiomeFirstExceptionConfiguration = RulePlainConfiguration | RuleWithNoBiomeFirstExceptionOptions;
21
+ export type NoBitwiseOperatorsConfiguration = RulePlainConfiguration | RuleWithNoBitwiseOperatorsOptions;
22
+ export type NoCatchAssignConfiguration = RulePlainConfiguration | RuleWithNoCatchAssignOptions;
23
+ export type NoClassAssignConfiguration = RulePlainConfiguration | RuleWithNoClassAssignOptions;
24
+ export type NoCommentTextConfiguration = RulePlainConfiguration | RuleWithNoCommentTextOptions;
25
+ export type NoCompareNegZeroConfiguration = RulePlainConfiguration | RuleWithNoCompareNegZeroOptions;
26
+ export type NoConfusingLabelsConfiguration = RulePlainConfiguration | RuleWithNoConfusingLabelsOptions;
27
+ export type NoConfusingVoidTypeConfiguration = RulePlainConfiguration | RuleWithNoConfusingVoidTypeOptions;
28
+ export type NoConsoleConfiguration = RulePlainConfiguration | RuleWithNoConsoleOptions;
29
+ export type NoConstEnumConfiguration = RulePlainConfiguration | RuleWithNoConstEnumOptions;
30
+ export type NoConstantBinaryExpressionsConfiguration = RulePlainConfiguration | RuleWithNoConstantBinaryExpressionsOptions;
31
+ export type NoControlCharactersInRegexConfiguration = RulePlainConfiguration | RuleWithNoControlCharactersInRegexOptions;
32
+ export type NoDebuggerConfiguration = RulePlainConfiguration | RuleWithNoDebuggerOptions;
33
+ export type NoDocumentCookieConfiguration = RulePlainConfiguration | RuleWithNoDocumentCookieOptions;
34
+ export type NoDocumentImportInPageConfiguration = RulePlainConfiguration | RuleWithNoDocumentImportInPageOptions;
35
+ export type NoDoubleEqualsConfiguration = RulePlainConfiguration | RuleWithNoDoubleEqualsOptions;
36
+ export type NoDuplicateAtImportRulesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateAtImportRulesOptions;
37
+ export type NoDuplicateCaseConfiguration = RulePlainConfiguration | RuleWithNoDuplicateCaseOptions;
38
+ export type NoDuplicateClassMembersConfiguration = RulePlainConfiguration | RuleWithNoDuplicateClassMembersOptions;
39
+ export type NoDuplicateCustomPropertiesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateCustomPropertiesOptions;
40
+ export type NoDuplicateElseIfConfiguration = RulePlainConfiguration | RuleWithNoDuplicateElseIfOptions;
41
+ export type NoDuplicateFieldsConfiguration = RulePlainConfiguration | RuleWithNoDuplicateFieldsOptions;
42
+ export type NoDuplicateFontNamesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateFontNamesOptions;
43
+ export type NoDuplicateJsxPropsConfiguration = RulePlainConfiguration | RuleWithNoDuplicateJsxPropsOptions;
44
+ export type NoDuplicateObjectKeysConfiguration = RulePlainConfiguration | RuleWithNoDuplicateObjectKeysOptions;
45
+ export type NoDuplicateParametersConfiguration = RulePlainConfiguration | RuleWithNoDuplicateParametersOptions;
46
+ export type NoDuplicatePropertiesConfiguration = RulePlainConfiguration | RuleWithNoDuplicatePropertiesOptions;
47
+ export type NoDuplicateSelectorsKeyframeBlockConfiguration = RulePlainConfiguration | RuleWithNoDuplicateSelectorsKeyframeBlockOptions;
48
+ export type NoDuplicateTestHooksConfiguration = RulePlainConfiguration | RuleWithNoDuplicateTestHooksOptions;
49
+ export type NoEmptyBlockConfiguration = RulePlainConfiguration | RuleWithNoEmptyBlockOptions;
50
+ export type NoEmptyBlockStatementsConfiguration = RulePlainConfiguration | RuleWithNoEmptyBlockStatementsOptions;
51
+ export type NoEmptyInterfaceConfiguration = RulePlainConfiguration | RuleWithNoEmptyInterfaceOptions;
52
+ export type NoEvolvingTypesConfiguration = RulePlainConfiguration | RuleWithNoEvolvingTypesOptions;
53
+ export type NoExplicitAnyConfiguration = RulePlainConfiguration | RuleWithNoExplicitAnyOptions;
54
+ export type NoExportsInTestConfiguration = RulePlainConfiguration | RuleWithNoExportsInTestOptions;
55
+ export type NoExtraNonNullAssertionConfiguration = RulePlainConfiguration | RuleWithNoExtraNonNullAssertionOptions;
56
+ export type NoFallthroughSwitchClauseConfiguration = RulePlainConfiguration | RuleWithNoFallthroughSwitchClauseOptions;
57
+ export type NoFocusedTestsConfiguration = RulePlainConfiguration | RuleWithNoFocusedTestsOptions;
58
+ export type NoFunctionAssignConfiguration = RulePlainConfiguration | RuleWithNoFunctionAssignOptions;
59
+ export type NoGlobalAssignConfiguration = RulePlainConfiguration | RuleWithNoGlobalAssignOptions;
60
+ export type NoGlobalIsFiniteConfiguration = RulePlainConfiguration | RuleWithNoGlobalIsFiniteOptions;
61
+ export type NoGlobalIsNanConfiguration = RulePlainConfiguration | RuleWithNoGlobalIsNanOptions;
62
+ export type NoHeadImportInDocumentConfiguration = RulePlainConfiguration | RuleWithNoHeadImportInDocumentOptions;
63
+ export type NoImplicitAnyLetConfiguration = RulePlainConfiguration | RuleWithNoImplicitAnyLetOptions;
64
+ export type NoImportAssignConfiguration = RulePlainConfiguration | RuleWithNoImportAssignOptions;
65
+ export type NoImportantInKeyframeConfiguration = RulePlainConfiguration | RuleWithNoImportantInKeyframeOptions;
66
+ export type NoIrregularWhitespaceConfiguration = RulePlainConfiguration | RuleWithNoIrregularWhitespaceOptions;
67
+ export type NoLabelVarConfiguration = RulePlainConfiguration | RuleWithNoLabelVarOptions;
68
+ export type NoMisleadingCharacterClassConfiguration = RulePlainConfiguration | RuleWithNoMisleadingCharacterClassOptions;
69
+ export type NoMisleadingInstantiatorConfiguration = RulePlainConfiguration | RuleWithNoMisleadingInstantiatorOptions;
70
+ export type NoMisplacedAssertionConfiguration = RulePlainConfiguration | RuleWithNoMisplacedAssertionOptions;
71
+ export type NoMisrefactoredShorthandAssignConfiguration = RulePlainConfiguration | RuleWithNoMisrefactoredShorthandAssignOptions;
72
+ export type NoNonNullAssertedOptionalChainConfiguration = RulePlainConfiguration | RuleWithNoNonNullAssertedOptionalChainOptions;
73
+ export type NoOctalEscapeConfiguration = RulePlainConfiguration | RuleWithNoOctalEscapeOptions;
74
+ export type NoPrototypeBuiltinsConfiguration = RulePlainConfiguration | RuleWithNoPrototypeBuiltinsOptions;
75
+ export type NoQuickfixBiomeConfiguration = RulePlainConfiguration | RuleWithNoQuickfixBiomeOptions;
76
+ export type NoReactSpecificPropsConfiguration = RulePlainConfiguration | RuleWithNoReactSpecificPropsOptions;
77
+ export type NoRedeclareConfiguration = RulePlainConfiguration | RuleWithNoRedeclareOptions;
78
+ export type NoRedundantUseStrictConfiguration = RulePlainConfiguration | RuleWithNoRedundantUseStrictOptions;
79
+ export type NoSelfCompareConfiguration = RulePlainConfiguration | RuleWithNoSelfCompareOptions;
80
+ export type NoShadowRestrictedNamesConfiguration = RulePlainConfiguration | RuleWithNoShadowRestrictedNamesOptions;
81
+ export type NoShorthandPropertyOverridesConfiguration = RulePlainConfiguration | RuleWithNoShorthandPropertyOverridesOptions;
82
+ export type NoSkippedTestsConfiguration = RulePlainConfiguration | RuleWithNoSkippedTestsOptions;
83
+ export type NoSparseArrayConfiguration = RulePlainConfiguration | RuleWithNoSparseArrayOptions;
84
+ export type NoSuspiciousSemicolonInJsxConfiguration = RulePlainConfiguration | RuleWithNoSuspiciousSemicolonInJsxOptions;
85
+ export type NoTemplateCurlyInStringConfiguration = RulePlainConfiguration | RuleWithNoTemplateCurlyInStringOptions;
86
+ export type NoThenPropertyConfiguration = RulePlainConfiguration | RuleWithNoThenPropertyOptions;
87
+ export type NoTsIgnoreConfiguration = RulePlainConfiguration | RuleWithNoTsIgnoreOptions;
88
+ export type NoUnassignedVariablesConfiguration = RulePlainConfiguration | RuleWithNoUnassignedVariablesOptions;
89
+ export type NoUnknownAtRulesConfiguration = RulePlainConfiguration | RuleWithNoUnknownAtRulesOptions;
90
+ export type NoUnsafeDeclarationMergingConfiguration = RulePlainConfiguration | RuleWithNoUnsafeDeclarationMergingOptions;
91
+ export type NoUnsafeNegationConfiguration = RulePlainConfiguration | RuleWithNoUnsafeNegationOptions;
92
+ export type NoUselessEscapeInStringConfiguration = RulePlainConfiguration | RuleWithNoUselessEscapeInStringOptions;
93
+ export type NoUselessRegexBackrefsConfiguration = RulePlainConfiguration | RuleWithNoUselessRegexBackrefsOptions;
94
+ export type NoVarConfiguration = RulePlainConfiguration | RuleWithNoVarOptions;
95
+ export type NoWithConfiguration = RulePlainConfiguration | RuleWithNoWithOptions;
96
+ export type UseAdjacentOverloadSignaturesConfiguration = RulePlainConfiguration | RuleWithUseAdjacentOverloadSignaturesOptions;
97
+ export type UseAwaitConfiguration = RulePlainConfiguration | RuleWithUseAwaitOptions;
98
+ export type UseBiomeIgnoreFolderConfiguration = RulePlainConfiguration | RuleWithUseBiomeIgnoreFolderOptions;
99
+ export type UseDefaultSwitchClauseLastConfiguration = RulePlainConfiguration | RuleWithUseDefaultSwitchClauseLastOptions;
100
+ export type UseErrorMessageConfiguration = RulePlainConfiguration | RuleWithUseErrorMessageOptions;
101
+ export type UseGetterReturnConfiguration = RulePlainConfiguration | RuleWithUseGetterReturnOptions;
102
+ export type UseGoogleFontDisplayConfiguration = RulePlainConfiguration | RuleWithUseGoogleFontDisplayOptions;
103
+ export type UseGuardForInConfiguration = RulePlainConfiguration | RuleWithUseGuardForInOptions;
104
+ export type UseIsArrayConfiguration = RulePlainConfiguration | RuleWithUseIsArrayOptions;
105
+ export type UseIterableCallbackReturnConfiguration = RulePlainConfiguration | RuleWithUseIterableCallbackReturnOptions;
106
+ export type UseNamespaceKeywordConfiguration = RulePlainConfiguration | RuleWithUseNamespaceKeywordOptions;
107
+ export type UseNumberToFixedDigitsArgumentConfiguration = RulePlainConfiguration | RuleWithUseNumberToFixedDigitsArgumentOptions;
108
+ export type UseStaticResponseMethodsConfiguration = RulePlainConfiguration | RuleWithUseStaticResponseMethodsOptions;
109
+ export type UseStrictModeConfiguration = RulePlainConfiguration | RuleWithUseStrictModeOptions;
110
+ export type SourcesMatcher = SourceMatcher | SourceMatcher[];
111
+ export type RuleAssistConfigurationFor_UseSortedAttributesOptions = RuleAssistPlainConfiguration | RuleAssistWithOptionsFor_UseSortedAttributesOptions;
112
+ export type RuleAssistConfigurationFor_UseSortedKeysOptions = RuleAssistPlainConfiguration | RuleAssistWithOptionsFor_UseSortedKeysOptions;
113
+ /**
114
+ * A list of rules that belong to this group
115
+ */
116
+ export interface A11Y {
117
+ /**
118
+ * Enforce that the accessKey attribute is not used on any HTML element.
119
+ */
120
+ noAccessKey?: NoAccessKeyConfiguration | null;
121
+ /**
122
+ * Enforce that aria-hidden="true" is not set on focusable elements.
123
+ */
124
+ noAriaHiddenOnFocusable?: NoAriaHiddenOnFocusableConfiguration | null;
125
+ /**
126
+ * Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
127
+ */
128
+ noAriaUnsupportedElements?: NoAriaUnsupportedElementsConfiguration | null;
129
+ /**
130
+ * Enforce that autoFocus prop is not used on elements.
131
+ */
132
+ noAutofocus?: NoAutofocusConfiguration | null;
133
+ /**
134
+ * Enforces that no distracting elements are used.
135
+ */
136
+ noDistractingElements?: NoDistractingElementsConfiguration | null;
137
+ /**
138
+ * The scope prop should be used only on \<th> elements.
139
+ */
140
+ noHeaderScope?: NoHeaderScopeConfiguration | null;
141
+ /**
142
+ * Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
143
+ */
144
+ noInteractiveElementToNoninteractiveRole?: NoInteractiveElementToNoninteractiveRoleConfiguration | null;
145
+ /**
146
+ * Enforce that a label element or component has a text label and an associated input.
147
+ */
148
+ noLabelWithoutControl?: NoLabelWithoutControlConfiguration | null;
149
+ /**
150
+ * Disallow use event handlers on non-interactive elements.
151
+ */
152
+ noNoninteractiveElementInteractions?: NoNoninteractiveElementInteractionsConfiguration | null;
153
+ /**
154
+ * Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
155
+ */
156
+ noNoninteractiveElementToInteractiveRole?: NoNoninteractiveElementToInteractiveRoleConfiguration | null;
157
+ /**
158
+ * Enforce that tabIndex is not assigned to non-interactive HTML elements.
159
+ */
160
+ noNoninteractiveTabindex?: NoNoninteractiveTabindexConfiguration | null;
161
+ /**
162
+ * Prevent the usage of positive integers on tabIndex property
163
+ */
164
+ noPositiveTabindex?: NoPositiveTabindexConfiguration | null;
165
+ /**
166
+ * Enforce img alt prop does not contain the word "image", "picture", or "photo".
167
+ */
168
+ noRedundantAlt?: NoRedundantAltConfiguration | null;
169
+ /**
170
+ * Enforce explicit role property is not the same as implicit/default role property on an element.
171
+ */
172
+ noRedundantRoles?: NoRedundantRolesConfiguration | null;
173
+ /**
174
+ * Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
175
+ */
176
+ noStaticElementInteractions?: NoStaticElementInteractionsConfiguration | null;
177
+ /**
178
+ * Enforces the usage of the title element for the svg element.
179
+ */
180
+ noSvgWithoutTitle?: NoSvgWithoutTitleConfiguration | null;
181
+ /**
182
+ * Enables the recommended rules for this group
183
+ */
184
+ recommended?: boolean | null;
185
+ /**
186
+ * Enforce that all elements that require alternative text have meaningful information to relay back to the end user.
187
+ */
188
+ useAltText?: UseAltTextConfiguration | null;
189
+ /**
190
+ * Enforce that anchors have content and that the content is accessible to screen readers.
191
+ */
192
+ useAnchorContent?: UseAnchorContentConfiguration | null;
193
+ /**
194
+ * Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
195
+ */
196
+ useAriaActivedescendantWithTabindex?: UseAriaActivedescendantWithTabindexConfiguration | null;
197
+ /**
198
+ * Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
199
+ */
200
+ useAriaPropsForRole?: UseAriaPropsForRoleConfiguration | null;
201
+ /**
202
+ * Enforce that ARIA properties are valid for the roles that are supported by the element.
203
+ */
204
+ useAriaPropsSupportedByRole?: UseAriaPropsSupportedByRoleConfiguration | null;
205
+ /**
206
+ * Enforces the usage of the attribute type for the element button
207
+ */
208
+ useButtonType?: UseButtonTypeConfiguration | null;
209
+ /**
210
+ * Elements with an interactive role and interaction handlers must be focusable.
211
+ */
212
+ useFocusableInteractive?: UseFocusableInteractiveConfiguration | null;
213
+ /**
214
+ * Disallow a missing generic family keyword within font families.
215
+ */
216
+ useGenericFontNames?: UseGenericFontNamesConfiguration | null;
217
+ /**
218
+ * Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop.
219
+ */
220
+ useHeadingContent?: UseHeadingContentConfiguration | null;
221
+ /**
222
+ * Enforce that html element has lang attribute.
223
+ */
224
+ useHtmlLang?: UseHtmlLangConfiguration | null;
225
+ /**
226
+ * Enforces the usage of the attribute title for the element iframe.
227
+ */
228
+ useIframeTitle?: UseIframeTitleConfiguration | null;
229
+ /**
230
+ * Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
231
+ */
232
+ useKeyWithClickEvents?: UseKeyWithClickEventsConfiguration | null;
233
+ /**
234
+ * Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
235
+ */
236
+ useKeyWithMouseEvents?: UseKeyWithMouseEventsConfiguration | null;
237
+ /**
238
+ * Enforces that audio and video elements must have a track for captions.
239
+ */
240
+ useMediaCaption?: UseMediaCaptionConfiguration | null;
241
+ /**
242
+ * It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
243
+ */
244
+ useSemanticElements?: UseSemanticElementsConfiguration | null;
245
+ /**
246
+ * Enforce that all anchors are valid, and they are navigable elements.
247
+ */
248
+ useValidAnchor?: UseValidAnchorConfiguration | null;
249
+ /**
250
+ * Ensures that ARIA properties aria-* are all valid.
251
+ */
252
+ useValidAriaProps?: UseValidAriaPropsConfiguration | null;
253
+ /**
254
+ * Elements with ARIA roles must use a valid, non-abstract ARIA role.
255
+ */
256
+ useValidAriaRole?: UseValidAriaRoleConfiguration | null;
257
+ /**
258
+ * Enforce that ARIA state and property values are valid.
259
+ */
260
+ useValidAriaValues?: UseValidAriaValuesConfiguration | null;
261
+ /**
262
+ * Use valid values for the autocomplete attribute on input elements.
263
+ */
264
+ useValidAutocomplete?: UseValidAutocompleteConfiguration | null;
265
+ /**
266
+ * Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
267
+ */
268
+ useValidLang?: UseValidLangConfiguration | null;
269
+ }
270
+ /**
271
+ * A list of rules that belong to this group
272
+ */
273
+ export interface Complexity {
274
+ /**
275
+ * Disallow unclear usage of consecutive space characters in regular expression literals
276
+ */
277
+ noAdjacentSpacesInRegex?: NoAdjacentSpacesInRegexConfiguration | null;
278
+ /**
279
+ * Disallow the use of arguments.
280
+ */
281
+ noArguments?: NoArgumentsConfiguration | null;
282
+ /**
283
+ * Disallow primitive type aliases and misleading types.
284
+ */
285
+ noBannedTypes?: NoBannedTypesConfiguration | null;
286
+ /**
287
+ * Disallow comma operator.
288
+ */
289
+ noCommaOperator?: NoCommaOperatorConfiguration | null;
290
+ /**
291
+ * Disallow empty type parameters in type aliases and interfaces.
292
+ */
293
+ noEmptyTypeParameters?: NoEmptyTypeParametersConfiguration | null;
294
+ /**
295
+ * Disallow functions that exceed a given Cognitive Complexity score.
296
+ */
297
+ noExcessiveCognitiveComplexity?: NoExcessiveCognitiveComplexityConfiguration | null;
298
+ /**
299
+ * Restrict the number of lines of code in a function.
300
+ */
301
+ noExcessiveLinesPerFunction?: NoExcessiveLinesPerFunctionConfiguration | null;
302
+ /**
303
+ * This rule enforces a maximum depth to nested describe() in test files.
304
+ */
305
+ noExcessiveNestedTestSuites?: NoExcessiveNestedTestSuitesConfiguration | null;
306
+ /**
307
+ * Disallow unnecessary boolean casts
308
+ */
309
+ noExtraBooleanCast?: NoExtraBooleanCastConfiguration | null;
310
+ /**
311
+ * Disallow to use unnecessary callback on flatMap.
312
+ */
313
+ noFlatMapIdentity?: NoFlatMapIdentityConfiguration | null;
314
+ /**
315
+ * Prefer for...of statement instead of Array.forEach.
316
+ */
317
+ noForEach?: NoForEachConfiguration | null;
318
+ /**
319
+ * Disallow shorthand type conversions.
320
+ */
321
+ noImplicitCoercions?: NoImplicitCoercionsConfiguration | null;
322
+ /**
323
+ * Disallow the use of the !important style.
324
+ */
325
+ noImportantStyles?: NoImportantStylesConfiguration | null;
326
+ /**
327
+ * This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
328
+ */
329
+ noStaticOnlyClass?: NoStaticOnlyClassConfiguration | null;
330
+ /**
331
+ * Disallow this and super in static contexts.
332
+ */
333
+ noThisInStatic?: NoThisInStaticConfiguration | null;
334
+ /**
335
+ * Disallow unnecessary catch clauses.
336
+ */
337
+ noUselessCatch?: NoUselessCatchConfiguration | null;
338
+ /**
339
+ * Disallow unnecessary constructors.
340
+ */
341
+ noUselessConstructor?: NoUselessConstructorConfiguration | null;
342
+ /**
343
+ * Avoid using unnecessary continue.
344
+ */
345
+ noUselessContinue?: NoUselessContinueConfiguration | null;
346
+ /**
347
+ * Disallow empty exports that don't change anything in a module file.
348
+ */
349
+ noUselessEmptyExport?: NoUselessEmptyExportConfiguration | null;
350
+ /**
351
+ * Disallow unnecessary escape sequence in regular expression literals.
352
+ */
353
+ noUselessEscapeInRegex?: NoUselessEscapeInRegexConfiguration | null;
354
+ /**
355
+ * Disallow unnecessary fragments
356
+ */
357
+ noUselessFragments?: NoUselessFragmentsConfiguration | null;
358
+ /**
359
+ * Disallow unnecessary labels.
360
+ */
361
+ noUselessLabel?: NoUselessLabelConfiguration | null;
362
+ /**
363
+ * Disallow unnecessary nested block statements.
364
+ */
365
+ noUselessLoneBlockStatements?: NoUselessLoneBlockStatementsConfiguration | null;
366
+ /**
367
+ * Disallow renaming import, export, and destructured assignments to the same name.
368
+ */
369
+ noUselessRename?: NoUselessRenameConfiguration | null;
370
+ /**
371
+ * Disallow unnecessary concatenation of string or template literals.
372
+ */
373
+ noUselessStringConcat?: NoUselessStringConcatConfiguration | null;
374
+ /**
375
+ * Disallow unnecessary String.raw function in template string literals without any escape sequence.
376
+ */
377
+ noUselessStringRaw?: NoUselessStringRawConfiguration | null;
378
+ /**
379
+ * Disallow useless case in switch statements.
380
+ */
381
+ noUselessSwitchCase?: NoUselessSwitchCaseConfiguration | null;
382
+ /**
383
+ * Disallow ternary operators when simpler alternatives exist.
384
+ */
385
+ noUselessTernary?: NoUselessTernaryConfiguration | null;
386
+ /**
387
+ * Disallow useless this aliasing.
388
+ */
389
+ noUselessThisAlias?: NoUselessThisAliasConfiguration | null;
390
+ /**
391
+ * Disallow using any or unknown as type constraint.
392
+ */
393
+ noUselessTypeConstraint?: NoUselessTypeConstraintConfiguration | null;
394
+ /**
395
+ * Disallow initializing variables to undefined.
396
+ */
397
+ noUselessUndefinedInitialization?: NoUselessUndefinedInitializationConfiguration | null;
398
+ /**
399
+ * Disallow the use of void operators, which is not a familiar operator.
400
+ */
401
+ noVoid?: NoVoidConfiguration | null;
402
+ /**
403
+ * Enables the recommended rules for this group
404
+ */
405
+ recommended?: boolean | null;
406
+ /**
407
+ * Use arrow functions over function expressions.
408
+ */
409
+ useArrowFunction?: UseArrowFunctionConfiguration | null;
410
+ /**
411
+ * Use Date.now() to get the number of milliseconds since the Unix Epoch.
412
+ */
413
+ useDateNow?: UseDateNowConfiguration | null;
414
+ /**
415
+ * Promotes the use of .flatMap() when map().flat() are used together.
416
+ */
417
+ useFlatMap?: UseFlatMapConfiguration | null;
418
+ /**
419
+ * Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.
420
+ */
421
+ useIndexOf?: UseIndexOfConfiguration | null;
422
+ /**
423
+ * Enforce the usage of a literal access to properties over computed property access.
424
+ */
425
+ useLiteralKeys?: UseLiteralKeysConfiguration | null;
426
+ /**
427
+ * Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
428
+ */
429
+ useNumericLiterals?: UseNumericLiteralsConfiguration | null;
430
+ /**
431
+ * Enforce using concise optional chain instead of chained logical expressions.
432
+ */
433
+ useOptionalChain?: UseOptionalChainConfiguration | null;
434
+ /**
435
+ * Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
436
+ */
437
+ useRegexLiterals?: UseRegexLiteralsConfiguration | null;
438
+ /**
439
+ * Disallow number literal object member names which are not base 10 or use underscore as separator.
440
+ */
441
+ useSimpleNumberKeys?: UseSimpleNumberKeysConfiguration | null;
442
+ /**
443
+ * Discard redundant terms from logical expressions.
444
+ */
445
+ useSimplifiedLogicExpression?: UseSimplifiedLogicExpressionConfiguration | null;
446
+ /**
447
+ * Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
448
+ */
449
+ useWhile?: UseWhileConfiguration | null;
450
+ }
451
+ export type NoPrivateImportsConfiguration = RulePlainConfiguration | RuleWithNoPrivateImportsOptions;
452
+ export type NoRestrictedElementsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedElementsOptions;
453
+ export type NoUndeclaredDependenciesConfiguration = RulePlainConfiguration | RuleWithNoUndeclaredDependenciesOptions;
454
+ export interface RuleWithUseExhaustiveDependenciesOptions {
455
+ /**
456
+ * The kind of the code actions emitted by the rule
457
+ */
458
+ fix?: FixKind | null;
459
+ /**
460
+ * The severity of the emitted diagnostics by the rule
461
+ */
462
+ level: RulePlainConfiguration;
463
+ /**
464
+ * Rule's options
465
+ */
466
+ options?: UseExhaustiveDependenciesOptions;
467
+ }
468
+ export type UseConsistentArrowReturnConfiguration = RulePlainConfiguration | RuleWithUseConsistentArrowReturnOptions;
469
+ /**
470
+ * A list of rules that belong to this group
471
+ */
472
+ export interface Performance {
473
+ /**
474
+ * Disallow the use of spread (...) syntax on accumulators.
475
+ */
476
+ noAccumulatingSpread?: NoAccumulatingSpreadConfiguration | null;
477
+ /**
478
+ * Disallow await inside loops.
479
+ */
480
+ noAwaitInLoops?: NoAwaitInLoopsConfiguration | null;
481
+ /**
482
+ * Disallow the use of barrel file.
483
+ */
484
+ noBarrelFile?: NoBarrelFileConfiguration | null;
485
+ /**
486
+ * Disallow the use of the delete operator.
487
+ */
488
+ noDelete?: NoDeleteConfiguration | null;
489
+ /**
490
+ * Disallow accessing namespace imports dynamically.
491
+ */
492
+ noDynamicNamespaceImportAccess?: NoDynamicNamespaceImportAccessConfiguration | null;
493
+ /**
494
+ * Prevent usage of \<img> element in a Next.js project.
495
+ */
496
+ noImgElement?: NoImgElementConfiguration | null;
497
+ /**
498
+ * Disallow the use of namespace imports.
499
+ */
500
+ noNamespaceImport?: NoNamespaceImportConfiguration | null;
501
+ /**
502
+ * Avoid re-export all.
503
+ */
504
+ noReExportAll?: NoReExportAllConfiguration | null;
505
+ /**
506
+ * Prevent duplicate polyfills from Polyfill.io.
507
+ */
508
+ noUnwantedPolyfillio?: NoUnwantedPolyfillioConfiguration | null;
509
+ /**
510
+ * Enables the recommended rules for this group
511
+ */
512
+ recommended?: boolean | null;
513
+ /**
514
+ * Ensure the preconnect attribute is used when using Google Fonts.
515
+ */
516
+ useGoogleFontPreconnect?: UseGoogleFontPreconnectConfiguration | null;
517
+ /**
518
+ * Enforce using Solid's \<For /> component for mapping an array to JSX elements.
519
+ */
520
+ useSolidForComponent?: UseSolidForComponentConfiguration | null;
521
+ /**
522
+ * Require regex literals to be declared at the top level.
523
+ */
524
+ useTopLevelRegex?: UseTopLevelRegexConfiguration | null;
525
+ }
526
+ /**
527
+ * A list of rules that belong to this group
528
+ */
529
+ export interface Security {
530
+ /**
531
+ * Disallow target="_blank" attribute without rel="noopener".
532
+ */
533
+ noBlankTarget?: NoBlankTargetConfiguration | null;
534
+ /**
535
+ * Prevent the usage of dangerous JSX props
536
+ */
537
+ noDangerouslySetInnerHtml?: NoDangerouslySetInnerHtmlConfiguration | null;
538
+ /**
539
+ * Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
540
+ */
541
+ noDangerouslySetInnerHtmlWithChildren?: NoDangerouslySetInnerHtmlWithChildrenConfiguration | null;
542
+ /**
543
+ * Disallow the use of global eval().
544
+ */
545
+ noGlobalEval?: NoGlobalEvalConfiguration | null;
546
+ /**
547
+ * Disallow usage of sensitive data such as API keys and tokens.
548
+ */
549
+ noSecrets?: NoSecretsConfiguration | null;
550
+ /**
551
+ * Enables the recommended rules for this group
552
+ */
553
+ recommended?: boolean | null;
554
+ }
555
+ export type NoParameterAssignConfiguration = RulePlainConfiguration | RuleWithNoParameterAssignOptions;
556
+ export interface RuleWithNoRestrictedTypesOptions {
557
+ /**
558
+ * The kind of the code actions emitted by the rule
559
+ */
560
+ fix?: FixKind | null;
561
+ /**
562
+ * The severity of the emitted diagnostics by the rule
563
+ */
564
+ level: RulePlainConfiguration;
565
+ /**
566
+ * Rule's options
567
+ */
568
+ options?: NoRestrictedTypesOptions;
569
+ }
570
+ export type UseConsistentArrayTypeConfiguration = RulePlainConfiguration | RuleWithUseConsistentArrayTypeOptions;
571
+ export type UseConsistentMemberAccessibilityConfiguration = RulePlainConfiguration | RuleWithUseConsistentMemberAccessibilityOptions;
@@ -0,0 +1,15 @@
1
+ import { nextConfig } from './presets/next.ts';
2
+ import { nuxtConfig } from './presets/nuxt.ts';
3
+ import { reactConfig } from './presets/react.ts';
4
+ import { vueConfig } from './presets/vue.ts';
5
+ import { indexConfig } from './source/index.ts';
6
+ export { BIOME_SCHEMA_URL } from './constants/biome.ts';
7
+ export { indexConfig, reactConfig, nextConfig, vueConfig, nuxtConfig };
8
+ export declare const allPresets: Readonly<{
9
+ index: import("./types.ts").Configuration;
10
+ next: import("./types.ts").Configuration;
11
+ nuxt: import("./types.ts").Configuration;
12
+ react: import("./types.ts").Configuration;
13
+ vue: import("./types.ts").Configuration;
14
+ }>;
15
+ export type { BiomeConfig } from './types.ts';
@@ -0,0 +1 @@
1
+ export declare const nextConfig: import("../types.ts").Configuration;
@@ -0,0 +1 @@
1
+ export declare const nuxtConfig: import("../types.ts").Configuration;
@@ -0,0 +1 @@
1
+ export declare const reactConfig: import("../types.ts").Configuration;
@@ -0,0 +1 @@
1
+ export declare const vueConfig: import("../types.ts").Configuration;
@@ -0,0 +1,2 @@
1
+ import type { BiomeConfig } from '../types.ts';
2
+ export declare const indexConfig: BiomeConfig;
@@ -0,0 +1 @@
1
+ export * from './generated/biome/index.ts';
@@ -0,0 +1,2 @@
1
+ import type { BiomeConfig } from '../types.ts';
2
+ export declare const mergeConfigs: <T extends BiomeConfig[]>(...configs: T) => BiomeConfig;