@quentinhsu/biome-config 0.3.3 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/131.mjs +358 -0
  2. package/dist/build.mjs +108 -360
  3. package/dist/index.jsonc +56 -56
  4. package/dist/index.mjs +1 -358
  5. package/dist/next.jsonc +60 -60
  6. package/dist/nuxt.jsonc +91 -91
  7. package/dist/react.jsonc +58 -58
  8. package/dist/rslib-runtime.mjs +38 -0
  9. package/dist/types/scripts/tag-release.d.ts +1 -0
  10. package/dist/types/scripts/validate-config-properties.d.ts +1 -0
  11. package/dist/types/src/constants/biome.d.ts +1 -1
  12. package/dist/types/src/generated/biome/index.d.ts +11 -8
  13. package/dist/types/src/generated/biome/no-comment-text-options.d.ts +761 -0
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +97 -97
  15. package/dist/types/src/generated/biome/no-sync-scripts-configuration.d.ts +185 -0
  16. package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → no-useless-constructor-configuration.d.ts} +31 -49
  17. package/dist/types/src/generated/biome/nursery.d.ts +393 -594
  18. package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → pattern-options.d.ts} +252 -179
  19. package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
  20. package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
  21. package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
  22. package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
  23. package/dist/types/src/generated/biome/schema.d.ts +35 -17
  24. package/dist/types/src/generated/biome/style.d.ts +614 -0
  25. package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
  26. package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → use-unique-variable-names-options.d.ts} +141 -119
  27. package/dist/types/src/index.d.ts +2 -2
  28. package/dist/vue.jsonc +60 -60
  29. package/package.json +38 -34
  30. package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +0 -241
  31. package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +0 -1116
  32. package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +0 -1148
  33. package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +0 -1440
  34. package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +0 -1341
