@quentinhsu/biome-config 0.3.5 → 0.5.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 +387 -0
  2. package/dist/build.mjs +108 -360
  3. package/dist/index.jsonc +1 -1
  4. package/dist/index.mjs +1 -358
  5. package/dist/next.jsonc +1 -1
  6. package/dist/nuxt.jsonc +31 -2
  7. package/dist/react.jsonc +1 -1
  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 +12 -10
  13. package/dist/types/src/generated/biome/{no-label-var-options.d.ts → no-comment-text-options.d.ts} +217 -532
  14. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +74 -75
  15. package/dist/types/src/generated/biome/{use-qwik-classlist-configuration.d.ts → no-sync-scripts-configuration.d.ts} +56 -112
  16. package/dist/types/src/generated/biome/{use-focusable-interactive-configuration.d.ts → no-useless-constructor-configuration.d.ts} +33 -51
  17. package/dist/types/src/generated/biome/nursery.d.ts +822 -0
  18. package/dist/types/src/generated/biome/pattern-options.d.ts +1075 -0
  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 +24 -6
  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-magic-numbers-options.d.ts → use-unique-variable-names-options.d.ts} +127 -105
  27. package/dist/vue.jsonc +1 -1
  28. package/package.json +11 -7
  29. package/dist/types/src/generated/biome/linter-configuration.d.ts +0 -181
  30. package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +0 -1236
  31. package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +0 -1440
  32. package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +0 -1337
  33. package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +0 -1304
  34. package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +0 -571
@@ -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,125 @@
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
+ }
1
123
  export interface NoMagicNumbersOptions {
2
124
  }
3
125
  export interface NoNamespaceOptions {
@@ -24,6 +146,9 @@ export interface NoRestrictedGlobalsOptions {
24
146
  [k: string]: string;
25
147
  } | null;
26
148
  }
149
+ /**
150
+ * Additional options to configure the message and allowed/disallowed import names.
151
+ */
27
152
  export interface PathOptions {
28
153
  /**
29
154
  * Names of the exported members that allowed to be not be used.
@@ -38,7 +163,6 @@ export interface PathOptions {
38
163
  */
39
164
  message?: string;
40
165
  }
