@quentinhsu/biome-config 0.3.3 → 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 (23) hide show
  1. package/dist/build.mjs +59 -59
  2. package/dist/index.jsonc +56 -56
  3. package/dist/index.mjs +59 -59
  4. package/dist/next.jsonc +60 -60
  5. package/dist/nuxt.jsonc +91 -91
  6. package/dist/react.jsonc +58 -58
  7. package/dist/types/src/constants/biome.d.ts +1 -1
  8. package/dist/types/src/generated/biome/index.d.ts +10 -9
  9. package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
  10. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +25 -24
  11. package/dist/types/src/generated/biome/{no-misrefactored-shorthand-assign-options.d.ts → no-label-var-options.d.ts} +55 -95
  12. package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → no-magic-numbers-options.d.ts} +17 -17
  13. package/dist/types/src/generated/biome/{rule-with-no-document-import-in-page-options.d.ts → rule-with-no-confusing-labels-options.d.ts} +175 -87
  14. package/dist/types/src/generated/biome/{rule-with-no-implicit-coercions-options.d.ts → rule-with-no-excessive-nested-test-suites-options.d.ts} +182 -182
  15. package/dist/types/src/generated/biome/{use-consistent-arrow-return-options.d.ts → rule-with-no-unused-expressions-options.d.ts} +202 -206
  16. package/dist/types/src/generated/biome/schema.d.ts +11 -11
  17. package/dist/types/src/generated/biome/{nursery.d.ts → use-consistent-object-definitions-configuration.d.ts} +473 -192
  18. package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → use-focusable-interactive-configuration.d.ts} +16 -16
  19. package/dist/types/src/generated/biome/{no-empty-source-configuration.d.ts → use-qwik-classlist-configuration.d.ts} +26 -26
  20. package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → use-shorthand-assign-configuration.d.ts} +19 -450
  21. package/dist/types/src/index.d.ts +2 -2
  22. package/dist/vue.jsonc +60 -60
  23. package/package.json +34 -34
@@ -1,9 +1,20 @@
1
- import type { FixKind, GroupPlainConfiguration, RuleAssistPlainConfiguration, RulePlainConfiguration } from './schema.ts';
2
- import type { Regex } from './no-non-null-assertion-options.ts';
3
- import type { Formats, RuleWithNoAssignInExpressionsOptions, RuleWithNoAsyncPromiseExecutorOptions, RuleWithNoBiomeFirstExceptionOptions, RuleWithNoBitwiseOperatorsOptions, RuleWithNoCatchAssignOptions, RuleWithNoClassAssignOptions, RuleWithNoCommentTextOptions, RuleWithNoCompareNegZeroOptions, RuleWithNoConfusingLabelsOptions, RuleWithNoConfusingVoidTypeOptions, RuleWithNoConsoleOptions, RuleWithNoConstEnumOptions, RuleWithNoConstantBinaryExpressionsOptions, RuleWithNoControlCharactersInRegexOptions, RuleWithNoDebuggerOptions, RuleWithNoDocumentCookieOptions } from './use-consistent-arrow-return-options.ts';
4
- import type { NoAccessKeyConfiguration, NoAriaHiddenOnFocusableConfiguration, NoAriaUnsupportedElementsConfiguration, NoAutofocusConfiguration, NoDistractingElementsConfiguration, NoHeaderScopeConfiguration, NoInteractiveElementToNoninteractiveRoleConfiguration, NoLabelWithoutControlConfiguration, NoNoninteractiveElementInteractionsConfiguration, NoNoninteractiveElementToInteractiveRoleConfiguration, NoNoninteractiveTabindexConfiguration, NoPositiveTabindexConfiguration, NoRedundantAltConfiguration, NoRedundantRolesConfiguration, NoStaticElementInteractionsConfiguration, NoSvgWithoutTitleConfiguration, RuleAssistWithOptionsFor_UseSortedAttributesOptions, RuleAssistWithOptionsFor_UseSortedKeysOptions, 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, UseFocusableInteractiveConfiguration, UseGenericFontNamesConfiguration, UseHeadingContentConfiguration, UseHtmlLangConfiguration, UseIframeTitleConfiguration, UseKeyWithClickEventsConfiguration, UseKeyWithMouseEventsConfiguration, UseMediaCaptionConfiguration } from './rule-with-no-document-import-in-page-options.ts';
5
- 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, UseIndexOfConfiguration, UseLiteralKeysConfiguration, UseNumericLiteralsConfiguration, UseOptionalChainConfiguration, UseRegexLiteralsConfiguration, UseSemanticElementsConfiguration, UseSimpleNumberKeysConfiguration, UseSimplifiedLogicExpressionConfiguration, UseValidAnchorConfiguration, UseValidAriaPropsConfiguration, UseValidAriaRoleConfiguration, UseValidAriaValuesConfiguration, UseValidAutocompleteConfiguration, UseValidLangConfiguration, UseWhileConfiguration } from './use-semantic-elements-configuration.ts';
6
- import type { NoAccumulatingSpreadConfiguration, NoAlertConfiguration, NoApproximativeNumericConstantConfiguration, NoArrayIndexKeyConfiguration, NoAwaitInLoopsConfiguration, NoBarrelFileConfiguration, NoBlankTargetConfiguration, NoDangerouslySetInnerHtmlConfiguration, NoDangerouslySetInnerHtmlWithChildrenConfiguration, NoDeleteConfiguration, NoDynamicNamespaceImportAccessConfiguration, NoGlobalEvalConfiguration, NoImgElementConfiguration, NoNamespaceImportConfiguration, NoReExportAllConfiguration, NoRestrictedTypesOptions, NoSecretsConfiguration, NoUnwantedPolyfillioConfiguration, RuleWithNoParameterAssignOptions, RuleWithUseConsistentArrayTypeOptions, RuleWithUseConsistentArrowReturnOptions, RuleWithUseConsistentMemberAccessibilityOptions, RuleWithUseConsistentObjectDefinitionsOptions, RuleWithUseConsistentTypeDefinitionsOptions, RuleWithUseImportTypeOptions, Selector, UseFilenamingConventionOptions, UseGoogleFontPreconnectConfiguration, UseSolidForComponentConfiguration, UseTopLevelRegexConfiguration } from './no-empty-source-configuration.ts';
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;
7
18
  export type NoAssignInExpressionsConfiguration = RulePlainConfiguration | RuleWithNoAssignInExpressionsOptions;