@@ -0,0 +1,144 @@
1
+ import type { FixKind, RulePlainConfiguration } from './schema.ts';
2
+ import type { Modifiers, RuleWithNoAlertOptions, RuleWithNoApproximativeNumericConstantOptions, RuleWithNoArrayIndexKeyOptions, RuleWithNoAssignInExpressionsOptions, RuleWithNoAsyncPromiseExecutorOptions, RuleWithNoBiomeFirstExceptionOptions, RuleWithNoBitwiseOperatorsOptions, RuleWithNoCatchAssignOptions, RuleWithNoClassAssignOptions, RuleWithNoCommentTextOptions, RuleWithNoCompareNegZeroOptions, 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, RuleWithUseForOfOptions, RuleWithUseFragmentSyntaxOptions, RuleWithUseGraphqlNamingConventionOptions, RuleWithUseGroupedAccessorPairsOptions, RuleWithUseLiteralEnumMembersOptions, RuleWithUseNodeAssertStrictOptions, RuleWithUseNodejsImportProtocolOptions, RuleWithUseNumberNamespaceOptions, RuleWithUseNumericSeparatorsOptions, RuleWithUseObjectSpreadOptions, RuleWithUseReactFunctionComponentsOptions, RuleWithUseReadonlyClassPropertiesOptions, RuleWithUseSelfClosingElementsOptions, RuleWithUseShorthandAssignOptions, RuleWithUseShorthandFunctionTypeOptions, RuleWithUseSingleVarDeclaratorOptions, RuleWithUseSymbolDescriptionOptions, RuleWithUseTemplateOptions, RuleWithUseThrowNewErrorOptions, RuleWithUseThrowOnlyErrorOptions, RuleWithUseTrimStartEndOptions, RuleWithUseUnifiedTypeSignaturesOptions, UseImportTypeOptions } from './rule-with-no-blank-target-options.ts';
3
+ import type { 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, SourcesMatcher } from './rule-with-no-fallthrough-switch-clause-options.ts';
4
+ export type UseForOfConfiguration = RulePlainConfiguration | RuleWithUseForOfOptions;
5
+ export type UseFragmentSyntaxConfiguration = RulePlainConfiguration | RuleWithUseFragmentSyntaxOptions;
6
+ export type UseGraphqlNamingConventionConfiguration = RulePlainConfiguration | RuleWithUseGraphqlNamingConventionOptions;
7
+ export type UseGroupedAccessorPairsConfiguration = RulePlainConfiguration | RuleWithUseGroupedAccessorPairsOptions;
8
+ export interface RuleWithUseImportTypeOptions {
9
+ fix?: FixKind | null;
10
+ level: RulePlainConfiguration;
11
+ options?: UseImportTypeOptions;
12
+ }
13
+ export type UseLiteralEnumMembersConfiguration = RulePlainConfiguration | RuleWithUseLiteralEnumMembersOptions;
14
+ /**
15
+ * Declarations concerned by this convention
16
+ */
17
+ export interface Selector {
18
+ /**
19
+ * Declaration kind
20
+ */
21
+ kind?: ('class' | 'enum' | 'interface' | 'enumMember' | 'importNamespace' | 'exportNamespace' | 'variable' | 'const' | 'let' | 'using' | 'var' | 'catchParameter' | 'indexParameter' | 'exportAlias' | 'importAlias' | 'classGetter' | 'classSetter' | 'classMethod' | 'objectLiteralProperty' | 'objectLiteralGetter' | 'objectLiteralSetter' | 'objectLiteralMethod' | 'typeAlias') | 'any' | 'typeLike' | 'function' | 'namespaceLike' | 'namespace' | 'functionParameter' | 'typeParameter' | 'classMember' | 'classProperty' | 'objectLiteralMember' | 'typeMember' | 'typeGetter' | 'typeProperty' | 'typeSetter' | 'typeMethod';
22
+ modifiers?: Modifiers;
23
+ /**
24
+ * Scope of the declaration
25
+ */
26
+ scope?: 'any' | 'global';
27
+ }
28
+ export type UseNodeAssertStrictConfiguration = RulePlainConfiguration | RuleWithUseNodeAssertStrictOptions;
29
+ export type UseNodejsImportProtocolConfiguration = RulePlainConfiguration | RuleWithUseNodejsImportProtocolOptions;
30
+ export type UseNumberNamespaceConfiguration = RulePlainConfiguration | RuleWithUseNumberNamespaceOptions;
31
+ export type UseNumericSeparatorsConfiguration = RulePlainConfiguration | RuleWithUseNumericSeparatorsOptions;
32
+ export type UseObjectSpreadConfiguration = RulePlainConfiguration | RuleWithUseObjectSpreadOptions;
33
+ export type UseReactFunctionComponentsConfiguration = RulePlainConfiguration | RuleWithUseReactFunctionComponentsOptions;
34
+ export type UseReadonlyClassPropertiesConfiguration = RulePlainConfiguration | RuleWithUseReadonlyClassPropertiesOptions;
35
+ export type UseSelfClosingElementsConfiguration = RulePlainConfiguration | RuleWithUseSelfClosingElementsOptions;
36
+ export type UseShorthandAssignConfiguration = RulePlainConfiguration | RuleWithUseShorthandAssignOptions;
37
+ export type UseShorthandFunctionTypeConfiguration = RulePlainConfiguration | RuleWithUseShorthandFunctionTypeOptions;
38
+ export type UseSingleVarDeclaratorConfiguration = RulePlainConfiguration | RuleWithUseSingleVarDeclaratorOptions;
39
+ export type UseSymbolDescriptionConfiguration = RulePlainConfiguration | RuleWithUseSymbolDescriptionOptions;
40
+ export type UseTemplateConfiguration = RulePlainConfiguration | RuleWithUseTemplateOptions;
41
+ export type UseThrowNewErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowNewErrorOptions;
42
+ export type UseThrowOnlyErrorConfiguration = RulePlainConfiguration | RuleWithUseThrowOnlyErrorOptions;
43
+ export type UseTrimStartEndConfiguration = RulePlainConfiguration | RuleWithUseTrimStartEndOptions;
44
+ export type UseUnifiedTypeSignaturesConfiguration = RulePlainConfiguration | RuleWithUseUnifiedTypeSignaturesOptions;
45
+ export type NoAlertConfiguration = RulePlainConfiguration | RuleWithNoAlertOptions;
46
+ export type NoApproximativeNumericConstantConfiguration = RulePlainConfiguration | RuleWithNoApproximativeNumericConstantOptions;
47
+ export type NoArrayIndexKeyConfiguration = RulePlainConfiguration | RuleWithNoArrayIndexKeyOptions;
48
+ export type NoAssignInExpressionsConfiguration = RulePlainConfiguration | RuleWithNoAssignInExpressionsOptions;
49
+ export type NoAsyncPromiseExecutorConfiguration = RulePlainConfiguration | RuleWithNoAsyncPromiseExecutorOptions;
50
+ export type NoBiomeFirstExceptionConfiguration = RulePlainConfiguration | RuleWithNoBiomeFirstExceptionOptions;
51
+ export type NoBitwiseOperatorsConfiguration = RulePlainConfiguration | RuleWithNoBitwiseOperatorsOptions;
52
+ export type NoCatchAssignConfiguration = RulePlainConfiguration | RuleWithNoCatchAssignOptions;
53
+ export type NoClassAssignConfiguration = RulePlainConfiguration | RuleWithNoClassAssignOptions;
54
+ export type NoCommentTextConfiguration = RulePlainConfiguration | RuleWithNoCommentTextOptions;
55
+ export type NoCompareNegZeroConfiguration = RulePlainConfiguration | RuleWithNoCompareNegZeroOptions;
56
+ export type NoConfusingLabelsConfiguration = RulePlainConfiguration | RuleWithNoConfusingLabelsOptions;
57
+ export type NoConfusingVoidTypeConfiguration = RulePlainConfiguration | RuleWithNoConfusingVoidTypeOptions;
58
+ export type NoConsoleConfiguration = RulePlainConfiguration | RuleWithNoConsoleOptions;
59
+ export type NoConstEnumConfiguration = RulePlainConfiguration | RuleWithNoConstEnumOptions;
60
+ export type NoConstantBinaryExpressionsConfiguration = RulePlainConfiguration | RuleWithNoConstantBinaryExpressionsOptions;
61
+ export type NoControlCharactersInRegexConfiguration = RulePlainConfiguration | RuleWithNoControlCharactersInRegexOptions;
62
+ export type NoDebuggerConfiguration = RulePlainConfiguration | RuleWithNoDebuggerOptions;
63
+ export type NoDocumentCookieConfiguration = RulePlainConfiguration | RuleWithNoDocumentCookieOptions;
64
+ export type NoDocumentImportInPageConfiguration = RulePlainConfiguration | RuleWithNoDocumentImportInPageOptions;
65
+ export type NoDoubleEqualsConfiguration = RulePlainConfiguration | RuleWithNoDoubleEqualsOptions;
66
+ export type NoDuplicateAtImportRulesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateAtImportRulesOptions;
67
+ export type NoDuplicateCaseConfiguration = RulePlainConfiguration | RuleWithNoDuplicateCaseOptions;
68
+ export type NoDuplicateClassMembersConfiguration = RulePlainConfiguration | RuleWithNoDuplicateClassMembersOptions;
69
+ export type NoDuplicateCustomPropertiesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateCustomPropertiesOptions;
70
+ export type NoDuplicateElseIfConfiguration = RulePlainConfiguration | RuleWithNoDuplicateElseIfOptions;
71
+ export type NoDuplicateFieldsConfiguration = RulePlainConfiguration | RuleWithNoDuplicateFieldsOptions;
72
+ export type NoDuplicateFontNamesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateFontNamesOptions;
73
+ export type NoDuplicateJsxPropsConfiguration = RulePlainConfiguration | RuleWithNoDuplicateJsxPropsOptions;
74
+ export type NoDuplicateObjectKeysConfiguration = RulePlainConfiguration | RuleWithNoDuplicateObjectKeysOptions;
75
+ export type NoDuplicateParametersConfiguration = RulePlainConfiguration | RuleWithNoDuplicateParametersOptions;
76
+ export type NoDuplicatePropertiesConfiguration = RulePlainConfiguration | RuleWithNoDuplicatePropertiesOptions;
77
+ export type NoDuplicateSelectorsKeyframeBlockConfiguration = RulePlainConfiguration | RuleWithNoDuplicateSelectorsKeyframeBlockOptions;
78
+ export type NoDuplicateTestHooksConfiguration = RulePlainConfiguration | RuleWithNoDuplicateTestHooksOptions;
79
+ export type NoEmptyBlockConfiguration = RulePlainConfiguration | RuleWithNoEmptyBlockOptions;
80
+ export type NoEmptyBlockStatementsConfiguration = RulePlainConfiguration | RuleWithNoEmptyBlockStatementsOptions;
81
+ export type NoEmptyInterfaceConfiguration = RulePlainConfiguration | RuleWithNoEmptyInterfaceOptions;
82
+ export type NoEvolvingTypesConfiguration = RulePlainConfiguration | RuleWithNoEvolvingTypesOptions;
83
+ export type NoExplicitAnyConfiguration = RulePlainConfiguration | RuleWithNoExplicitAnyOptions;
84
+ export type NoExportsInTestConfiguration = RulePlainConfiguration | RuleWithNoExportsInTestOptions;
85
+ export type NoExtraNonNullAssertionConfiguration = RulePlainConfiguration | RuleWithNoExtraNonNullAssertionOptions;
86
+ export type NoFallthroughSwitchClauseConfiguration = RulePlainConfiguration | RuleWithNoFallthroughSwitchClauseOptions;
87
+ export type NoFocusedTestsConfiguration = RulePlainConfiguration | RuleWithNoFocusedTestsOptions;
88
+ export type NoFunctionAssignConfiguration = RulePlainConfiguration | RuleWithNoFunctionAssignOptions;
89
+ export type NoGlobalAssignConfiguration = RulePlainConfiguration | RuleWithNoGlobalAssignOptions;
90
+ export type NoGlobalIsFiniteConfiguration = RulePlainConfiguration | RuleWithNoGlobalIsFiniteOptions;
91
+ export type NoGlobalIsNanConfiguration = RulePlainConfiguration | RuleWithNoGlobalIsNanOptions;
92
+ export type NoHeadImportInDocumentConfiguration = RulePlainConfiguration | RuleWithNoHeadImportInDocumentOptions;
93
+ export type NoImplicitAnyLetConfiguration = RulePlainConfiguration | RuleWithNoImplicitAnyLetOptions;
94
+ export type NoImportAssignConfiguration = RulePlainConfiguration | RuleWithNoImportAssignOptions;
95
+ export type NoImportantInKeyframeConfiguration = RulePlainConfiguration | RuleWithNoImportantInKeyframeOptions;
96
+ export type NoIrregularWhitespaceConfiguration = RulePlainConfiguration | RuleWithNoIrregularWhitespaceOptions;
97
+ export type NoLabelVarConfiguration = RulePlainConfiguration | RuleWithNoLabelVarOptions;
98
+ export type NoMisleadingCharacterClassConfiguration = RulePlainConfiguration | RuleWithNoMisleadingCharacterClassOptions;
99
+ export type NoMisleadingInstantiatorConfiguration = RulePlainConfiguration | RuleWithNoMisleadingInstantiatorOptions;
100
+ export type NoMisplacedAssertionConfiguration = RulePlainConfiguration | RuleWithNoMisplacedAssertionOptions;
101
+ export type NoMisrefactoredShorthandAssignConfiguration = RulePlainConfiguration | RuleWithNoMisrefactoredShorthandAssignOptions;
102
+ export type NoNonNullAssertedOptionalChainConfiguration = RulePlainConfiguration | RuleWithNoNonNullAssertedOptionalChainOptions;
103
+ export type NoOctalEscapeConfiguration = RulePlainConfiguration | RuleWithNoOctalEscapeOptions;
104
+ export type NoPrototypeBuiltinsConfiguration = RulePlainConfiguration | RuleWithNoPrototypeBuiltinsOptions;
105
+ export type NoQuickfixBiomeConfiguration = RulePlainConfiguration | RuleWithNoQuickfixBiomeOptions;
106
+ export type NoReactSpecificPropsConfiguration = RulePlainConfiguration | RuleWithNoReactSpecificPropsOptions;
107
+ export type NoRedeclareConfiguration = RulePlainConfiguration | RuleWithNoRedeclareOptions;
108
+ export type NoRedundantUseStrictConfiguration = RulePlainConfiguration | RuleWithNoRedundantUseStrictOptions;
109
+ export type NoSelfCompareConfiguration = RulePlainConfiguration | RuleWithNoSelfCompareOptions;
110
+ export type NoShadowRestrictedNamesConfiguration = RulePlainConfiguration | RuleWithNoShadowRestrictedNamesOptions;
111
+ export type NoShorthandPropertyOverridesConfiguration = RulePlainConfiguration | RuleWithNoShorthandPropertyOverridesOptions;
112
+ export type NoSkippedTestsConfiguration = RulePlainConfiguration | RuleWithNoSkippedTestsOptions;
113
+ export type NoSparseArrayConfiguration = RulePlainConfiguration | RuleWithNoSparseArrayOptions;
114
+ export type NoSuspiciousSemicolonInJsxConfiguration = RulePlainConfiguration | RuleWithNoSuspiciousSemicolonInJsxOptions;
115
+ export type NoTemplateCurlyInStringConfiguration = RulePlainConfiguration | RuleWithNoTemplateCurlyInStringOptions;
116
+ export type NoThenPropertyConfiguration = RulePlainConfiguration | RuleWithNoThenPropertyOptions;
117
+ export type NoTsIgnoreConfiguration = RulePlainConfiguration | RuleWithNoTsIgnoreOptions;
118
+ export type NoUnassignedVariablesConfiguration = RulePlainConfiguration | RuleWithNoUnassignedVariablesOptions;
119
+ export type NoUnknownAtRulesConfiguration = RulePlainConfiguration | RuleWithNoUnknownAtRulesOptions;
120
+ export type NoUnsafeDeclarationMergingConfiguration = RulePlainConfiguration | RuleWithNoUnsafeDeclarationMergingOptions;
121
+ export type NoUnsafeNegationConfiguration = RulePlainConfiguration | RuleWithNoUnsafeNegationOptions;
122
+ export type NoUselessEscapeInStringConfiguration = RulePlainConfiguration | RuleWithNoUselessEscapeInStringOptions;
123
+ export type NoUselessRegexBackrefsConfiguration = RulePlainConfiguration | RuleWithNoUselessRegexBackrefsOptions;
124
+ export type NoVarConfiguration = RulePlainConfiguration | RuleWithNoVarOptions;
125
+ export type NoWithConfiguration = RulePlainConfiguration | RuleWithNoWithOptions;
126
+ export type UseAdjacentOverloadSignaturesConfiguration = RulePlainConfiguration | RuleWithUseAdjacentOverloadSignaturesOptions;
127
+ export type UseAwaitConfiguration = RulePlainConfiguration | RuleWithUseAwaitOptions;
128
+ export type UseBiomeIgnoreFolderConfiguration = RulePlainConfiguration | RuleWithUseBiomeIgnoreFolderOptions;
129
+ export type UseDefaultSwitchClauseLastConfiguration = RulePlainConfiguration | RuleWithUseDefaultSwitchClauseLastOptions;
130
+ export type UseErrorMessageConfiguration = RulePlainConfiguration | RuleWithUseErrorMessageOptions;
131
+ export type UseGetterReturnConfiguration = RulePlainConfiguration | RuleWithUseGetterReturnOptions;
132
+ export type UseGoogleFontDisplayConfiguration = RulePlainConfiguration | RuleWithUseGoogleFontDisplayOptions;
133
+ export type UseGuardForInConfiguration = RulePlainConfiguration | RuleWithUseGuardForInOptions;
134
+ export type UseIsArrayConfiguration = RulePlainConfiguration | RuleWithUseIsArrayOptions;
135
+ export type UseIterableCallbackReturnConfiguration = RulePlainConfiguration | RuleWithUseIterableCallbackReturnOptions;
136
+ export type UseNamespaceKeywordConfiguration = RulePlainConfiguration | RuleWithUseNamespaceKeywordOptions;
137
+ export type UseNumberToFixedDigitsArgumentConfiguration = RulePlainConfiguration | RuleWithUseNumberToFixedDigitsArgumentOptions;
138
+ export type UseStaticResponseMethodsConfiguration = RulePlainConfiguration | RuleWithUseStaticResponseMethodsOptions;
139
+ export type UseStrictModeConfiguration = RulePlainConfiguration | RuleWithUseStrictModeOptions;
140
+ export interface ImportMatcher {
141
+ source?: SourcesMatcher | null;
142
+ type?: boolean | null;
143
+ [k: string]: unknown;
144
+ }
@@ -1,3 +1,133 @@
1
+ export interface UseUniqueVariableNamesOptions {
2
+ }
3
+ export type DeclarationStyle = 'type' | 'runtime';
4
+ export type VueDirectiveStyle = 'shorthand' | 'longhand';
5
+ export type VueDirectiveStyle2 = 'shorthand' | 'longhand';
6
+ export interface UseVueDefineMacrosOrderOptions {
7
+ /**
8
+ * The order of the Vue define macros.
9
+ */
10
+ order?: string[] | null;
11
+ }
12
+ export interface UseVueHyphenatedAttributesOptions {
13
+ /**
14
+ * List of attribute names to ignore when checking for hyphenated attributes.
15
+ */
16
+ ignore?: string[] | null;
17
+ /**
18
+ * List of HTML tags to ignore when checking for hyphenated attributes.
19
+ */
20
+ ignoreTags?: string[] | null;
21
+ }
22
+ export interface UseVueMultiWordComponentNamesOptions {
23
+ /**
24
+ * Component names to ignore (allowed to be single-word).
25
+ */
26
+ ignores?: string[];
27
+ }
28
+ export interface UseVueVForKeyOptions {
29
+ }
30
+ export interface UseVueValidTemplateRootOptions {
31
+ }
32
+ export interface UseVueValidVBindOptions {
33
+ }
34
+ export interface UseVueValidVCloakOptions {
35
+ }
36
+ export interface UseVueValidVElseOptions {
37
+ }
38
+ export interface UseVueValidVElseIfOptions {
39
+ }
40
+ export interface UseVueValidVHtmlOptions {
41
+ }
42
+ export interface UseVueValidVIfOptions {
43
+ }
44
+ export interface UseVueValidVOnOptions {
45
+ /**
46
+ * Additional modifiers that should be considered valid
47
+ */
48
+ modifiers?: string[] | null;
49
+ }
50
+ export interface UseVueValidVOnceOptions {
51
+ }
52
+ export interface UseVueValidVPreOptions {
53
+ }
54
+ export interface UseVueValidVTextOptions {
55
+ }
56
+ export interface UseVueVaporOptions {
57
+ }
58
+ export interface NoAccumulatingSpreadOptions {
59
+ }
60
+ export interface NoAwaitInLoopsOptions {
61
+ }
62
+ export interface NoBarrelFileOptions {
63
+ }
64
+ export interface NoDeleteOptions {
65
+ }
66
+ export interface NoDynamicNamespaceImportAccessOptions {
67
+ }
68
+ export interface NoImgElementOptions {
69
+ }
70
+ export interface NoNamespaceImportOptions {
71
+ }
72
+ export interface NoReExportAllOptions {
73
+ }
74
+ export interface NoUnwantedPolyfillioOptions {
75
+ }
76
+ export interface UseGoogleFontPreconnectOptions {
77
+ }
78
+ export interface UseSolidForComponentOptions {
79
+ }
80
+ export interface UseTopLevelRegexOptions {
81
+ }
82
+ export interface NoBlankTargetOptions {
83
+ /**
84
+ * List of domains where `target="_blank"` is allowed without
85
+ * `rel="noopener"`.
86
+ */
87
+ allowDomains?: string[];
88
+ /**
89
+ * Whether `noreferrer` is allowed in addition to `noopener`.
90
+ */
91
+ allowNoReferrer?: boolean | null;
92
+ }
93
+ export interface NoDangerouslySetInnerHtmlOptions {
94
+ }
95
+ export interface NoDangerouslySetInnerHtmlWithChildrenOptions {
96
+ }
97
+ export interface NoGlobalEvalOptions {
98
+ }
99
+ export interface NoSecretsOptions {
100
+ /**
101
+ * Set entropy threshold (default is 41).
102
+ */
103
+ entropyThreshold?: number | null;
104
+ }
105
+ export interface NoCommonJsOptions {
106
+ }
107
+ export interface NoDefaultExportOptions {
108
+ }
109
+ export interface NoDescendingSpecificityOptions {
110
+ }
111
+ export interface NoDoneCallbackOptions {
112
+ }
113
+ export interface NoEnumOptions {
114
+ }
115
+ export interface NoExportedImportsOptions {
116
+ }
117
+ export interface NoHeadElementOptions {
118
+ }
119
+ export interface NoImplicitBooleanOptions {
120
+ }
121
+ export interface NoInferrableTypesOptions {
122
+ }
123
+ export interface NoMagicNumbersOptions {
124
+ }
125
+ export interface NoNamespaceOptions {
126
+ }
127
+ export interface NoNegationElseOptions {
128
+ }
129
+ export interface NoNestedTernaryOptions {
130
+ }
1
131
  export interface NoNonNullAssertionOptions {
2
132
  }
