@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.
- package/dist/build.mjs +59 -59
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +59 -59
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +10 -9
- package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +25 -24
- package/dist/types/src/generated/biome/{no-misrefactored-shorthand-assign-options.d.ts → no-label-var-options.d.ts} +55 -95
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → no-magic-numbers-options.d.ts} +17 -17
- 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
- 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
- package/dist/types/src/generated/biome/{use-consistent-arrow-return-options.d.ts → rule-with-no-unused-expressions-options.d.ts} +202 -206
- package/dist/types/src/generated/biome/schema.d.ts +11 -11
- package/dist/types/src/generated/biome/{nursery.d.ts → use-consistent-object-definitions-configuration.d.ts} +473 -192
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → use-focusable-interactive-configuration.d.ts} +16 -16
- package/dist/types/src/generated/biome/{no-empty-source-configuration.d.ts → use-qwik-classlist-configuration.d.ts} +26 -26
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → use-shorthand-assign-configuration.d.ts} +19 -450
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +34 -34
|
@@ -1,14 +1,460 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type { Paths } from './
|
|
4
|
-
import type {
|
|
5
|
-
import type { NoChildrenPropConfiguration, NoConstAssignConfiguration, NoConstantConditionConfiguration, NoConstantMathMinMaxClampConfiguration, NoConstructorReturnConfiguration,
|
|
6
|
-
import type { NoCommonJsConfiguration, NoDefaultExportConfiguration, NoDescendingSpecificityConfiguration, NoDoneCallbackConfiguration, NoEmptySourceConfiguration, NoEnumConfiguration, NoExportedImportsConfiguration, NoFloatingPromisesConfiguration, NoHeadElementConfiguration, NoImplicitBooleanConfiguration, NoImportCyclesConfiguration, NoIncrementDecrementConfiguration, NoInferrableTypesConfiguration, NoJsxLiteralsConfiguration, NoMagicNumbersConfiguration, NoMisusedPromisesConfiguration, NoNamespaceConfiguration, NoNegationElseConfiguration, NoNestedTernaryConfiguration, NoNextAsyncClientComponentConfiguration, NoNonNullAssertionConfiguration, NoParameterPropertiesConfiguration, NoProcessEnvConfiguration, NoReactForwardRefConfiguration, NoRestrictedGlobalsConfiguration, NoShadowConfiguration, NoShoutyConstantsConfiguration, NoSubstrConfiguration, NoUnnecessaryConditionsConfiguration, NoUnresolvedImportsConfiguration, NoUnusedExpressionsConfiguration, NoUnusedTemplateLiteralConfiguration, NoUselessCatchBindingConfiguration, NoUselessElseConfiguration, NoUselessUndefinedConfiguration, NoValueAtRuleConfiguration, NoVueDataObjectDeclarationConfiguration, NoVueDuplicateKeysConfiguration, NoVueReservedKeysConfiguration, NoVueReservedPropsConfiguration, NoYodaExpressionConfiguration, UseArrayLiteralsConfiguration, UseAsConstAssertionConfiguration, UseAtIndexConfiguration, UseBlockStatementsConfiguration, UseCollapsedElseIfConfiguration, UseCollapsedIfConfiguration, UseComponentExportOnlyModulesConfiguration, UseConsistentBuiltinInstantiationConfiguration, UseConsistentCurlyBracesConfiguration, UseConstConfiguration, UseDefaultParameterLastConfiguration, UseDefaultSwitchClauseConfiguration, UseDeprecatedDateConfiguration, UseDeprecatedReasonConfiguration, UseEnumInitializersConfiguration, UseExhaustiveSwitchCasesConfiguration, UseExplicitLengthCheckConfiguration, UseExplicitTypeConfiguration, UseExponentiationOperatorConfiguration, UseExportTypeConfiguration, UseExportsLastConfiguration, UseForOfConfiguration, UseFragmentSyntaxConfiguration, UseGraphqlNamingConventionConfiguration, UseGroupedAccessorPairsConfiguration, UseLiteralEnumMembersConfiguration, UseMaxParamsConfiguration, UseNodeAssertStrictConfiguration, UseNodejsImportProtocolConfiguration, UseNumberNamespaceConfiguration, UseNumericSeparatorsConfiguration, UseObjectSpreadConfiguration, UseQwikMethodUsageConfiguration, UseQwikValidLexicalScopeConfiguration, UseReactFunctionComponentsConfiguration, UseReadonlyClassPropertiesConfiguration, UseSelfClosingElementsConfiguration,
|
|
7
|
-
import type {
|
|
1
|
+
import type { FixKind, GroupPlainConfiguration, RuleAssistPlainConfiguration, RulePlainConfiguration, SortOrder } from './schema.ts';
|
|
2
|
+
import type { Regex } from './no-magic-numbers-options.ts';
|
|
3
|
+
import type { Formats, Paths } from './rule-with-no-unused-expressions-options.ts';
|
|
4
|
+
import type { RuleAssistConfigurationFor_UseSortedPropertiesOptions, SourceMatcher } from './rule-with-no-confusing-labels-options.ts';
|
|
5
|
+
import type { NoChildrenPropConfiguration, NoConstAssignConfiguration, NoConstantConditionConfiguration, NoConstantMathMinMaxClampConfiguration, NoConstructorReturnConfiguration, NoEmptyCharacterClassInRegexConfiguration, NoEmptyPatternConfiguration, NoGlobalDirnameFilenameConfiguration, NoGlobalObjectCallsConfiguration, NoInnerDeclarationsConfiguration, NoInvalidBuiltinInstantiationConfiguration, NoInvalidConstructorSuperConfiguration, NoInvalidDirectionInLinearGradientConfiguration, NoInvalidGridAreasConfiguration, NoInvalidPositionAtImportRuleConfiguration, NoInvalidUseBeforeDeclarationConfiguration, NoMissingVarFunctionConfiguration, NoNestedComponentDefinitionsConfiguration, NoNodejsModulesConfiguration, NoNonoctalDecimalEscapeConfiguration, NoPrecisionLossConfiguration, NoProcessGlobalConfiguration, NoQwikUseVisibleTaskConfiguration, NoReactPropAssignmentsConfiguration, NoRenderReturnValueConfiguration, NoSelfAssignConfiguration, NoSetterReturnConfiguration, NoSolidDestructuredPropsConfiguration, NoStringCaseMismatchConfiguration, NoSwitchDeclarationsConfiguration, NoUndeclaredVariablesConfiguration, NoUnknownFunctionConfiguration, NoUnknownMediaFeatureNameConfiguration, NoUnknownPropertyConfiguration, NoUnknownPseudoClassConfiguration, NoUnknownPseudoElementConfiguration, NoUnknownTypeSelectorConfiguration, NoUnknownUnitConfiguration, NoUnmatchableAnbSelectorConfiguration, NoUnreachableConfiguration, NoUnreachableSuperConfiguration, NoUnsafeFinallyConfiguration, NoUnsafeOptionalChainingConfiguration, NoUnusedFunctionParametersConfiguration, NoUnusedImportsConfiguration, NoUnusedLabelsConfiguration, NoUnusedPrivateClassMembersConfiguration, NoUnusedVariablesConfiguration, NoVoidElementsWithChildrenConfiguration, NoVoidTypeReturnConfiguration, UseGraphqlNamedOperationsConfiguration, UseHookAtTopLevelConfiguration, UseImageSizeConfiguration, UseImportExtensionsConfiguration, UseIsNanConfiguration, UseJsonImportAttributesConfiguration, UseJsxKeyInIterableConfiguration, UseParseIntRadixConfiguration } from './use-focusable-interactive-configuration.ts';
|
|
6
|
+
import type { NoCommonJsConfiguration, NoContinueConfiguration, NoDefaultExportConfiguration, NoDeprecatedImportsConfiguration, NoDescendingSpecificityConfiguration, NoDoneCallbackConfiguration, NoDuplicateDependenciesConfiguration, NoEmptySourceConfiguration, NoEnumConfiguration, NoExportedImportsConfiguration, NoFloatingPromisesConfiguration, NoHeadElementConfiguration, NoImplicitBooleanConfiguration, NoImportCyclesConfiguration, NoIncrementDecrementConfiguration, NoInferrableTypesConfiguration, NoJsxLiteralsConfiguration, NoMagicNumbersConfiguration, NoMisusedPromisesConfiguration, NoNamespaceConfiguration, NoNegationElseConfiguration, NoNestedTernaryConfiguration, NoNextAsyncClientComponentConfiguration, NoNonNullAssertionConfiguration, NoParameterPropertiesConfiguration, NoParametersOnlyUsedInRecursionConfiguration, NoProcessEnvConfiguration, NoReactForwardRefConfiguration, NoRestrictedGlobalsConfiguration, NoShadowConfiguration, NoShoutyConstantsConfiguration, NoSubstrConfiguration, NoUnknownAttributeConfiguration, NoUnnecessaryConditionsConfiguration, NoUnresolvedImportsConfiguration, NoUnusedExpressionsConfiguration, NoUnusedTemplateLiteralConfiguration, NoUselessCatchBindingConfiguration, NoUselessElseConfiguration, NoUselessUndefinedConfiguration, NoValueAtRuleConfiguration, NoVueDataObjectDeclarationConfiguration, NoVueDuplicateKeysConfiguration, NoVueReservedKeysConfiguration, NoVueReservedPropsConfiguration, NoYodaExpressionConfiguration, RuleWithUseConsistentObjectDefinitionsOptions, RuleWithUseConsistentTypeDefinitionsOptions, RuleWithUseImportTypeOptions, Selector, UseArrayLiteralsConfiguration, UseArraySortCompareConfiguration, UseAsConstAssertionConfiguration, UseAtIndexConfiguration, UseBlockStatementsConfiguration, UseCollapsedElseIfConfiguration, UseCollapsedIfConfiguration, UseComponentExportOnlyModulesConfiguration, UseConsistentBuiltinInstantiationConfiguration, UseConsistentCurlyBracesConfiguration, UseConstConfiguration, UseDefaultParameterLastConfiguration, UseDefaultSwitchClauseConfiguration, UseDeprecatedDateConfiguration, UseDeprecatedReasonConfiguration, UseEnumInitializersConfiguration, UseExhaustiveSwitchCasesConfiguration, UseExplicitLengthCheckConfiguration, UseExplicitTypeConfiguration, UseExponentiationOperatorConfiguration, UseExportTypeConfiguration, UseExportsLastConfiguration, UseFilenamingConventionOptions, UseForOfConfiguration, UseFragmentSyntaxConfiguration, UseGraphqlNamingConventionConfiguration, UseGroupedAccessorPairsConfiguration, UseLiteralEnumMembersConfiguration, UseMaxParamsConfiguration, UseNodeAssertStrictConfiguration, UseNodejsImportProtocolConfiguration, UseNumberNamespaceConfiguration, UseNumericSeparatorsConfiguration, UseObjectSpreadConfiguration, UseQwikClasslistConfiguration, UseQwikMethodUsageConfiguration, UseQwikValidLexicalScopeConfiguration, UseReactFunctionComponentsConfiguration, UseReadonlyClassPropertiesConfiguration, UseSelfClosingElementsConfiguration, UseSingleJsDocAsteriskConfiguration, UseSortedClassesConfiguration, UseUniqueElementIdsConfiguration, UseValidForDirectionConfiguration, UseValidTypeofConfiguration, UseVueDefineMacrosOrderConfiguration, UseVueMultiWordComponentNamesConfiguration, UseYieldConfiguration } from './use-qwik-classlist-configuration.ts';
|
|
7
|
+
import type { A11Y, Complexity, NoAlertConfiguration, NoApproximativeNumericConstantConfiguration, NoArrayIndexKeyConfiguration, NoAssignInExpressionsConfiguration, NoAsyncPromiseExecutorConfiguration, NoBiomeFirstExceptionConfiguration, NoBitwiseOperatorsConfiguration, NoCatchAssignConfiguration, NoClassAssignConfiguration, NoCommentTextConfiguration, NoCompareNegZeroConfiguration, NoConfusingLabelsConfiguration, NoConfusingVoidTypeConfiguration, NoConsoleConfiguration, NoConstEnumConfiguration, NoConstantBinaryExpressionsConfiguration, NoControlCharactersInRegexConfiguration, NoDebuggerConfiguration, NoDocumentCookieConfiguration, NoDocumentImportInPageConfiguration, NoDoubleEqualsConfiguration, NoDuplicateAtImportRulesConfiguration, NoDuplicateCaseConfiguration, NoDuplicateClassMembersConfiguration, NoDuplicateCustomPropertiesConfiguration, NoDuplicateElseIfConfiguration, NoDuplicateFieldsConfiguration, NoDuplicateFontNamesConfiguration, NoDuplicateJsxPropsConfiguration, NoDuplicateObjectKeysConfiguration, NoDuplicateParametersConfiguration, NoDuplicatePropertiesConfiguration, NoDuplicateSelectorsKeyframeBlockConfiguration, NoDuplicateTestHooksConfiguration, NoEmptyBlockConfiguration, NoEmptyBlockStatementsConfiguration, NoEmptyInterfaceConfiguration, NoEvolvingTypesConfiguration, NoExplicitAnyConfiguration, NoExportsInTestConfiguration, NoExtraNonNullAssertionConfiguration, NoFallthroughSwitchClauseConfiguration, NoFocusedTestsConfiguration, NoFunctionAssignConfiguration, NoGlobalAssignConfiguration, NoGlobalIsFiniteConfiguration, NoGlobalIsNanConfiguration, NoHeadImportInDocumentConfiguration, NoImplicitAnyLetConfiguration, NoImportAssignConfiguration, NoImportantInKeyframeConfiguration, NoIrregularWhitespaceConfiguration, NoLabelVarConfiguration, NoMisleadingCharacterClassConfiguration, NoMisleadingInstantiatorConfiguration, NoMisplacedAssertionConfiguration, NoMisrefactoredShorthandAssignConfiguration, NoNonNullAssertedOptionalChainConfiguration, NoOctalEscapeConfiguration, NoParameterAssignConfiguration, NoPrivateImportsConfiguration, NoPrototypeBuiltinsConfiguration, NoQuickfixBiomeConfiguration, NoReactSpecificPropsConfiguration, NoRedeclareConfiguration, NoRedundantUseStrictConfiguration, NoRestrictedElementsConfiguration, NoSelfCompareConfiguration, NoShadowRestrictedNamesConfiguration, NoShorthandPropertyOverridesConfiguration, NoSkippedTestsConfiguration, NoSparseArrayConfiguration, NoSuspiciousSemicolonInJsxConfiguration, NoTemplateCurlyInStringConfiguration, NoThenPropertyConfiguration, NoTsIgnoreConfiguration, NoUnassignedVariablesConfiguration, NoUndeclaredDependenciesConfiguration, NoUnknownAtRulesConfiguration, NoUnsafeDeclarationMergingConfiguration, NoUnsafeNegationConfiguration, NoUselessEscapeInStringConfiguration, NoUselessRegexBackrefsConfiguration, NoVarConfiguration, NoWithConfiguration, Performance, RuleAssistConfigurationFor_UseSortedAttributesOptions, RuleAssistConfigurationFor_UseSortedKeysOptions, RuleWithNoRestrictedTypesOptions, RuleWithUseExhaustiveDependenciesOptions, Security, SourcesMatcher, UseAdjacentOverloadSignaturesConfiguration, UseAwaitConfiguration, UseBiomeIgnoreFolderConfiguration, UseConsistentArrayTypeConfiguration, UseConsistentArrowReturnConfiguration, UseConsistentMemberAccessibilityConfiguration, UseDefaultSwitchClauseLastConfiguration, UseErrorMessageConfiguration, UseGetterReturnConfiguration, UseGoogleFontDisplayConfiguration, UseGuardForInConfiguration, UseIsArrayConfiguration, UseIterableCallbackReturnConfiguration, UseNamespaceKeywordConfiguration, UseNumberToFixedDigitsArgumentConfiguration, UseShorthandAssignConfiguration, UseShorthandFunctionTypeConfiguration, UseSingleVarDeclaratorConfiguration, UseStaticResponseMethodsConfiguration, UseStrictModeConfiguration, UseSymbolDescriptionConfiguration, UseTemplateConfiguration, UseThrowNewErrorConfiguration, UseThrowOnlyErrorConfiguration, UseTrimStartEndConfiguration, UseUnifiedTypeSignaturesConfiguration } from './use-shorthand-assign-configuration.ts';
|
|
8
|
+
export type UseConsistentObjectDefinitionsConfiguration = RulePlainConfiguration | RuleWithUseConsistentObjectDefinitionsOptions;
|
|
9
|
+
export type UseConsistentTypeDefinitionsConfiguration = RulePlainConfiguration | RuleWithUseConsistentTypeDefinitionsOptions;
|
|
10
|
+
export interface RuleWithUseFilenamingConventionOptions {
|
|
11
|
+
/**
|
|
12
|
+
* The severity of the emitted diagnostics by the rule
|
|
13
|
+
*/
|
|
14
|
+
level: RulePlainConfiguration;
|
|
15
|
+
/**
|
|
16
|
+
* Rule's options
|
|
17
|
+
*/
|
|
18
|
+
options?: UseFilenamingConventionOptions;
|
|
19
|
+
}
|
|
20
|
+
export type UseImportTypeConfiguration = RulePlainConfiguration | RuleWithUseImportTypeOptions;
|
|
21
|
+
export interface Convention {
|
|
22
|
+
/**
|
|
23
|
+
* String cases to enforce
|
|
24
|
+
*/
|
|
25
|
+
formats?: Formats;
|
|
26
|
+
/**
|
|
27
|
+
* Regular expression to enforce
|
|
28
|
+
*/
|
|
29
|
+
match?: Regex | null;
|
|
30
|
+
/**
|
|
31
|
+
* Declarations concerned by this convention
|
|
32
|
+
*/
|
|
33
|
+
selector?: Selector;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A list of rules that belong to this group
|
|
37
|
+
*/
|
|
38
|
+
export interface Suspicious {
|
|
39
|
+
/**
|
|
40
|
+
* Disallow the use of alert, confirm, and prompt.
|
|
41
|
+
*/
|
|
42
|
+
noAlert?: NoAlertConfiguration | null;
|
|
43
|
+
/**
|
|
44
|
+
* Use standard constants instead of approximated literals.
|
|
45
|
+
*/
|
|
46
|
+
noApproximativeNumericConstant?: NoApproximativeNumericConstantConfiguration | null;
|
|
47
|
+
/**
|
|
48
|
+
* Discourage the usage of Array index in keys.
|
|
49
|
+
*/
|
|
50
|
+
noArrayIndexKey?: NoArrayIndexKeyConfiguration | null;
|
|
51
|
+
/**
|
|
52
|
+
* Disallow assignments in expressions.
|
|
53
|
+
*/
|
|
54
|
+
noAssignInExpressions?: NoAssignInExpressionsConfiguration | null;
|
|
55
|
+
/**
|
|
56
|
+
* Disallows using an async function as a Promise executor.
|
|
57
|
+
*/
|
|
58
|
+
noAsyncPromiseExecutor?: NoAsyncPromiseExecutorConfiguration | null;
|
|
59
|
+
/**
|
|
60
|
+
* Prevents the use of the ! pattern in the first position of files.includes in the configuration file.
|
|
61
|
+
*/
|
|
62
|
+
noBiomeFirstException?: NoBiomeFirstExceptionConfiguration | null;
|
|
63
|
+
/**
|
|
64
|
+
* Disallow bitwise operators.
|
|
65
|
+
*/
|
|
66
|
+
noBitwiseOperators?: NoBitwiseOperatorsConfiguration | null;
|
|
67
|
+
/**
|
|
68
|
+
* Disallow reassigning exceptions in catch clauses.
|
|
69
|
+
*/
|
|
70
|
+
noCatchAssign?: NoCatchAssignConfiguration | null;
|
|
71
|
+
/**
|
|
72
|
+
* Disallow reassigning class members.
|
|
73
|
+
*/
|
|
74
|
+
noClassAssign?: NoClassAssignConfiguration | null;
|
|
75
|
+
/**
|
|
76
|
+
* Prevent comments from being inserted as text nodes
|
|
77
|
+
*/
|
|
78
|
+
noCommentText?: NoCommentTextConfiguration | null;
|
|
79
|
+
/**
|
|
80
|
+
* Disallow comparing against -0
|
|
81
|
+
*/
|
|
82
|
+
noCompareNegZero?: NoCompareNegZeroConfiguration | null;
|
|
83
|
+
/**
|
|
84
|
+
* Disallow labeled statements that are not loops.
|
|
85
|
+
*/
|
|
86
|
+
noConfusingLabels?: NoConfusingLabelsConfiguration | null;
|
|
87
|
+
/**
|
|
88
|
+
* Disallow void type outside of generic or return types.
|
|
89
|
+
*/
|
|
90
|
+
noConfusingVoidType?: NoConfusingVoidTypeConfiguration | null;
|
|
91
|
+
/**
|
|
92
|
+
* Disallow the use of console.
|
|
93
|
+
*/
|
|
94
|
+
noConsole?: NoConsoleConfiguration | null;
|
|
95
|
+
/**
|
|
96
|
+
* Disallow TypeScript const enum
|
|
97
|
+
*/
|
|
98
|
+
noConstEnum?: NoConstEnumConfiguration | null;
|
|
99
|
+
/**
|
|
100
|
+
* Disallow expressions where the operation doesn't affect the value
|
|
101
|
+
*/
|
|
102
|
+
noConstantBinaryExpressions?: NoConstantBinaryExpressionsConfiguration | null;
|
|
103
|
+
/**
|
|
104
|
+
* Prevents from having control characters and some escape sequences that match control characters in regular expression literals.
|
|
105
|
+
*/
|
|
106
|
+
noControlCharactersInRegex?: NoControlCharactersInRegexConfiguration | null;
|
|
107
|
+
/**
|
|
108
|
+
* Disallow the use of debugger
|
|
109
|
+
*/
|
|
110
|
+
noDebugger?: NoDebuggerConfiguration | null;
|
|
111
|
+
/**
|
|
112
|
+
* Disallow direct assignments to document.cookie.
|
|
113
|
+
*/
|
|
114
|
+
noDocumentCookie?: NoDocumentCookieConfiguration | null;
|
|
115
|
+
/**
|
|
116
|
+
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
117
|
+
*/
|
|
118
|
+
noDocumentImportInPage?: NoDocumentImportInPageConfiguration | null;
|
|
119
|
+
/**
|
|
120
|
+
* Require the use of === and !==.
|
|
121
|
+
*/
|
|
122
|
+
noDoubleEquals?: NoDoubleEqualsConfiguration | null;
|
|
123
|
+
/**
|
|
124
|
+
* Disallow duplicate @import rules.
|
|
125
|
+
*/
|
|
126
|
+
noDuplicateAtImportRules?: NoDuplicateAtImportRulesConfiguration | null;
|
|
127
|
+
/**
|
|
128
|
+
* Disallow duplicate case labels.
|
|
129
|
+
*/
|
|
130
|
+
noDuplicateCase?: NoDuplicateCaseConfiguration | null;
|
|
131
|
+
/**
|
|
132
|
+
* Disallow duplicate class members.
|
|
133
|
+
*/
|
|
134
|
+
noDuplicateClassMembers?: NoDuplicateClassMembersConfiguration | null;
|
|
135
|
+
/**
|
|
136
|
+
* Disallow duplicate custom properties within declaration blocks.
|
|
137
|
+
*/
|
|
138
|
+
noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration | null;
|
|
139
|
+
/**
|
|
140
|
+
* Disallow duplicate conditions in if-else-if chains
|
|
141
|
+
*/
|
|
142
|
+
noDuplicateElseIf?: NoDuplicateElseIfConfiguration | null;
|
|
143
|
+
/**
|
|
144
|
+
* No duplicated fields in GraphQL operations.
|
|
145
|
+
*/
|
|
146
|
+
noDuplicateFields?: NoDuplicateFieldsConfiguration | null;
|
|
147
|
+
/**
|
|
148
|
+
* Disallow duplicate names within font families.
|
|
149
|
+
*/
|
|
150
|
+
noDuplicateFontNames?: NoDuplicateFontNamesConfiguration | null;
|
|
151
|
+
/**
|
|
152
|
+
* Prevents JSX properties to be assigned multiple times.
|
|
153
|
+
*/
|
|
154
|
+
noDuplicateJsxProps?: NoDuplicateJsxPropsConfiguration | null;
|
|
155
|
+
/**
|
|
156
|
+
* Disallow two keys with the same name inside objects.
|
|
157
|
+
*/
|
|
158
|
+
noDuplicateObjectKeys?: NoDuplicateObjectKeysConfiguration | null;
|
|
159
|
+
/**
|
|
160
|
+
* Disallow duplicate function parameter name.
|
|
161
|
+
*/
|
|
162
|
+
noDuplicateParameters?: NoDuplicateParametersConfiguration | null;
|
|
163
|
+
/**
|
|
164
|
+
* Disallow duplicate properties within declaration blocks.
|
|
165
|
+
*/
|
|
166
|
+
noDuplicateProperties?: NoDuplicatePropertiesConfiguration | null;
|
|
167
|
+
/**
|
|
168
|
+
* Disallow duplicate selectors within keyframe blocks.
|
|
169
|
+
*/
|
|
170
|
+
noDuplicateSelectorsKeyframeBlock?: NoDuplicateSelectorsKeyframeBlockConfiguration | null;
|
|
171
|
+
/**
|
|
172
|
+
* A describe block should not contain duplicate hooks.
|
|
173
|
+
*/
|
|
174
|
+
noDuplicateTestHooks?: NoDuplicateTestHooksConfiguration | null;
|
|
175
|
+
/**
|
|
176
|
+
* Disallow CSS empty blocks.
|
|
177
|
+
*/
|
|
178
|
+
noEmptyBlock?: NoEmptyBlockConfiguration | null;
|
|
179
|
+
/**
|
|
180
|
+
* Disallow empty block statements and static blocks.
|
|
181
|
+
*/
|
|
182
|
+
noEmptyBlockStatements?: NoEmptyBlockStatementsConfiguration | null;
|
|
183
|
+
/**
|
|
184
|
+
* Disallow the declaration of empty interfaces.
|
|
185
|
+
*/
|
|
186
|
+
noEmptyInterface?: NoEmptyInterfaceConfiguration | null;
|
|
187
|
+
/**
|
|
188
|
+
* Disallow variables from evolving into any type through reassignments.
|
|
189
|
+
*/
|
|
190
|
+
noEvolvingTypes?: NoEvolvingTypesConfiguration | null;
|
|
191
|
+
/**
|
|
192
|
+
* Disallow the any type usage.
|
|
193
|
+
*/
|
|
194
|
+
noExplicitAny?: NoExplicitAnyConfiguration | null;
|
|
195
|
+
/**
|
|
196
|
+
* Disallow using export or module.exports in files containing tests
|
|
197
|
+
*/
|
|
198
|
+
noExportsInTest?: NoExportsInTestConfiguration | null;
|
|
199
|
+
/**
|
|
200
|
+
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
201
|
+
*/
|
|
202
|
+
noExtraNonNullAssertion?: NoExtraNonNullAssertionConfiguration | null;
|
|
203
|
+
/**
|
|
204
|
+
* Disallow fallthrough of switch clauses.
|
|
205
|
+
*/
|
|
206
|
+
noFallthroughSwitchClause?: NoFallthroughSwitchClauseConfiguration | null;
|
|
207
|
+
/**
|
|
208
|
+
* Disallow focused tests.
|
|
209
|
+
*/
|
|
210
|
+
noFocusedTests?: NoFocusedTestsConfiguration | null;
|
|
211
|
+
/**
|
|
212
|
+
* Disallow reassigning function declarations.
|
|
213
|
+
*/
|
|
214
|
+
noFunctionAssign?: NoFunctionAssignConfiguration | null;
|
|
215
|
+
/**
|
|
216
|
+
* Disallow assignments to native objects and read-only global variables.
|
|
217
|
+
*/
|
|
218
|
+
noGlobalAssign?: NoGlobalAssignConfiguration | null;
|
|
219
|
+
/**
|
|
220
|
+
* Use Number.isFinite instead of global isFinite.
|
|
221
|
+
*/
|
|
222
|
+
noGlobalIsFinite?: NoGlobalIsFiniteConfiguration | null;
|
|
223
|
+
/**
|
|
224
|
+
* Use Number.isNaN instead of global isNaN.
|
|
225
|
+
*/
|
|
226
|
+
noGlobalIsNan?: NoGlobalIsNanConfiguration | null;
|
|
227
|
+
/**
|
|
228
|
+
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
229
|
+
*/
|
|
230
|
+
noHeadImportInDocument?: NoHeadImportInDocumentConfiguration | null;
|
|
231
|
+
/**
|
|
232
|
+
* Disallow use of implicit any type on variable declarations.
|
|
233
|
+
*/
|
|
234
|
+
noImplicitAnyLet?: NoImplicitAnyLetConfiguration | null;
|
|
235
|
+
/**
|
|
236
|
+
* Disallow assigning to imported bindings
|
|
237
|
+
*/
|
|
238
|
+
noImportAssign?: NoImportAssignConfiguration | null;
|
|
239
|
+
/**
|
|
240
|
+
* Disallow invalid !important within keyframe declarations
|
|
241
|
+
*/
|
|
242
|
+
noImportantInKeyframe?: NoImportantInKeyframeConfiguration | null;
|
|
243
|
+
/**
|
|
244
|
+
* Disallows the use of irregular whitespace characters.
|
|
245
|
+
*/
|
|
246
|
+
noIrregularWhitespace?: NoIrregularWhitespaceConfiguration | null;
|
|
247
|
+
/**
|
|
248
|
+
* Disallow labels that share a name with a variable
|
|
249
|
+
*/
|
|
250
|
+
noLabelVar?: NoLabelVarConfiguration | null;
|
|
251
|
+
/**
|
|
252
|
+
* Disallow characters made with multiple code points in character class syntax.
|
|
253
|
+
*/
|
|
254
|
+
noMisleadingCharacterClass?: NoMisleadingCharacterClassConfiguration | null;
|
|
255
|
+
/**
|
|
256
|
+
* Enforce proper usage of new and constructor.
|
|
257
|
+
*/
|
|
258
|
+
noMisleadingInstantiator?: NoMisleadingInstantiatorConfiguration | null;
|
|
259
|
+
/**
|
|
260
|
+
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
261
|
+
*/
|
|
262
|
+
noMisplacedAssertion?: NoMisplacedAssertionConfiguration | null;
|
|
263
|
+
/**
|
|
264
|
+
* Disallow shorthand assign when variable appears on both sides.
|
|
265
|
+
*/
|
|
266
|
+
noMisrefactoredShorthandAssign?: NoMisrefactoredShorthandAssignConfiguration | null;
|
|
267
|
+
/**
|
|
268
|
+
* Disallow non-null assertions after optional chaining expressions.
|
|
269
|
+
*/
|
|
270
|
+
noNonNullAssertedOptionalChain?: NoNonNullAssertedOptionalChainConfiguration | null;
|
|
271
|
+
/**
|
|
272
|
+
* Disallow octal escape sequences in string literals
|
|
273
|
+
*/
|
|
274
|
+
noOctalEscape?: NoOctalEscapeConfiguration | null;
|
|
275
|
+
/**
|
|
276
|
+
* Disallow direct use of Object.prototype builtins.
|
|
277
|
+
*/
|
|
278
|
+
noPrototypeBuiltins?: NoPrototypeBuiltinsConfiguration | null;
|
|
279
|
+
/**
|
|
280
|
+
* Disallow the use if quickfix.biome inside editor settings file.
|
|
281
|
+
*/
|
|
282
|
+
noQuickfixBiome?: NoQuickfixBiomeConfiguration | null;
|
|
283
|
+
/**
|
|
284
|
+
* Prevents React-specific JSX properties from being used.
|
|
285
|
+
*/
|
|
286
|
+
noReactSpecificProps?: NoReactSpecificPropsConfiguration | null;
|
|
287
|
+
/**
|
|
288
|
+
* Disallow variable, function, class, and type redeclarations in the same scope.
|
|
289
|
+
*/
|
|
290
|
+
noRedeclare?: NoRedeclareConfiguration | null;
|
|
291
|
+
/**
|
|
292
|
+
* Prevents from having redundant "use strict".
|
|
293
|
+
*/
|
|
294
|
+
noRedundantUseStrict?: NoRedundantUseStrictConfiguration | null;
|
|
295
|
+
/**
|
|
296
|
+
* Disallow comparisons where both sides are exactly the same.
|
|
297
|
+
*/
|
|
298
|
+
noSelfCompare?: NoSelfCompareConfiguration | null;
|
|
299
|
+
/**
|
|
300
|
+
* Disallow identifiers from shadowing restricted names.
|
|
301
|
+
*/
|
|
302
|
+
noShadowRestrictedNames?: NoShadowRestrictedNamesConfiguration | null;
|
|
303
|
+
/**
|
|
304
|
+
* Disallow shorthand properties that override related longhand properties.
|
|
305
|
+
*/
|
|
306
|
+
noShorthandPropertyOverrides?: NoShorthandPropertyOverridesConfiguration | null;
|
|
307
|
+
/**
|
|
308
|
+
* Disallow disabled tests.
|
|
309
|
+
*/
|
|
310
|
+
noSkippedTests?: NoSkippedTestsConfiguration | null;
|
|
311
|
+
/**
|
|
312
|
+
* Prevents the use of sparse arrays (arrays with holes).
|
|
313
|
+
*/
|
|
314
|
+
noSparseArray?: NoSparseArrayConfiguration | null;
|
|
315
|
+
/**
|
|
316
|
+
* It detects possible "wrong" semicolons inside JSX elements.
|
|
317
|
+
*/
|
|
318
|
+
noSuspiciousSemicolonInJsx?: NoSuspiciousSemicolonInJsxConfiguration | null;
|
|
319
|
+
/**
|
|
320
|
+
* Disallow template literal placeholder syntax in regular strings.
|
|
321
|
+
*/
|
|
322
|
+
noTemplateCurlyInString?: NoTemplateCurlyInStringConfiguration | null;
|
|
323
|
+
/**
|
|
324
|
+
* Disallow then property.
|
|
325
|
+
*/
|
|
326
|
+
noThenProperty?: NoThenPropertyConfiguration | null;
|
|
327
|
+
/**
|
|
328
|
+
* Prevents the use of the TypeScript directive @ts-ignore.
|
|
329
|
+
*/
|
|
330
|
+
noTsIgnore?: NoTsIgnoreConfiguration | null;
|
|
331
|
+
/**
|
|
332
|
+
* Disallow let or var variables that are read but never assigned.
|
|
333
|
+
*/
|
|
334
|
+
noUnassignedVariables?: NoUnassignedVariablesConfiguration | null;
|
|
335
|
+
/**
|
|
336
|
+
* Disallow unknown at-rules.
|
|
337
|
+
*/
|
|
338
|
+
noUnknownAtRules?: NoUnknownAtRulesConfiguration | null;
|
|
339
|
+
/**
|
|
340
|
+
* Disallow unsafe declaration merging between interfaces and classes.
|
|
341
|
+
*/
|
|
342
|
+
noUnsafeDeclarationMerging?: NoUnsafeDeclarationMergingConfiguration | null;
|
|
343
|
+
/**
|
|
344
|
+
* Disallow using unsafe negation.
|
|
345
|
+
*/
|
|
346
|
+
noUnsafeNegation?: NoUnsafeNegationConfiguration | null;
|
|
347
|
+
/**
|
|
348
|
+
* Disallow unnecessary escapes in string literals.
|
|
349
|
+
*/
|
|
350
|
+
noUselessEscapeInString?: NoUselessEscapeInStringConfiguration | null;
|
|
351
|
+
/**
|
|
352
|
+
* Disallow useless backreferences in regular expression literals that always match an empty string.
|
|
353
|
+
*/
|
|
354
|
+
noUselessRegexBackrefs?: NoUselessRegexBackrefsConfiguration | null;
|
|
355
|
+
/**
|
|
356
|
+
* Disallow the use of var
|
|
357
|
+
*/
|
|
358
|
+
noVar?: NoVarConfiguration | null;
|
|
359
|
+
/**
|
|
360
|
+
* Disallow with statements in non-strict contexts.
|
|
361
|
+
*/
|
|
362
|
+
noWith?: NoWithConfiguration | null;
|
|
363
|
+
/**
|
|
364
|
+
* Enables the recommended rules for this group
|
|
365
|
+
*/
|
|
366
|
+
recommended?: boolean | null;
|
|
367
|
+
/**
|
|
368
|
+
* Disallow the use of overload signatures that are not next to each other.
|
|
369
|
+
*/
|
|
370
|
+
useAdjacentOverloadSignatures?: UseAdjacentOverloadSignaturesConfiguration | null;
|
|
371
|
+
/**
|
|
372
|
+
* Ensure async functions utilize await.
|
|
373
|
+
*/
|
|
374
|
+
useAwait?: UseAwaitConfiguration | null;
|
|
375
|
+
/**
|
|
376
|
+
* Promotes the correct usage for ignoring folders in the configuration file.
|
|
377
|
+
*/
|
|
378
|
+
useBiomeIgnoreFolder?: UseBiomeIgnoreFolderConfiguration | null;
|
|
379
|
+
/**
|
|
380
|
+
* Enforce default clauses in switch statements to be last
|
|
381
|
+
*/
|
|
382
|
+
useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration | null;
|
|
383
|
+
/**
|
|
384
|
+
* Enforce passing a message value when creating a built-in error.
|
|
385
|
+
*/
|
|
386
|
+
useErrorMessage?: UseErrorMessageConfiguration | null;
|
|
387
|
+
/**
|
|
388
|
+
* Enforce get methods to always return a value.
|
|
389
|
+
*/
|
|
390
|
+
useGetterReturn?: UseGetterReturnConfiguration | null;
|
|
391
|
+
/**
|
|
392
|
+
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
393
|
+
*/
|
|
394
|
+
useGoogleFontDisplay?: UseGoogleFontDisplayConfiguration | null;
|
|
395
|
+
/**
|
|
396
|
+
* Require for-in loops to include an if statement.
|
|
397
|
+
*/
|
|
398
|
+
useGuardForIn?: UseGuardForInConfiguration | null;
|
|
399
|
+
/**
|
|
400
|
+
* Use Array.isArray() instead of instanceof Array.
|
|
401
|
+
*/
|
|
402
|
+
useIsArray?: UseIsArrayConfiguration | null;
|
|
403
|
+
/**
|
|
404
|
+
* Enforce consistent return values in iterable callbacks.
|
|
405
|
+
*/
|
|
406
|
+
useIterableCallbackReturn?: UseIterableCallbackReturnConfiguration | null;
|
|
407
|
+
/**
|
|
408
|
+
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
409
|
+
*/
|
|
410
|
+
useNamespaceKeyword?: UseNamespaceKeywordConfiguration | null;
|
|
411
|
+
/**
|
|
412
|
+
* Enforce using the digits argument with Number#toFixed().
|
|
413
|
+
*/
|
|
414
|
+
useNumberToFixedDigitsArgument?: UseNumberToFixedDigitsArgumentConfiguration | null;
|
|
415
|
+
/**
|
|
416
|
+
* Use static Response methods instead of new Response() constructor when possible.
|
|
417
|
+
*/
|
|
418
|
+
useStaticResponseMethods?: UseStaticResponseMethodsConfiguration | null;
|
|
419
|
+
/**
|
|
420
|
+
* Enforce the use of the directive "use strict" in script files.
|
|
421
|
+
*/
|
|
422
|
+
useStrictMode?: UseStrictModeConfiguration | null;
|
|
423
|
+
}
|
|
424
|
+
export interface ImportMatcher {
|
|
425
|
+
source?: SourcesMatcher | null;
|
|
426
|
+
type?: boolean | null;
|
|
427
|
+
[k: string]: unknown;
|
|
428
|
+
}
|
|
429
|
+
export interface PatternOptions {
|
|
430
|
+
/**
|
|
431
|
+
* An array of gitignore-style patterns.
|
|
432
|
+
*/
|
|
433
|
+
group?: SourcesMatcher | null;
|
|
434
|
+
/**
|
|
435
|
+
* A regex pattern for import names to forbid within the matched modules.
|
|
436
|
+
*/
|
|
437
|
+
importNamePattern?: Regex | null;
|
|
438
|
+
/**
|
|
439
|
+
* If true, the matched patterns in the importNamePattern will be allowed. Defaults to `false`.
|
|
440
|
+
*/
|
|
441
|
+
invertImportNamePattern?: boolean;
|
|
442
|
+
/**
|
|
443
|
+
* A custom message for diagnostics related to this pattern.
|
|
444
|
+
*/
|
|
445
|
+
message?: string | null;
|
|
446
|
+
}
|
|
447
|
+
export type SeverityOrGroupFor_A11Y = GroupPlainConfiguration | A11Y;
|
|
448
|
+
export type SeverityOrGroupFor_Complexity = GroupPlainConfiguration | Complexity;
|
|
449
|
+
export type UseExhaustiveDependenciesConfiguration = RulePlainConfiguration | RuleWithUseExhaustiveDependenciesOptions;
|
|
8
450
|
/**
|
|
9
451
|
* A list of rules that belong to this group
|
|
10
452
|
*/
|
|
11
453
|
export interface Nursery {
|
|
454
|
+
/**
|
|
455
|
+
* Disallow continue statements.
|
|
456
|
+
*/
|
|
457
|
+
noContinue?: NoContinueConfiguration | null;
|
|
12
458
|
/**
|
|
13
459
|
* Restrict imports of deprecated exports.
|
|
14
460
|
*/
|
|
@@ -45,6 +491,10 @@ export interface Nursery {
|
|
|
45
491
|
* Prevent client components from being async functions.
|
|
46
492
|
*/
|
|
47
493
|
noNextAsyncClientComponent?: NoNextAsyncClientComponentConfiguration | null;
|
|
494
|
+
/**
|
|
495
|
+
* Disallow function parameters that are only used in recursive calls.
|
|
496
|
+
*/
|
|
497
|
+
noParametersOnlyUsedInRecursion?: NoParametersOnlyUsedInRecursionConfiguration | null;
|
|
48
498
|
/**
|
|
49
499
|
* Replaces usages of forwardRef with passing ref as a prop.
|
|
50
500
|
*/
|
|
@@ -53,6 +503,10 @@ export interface Nursery {
|
|
|
53
503
|
* Disallow variable declarations from shadowing variables declared in the outer scope.
|
|
54
504
|
*/
|
|
55
505
|
noShadow?: NoShadowConfiguration | null;
|
|
506
|
+
/**
|
|
507
|
+
* Disallow unknown DOM properties.
|
|
508
|
+
*/
|
|
509
|
+
noUnknownAttribute?: NoUnknownAttributeConfiguration | null;
|
|
56
510
|
/**
|
|
57
511
|
* Disallow unnecessary type-based conditions that can be statically determined as redundant.
|
|
58
512
|
*/
|
|
@@ -93,6 +547,10 @@ export interface Nursery {
|
|
|
93
547
|
* Enables the recommended rules for this group
|
|
94
548
|
*/
|
|
95
549
|
recommended?: boolean | null;
|
|
550
|
+
/**
|
|
551
|
+
* Require Array#sort and Array#toSorted calls to always provide a compareFunction.
|
|
552
|
+
*/
|
|
553
|
+
useArraySortCompare?: UseArraySortCompareConfiguration | null;
|
|
96
554
|
/**
|
|
97
555
|
* Enforce consistent arrow function bodies.
|
|
98
556
|
*/
|
|
@@ -145,15 +603,15 @@ export interface UseNamingConventionOptions {
|
|
|
145
603
|
/**
|
|
146
604
|
* Custom conventions.
|
|
147
605
|
*/
|
|
148
|
-
conventions?: Convention[];
|
|
606
|
+
conventions?: Convention[] | null;
|
|
149
607
|
/**
|
|
150
608
|
* If `false`, then non-ASCII characters are allowed.
|
|
151
609
|
*/
|
|
152
|
-
requireAscii?: boolean;
|
|
610
|
+
requireAscii?: boolean | null;
|
|
153
611
|
/**
|
|
154
612
|
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
|
|
155
613
|
*/
|
|
156
|
-
strictCase?: boolean;
|
|
614
|
+
strictCase?: boolean | null;
|
|
157
615
|
}
|
|
158
616
|
export type SeverityOrGroupFor_Suspicious = GroupPlainConfiguration | Suspicious;
|
|
159
617
|
export type GroupMatcher = ImportMatcher | SourceMatcher;
|
|
@@ -452,7 +910,7 @@ export interface RuleWithUseNamingConventionOptions {
|
|
|
452
910
|
/**
|
|
453
911
|
* Rule's options
|
|
454
912
|
*/
|
|
455
|
-
options
|
|
913
|
+
options?: UseNamingConventionOptions;
|
|
456
914
|
}
|
|
457
915
|
export type ImportGroup = null | GroupMatcher | GroupMatcher[];
|
|
458
916
|
export interface NoRestrictedImportsOptions {
|
|
@@ -461,7 +919,7 @@ export interface NoRestrictedImportsOptions {
|
|
|
461
919
|
*/
|
|
462
920
|
paths?: {
|
|
463
921
|
[k: string]: Paths;
|
|
464
|
-
};
|
|
922
|
+
} | null;
|
|
465
923
|
/**
|
|
466
924
|
* gitignore-style patterns that should trigger the rule.
|
|
467
925
|
*/
|
|
@@ -478,11 +936,11 @@ export interface RuleWithNoRestrictedImportsOptions {
|
|
|
478
936
|
/**
|
|
479
937
|
* Rule's options
|
|
480
938
|
*/
|
|
481
|
-
options
|
|
939
|
+
options?: NoRestrictedImportsOptions;
|
|
482
940
|
}
|
|
483
941
|
export interface OrganizeImportsOptions {
|
|
484
|
-
groups?: ImportGroups;
|
|
485
|
-
identifierOrder?: SortOrder
|
|
942
|
+
groups?: ImportGroups | null;
|
|
943
|
+
identifierOrder?: SortOrder | null;
|
|
486
944
|
}
|
|
487
945
|
export type NoRestrictedImportsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedImportsOptions;
|
|
488
946
|
export interface RuleAssistWithOptionsFor_OrganizeImportsOptions {
|
|
@@ -844,180 +1302,3 @@ export interface Actions {
|
|
|
844
1302
|
recommended?: boolean | null;
|
|
845
1303
|
source?: Source | null;
|
|
846
1304
|
}
|
|
847
|
-
export interface LinterConfiguration {
|
|
848
|
-
/**
|
|
849
|
-
* An object where the keys are the names of the domains, and the values are `all`, `recommended`, or `none`.
|
|
850
|
-
*/
|
|
851
|
-
domains?: RuleDomains | null;
|
|
852
|
-
/**
|
|
853
|
-
* if `false`, it disables the feature and the linter won't be executed. `true` by default
|
|
854
|
-
*/
|
|
855
|
-
enabled?: Bool | null;
|
|
856
|
-
/**
|
|
857
|
-
* A list of glob patterns. The analyzer will handle only those files/folders that will match these patterns.
|
|
858
|
-
*/
|
|
859
|
-
includes?: NormalizedGlob[] | null;
|
|
860
|
-
/**
|
|
861
|
-
* List of rules
|
|
862
|
-
*/
|
|
863
|
-
rules?: Rules | null;
|
|
864
|
-
}
|
|
865
|
-
export interface OverrideLinterConfiguration {
|
|
866
|
-
/**
|
|
867
|
-
* List of rules
|
|
868
|
-
*/
|
|
869
|
-
domains?: RuleDomains | null;
|
|
870
|
-
/**
|
|
871
|
-
* if `false`, it disables the feature and the linter won't be executed. `true` by default
|
|
872
|
-
*/
|
|
873
|
-
enabled?: Bool | null;
|
|
874
|
-
/**
|
|
875
|
-
* List of rules
|
|
876
|
-
*/
|
|
877
|
-
rules?: Rules | null;
|
|
878
|
-
}
|
|
879
|
-
export interface AssistConfiguration {
|
|
880
|
-
/**
|
|
881
|
-
* Whether Biome should fail in CLI if the assist were not applied to the code.
|
|
882
|
-
*/
|
|
883
|
-
actions?: Actions | null;
|
|
884
|
-
/**
|
|
885
|
-
* Whether Biome should enable assist via LSP and CLI.
|
|
886
|
-
*/
|
|
887
|
-
enabled?: Bool | null;
|
|
888
|
-
/**
|
|
889
|
-
* A list of glob patterns. Biome will include files/folders that will match these patterns.
|
|
890
|
-
*/
|
|
891
|
-
includes?: NormalizedGlob[] | null;
|
|
892
|
-
}
|
|
893
|
-
export interface OverrideAssistConfiguration {
|
|
894
|
-
/**
|
|
895
|
-
* List of actions
|
|
896
|
-
*/
|
|
897
|
-
actions?: Actions | null;
|
|
898
|
-
/**
|
|
899
|
-
* if `false`, it disables the feature and the assist won't be executed. `true` by default
|
|
900
|
-
*/
|
|
901
|
-
enabled?: Bool | null;
|
|
902
|
-
}
|
|
903
|
-
export interface OverridePattern {
|
|
904
|
-
/**
|
|
905
|
-
* Specific configuration for the Json language
|
|
906
|
-
*/
|
|
907
|
-
assist?: OverrideAssistConfiguration | null;
|
|
908
|
-
/**
|
|
909
|
-
* Specific configuration for the CSS language
|
|
910
|
-
*/
|
|
911
|
-
css?: CssConfiguration | null;
|
|
912
|
-
/**
|
|
913
|
-
* Specific configuration for the filesystem
|
|
914
|
-
*/
|
|
915
|
-
files?: OverrideFilesConfiguration | null;
|
|
916
|
-
/**
|
|
917
|
-
* Specific configuration for the Json language
|
|
918
|
-
*/
|
|
919
|
-
formatter?: OverrideFormatterConfiguration | null;
|
|
920
|
-
/**
|
|
921
|
-
* Specific configuration for the Graphql language
|
|
922
|
-
*/
|
|
923
|
-
graphql?: GraphqlConfiguration | null;
|
|
924
|
-
/**
|
|
925
|
-
* Specific configuration for the GritQL language
|
|
926
|
-
*/
|
|
927
|
-
grit?: GritConfiguration | null;
|
|
928
|
-
/**
|
|
929
|
-
* Specific configuration for the GritQL language
|
|
930
|
-
*/
|
|
931
|
-
html?: HtmlConfiguration | null;
|
|
932
|
-
/**
|
|
933
|
-
* A list of glob patterns. Biome will include files/folders that will match these patterns.
|
|
934
|
-
*/
|
|
935
|
-
includes?: OverrideGlobs | null;
|
|
936
|
-
/**
|
|
937
|
-
* Specific configuration for the JavaScript language
|
|
938
|
-
*/
|
|
939
|
-
javascript?: JsConfiguration | null;
|
|
940
|
-
/**
|
|
941
|
-
* Specific configuration for the Json language
|
|
942
|
-
*/
|
|
943
|
-
json?: JsonConfiguration | null;
|
|
944
|
-
/**
|
|
945
|
-
* Specific configuration for the Json language
|
|
946
|
-
*/
|
|
947
|
-
linter?: OverrideLinterConfiguration | null;
|
|
948
|
-
/**
|
|
949
|
-
* Specific configuration for additional plugins
|
|
950
|
-
*/
|
|
951
|
-
plugins?: Plugins | null;
|
|
952
|
-
}
|
|
953
|
-
export type Overrides = OverridePattern[];
|
|
954
|
-
/**
|
|
955
|
-
* The configuration that is contained inside the file `biome.json`
|
|
956
|
-
*/
|
|
957
|
-
export interface Configuration {
|
|
958
|
-
/**
|
|
959
|
-
* A field for the [JSON schema](https://json-schema.org/) specification
|
|
960
|
-
*/
|
|
961
|
-
$schema?: Schema | null;
|
|
962
|
-
/**
|
|
963
|
-
* Specific configuration for assists
|
|
964
|
-
*/
|
|
965
|
-
assist?: AssistConfiguration | null;
|
|
966
|
-
/**
|
|
967
|
-
* Specific configuration for the Css language
|
|
968
|
-
*/
|
|
969
|
-
css?: CssConfiguration | null;
|
|
970
|
-
/**
|
|
971
|
-
* A list of paths to other JSON files, used to extends the current configuration.
|
|
972
|
-
*/
|
|
973
|
-
extends?: Extends | null;
|
|
974
|
-
/**
|
|
975
|
-
* The configuration of the filesystem
|
|
976
|
-
*/
|
|
977
|
-
files?: FilesConfiguration | null;
|
|
978
|
-
/**
|
|
979
|
-
* The configuration of the formatter
|
|
980
|
-
*/
|
|
981
|
-
formatter?: FormatterConfiguration | null;
|
|
982
|
-
/**
|
|
983
|
-
* Specific configuration for the GraphQL language
|
|
984
|
-
*/
|
|
985
|
-
graphql?: GraphqlConfiguration | null;
|
|
986
|
-
/**
|
|
987
|
-
* Specific configuration for the GraphQL language
|
|
988
|
-
*/
|
|
989
|
-
grit?: GritConfiguration | null;
|
|
990
|
-
/**
|
|
991
|
-
* Specific configuration for the HTML language
|
|
992
|
-
*/
|
|
993
|
-
html?: HtmlConfiguration | null;
|
|
994
|
-
/**
|
|
995
|
-
* Specific configuration for the JavaScript language
|
|
996
|
-
*/
|
|
997
|
-
javascript?: JsConfiguration | null;
|
|
998
|
-
/**
|
|
999
|
-
* Specific configuration for the Json language
|
|
1000
|
-
*/
|
|
1001
|
-
json?: JsonConfiguration | null;
|
|
1002
|
-
/**
|
|
1003
|
-
* The configuration for the linter
|
|
1004
|
-
*/
|
|
1005
|
-
linter?: LinterConfiguration | null;
|
|
1006
|
-
/**
|
|
1007
|
-
* A list of granular patterns that should be applied only to a sub set of files
|
|
1008
|
-
*/
|
|
1009
|
-
overrides?: Overrides | null;
|
|
1010
|
-
/**
|
|
1011
|
-
* List of plugins to load.
|
|
1012
|
-
*/
|
|
1013
|
-
plugins?: Plugins | null;
|
|
1014
|
-
/**
|
|
1015
|
-
* Indicates whether this configuration file is at the root of a Biome project. By default, this is `true`.
|
|
1016
|
-
*/
|
|
1017
|
-
root?: Bool | null;
|
|
1018
|
-
/**
|
|
1019
|
-
* The configuration of the VCS integration
|
|
1020
|
-
*/
|
|
1021
|
-
vcs?: VcsConfiguration | null;
|
|
1022
|
-
}
|
|
1023
|
-
export type BiomeConfig = Configuration;
|