8
19
  export type NoAsyncPromiseExecutorConfiguration = RulePlainConfiguration | RuleWithNoAsyncPromiseExecutorOptions;
9
20
  export type NoBiomeFirstExceptionConfiguration = RulePlainConfiguration | RuleWithNoBiomeFirstExceptionOptions;
@@ -452,7 +463,7 @@ export interface RuleWithUseExhaustiveDependenciesOptions {
452
463
  /**
453
464
  * Rule's options
454
465
  */
455
- options: UseExhaustiveDependenciesOptions;
466
+ options?: UseExhaustiveDependenciesOptions;
456
467
  }
457
468
  export type UseConsistentArrowReturnConfiguration = RulePlainConfiguration | RuleWithUseConsistentArrowReturnOptions;
458
469
  /**
@@ -554,449 +565,7 @@ export interface RuleWithNoRestrictedTypesOptions {
554
565
  /**
555
566
  * Rule's options
556
567
  */
557
- options: NoRestrictedTypesOptions;
568
+ options?: NoRestrictedTypesOptions;
558
569
  }
559
570
  export type UseConsistentArrayTypeConfiguration = RulePlainConfiguration | RuleWithUseConsistentArrayTypeOptions;
560
571
  export type UseConsistentMemberAccessibilityConfiguration = RulePlainConfiguration | RuleWithUseConsistentMemberAccessibilityOptions;