3
133
  /**
@@ -14,8 +144,11 @@ export interface NoRestrictedGlobalsOptions {
14
144
  */
15
145
  deniedGlobals?: {
16
146
  [k: string]: string;
17
- };
147
+ } | null;
18
148
  }
149
+ /**
150
+ * Additional options to configure the message and allowed/disallowed import names.
151
+ */
19
152
  export interface PathOptions {
20
153
  /**
21
154
  * Names of the exported members that allowed to be not be used.
@@ -30,7 +163,6 @@ export interface PathOptions {
30
163
  */
31
164
  message?: string;
32
165
  }
33
- export type Regex = string;
34
166
  export interface CustomRestrictedTypeOptions {
35
167
  message?: string;
36
168
  use?: string | null;
@@ -63,11 +195,11 @@ export interface UseComponentExportOnlyModulesOptions {
63
195
  /**
64
196
  * Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
65
197
  */
66
- allowConstantExport?: boolean;
198
+ allowConstantExport?: boolean | null;
67
199
  /**
68
200
  * A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
69
201
  */
70
- allowExportNames?: string[];
202
+ allowExportNames?: string[] | null;
71
203
  }
72
204
  export type ConsistentArrayType = 'shorthand' | 'generic';
73
205
  export interface UseConsistentBuiltinInstantiationOptions {
@@ -108,18 +240,16 @@ export interface UseGraphqlNamingConventionOptions {
108
240
  export interface UseGroupedAccessorPairsOptions {
109
241
  }
110
242
  /**
111
- * Rule's options.
243
+ * The style to apply when importing types.
112
244
  */
113
- export type Style2 = 'auto' | 'inlineType' | 'separatedType';
245
+ export type UseImportTypeStyle = 'auto' | 'inlineType' | 'separatedType';
114
246
  export interface UseLiteralEnumMembersOptions {
115
247
  }
116
248
  /**
117
249
  * Supported cases.
118
250
  */
119
251
  export type Format = 'camelCase' | 'CONSTANT_CASE' | 'PascalCase' | 'snake_case';
120
- export type Kind = ('class' | 'enum' | 'interface' | 'enumMember' | 'importNamespace' | 'exportNamespace' | 'variable' | 'const' | 'let' | 'using' | 'var' | 'catchParameter' | 'indexParameter' | 'exportAlias' | 'importAlias' | 'classGetter' | 'classSetter' | 'classMethod' | 'objectLiteralProperty' | 'objectLiteralGetter' | 'objectLiteralSetter' | 'objectLiteralMethod' | 'typeAlias') | 'any' | 'typeLike' | 'function' | 'namespaceLike' | 'namespace' | 'functionParameter' | 'typeParameter' | 'classMember' | 'classProperty' | 'objectLiteralMember' | 'typeMember' | 'typeGetter' | 'typeProperty' | 'typeSetter' | 'typeMethod';
121
252
  export type RestrictedModifier = 'abstract' | 'private' | 'protected' | 'readonly' | 'static';
122
- export type Scope = 'any' | 'global';
123
253
  export interface UseNodeAssertStrictOptions {
124
254
  }
125
255
  export interface UseNodejsImportProtocolOptions {
@@ -136,10 +266,10 @@ export interface UseReadonlyClassPropertiesOptions {
136
266
  /**
137
267
  * When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
138
268
  */
139
- checkAllProperties?: boolean;
269
+ checkAllProperties?: boolean | null;
140
270
  }
141
271
  export interface UseSelfClosingElementsOptions {
142
- ignoreHtmlElements?: boolean;
272
+ ignoreHtmlElements?: boolean | null;
143
273
  }
144
274
  export interface UseShorthandAssignOptions {
145
275
  }
@@ -175,117 +305,9 @@ export interface NoBitwiseOperatorsOptions {
175
305
  /**
176
306
  * Allows a list of bitwise operators to be used as exceptions.
177
307
  */
178
- allow?: string[];
308
+ allow?: string[] | null;
179
309
  }
180
310
  export interface NoCatchAssignOptions {
181
311
  }
182
312
  export interface NoClassAssignOptions {
183
313
  }
184
- export interface NoCommentTextOptions {
185
- }
186
- export interface NoCompareNegZeroOptions {
187
- }
188
- export interface NoConfusingLabelsOptions {
189
- /**
190
- * A list of (non-confusing) labels that should be allowed
191
- */
192
- allowedLabels?: string[];
193
- }
194
- export interface NoConfusingVoidTypeOptions {
195
- }
196
- export interface NoConsoleOptions {
197
- /**
198
- * Allowed calls on the console object.
199
- */
200
- allow?: string[];
201
- }
202
- export interface NoConstEnumOptions {
203
- }
204
- export interface NoConstantBinaryExpressionsOptions {
205
- }
206
- export interface NoControlCharactersInRegexOptions {
207
- }
208
- export interface NoDebuggerOptions {
209
- }
210
- export interface NoDocumentCookieOptions {
211
- }
212
- export interface NoDocumentImportInPageOptions {
213
- }
214
- export interface NoDoubleEqualsOptions {
215
- /**
216
- * If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.
217
- *
218
- * If `false`, no such exception will be made.
219
- */
220
- ignoreNull?: boolean;
221
- }
222
- export interface NoDuplicateAtImportRulesOptions {
223
- }
224
- export interface NoDuplicateCaseOptions {
225
- }
226
- export interface NoDuplicateClassMembersOptions {
227
- }
228
- export interface NoDuplicateCustomPropertiesOptions {
229
- }
230
- export interface NoDuplicateElseIfOptions {
231
- }
232
- export interface NoDuplicateFieldsOptions {
233
- }
234
- export interface NoDuplicateFontNamesOptions {
235
- }
236
- export interface NoDuplicateJsxPropsOptions {
237
- }
238
- export interface NoDuplicateObjectKeysOptions {
239
- }
240
- export interface NoDuplicateParametersOptions {
241
- }
242
- export interface NoDuplicatePropertiesOptions {
243
- }
244
- export interface NoDuplicateSelectorsKeyframeBlockOptions {
245
- }
246
- export interface NoDuplicateTestHooksOptions {
247
- }
248
- export interface NoEmptyBlockOptions {
249
- }
250
- export interface NoEmptyBlockStatementsOptions {
251
- }
252
- export interface NoEmptyInterfaceOptions {
253
- }
254
- export interface NoEvolvingTypesOptions {
255
- }
256
- export interface NoExplicitAnyOptions {
257
- }
258
- export interface NoExportsInTestOptions {
259
- }
260
- export interface NoExtraNonNullAssertionOptions {
261
- }
262
- export interface NoFallthroughSwitchClauseOptions {
263
- }
264
- export interface NoFocusedTestsOptions {
265
- }
266
- export interface NoFunctionAssignOptions {
267
- }
268
- export interface NoGlobalAssignOptions {
269
- }
270
- export interface NoGlobalIsFiniteOptions {
271
- }
272
- export interface NoGlobalIsNanOptions {
273
- }
274
- export interface NoHeadImportInDocumentOptions {
275
- }
276
- export interface NoImplicitAnyLetOptions {
277
- }
278
- export interface NoImportAssignOptions {
279
- }
280
- export interface NoImportantInKeyframeOptions {
281
- }
282
- export interface NoIrregularWhitespaceOptions {
283
- }
284
- export interface NoLabelVarOptions {
285
- }
286
- export interface NoMisleadingCharacterClassOptions {
287
- }
288
- export interface NoMisleadingInstantiatorOptions {
289
- }
290
- export interface NoMisplacedAssertionOptions {
291
- }
@@ -7,9 +7,9 @@ export { BIOME_SCHEMA_URL } from './constants/biome.ts';
7
7
  export { indexConfig, reactConfig, nextConfig, vueConfig, nuxtConfig };
8
8
  export declare const allPresets: Readonly<{
9
9
  index: import("./types.ts").Configuration;
10
- react: import("./types.ts").Configuration;
11
10
  next: import("./types.ts").Configuration;
12
- vue: import("./types.ts").Configuration;
13
11
  nuxt: import("./types.ts").Configuration;
12
+ react: import("./types.ts").Configuration;
13
+ vue: import("./types.ts").Configuration;
14
14
  }>;
15
15
  export type { BiomeConfig } from './types.ts';
package/dist/vue.jsonc CHANGED
@@ -1,29 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
3
- "root": true,
4
- "vcs": {
5
- "enabled": true,
6
- "clientKind": "git",
7
- "useIgnoreFile": true,
8
- "defaultBranch": "main"
9
- },
10
- "files": {
11
- "ignoreUnknown": true,
12
- "includes": [
13
- "**",
14
- "!**/build",
15
- "!**/dist",
16
- "!**/.next",
17
- "!**/.vitepress",
18
- "!**/.output"
19
- ]
20
- },
21
- "formatter": {
22
- "enabled": true,
23
- "indentStyle": "space",
24
- "lineWidth": 140,
25
- "formatWithErrors": true
26
- },
2
+ "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
27
3
  "assist": {
28
4
  "actions": {
29
5
  "source": {
@@ -44,20 +20,47 @@
44
20
  ]
45
21
  }
46
22
  },
47
- "useSortedKeys": "on",
48
23
  "useSortedAttributes": {
49
24
  "level": "on",
50
25
  "options": {
51
26
  "sortOrder": "natural"
52
27
  }
53
- }
28
+ },
29
+ "useSortedKeys": "on"
54
30
  }
55
31
  }
56
32
  },