41
- export type Regex = string;
42
166
  export interface CustomRestrictedTypeOptions {
43
167
  message?: string;
44
168
  use?: string | null;
@@ -116,18 +240,16 @@ export interface UseGraphqlNamingConventionOptions {
116
240
  export interface UseGroupedAccessorPairsOptions {
117
241
  }
118
242
  /**
119
- * Rule's options.
243
+ * The style to apply when importing types.
120
244
  */
121
- export type Style2 = 'auto' | 'inlineType' | 'separatedType';
245
+ export type UseImportTypeStyle = 'auto' | 'inlineType' | 'separatedType';
122
246
  export interface UseLiteralEnumMembersOptions {
123
247
  }
124
248
  /**
125
249
  * Supported cases.
126
250
  */
127
251
  export type Format = 'camelCase' | 'CONSTANT_CASE' | 'PascalCase' | 'snake_case';
128
- 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';
129
252
  export type RestrictedModifier = 'abstract' | 'private' | 'protected' | 'readonly' | 'static';
130
- export type Scope = 'any' | 'global';
131
253
  export interface UseNodeAssertStrictOptions {
132
254
  }
133
255
  export interface UseNodejsImportProtocolOptions {
@@ -189,103 +311,3 @@ export interface NoCatchAssignOptions {
189
311
  }
190
312
  export interface NoClassAssignOptions {
191
313
  }
192
- export interface NoCommentTextOptions {
193
- }
194
- export interface NoCompareNegZeroOptions {
195
- }
196
- export interface NoConfusingLabelsOptions {
197
- /**
198
- * A list of (non-confusing) labels that should be allowed
199
- */
200
- allowedLabels?: string[] | null;
201
- }
202
- export interface NoConfusingVoidTypeOptions {
203
- }
204
- export interface NoConsoleOptions {
205
- /**
206
- * Allowed calls on the console object.
207
- */
208
- allow?: string[] | null;
209
- }
210
- export interface NoConstEnumOptions {
211
- }
212
- export interface NoConstantBinaryExpressionsOptions {
213
- }
214
- export interface NoControlCharactersInRegexOptions {
215
- }
216
- export interface NoDebuggerOptions {
217
- }
218
- export interface NoDocumentCookieOptions {
219
- }
220
- export interface NoDocumentImportInPageOptions {
221
- }
222
- export interface NoDoubleEqualsOptions {
223
- /**
224
- * If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.
225
- *
226
- * If `false`, no such exception will be made.
227
- */
228
- ignoreNull?: boolean | null;
229
- }
230
- export interface NoDuplicateAtImportRulesOptions {
231
- }
232
- export interface NoDuplicateCaseOptions {
233
- }
234
- export interface NoDuplicateClassMembersOptions {
235
- }
236
- export interface NoDuplicateCustomPropertiesOptions {
237
- }
238
- export interface NoDuplicateElseIfOptions {
239
- }
240
- export interface NoDuplicateFieldsOptions {
241
- }
242
- export interface NoDuplicateFontNamesOptions {
243
- }
244
- export interface NoDuplicateJsxPropsOptions {
245
- }
246
- export interface NoDuplicateObjectKeysOptions {
247
- }
248
- export interface NoDuplicateParametersOptions {
249
- }
250
- export interface NoDuplicatePropertiesOptions {
251
- }
252
- export interface NoDuplicateSelectorsKeyframeBlockOptions {
253
- }
254
- export interface NoDuplicateTestHooksOptions {
255
- }
256
- export interface NoEmptyBlockOptions {
257
- }
258
- export interface NoEmptyBlockStatementsOptions {
259
- }
260
- export interface NoEmptyInterfaceOptions {
261
- }
262
- export interface NoEvolvingTypesOptions {
263
- }
264
- export interface NoExplicitAnyOptions {
265
- }
266
- export interface NoExportsInTestOptions {
267
- }
268
- export interface NoExtraNonNullAssertionOptions {
269
- }
270
- export interface NoFallthroughSwitchClauseOptions {
271
- }
272
- export interface NoFocusedTestsOptions {
273
- }
274
- export interface NoFunctionAssignOptions {
275
- }
276
- export interface NoGlobalAssignOptions {
277
- }
278
- export interface NoGlobalIsFiniteOptions {
279
- }
280
- export interface NoGlobalIsNanOptions {
281
- }
282
- export interface NoHeadImportInDocumentOptions {
283
- }
284
- export interface NoImplicitAnyLetOptions {
285
- }
286
- export interface NoImportAssignOptions {
287
- }
288
- export interface NoImportantInKeyframeOptions {
289
- }
290
- export interface NoIrregularWhitespaceOptions {
291
- }
package/dist/vue.jsonc CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
3
3
  "assist": {
4
4
  "actions": {
5
5
  "source": {
package/package.json CHANGED
@@ -2,13 +2,14 @@
2
2
  "author": "QuentinHsu",
3
3
  "description": "Modular Biome configuration presets.",
4
4
  "devDependencies": {
5
- "@biomejs/biome": "2.3.5",
6
- "@quentinhsu/biome-config": "0.3.3",
7
- "@rslib/core": "0.18.0",
8
- "@types/node": "^24.9.1",
5
+ "@biomejs/biome": "2.3.11",
6
+ "@quentinhsu/biome-config": "0.3.5",
7
+ "@rslib/core": "0.19.1",
8
+ "@types/node": "^25.0.3",
9
9
  "json-schema-to-typescript": "^15.0.4",
10
10
  "nodemon": "3.1.11",
11
- "tsx": "4.20.6",
11
+ "picocolors": "^1.1.1",
12
+ "tsx": "4.21.0",
12
13
  "typescript": "5.9.3"
13
14
  },
14
15
  "exports": {
@@ -38,13 +39,16 @@
38
39
  "url": "git+https://github.com/QuentinHsu/biome-config.git"
39
40
  },
40
41
  "type": "module",
41
- "version": "0.3.5",
42
+ "version": "0.5.0",
42
43
  "scripts": {
43
44
  "build": "rslib build && node dist/build.mjs",
44
45
  "dev": "nodemon --exec tsx scripts/build-presets.ts",
45
46
  "generate:types": "tsx scripts/generate-biome-types.ts",
46
47
  "lint": "npx biome check .",
47
48
  "lint:fix": "biome format --write .",
48
- "prebuild": "pnpm run generate:types"
49
+ "postinstall": "pnpm run generate:types",
50
+ "prebuild": "pnpm run generate:types",
51
+ "release:tag": "tsx scripts/tag-release.ts",
52
+ "validate:config": "tsx scripts/validate-config-properties.ts"
49
53
  }
50
54
  }
@@ -1,181 +0,0 @@
1
- import type { Bool, Extends, Schema } from './schema.ts';
2
- import type { NormalizedGlob, OverrideFilesConfiguration, OverrideFormatterConfiguration, OverrideGlobs, RuleDomains } from './no-label-var-options.ts';
3
- import type { CssConfiguration, FilesConfiguration, FormatterConfiguration, GraphqlConfiguration, GritConfiguration, HtmlConfiguration, JsConfiguration, JsonConfiguration, Plugins, VcsConfiguration } from './rule-with-no-confusing-labels-options.ts';
4
- import type { Actions, Rules } from './use-consistent-object-definitions-configuration.ts';
5
- export interface LinterConfiguration {
6
- /**
7
- * An object where the keys are the names of the domains, and the values are `all`, `recommended`, or `none`.
8
- */
9
- domains?: RuleDomains | null;
10
- /**
11
- * if `false`, it disables the feature and the linter won't be executed. `true` by default
12
- */
13
- enabled?: Bool | null;
14
- /**
15
- * A list of glob patterns. The analyzer will handle only those files/folders that will match these patterns.
16
- */
17
- includes?: NormalizedGlob[] | null;
18
- /**
19
- * List of rules
20
- */
21
- rules?: Rules | null;
22
- }
23
- export interface OverrideLinterConfiguration {
24
- /**
25
- * List of rules
26
- */
27
- domains?: RuleDomains | null;
28
- /**
29
- * if `false`, it disables the feature and the linter won't be executed. `true` by default
30
- */
31
- enabled?: Bool | null;
32
- /**
33
- * List of rules
34
- */
35
- rules?: Rules | null;
36
- }
37
- export interface AssistConfiguration {
38
- /**
39
- * Whether Biome should fail in CLI if the assist were not applied to the code.
40
- */
41
- actions?: Actions | null;
42
- /**
43
- * Whether Biome should enable assist via LSP and CLI.
44
- */
45
- enabled?: Bool | null;
46
- /**
47
- * A list of glob patterns. Biome will include files/folders that will match these patterns.
48
- */
49
- includes?: NormalizedGlob[] | null;
50
- }
51
- export interface OverrideAssistConfiguration {
52
- /**
53
- * List of actions
54
- */
55
- actions?: Actions | null;
56
- /**
57
- * if `false`, it disables the feature and the assist won't be executed. `true` by default
58
- */
59
- enabled?: Bool | null;
60
- }
61
- export interface OverridePattern {
62
- /**
63
- * Specific configuration for the Json language
64
- */
65
- assist?: OverrideAssistConfiguration | null;
66
- /**
67
- * Specific configuration for the CSS language
68
- */
69
- css?: CssConfiguration | null;
70
- /**
71
- * Specific configuration for the filesystem
72
- */
73
- files?: OverrideFilesConfiguration | null;
74
- /**
75
- * Specific configuration for the Json language
76
- */
77
- formatter?: OverrideFormatterConfiguration | null;
78
- /**
79
- * Specific configuration for the Graphql language
80
- */
81
- graphql?: GraphqlConfiguration | null;
82
- /**
83
- * Specific configuration for the GritQL language
84
- */
85
- grit?: GritConfiguration | null;
86
- /**
87
- * Specific configuration for the GritQL language
88
- */
89
- html?: HtmlConfiguration | null;
90
- /**
91
- * A list of glob patterns. Biome will include files/folders that will match these patterns.
92
- */
93
- includes?: OverrideGlobs | null;
94
- /**
95
- * Specific configuration for the JavaScript language
96
- */
97
- javascript?: JsConfiguration | null;
98
- /**
99
- * Specific configuration for the Json language
100
- */
101
- json?: JsonConfiguration | null;
102
- /**
103
- * Specific configuration for the Json language
104
- */
105
- linter?: OverrideLinterConfiguration | null;
106
- /**
107
- * Specific configuration for additional plugins
108
- */
109
- plugins?: Plugins | null;
110
- }
111
- export type Overrides = OverridePattern[];
112
- /**
113
- * The configuration that is contained inside the file `biome.json`
114
- */
115
- export interface Configuration {
116
- /**
117
- * A field for the [JSON schema](https://json-schema.org/) specification
118
- */
119
- $schema?: Schema | null;
120
- /**
121
- * Specific configuration for assists
122
- */
123
- assist?: AssistConfiguration | null;
124
- /**
125
- * Specific configuration for the Css language
126
- */
127
- css?: CssConfiguration | null;
128
- /**
129
- * A list of paths to other JSON files, used to extends the current configuration.
130
- */
131
- extends?: Extends | null;
132
- /**
133
- * The configuration of the filesystem
134
- */
135
- files?: FilesConfiguration | null;
136
- /**
137
- * The configuration of the formatter
138
- */
139
- formatter?: FormatterConfiguration | null;
140
- /**
141
- * Specific configuration for the GraphQL language
142
- */
143
- graphql?: GraphqlConfiguration | null;
144
- /**
145
- * Specific configuration for the GraphQL language
146
- */
147
- grit?: GritConfiguration | null;
148
- /**
149
- * Specific configuration for the HTML language
150
- */
151
- html?: HtmlConfiguration | null;
152
- /**
153
- * Specific configuration for the JavaScript language
154
- */
155
- javascript?: JsConfiguration | null;
156
- /**
157
- * Specific configuration for the Json language
158
- */
159
- json?: JsonConfiguration | null;
160
- /**
161
- * The configuration for the linter
162
- */
163
- linter?: LinterConfiguration | null;
164
- /**
165
- * A list of granular patterns that should be applied only to a sub set of files
166
- */
167
- overrides?: Overrides | null;
168
- /**
169
- * List of plugins to load.
170
- */
171
- plugins?: Plugins | null;
172
- /**
173
- * Indicates whether this configuration file is at the root of a Biome project. By default, this is `true`.
174
- */
175
- root?: Bool | null;
176
- /**
177
- * The configuration of the VCS integration
178
- */
179
- vcs?: VcsConfiguration | null;
180
- }
181
- export type BiomeConfig = Configuration;