561
- export type UseConsistentObjectDefinitionsConfiguration = RulePlainConfiguration | RuleWithUseConsistentObjectDefinitionsOptions;
562
- export type UseConsistentTypeDefinitionsConfiguration = RulePlainConfiguration | RuleWithUseConsistentTypeDefinitionsOptions;
563
- export interface RuleWithUseFilenamingConventionOptions {
564
- /**
565
- * The severity of the emitted diagnostics by the rule
566
- */
567
- level: RulePlainConfiguration;
568
- /**
569
- * Rule's options
570
- */
571
- options: UseFilenamingConventionOptions;
572
- }
573
- export type UseImportTypeConfiguration = RulePlainConfiguration | RuleWithUseImportTypeOptions;
574
- export interface Convention {
575
- /**
576
- * String cases to enforce
577
- */
578
- formats?: Formats;
579
- /**
580
- * Regular expression to enforce
581
- */
582
- match?: Regex | null;
583
- /**
584
- * Declarations concerned by this convention
585
- */
586
- selector?: Selector;
587
- }
588
- /**
589
- * A list of rules that belong to this group
590
- */
591
- export interface Suspicious {
592
- /**
593
- * Disallow the use of alert, confirm, and prompt.
594
- */
595
- noAlert?: NoAlertConfiguration | null;
596
- /**
597
- * Use standard constants instead of approximated literals.
598
- */
599
- noApproximativeNumericConstant?: NoApproximativeNumericConstantConfiguration | null;
600
- /**
601
- * Discourage the usage of Array index in keys.
602
- */
603
- noArrayIndexKey?: NoArrayIndexKeyConfiguration | null;
604
- /**
605
- * Disallow assignments in expressions.
606
- */
607
- noAssignInExpressions?: NoAssignInExpressionsConfiguration | null;
608
- /**
609
- * Disallows using an async function as a Promise executor.
610
- */
611
- noAsyncPromiseExecutor?: NoAsyncPromiseExecutorConfiguration | null;
612
- /**
613
- * Prevents the use of the ! pattern in the first position of files.includes in the configuration file.
614
- */
615
- noBiomeFirstException?: NoBiomeFirstExceptionConfiguration | null;
616
- /**
617
- * Disallow bitwise operators.
618
- */
619
- noBitwiseOperators?: NoBitwiseOperatorsConfiguration | null;
620
- /**
621
- * Disallow reassigning exceptions in catch clauses.
622
- */
623
- noCatchAssign?: NoCatchAssignConfiguration | null;
624
- /**
625
- * Disallow reassigning class members.
626
- */
627
- noClassAssign?: NoClassAssignConfiguration | null;
628
- /**
629
- * Prevent comments from being inserted as text nodes
630
- */
631
- noCommentText?: NoCommentTextConfiguration | null;
632
- /**
633
- * Disallow comparing against -0
634
- */
635
- noCompareNegZero?: NoCompareNegZeroConfiguration | null;
636
- /**
637
- * Disallow labeled statements that are not loops.
638
- */
639
- noConfusingLabels?: NoConfusingLabelsConfiguration | null;
640
- /**
641
- * Disallow void type outside of generic or return types.
642
- */
643
- noConfusingVoidType?: NoConfusingVoidTypeConfiguration | null;
644
- /**
645
- * Disallow the use of console.
646
- */
647
- noConsole?: NoConsoleConfiguration | null;
648
- /**
649
- * Disallow TypeScript const enum
650
- */
651
- noConstEnum?: NoConstEnumConfiguration | null;
652
- /**
653
- * Disallow expressions where the operation doesn't affect the value
654
- */
655
- noConstantBinaryExpressions?: NoConstantBinaryExpressionsConfiguration | null;
656
- /**
657
- * Prevents from having control characters and some escape sequences that match control characters in regular expression literals.
658
- */
659
- noControlCharactersInRegex?: NoControlCharactersInRegexConfiguration | null;
660
- /**
661
- * Disallow the use of debugger
662
- */
663
- noDebugger?: NoDebuggerConfiguration | null;
664
- /**
665
- * Disallow direct assignments to document.cookie.
666
- */
667
- noDocumentCookie?: NoDocumentCookieConfiguration | null;
668
- /**
669
- * Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
670
- */
671
- noDocumentImportInPage?: NoDocumentImportInPageConfiguration | null;
672
- /**
673
- * Require the use of === and !==.
674
- */
675
- noDoubleEquals?: NoDoubleEqualsConfiguration | null;
676
- /**
677
- * Disallow duplicate @import rules.
678
- */
679
- noDuplicateAtImportRules?: NoDuplicateAtImportRulesConfiguration | null;
680
- /**
681
- * Disallow duplicate case labels.
682
- */
683
- noDuplicateCase?: NoDuplicateCaseConfiguration | null;
684
- /**
685
- * Disallow duplicate class members.
686
- */
687
- noDuplicateClassMembers?: NoDuplicateClassMembersConfiguration | null;
688
- /**
689
- * Disallow duplicate custom properties within declaration blocks.
690
- */
691
- noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration | null;
692
- /**
693
- * Disallow duplicate conditions in if-else-if chains
694
- */
695
- noDuplicateElseIf?: NoDuplicateElseIfConfiguration | null;
696
- /**
697
- * No duplicated fields in GraphQL operations.
698
- */
699
- noDuplicateFields?: NoDuplicateFieldsConfiguration | null;
700
- /**
701
- * Disallow duplicate names within font families.
702
- */
703
- noDuplicateFontNames?: NoDuplicateFontNamesConfiguration | null;
704
- /**
705
- * Prevents JSX properties to be assigned multiple times.
706
- */
707
- noDuplicateJsxProps?: NoDuplicateJsxPropsConfiguration | null;
708
- /**
709
- * Disallow two keys with the same name inside objects.
710
- */
711
- noDuplicateObjectKeys?: NoDuplicateObjectKeysConfiguration | null;
712
- /**
713
- * Disallow duplicate function parameter name.
714
- */
715
- noDuplicateParameters?: NoDuplicateParametersConfiguration | null;
716
- /**
717
- * Disallow duplicate properties within declaration blocks.
718
- */
719
- noDuplicateProperties?: NoDuplicatePropertiesConfiguration | null;
720
- /**
721
- * Disallow duplicate selectors within keyframe blocks.
722
- */
723
- noDuplicateSelectorsKeyframeBlock?: NoDuplicateSelectorsKeyframeBlockConfiguration | null;
724
- /**
725
- * A describe block should not contain duplicate hooks.
726
- */
727
- noDuplicateTestHooks?: NoDuplicateTestHooksConfiguration | null;
728
- /**
729
- * Disallow CSS empty blocks.
730
- */
731
- noEmptyBlock?: NoEmptyBlockConfiguration | null;
732
- /**
733
- * Disallow empty block statements and static blocks.
734
- */
735
- noEmptyBlockStatements?: NoEmptyBlockStatementsConfiguration | null;
736
- /**
737
- * Disallow the declaration of empty interfaces.
738
- */
739
- noEmptyInterface?: NoEmptyInterfaceConfiguration | null;
740
- /**
741
- * Disallow variables from evolving into any type through reassignments.
742
- */
743
- noEvolvingTypes?: NoEvolvingTypesConfiguration | null;
744
- /**
745
- * Disallow the any type usage.
746
- */
747
- noExplicitAny?: NoExplicitAnyConfiguration | null;
748
- /**
749
- * Disallow using export or module.exports in files containing tests
750
- */
751
- noExportsInTest?: NoExportsInTestConfiguration | null;
752
- /**
753
- * Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
754
- */
755
- noExtraNonNullAssertion?: NoExtraNonNullAssertionConfiguration | null;
756
- /**
757
- * Disallow fallthrough of switch clauses.
758
- */
759
- noFallthroughSwitchClause?: NoFallthroughSwitchClauseConfiguration | null;
760
- /**
761
- * Disallow focused tests.
762
- */
763
- noFocusedTests?: NoFocusedTestsConfiguration | null;
764
- /**
765
- * Disallow reassigning function declarations.
766
- */
767
- noFunctionAssign?: NoFunctionAssignConfiguration | null;
768
- /**
769
- * Disallow assignments to native objects and read-only global variables.
770
- */
771
- noGlobalAssign?: NoGlobalAssignConfiguration | null;
772
- /**
773
- * Use Number.isFinite instead of global isFinite.
774
- */
775
- noGlobalIsFinite?: NoGlobalIsFiniteConfiguration | null;
776
- /**
777
- * Use Number.isNaN instead of global isNaN.
778
- */
779
- noGlobalIsNan?: NoGlobalIsNanConfiguration | null;
780
- /**
781
- * Prevent using the next/head module in pages/_document.js on Next.js projects.
782
- */
783
- noHeadImportInDocument?: NoHeadImportInDocumentConfiguration | null;
784
- /**
785
- * Disallow use of implicit any type on variable declarations.
786
- */
787
- noImplicitAnyLet?: NoImplicitAnyLetConfiguration | null;
788
- /**
789
- * Disallow assigning to imported bindings
790
- */
791
- noImportAssign?: NoImportAssignConfiguration | null;
792
- /**
793
- * Disallow invalid !important within keyframe declarations
794
- */
795
- noImportantInKeyframe?: NoImportantInKeyframeConfiguration | null;
796
- /**
797
- * Disallows the use of irregular whitespace characters.
798
- */
799
- noIrregularWhitespace?: NoIrregularWhitespaceConfiguration | null;
800
- /**
801
- * Disallow labels that share a name with a variable
802
- */
803
- noLabelVar?: NoLabelVarConfiguration | null;
804
- /**
805
- * Disallow characters made with multiple code points in character class syntax.
806
- */
807
- noMisleadingCharacterClass?: NoMisleadingCharacterClassConfiguration | null;
808
- /**
809
- * Enforce proper usage of new and constructor.
810
- */
811
- noMisleadingInstantiator?: NoMisleadingInstantiatorConfiguration | null;
812
- /**
813
- * Checks that the assertion function, for example expect, is placed inside an it() function call.
814
- */
815
- noMisplacedAssertion?: NoMisplacedAssertionConfiguration | null;
816
- /**
817
- * Disallow shorthand assign when variable appears on both sides.
818
- */
819
- noMisrefactoredShorthandAssign?: NoMisrefactoredShorthandAssignConfiguration | null;
820
- /**
821
- * Disallow non-null assertions after optional chaining expressions.
822
- */
823
- noNonNullAssertedOptionalChain?: NoNonNullAssertedOptionalChainConfiguration | null;
824
- /**
825
- * Disallow octal escape sequences in string literals
826
- */
827
- noOctalEscape?: NoOctalEscapeConfiguration | null;
828
- /**
829
- * Disallow direct use of Object.prototype builtins.
830
- */
831
- noPrototypeBuiltins?: NoPrototypeBuiltinsConfiguration | null;
832
- /**
833
- * Disallow the use if quickfix.biome inside editor settings file.
834
- */
835
- noQuickfixBiome?: NoQuickfixBiomeConfiguration | null;
836
- /**
837
- * Prevents React-specific JSX properties from being used.
838
- */
839
- noReactSpecificProps?: NoReactSpecificPropsConfiguration | null;
840
- /**
841
- * Disallow variable, function, class, and type redeclarations in the same scope.
842
- */
843
- noRedeclare?: NoRedeclareConfiguration | null;
844
- /**
845
- * Prevents from having redundant "use strict".
846
- */
847
- noRedundantUseStrict?: NoRedundantUseStrictConfiguration | null;
848
- /**
849
- * Disallow comparisons where both sides are exactly the same.
850
- */
851
- noSelfCompare?: NoSelfCompareConfiguration | null;
852
- /**
853
- * Disallow identifiers from shadowing restricted names.
854
- */
855
- noShadowRestrictedNames?: NoShadowRestrictedNamesConfiguration | null;
856
- /**
857
- * Disallow shorthand properties that override related longhand properties.
858
- */
859
- noShorthandPropertyOverrides?: NoShorthandPropertyOverridesConfiguration | null;
860
- /**
861
- * Disallow disabled tests.
862
- */
863
- noSkippedTests?: NoSkippedTestsConfiguration | null;
864
- /**
865
- * Prevents the use of sparse arrays (arrays with holes).
866
- */
867
- noSparseArray?: NoSparseArrayConfiguration | null;
868
- /**
869
- * It detects possible "wrong" semicolons inside JSX elements.
870
- */
871
- noSuspiciousSemicolonInJsx?: NoSuspiciousSemicolonInJsxConfiguration | null;
872
- /**
873
- * Disallow template literal placeholder syntax in regular strings.
874
- */
875
- noTemplateCurlyInString?: NoTemplateCurlyInStringConfiguration | null;
876
- /**
877
- * Disallow then property.
878
- */
879
- noThenProperty?: NoThenPropertyConfiguration | null;
880
- /**
881
- * Prevents the use of the TypeScript directive @ts-ignore.
882
- */
883
- noTsIgnore?: NoTsIgnoreConfiguration | null;
884
- /**
885
- * Disallow let or var variables that are read but never assigned.
886
- */
887
- noUnassignedVariables?: NoUnassignedVariablesConfiguration | null;
888
- /**
889
- * Disallow unknown at-rules.
890
- */
891
- noUnknownAtRules?: NoUnknownAtRulesConfiguration | null;
892
- /**
893
- * Disallow unsafe declaration merging between interfaces and classes.
894
- */
895
- noUnsafeDeclarationMerging?: NoUnsafeDeclarationMergingConfiguration | null;
896
- /**
897
- * Disallow using unsafe negation.
898
- */
899
- noUnsafeNegation?: NoUnsafeNegationConfiguration | null;
900
- /**
901
- * Disallow unnecessary escapes in string literals.
902
- */
903
- noUselessEscapeInString?: NoUselessEscapeInStringConfiguration | null;
904
- /**
905
- * Disallow useless backreferences in regular expression literals that always match an empty string.
906
- */
907
- noUselessRegexBackrefs?: NoUselessRegexBackrefsConfiguration | null;
908
- /**
909
- * Disallow the use of var
910
- */
911
- noVar?: NoVarConfiguration | null;
912
- /**
913
- * Disallow with statements in non-strict contexts.
914
- */
915
- noWith?: NoWithConfiguration | null;
916
- /**
917
- * Enables the recommended rules for this group
918
- */
919
- recommended?: boolean | null;
920
- /**
921
- * Disallow the use of overload signatures that are not next to each other.
922
- */
923
- useAdjacentOverloadSignatures?: UseAdjacentOverloadSignaturesConfiguration | null;
924
- /**
925
- * Ensure async functions utilize await.
926
- */
927
- useAwait?: UseAwaitConfiguration | null;
928
- /**
929
- * Promotes the correct usage for ignoring folders in the configuration file.
930
- */
931
- useBiomeIgnoreFolder?: UseBiomeIgnoreFolderConfiguration | null;
932
- /**
933
- * Enforce default clauses in switch statements to be last
934
- */
935
- useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration | null;
936
- /**
937
- * Enforce passing a message value when creating a built-in error.
938
- */
939
- useErrorMessage?: UseErrorMessageConfiguration | null;
940
- /**
941
- * Enforce get methods to always return a value.
942
- */
943
- useGetterReturn?: UseGetterReturnConfiguration | null;
944
- /**
945
- * Enforces the use of a recommended display strategy with Google Fonts.
946
- */
947
- useGoogleFontDisplay?: UseGoogleFontDisplayConfiguration | null;
948
- /**
949
- * Require for-in loops to include an if statement.
950
- */
951
- useGuardForIn?: UseGuardForInConfiguration | null;
952
- /**
953
- * Use Array.isArray() instead of instanceof Array.
954
- */
955
- useIsArray?: UseIsArrayConfiguration | null;
956
- /**
957
- * Enforce consistent return values in iterable callbacks.
958
- */
959
- useIterableCallbackReturn?: UseIterableCallbackReturnConfiguration | null;
960
- /**
961
- * Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
962
- */
963
- useNamespaceKeyword?: UseNamespaceKeywordConfiguration | null;
964
- /**
965
- * Enforce using the digits argument with Number#toFixed().
966
- */
967
- useNumberToFixedDigitsArgument?: UseNumberToFixedDigitsArgumentConfiguration | null;
968
- /**
969
- * Use static Response methods instead of new Response() constructor when possible.
970
- */
971
- useStaticResponseMethods?: UseStaticResponseMethodsConfiguration | null;
972
- /**
973
- * Enforce the use of the directive "use strict" in script files.
974
- */
975
- useStrictMode?: UseStrictModeConfiguration | null;
976
- }
977
- export interface ImportMatcher {
978
- source?: SourcesMatcher | null;
979
- type?: boolean | null;
980
- [k: string]: unknown;
981
- }
982
- export interface PatternOptions {
983
- /**
984
- * An array of gitignore-style patterns.
985
- */
986
- group?: SourcesMatcher | null;
987
- /**
988
- * A regex pattern for import names to forbid within the matched modules.
989
- */
990
- importNamePattern?: Regex | null;
991
- /**
992
- * If true, the matched patterns in the importNamePattern will be allowed. Defaults to `false`.
993
- */
994
- invertImportNamePattern?: boolean;
995
- /**
996
- * A custom message for diagnostics related to this pattern.
997
- */
998
- message?: string | null;
999
- }
1000
- export type SeverityOrGroupFor_A11Y = GroupPlainConfiguration | A11Y;
1001
- export type SeverityOrGroupFor_Complexity = GroupPlainConfiguration | Complexity;
1002
- export type UseExhaustiveDependenciesConfiguration = RulePlainConfiguration | RuleWithUseExhaustiveDependenciesOptions;
@@ -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';