33
+ "files": {
34
+ "ignoreUnknown": true,
35
+ "includes": [
36
+ "**",
37
+ "!**/build",
38
+ "!**/dist",
39
+ "!**/.next",
40
+ "!**/.vitepress",
41
+ "!**/.output"
42
+ ]
43
+ },
44
+ "formatter": {
45
+ "enabled": true,
46
+ "formatWithErrors": true,
47
+ "indentStyle": "space",
48
+ "lineWidth": 140
49
+ },
50
+ "javascript": {
51
+ "formatter": {
52
+ "arrowParentheses": "asNeeded",
53
+ "jsxQuoteStyle": "single",
54
+ "quoteStyle": "single",
55
+ "trailingCommas": "all"
56
+ },
57
+ "parser": {
58
+ "jsxEverywhere": false
59
+ }
60
+ },
57
61
  "linter": {
58
62
  "enabled": true,
59
63
  "rules": {
60
- "recommended": true,
61
64
  "complexity": {
62
65
  "noUselessStringConcat": "error",
63
66
  "noUselessUndefinedInitialization": "error",
@@ -67,66 +70,56 @@
67
70
  "correctness": {
68
71
  "noConstantMathMinMaxClamp": "error",
69
72
  "noUndeclaredVariables": "error",
70
- "noUnusedImports": "error",
71
73
  "noUnusedFunctionParameters": "error",
74
+ "noUnusedImports": "error",
72
75
  "noUnusedPrivateClassMembers": "error",
76
+ "noUnusedVariables": "error",
73
77
  "useExhaustiveDependencies": {
74
78
  "level": "error",
75
79
  "options": {
76
80
  "reportUnnecessaryDependencies": false
77
81
  }
78
- },
79
- "noUnusedVariables": "error"
82
+ }
80
83
  },
84
+ "nursery": {
85
+ "useSortedClasses": {
86
+ "fix": "safe",
87
+ "level": "error",
88
+ "options": {
89
+ "functions": [
90
+ "clsx",
91
+ "cn"
92
+ ]
93
+ }
94
+ }
95
+ },
96
+ "recommended": true,
81
97
  "style": {
82
98
  "noParameterProperties": "error",
83
99
  "noYodaExpression": "error",
100
+ "useArrayLiterals": "error",
84
101
  "useConsistentBuiltinInstantiation": "error",
85
102
  "useFragmentSyntax": "error",
86
103
  "useImportType": {
87
- "level": "error",
88
104
  "fix": "safe",
105
+ "level": "error",
89
106
  "options": {
90
107
  "style": "separatedType"
91
108
  }
92
109
  },
93
110
  "useSelfClosingElements": {
94
- "level": "error",
95
111
  "fix": "safe",
112
+ "level": "error",
96
113
  "options": {}
97
114
  },
98
- "useShorthandAssign": "error",
99
- "useArrayLiterals": "error"
100
- },
101
- "nursery": {
102
- "useSortedClasses": {
103
- "level": "error",
104
- "fix": "safe",
105
- "options": {
106
- "functions": [
107
- "clsx",
108
- "cn"
109
- ]
110
- }
111
- }
115
+ "useShorthandAssign": "error"
112
116
  },
113
117
  "suspicious": {
114
- "useAwait": "error",
115
- "noEvolvingTypes": "error"
118
+ "noEvolvingTypes": "error",
119
+ "useAwait": "error"
116
120
  }
117
121
  }
118
122
  },
119
- "javascript": {
120
- "formatter": {
121
- "quoteStyle": "single",
122
- "jsxQuoteStyle": "single",
123
- "arrowParentheses": "asNeeded",
124
- "trailingCommas": "all"
125
- },
126
- "parser": {
127
- "jsxEverywhere": false
128
- }
129
- },
130
123
  "overrides": [
131
124
  {
132
125
  "includes": [
@@ -168,6 +161,13 @@
168
161
  }
169
162
  }
170
163
  ],
164
+ "root": true,
165
+ "vcs": {
166
+ "clientKind": "git",
167
+ "defaultBranch": "main",
168
+ "enabled": true,
169
+ "useIgnoreFile": true
170
+ },
171
171
  "html": {
172
172
  "formatter": {
173
173
  "indentScriptAndStyle": true,