@quentinhsu/biome-config 0.1.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.
- package/README.md +138 -0
- package/dist/build.mjs +381 -0
- package/dist/index.jsonc +146 -0
- package/dist/index.mjs +351 -0
- package/dist/next.jsonc +163 -0
- package/dist/nuxt.jsonc +218 -0
- package/dist/react.jsonc +161 -0
- package/dist/types/scripts/generate-biome-types.d.ts +1 -0
- package/dist/types/src/build.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -0
- package/dist/types/src/generated/biome/index.d.ts +11 -0
- package/dist/types/src/generated/biome/no-compare-neg-zero-configuration.d.ts +986 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +306 -0
- package/dist/types/src/generated/biome/no-nested-ternary-options.d.ts +292 -0
- package/dist/types/src/generated/biome/no-octal-escape-options.d.ts +1138 -0
- package/dist/types/src/generated/biome/no-shadow-configuration.d.ts +241 -0
- package/dist/types/src/generated/biome/nursery.d.ts +1023 -0
- package/dist/types/src/generated/biome/rule-with-no-duplicate-custom-properties-options.d.ts +1095 -0
- package/dist/types/src/generated/biome/rule-with-no-useless-catch-options.d.ts +1430 -0
- package/dist/types/src/generated/biome/rule-with-use-image-size-options.d.ts +1339 -0
- package/dist/types/src/generated/biome/schema.d.ts +291 -0
- package/dist/types/src/generated/biome/use-valid-lang-configuration.d.ts +163 -0
- package/dist/types/src/index.d.ts +15 -0
- package/dist/types/src/presets/next.d.ts +1 -0
- package/dist/types/src/presets/nuxt.d.ts +1 -0
- package/dist/types/src/presets/react.d.ts +1 -0
- package/dist/types/src/presets/vue.d.ts +1 -0
- package/dist/types/src/source/index.d.ts +2 -0
- package/dist/types/src/types.d.ts +1 -0
- package/dist/types/src/utils/merge.d.ts +2 -0
- package/dist/vue.jsonc +170 -0
- package/package.json +41 -0
|
@@ -0,0 +1,986 @@
|
|
|
1
|
+
import type { FixKind, GroupPlainConfiguration, RuleAssistPlainConfiguration, RulePlainConfiguration } from './schema.ts';
|
|
2
|
+
import type { Regex } from './no-nested-ternary-options.ts';
|
|
3
|
+
import type { Formats, RuleWithNoCompareNegZeroOptions, RuleWithNoConfusingLabelsOptions, RuleWithNoConfusingVoidTypeOptions, RuleWithNoConsoleOptions, RuleWithNoConstEnumOptions, RuleWithNoConstantBinaryExpressionsOptions, RuleWithNoControlCharactersInRegexOptions, RuleWithNoDebuggerOptions, RuleWithNoDocumentCookieOptions, RuleWithNoDocumentImportInPageOptions, RuleWithNoDoubleEqualsOptions, RuleWithNoDuplicateAtImportRulesOptions, RuleWithNoDuplicateCaseOptions, RuleWithNoDuplicateClassMembersOptions } from './rule-with-use-image-size-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, 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, 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, UseSemanticElementsConfiguration, UseValidAnchorConfiguration, UseValidAriaPropsConfiguration, UseValidAriaRoleConfiguration, UseValidAriaValuesConfiguration, UseValidAutocompleteConfiguration } from './rule-with-no-duplicate-custom-properties-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, UseSimpleNumberKeysConfiguration, UseSimplifiedLogicExpressionConfiguration, UseValidLangConfiguration, UseWhileConfiguration } from './use-valid-lang-configuration.ts';
|
|
6
|
+
import type { NoAccumulatingSpreadConfiguration, NoAlertConfiguration, NoApproximativeNumericConstantConfiguration, NoArrayIndexKeyConfiguration, NoAssignInExpressionsConfiguration, NoAsyncPromiseExecutorConfiguration, NoAwaitInLoopsConfiguration, NoBarrelFileConfiguration, NoBiomeFirstExceptionConfiguration, NoBitwiseOperatorsConfiguration, NoBlankTargetConfiguration, NoCatchAssignConfiguration, NoClassAssignConfiguration, NoCommentTextConfiguration, NoDangerouslySetInnerHtmlConfiguration, NoDangerouslySetInnerHtmlWithChildrenConfiguration, NoDeleteConfiguration, NoDynamicNamespaceImportAccessConfiguration, NoGlobalEvalConfiguration, NoImgElementConfiguration, NoNamespaceImportConfiguration, NoReExportAllConfiguration, NoRestrictedTypesOptions, NoUnwantedPolyfillioConfiguration, RuleWithNoParameterAssignOptions, RuleWithUseConsistentArrayTypeOptions, RuleWithUseConsistentArrowReturnOptions, RuleWithUseConsistentMemberAccessibilityOptions, RuleWithUseConsistentObjectDefinitionsOptions, RuleWithUseConsistentTypeDefinitionsOptions, RuleWithUseImportTypeOptions, Selector, UseFilenamingConventionOptions, UseGoogleFontPreconnectConfiguration, UseSolidForComponentConfiguration, UseTopLevelRegexConfiguration } from './no-shadow-configuration.ts';
|
|
7
|
+
export type NoCompareNegZeroConfiguration = RulePlainConfiguration | RuleWithNoCompareNegZeroOptions;
|
|
8
|
+
export type NoConfusingLabelsConfiguration = RulePlainConfiguration | RuleWithNoConfusingLabelsOptions;
|
|
9
|
+
export type NoConfusingVoidTypeConfiguration = RulePlainConfiguration | RuleWithNoConfusingVoidTypeOptions;
|
|
10
|
+
export type NoConsoleConfiguration = RulePlainConfiguration | RuleWithNoConsoleOptions;
|
|
11
|
+
export type NoConstEnumConfiguration = RulePlainConfiguration | RuleWithNoConstEnumOptions;
|
|
12
|
+
export type NoConstantBinaryExpressionsConfiguration = RulePlainConfiguration | RuleWithNoConstantBinaryExpressionsOptions;
|
|
13
|
+
export type NoControlCharactersInRegexConfiguration = RulePlainConfiguration | RuleWithNoControlCharactersInRegexOptions;
|
|
14
|
+
export type NoDebuggerConfiguration = RulePlainConfiguration | RuleWithNoDebuggerOptions;
|
|
15
|
+
export type NoDocumentCookieConfiguration = RulePlainConfiguration | RuleWithNoDocumentCookieOptions;
|
|
16
|
+
export type NoDocumentImportInPageConfiguration = RulePlainConfiguration | RuleWithNoDocumentImportInPageOptions;
|
|
17
|
+
export type NoDoubleEqualsConfiguration = RulePlainConfiguration | RuleWithNoDoubleEqualsOptions;
|
|
18
|
+
export type NoDuplicateAtImportRulesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateAtImportRulesOptions;
|
|
19
|
+
export type NoDuplicateCaseConfiguration = RulePlainConfiguration | RuleWithNoDuplicateCaseOptions;
|
|
20
|
+
export type NoDuplicateClassMembersConfiguration = RulePlainConfiguration | RuleWithNoDuplicateClassMembersOptions;
|
|
21
|
+
export type NoDuplicateCustomPropertiesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateCustomPropertiesOptions;
|
|
22
|
+
export type NoDuplicateElseIfConfiguration = RulePlainConfiguration | RuleWithNoDuplicateElseIfOptions;
|
|
23
|
+
export type NoDuplicateFieldsConfiguration = RulePlainConfiguration | RuleWithNoDuplicateFieldsOptions;
|
|
24
|
+
export type NoDuplicateFontNamesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateFontNamesOptions;
|
|
25
|
+
export type NoDuplicateJsxPropsConfiguration = RulePlainConfiguration | RuleWithNoDuplicateJsxPropsOptions;
|
|
26
|
+
export type NoDuplicateObjectKeysConfiguration = RulePlainConfiguration | RuleWithNoDuplicateObjectKeysOptions;
|
|
27
|
+
export type NoDuplicateParametersConfiguration = RulePlainConfiguration | RuleWithNoDuplicateParametersOptions;
|
|
28
|
+
export type NoDuplicatePropertiesConfiguration = RulePlainConfiguration | RuleWithNoDuplicatePropertiesOptions;
|
|
29
|
+
export type NoDuplicateSelectorsKeyframeBlockConfiguration = RulePlainConfiguration | RuleWithNoDuplicateSelectorsKeyframeBlockOptions;
|
|
30
|
+
export type NoDuplicateTestHooksConfiguration = RulePlainConfiguration | RuleWithNoDuplicateTestHooksOptions;
|
|
31
|
+
export type NoEmptyBlockConfiguration = RulePlainConfiguration | RuleWithNoEmptyBlockOptions;
|
|
32
|
+
export type NoEmptyBlockStatementsConfiguration = RulePlainConfiguration | RuleWithNoEmptyBlockStatementsOptions;
|
|
33
|
+
export type NoEmptyInterfaceConfiguration = RulePlainConfiguration | RuleWithNoEmptyInterfaceOptions;
|
|
34
|
+
export type NoEvolvingTypesConfiguration = RulePlainConfiguration | RuleWithNoEvolvingTypesOptions;
|
|
35
|
+
export type NoExplicitAnyConfiguration = RulePlainConfiguration | RuleWithNoExplicitAnyOptions;
|
|
36
|
+
export type NoExportsInTestConfiguration = RulePlainConfiguration | RuleWithNoExportsInTestOptions;
|
|
37
|
+
export type NoExtraNonNullAssertionConfiguration = RulePlainConfiguration | RuleWithNoExtraNonNullAssertionOptions;
|
|
38
|
+
export type NoFallthroughSwitchClauseConfiguration = RulePlainConfiguration | RuleWithNoFallthroughSwitchClauseOptions;
|
|
39
|
+
export type NoFocusedTestsConfiguration = RulePlainConfiguration | RuleWithNoFocusedTestsOptions;
|
|
40
|
+
export type NoFunctionAssignConfiguration = RulePlainConfiguration | RuleWithNoFunctionAssignOptions;
|
|
41
|
+
export type NoGlobalAssignConfiguration = RulePlainConfiguration | RuleWithNoGlobalAssignOptions;
|
|
42
|
+
export type NoGlobalIsFiniteConfiguration = RulePlainConfiguration | RuleWithNoGlobalIsFiniteOptions;
|
|
43
|
+
export type NoGlobalIsNanConfiguration = RulePlainConfiguration | RuleWithNoGlobalIsNanOptions;
|
|
44
|
+
export type NoHeadImportInDocumentConfiguration = RulePlainConfiguration | RuleWithNoHeadImportInDocumentOptions;
|
|
45
|
+
export type NoImplicitAnyLetConfiguration = RulePlainConfiguration | RuleWithNoImplicitAnyLetOptions;
|
|
46
|
+
export type NoImportAssignConfiguration = RulePlainConfiguration | RuleWithNoImportAssignOptions;
|
|
47
|
+
export type NoImportantInKeyframeConfiguration = RulePlainConfiguration | RuleWithNoImportantInKeyframeOptions;
|
|
48
|
+
export type NoIrregularWhitespaceConfiguration = RulePlainConfiguration | RuleWithNoIrregularWhitespaceOptions;
|
|
49
|
+
export type NoLabelVarConfiguration = RulePlainConfiguration | RuleWithNoLabelVarOptions;
|
|
50
|
+
export type NoMisleadingCharacterClassConfiguration = RulePlainConfiguration | RuleWithNoMisleadingCharacterClassOptions;
|
|
51
|
+
export type NoMisleadingInstantiatorConfiguration = RulePlainConfiguration | RuleWithNoMisleadingInstantiatorOptions;
|
|
52
|
+
export type NoMisplacedAssertionConfiguration = RulePlainConfiguration | RuleWithNoMisplacedAssertionOptions;
|
|
53
|
+
export type NoMisrefactoredShorthandAssignConfiguration = RulePlainConfiguration | RuleWithNoMisrefactoredShorthandAssignOptions;
|
|
54
|
+
export type NoOctalEscapeConfiguration = RulePlainConfiguration | RuleWithNoOctalEscapeOptions;
|
|
55
|
+
export type NoPrototypeBuiltinsConfiguration = RulePlainConfiguration | RuleWithNoPrototypeBuiltinsOptions;
|
|
56
|
+
export type NoQuickfixBiomeConfiguration = RulePlainConfiguration | RuleWithNoQuickfixBiomeOptions;
|
|
57
|
+
export type NoReactSpecificPropsConfiguration = RulePlainConfiguration | RuleWithNoReactSpecificPropsOptions;
|
|
58
|
+
export type NoRedeclareConfiguration = RulePlainConfiguration | RuleWithNoRedeclareOptions;
|
|
59
|
+
export type NoRedundantUseStrictConfiguration = RulePlainConfiguration | RuleWithNoRedundantUseStrictOptions;
|
|
60
|
+
export type NoSelfCompareConfiguration = RulePlainConfiguration | RuleWithNoSelfCompareOptions;
|
|
61
|
+
export type NoShadowRestrictedNamesConfiguration = RulePlainConfiguration | RuleWithNoShadowRestrictedNamesOptions;
|
|
62
|
+
export type NoShorthandPropertyOverridesConfiguration = RulePlainConfiguration | RuleWithNoShorthandPropertyOverridesOptions;
|
|
63
|
+
export type NoSkippedTestsConfiguration = RulePlainConfiguration | RuleWithNoSkippedTestsOptions;
|
|
64
|
+
export type NoSparseArrayConfiguration = RulePlainConfiguration | RuleWithNoSparseArrayOptions;
|
|
65
|
+
export type NoSuspiciousSemicolonInJsxConfiguration = RulePlainConfiguration | RuleWithNoSuspiciousSemicolonInJsxOptions;
|
|
66
|
+
export type NoTemplateCurlyInStringConfiguration = RulePlainConfiguration | RuleWithNoTemplateCurlyInStringOptions;
|
|
67
|
+
export type NoThenPropertyConfiguration = RulePlainConfiguration | RuleWithNoThenPropertyOptions;
|
|
68
|
+
export type NoTsIgnoreConfiguration = RulePlainConfiguration | RuleWithNoTsIgnoreOptions;
|
|
69
|
+
export type NoUnassignedVariablesConfiguration = RulePlainConfiguration | RuleWithNoUnassignedVariablesOptions;
|
|
70
|
+
export type NoUnknownAtRulesConfiguration = RulePlainConfiguration | RuleWithNoUnknownAtRulesOptions;
|
|
71
|
+
export type NoUnsafeDeclarationMergingConfiguration = RulePlainConfiguration | RuleWithNoUnsafeDeclarationMergingOptions;
|
|
72
|
+
export type NoUnsafeNegationConfiguration = RulePlainConfiguration | RuleWithNoUnsafeNegationOptions;
|
|
73
|
+
export type NoUselessEscapeInStringConfiguration = RulePlainConfiguration | RuleWithNoUselessEscapeInStringOptions;
|
|
74
|
+
export type NoUselessRegexBackrefsConfiguration = RulePlainConfiguration | RuleWithNoUselessRegexBackrefsOptions;
|
|
75
|
+
export type NoVarConfiguration = RulePlainConfiguration | RuleWithNoVarOptions;
|
|
76
|
+
export type NoWithConfiguration = RulePlainConfiguration | RuleWithNoWithOptions;
|
|
77
|
+
export type UseAdjacentOverloadSignaturesConfiguration = RulePlainConfiguration | RuleWithUseAdjacentOverloadSignaturesOptions;
|
|
78
|
+
export type UseAwaitConfiguration = RulePlainConfiguration | RuleWithUseAwaitOptions;
|
|
79
|
+
export type UseBiomeIgnoreFolderConfiguration = RulePlainConfiguration | RuleWithUseBiomeIgnoreFolderOptions;
|
|
80
|
+
export type UseDefaultSwitchClauseLastConfiguration = RulePlainConfiguration | RuleWithUseDefaultSwitchClauseLastOptions;
|
|
81
|
+
export type UseErrorMessageConfiguration = RulePlainConfiguration | RuleWithUseErrorMessageOptions;
|
|
82
|
+
export type UseGetterReturnConfiguration = RulePlainConfiguration | RuleWithUseGetterReturnOptions;
|
|
83
|
+
export type UseGoogleFontDisplayConfiguration = RulePlainConfiguration | RuleWithUseGoogleFontDisplayOptions;
|
|
84
|
+
export type UseGuardForInConfiguration = RulePlainConfiguration | RuleWithUseGuardForInOptions;
|
|
85
|
+
export type UseIsArrayConfiguration = RulePlainConfiguration | RuleWithUseIsArrayOptions;
|
|
86
|
+
export type UseIterableCallbackReturnConfiguration = RulePlainConfiguration | RuleWithUseIterableCallbackReturnOptions;
|
|
87
|
+
export type UseNamespaceKeywordConfiguration = RulePlainConfiguration | RuleWithUseNamespaceKeywordOptions;
|
|
88
|
+
export type UseNumberToFixedDigitsArgumentConfiguration = RulePlainConfiguration | RuleWithUseNumberToFixedDigitsArgumentOptions;
|
|
89
|
+
export type UseStaticResponseMethodsConfiguration = RulePlainConfiguration | RuleWithUseStaticResponseMethodsOptions;
|
|
90
|
+
export type UseStrictModeConfiguration = RulePlainConfiguration | RuleWithUseStrictModeOptions;
|
|
91
|
+
export type SourcesMatcher = SourceMatcher | SourceMatcher[];
|
|
92
|
+
export type RuleAssistConfigurationFor_UseSortedAttributesOptions = RuleAssistPlainConfiguration | RuleAssistWithOptionsFor_UseSortedAttributesOptions;
|
|
93
|
+
export type RuleAssistConfigurationFor_UseSortedKeysOptions = RuleAssistPlainConfiguration | RuleAssistWithOptionsFor_UseSortedKeysOptions;
|
|
94
|
+
/**
|
|
95
|
+
* A list of rules that belong to this group
|
|
96
|
+
*/
|
|
97
|
+
export interface A11Y {
|
|
98
|
+
/**
|
|
99
|
+
* Enforce that the accessKey attribute is not used on any HTML element.
|
|
100
|
+
*/
|
|
101
|
+
noAccessKey?: NoAccessKeyConfiguration | null;
|
|
102
|
+
/**
|
|
103
|
+
* Enforce that aria-hidden="true" is not set on focusable elements.
|
|
104
|
+
*/
|
|
105
|
+
noAriaHiddenOnFocusable?: NoAriaHiddenOnFocusableConfiguration | null;
|
|
106
|
+
/**
|
|
107
|
+
* Enforce that elements that do not support ARIA roles, states, and properties do not have those attributes.
|
|
108
|
+
*/
|
|
109
|
+
noAriaUnsupportedElements?: NoAriaUnsupportedElementsConfiguration | null;
|
|
110
|
+
/**
|
|
111
|
+
* Enforce that autoFocus prop is not used on elements.
|
|
112
|
+
*/
|
|
113
|
+
noAutofocus?: NoAutofocusConfiguration | null;
|
|
114
|
+
/**
|
|
115
|
+
* Enforces that no distracting elements are used.
|
|
116
|
+
*/
|
|
117
|
+
noDistractingElements?: NoDistractingElementsConfiguration | null;
|
|
118
|
+
/**
|
|
119
|
+
* The scope prop should be used only on \<th> elements.
|
|
120
|
+
*/
|
|
121
|
+
noHeaderScope?: NoHeaderScopeConfiguration | null;
|
|
122
|
+
/**
|
|
123
|
+
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
|
|
124
|
+
*/
|
|
125
|
+
noInteractiveElementToNoninteractiveRole?: NoInteractiveElementToNoninteractiveRoleConfiguration | null;
|
|
126
|
+
/**
|
|
127
|
+
* Enforce that a label element or component has a text label and an associated input.
|
|
128
|
+
*/
|
|
129
|
+
noLabelWithoutControl?: NoLabelWithoutControlConfiguration | null;
|
|
130
|
+
/**
|
|
131
|
+
* Disallow use event handlers on non-interactive elements.
|
|
132
|
+
*/
|
|
133
|
+
noNoninteractiveElementInteractions?: NoNoninteractiveElementInteractionsConfiguration | null;
|
|
134
|
+
/**
|
|
135
|
+
* Enforce that interactive ARIA roles are not assigned to non-interactive HTML elements.
|
|
136
|
+
*/
|
|
137
|
+
noNoninteractiveElementToInteractiveRole?: NoNoninteractiveElementToInteractiveRoleConfiguration | null;
|
|
138
|
+
/**
|
|
139
|
+
* Enforce that tabIndex is not assigned to non-interactive HTML elements.
|
|
140
|
+
*/
|
|
141
|
+
noNoninteractiveTabindex?: NoNoninteractiveTabindexConfiguration | null;
|
|
142
|
+
/**
|
|
143
|
+
* Prevent the usage of positive integers on tabIndex property
|
|
144
|
+
*/
|
|
145
|
+
noPositiveTabindex?: NoPositiveTabindexConfiguration | null;
|
|
146
|
+
/**
|
|
147
|
+
* Enforce img alt prop does not contain the word "image", "picture", or "photo".
|
|
148
|
+
*/
|
|
149
|
+
noRedundantAlt?: NoRedundantAltConfiguration | null;
|
|
150
|
+
/**
|
|
151
|
+
* Enforce explicit role property is not the same as implicit/default role property on an element.
|
|
152
|
+
*/
|
|
153
|
+
noRedundantRoles?: NoRedundantRolesConfiguration | null;
|
|
154
|
+
/**
|
|
155
|
+
* Enforce that static, visible elements (such as \<div>) that have click handlers use the valid role attribute.
|
|
156
|
+
*/
|
|
157
|
+
noStaticElementInteractions?: NoStaticElementInteractionsConfiguration | null;
|
|
158
|
+
/**
|
|
159
|
+
* Enforces the usage of the title element for the svg element.
|
|
160
|
+
*/
|
|
161
|
+
noSvgWithoutTitle?: NoSvgWithoutTitleConfiguration | null;
|
|
162
|
+
/**
|
|
163
|
+
* Enables the recommended rules for this group
|
|
164
|
+
*/
|
|
165
|
+
recommended?: boolean | null;
|
|
166
|
+
/**
|
|
167
|
+
* Enforce that all elements that require alternative text have meaningful information to relay back to the end user.
|
|
168
|
+
*/
|
|
169
|
+
useAltText?: UseAltTextConfiguration | null;
|
|
170
|
+
/**
|
|
171
|
+
* Enforce that anchors have content and that the content is accessible to screen readers.
|
|
172
|
+
*/
|
|
173
|
+
useAnchorContent?: UseAnchorContentConfiguration | null;
|
|
174
|
+
/**
|
|
175
|
+
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
|
|
176
|
+
*/
|
|
177
|
+
useAriaActivedescendantWithTabindex?: UseAriaActivedescendantWithTabindexConfiguration | null;
|
|
178
|
+
/**
|
|
179
|
+
* Enforce that elements with ARIA roles must have all required ARIA attributes for that role.
|
|
180
|
+
*/
|
|
181
|
+
useAriaPropsForRole?: UseAriaPropsForRoleConfiguration | null;
|
|
182
|
+
/**
|
|
183
|
+
* Enforce that ARIA properties are valid for the roles that are supported by the element.
|
|
184
|
+
*/
|
|
185
|
+
useAriaPropsSupportedByRole?: UseAriaPropsSupportedByRoleConfiguration | null;
|
|
186
|
+
/**
|
|
187
|
+
* Enforces the usage of the attribute type for the element button
|
|
188
|
+
*/
|
|
189
|
+
useButtonType?: UseButtonTypeConfiguration | null;
|
|
190
|
+
/**
|
|
191
|
+
* Elements with an interactive role and interaction handlers must be focusable.
|
|
192
|
+
*/
|
|
193
|
+
useFocusableInteractive?: UseFocusableInteractiveConfiguration | null;
|
|
194
|
+
/**
|
|
195
|
+
* Disallow a missing generic family keyword within font families.
|
|
196
|
+
*/
|
|
197
|
+
useGenericFontNames?: UseGenericFontNamesConfiguration | null;
|
|
198
|
+
/**
|
|
199
|
+
* Enforce that heading elements (h1, h2, etc.) have content and that the content is accessible to screen readers. Accessible means that it is not hidden using the aria-hidden prop.
|
|
200
|
+
*/
|
|
201
|
+
useHeadingContent?: UseHeadingContentConfiguration | null;
|
|
202
|
+
/**
|
|
203
|
+
* Enforce that html element has lang attribute.
|
|
204
|
+
*/
|
|
205
|
+
useHtmlLang?: UseHtmlLangConfiguration | null;
|
|
206
|
+
/**
|
|
207
|
+
* Enforces the usage of the attribute title for the element iframe.
|
|
208
|
+
*/
|
|
209
|
+
useIframeTitle?: UseIframeTitleConfiguration | null;
|
|
210
|
+
/**
|
|
211
|
+
* Enforce onClick is accompanied by at least one of the following: onKeyUp, onKeyDown, onKeyPress.
|
|
212
|
+
*/
|
|
213
|
+
useKeyWithClickEvents?: UseKeyWithClickEventsConfiguration | null;
|
|
214
|
+
/**
|
|
215
|
+
* Enforce onMouseOver / onMouseOut are accompanied by onFocus / onBlur.
|
|
216
|
+
*/
|
|
217
|
+
useKeyWithMouseEvents?: UseKeyWithMouseEventsConfiguration | null;
|
|
218
|
+
/**
|
|
219
|
+
* Enforces that audio and video elements must have a track for captions.
|
|
220
|
+
*/
|
|
221
|
+
useMediaCaption?: UseMediaCaptionConfiguration | null;
|
|
222
|
+
/**
|
|
223
|
+
* It detects the use of role attributes in JSX elements and suggests using semantic elements instead.
|
|
224
|
+
*/
|
|
225
|
+
useSemanticElements?: UseSemanticElementsConfiguration | null;
|
|
226
|
+
/**
|
|
227
|
+
* Enforce that all anchors are valid, and they are navigable elements.
|
|
228
|
+
*/
|
|
229
|
+
useValidAnchor?: UseValidAnchorConfiguration | null;
|
|
230
|
+
/**
|
|
231
|
+
* Ensures that ARIA properties aria-* are all valid.
|
|
232
|
+
*/
|
|
233
|
+
useValidAriaProps?: UseValidAriaPropsConfiguration | null;
|
|
234
|
+
/**
|
|
235
|
+
* Elements with ARIA roles must use a valid, non-abstract ARIA role.
|
|
236
|
+
*/
|
|
237
|
+
useValidAriaRole?: UseValidAriaRoleConfiguration | null;
|
|
238
|
+
/**
|
|
239
|
+
* Enforce that ARIA state and property values are valid.
|
|
240
|
+
*/
|
|
241
|
+
useValidAriaValues?: UseValidAriaValuesConfiguration | null;
|
|
242
|
+
/**
|
|
243
|
+
* Use valid values for the autocomplete attribute on input elements.
|
|
244
|
+
*/
|
|
245
|
+
useValidAutocomplete?: UseValidAutocompleteConfiguration | null;
|
|
246
|
+
/**
|
|
247
|
+
* Ensure that the attribute passed to the lang attribute is a correct ISO language and/or country.
|
|
248
|
+
*/
|
|
249
|
+
useValidLang?: UseValidLangConfiguration | null;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* A list of rules that belong to this group
|
|
253
|
+
*/
|
|
254
|
+
export interface Complexity {
|
|
255
|
+
/**
|
|
256
|
+
* Disallow unclear usage of consecutive space characters in regular expression literals
|
|
257
|
+
*/
|
|
258
|
+
noAdjacentSpacesInRegex?: NoAdjacentSpacesInRegexConfiguration | null;
|
|
259
|
+
/**
|
|
260
|
+
* Disallow the use of arguments.
|
|
261
|
+
*/
|
|
262
|
+
noArguments?: NoArgumentsConfiguration | null;
|
|
263
|
+
/**
|
|
264
|
+
* Disallow primitive type aliases and misleading types.
|
|
265
|
+
*/
|
|
266
|
+
noBannedTypes?: NoBannedTypesConfiguration | null;
|
|
267
|
+
/**
|
|
268
|
+
* Disallow comma operator.
|
|
269
|
+
*/
|
|
270
|
+
noCommaOperator?: NoCommaOperatorConfiguration | null;
|
|
271
|
+
/**
|
|
272
|
+
* Disallow empty type parameters in type aliases and interfaces.
|
|
273
|
+
*/
|
|
274
|
+
noEmptyTypeParameters?: NoEmptyTypeParametersConfiguration | null;
|
|
275
|
+
/**
|
|
276
|
+
* Disallow functions that exceed a given Cognitive Complexity score.
|
|
277
|
+
*/
|
|
278
|
+
noExcessiveCognitiveComplexity?: NoExcessiveCognitiveComplexityConfiguration | null;
|
|
279
|
+
/**
|
|
280
|
+
* Restrict the number of lines of code in a function.
|
|
281
|
+
*/
|
|
282
|
+
noExcessiveLinesPerFunction?: NoExcessiveLinesPerFunctionConfiguration | null;
|
|
283
|
+
/**
|
|
284
|
+
* This rule enforces a maximum depth to nested describe() in test files.
|
|
285
|
+
*/
|
|
286
|
+
noExcessiveNestedTestSuites?: NoExcessiveNestedTestSuitesConfiguration | null;
|
|
287
|
+
/**
|
|
288
|
+
* Disallow unnecessary boolean casts
|
|
289
|
+
*/
|
|
290
|
+
noExtraBooleanCast?: NoExtraBooleanCastConfiguration | null;
|
|
291
|
+
/**
|
|
292
|
+
* Disallow to use unnecessary callback on flatMap.
|
|
293
|
+
*/
|
|
294
|
+
noFlatMapIdentity?: NoFlatMapIdentityConfiguration | null;
|
|
295
|
+
/**
|
|
296
|
+
* Prefer for...of statement instead of Array.forEach.
|
|
297
|
+
*/
|
|
298
|
+
noForEach?: NoForEachConfiguration | null;
|
|
299
|
+
/**
|
|
300
|
+
* Disallow shorthand type conversions.
|
|
301
|
+
*/
|
|
302
|
+
noImplicitCoercions?: NoImplicitCoercionsConfiguration | null;
|
|
303
|
+
/**
|
|
304
|
+
* Disallow the use of the !important style.
|
|
305
|
+
*/
|
|
306
|
+
noImportantStyles?: NoImportantStylesConfiguration | null;
|
|
307
|
+
/**
|
|
308
|
+
* This rule reports when a class has no non-static members, such as for a class used exclusively as a static namespace.
|
|
309
|
+
*/
|
|
310
|
+
noStaticOnlyClass?: NoStaticOnlyClassConfiguration | null;
|
|
311
|
+
/**
|
|
312
|
+
* Disallow this and super in static contexts.
|
|
313
|
+
*/
|
|
314
|
+
noThisInStatic?: NoThisInStaticConfiguration | null;
|
|
315
|
+
/**
|
|
316
|
+
* Disallow unnecessary catch clauses.
|
|
317
|
+
*/
|
|
318
|
+
noUselessCatch?: NoUselessCatchConfiguration | null;
|
|
319
|
+
/**
|
|
320
|
+
* Disallow unnecessary constructors.
|
|
321
|
+
*/
|
|
322
|
+
noUselessConstructor?: NoUselessConstructorConfiguration | null;
|
|
323
|
+
/**
|
|
324
|
+
* Avoid using unnecessary continue.
|
|
325
|
+
*/
|
|
326
|
+
noUselessContinue?: NoUselessContinueConfiguration | null;
|
|
327
|
+
/**
|
|
328
|
+
* Disallow empty exports that don't change anything in a module file.
|
|
329
|
+
*/
|
|
330
|
+
noUselessEmptyExport?: NoUselessEmptyExportConfiguration | null;
|
|
331
|
+
/**
|
|
332
|
+
* Disallow unnecessary escape sequence in regular expression literals.
|
|
333
|
+
*/
|
|
334
|
+
noUselessEscapeInRegex?: NoUselessEscapeInRegexConfiguration | null;
|
|
335
|
+
/**
|
|
336
|
+
* Disallow unnecessary fragments
|
|
337
|
+
*/
|
|
338
|
+
noUselessFragments?: NoUselessFragmentsConfiguration | null;
|
|
339
|
+
/**
|
|
340
|
+
* Disallow unnecessary labels.
|
|
341
|
+
*/
|
|
342
|
+
noUselessLabel?: NoUselessLabelConfiguration | null;
|
|
343
|
+
/**
|
|
344
|
+
* Disallow unnecessary nested block statements.
|
|
345
|
+
*/
|
|
346
|
+
noUselessLoneBlockStatements?: NoUselessLoneBlockStatementsConfiguration | null;
|
|
347
|
+
/**
|
|
348
|
+
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
349
|
+
*/
|
|
350
|
+
noUselessRename?: NoUselessRenameConfiguration | null;
|
|
351
|
+
/**
|
|
352
|
+
* Disallow unnecessary concatenation of string or template literals.
|
|
353
|
+
*/
|
|
354
|
+
noUselessStringConcat?: NoUselessStringConcatConfiguration | null;
|
|
355
|
+
/**
|
|
356
|
+
* Disallow unnecessary String.raw function in template string literals without any escape sequence.
|
|
357
|
+
*/
|
|
358
|
+
noUselessStringRaw?: NoUselessStringRawConfiguration | null;
|
|
359
|
+
/**
|
|
360
|
+
* Disallow useless case in switch statements.
|
|
361
|
+
*/
|
|
362
|
+
noUselessSwitchCase?: NoUselessSwitchCaseConfiguration | null;
|
|
363
|
+
/**
|
|
364
|
+
* Disallow ternary operators when simpler alternatives exist.
|
|
365
|
+
*/
|
|
366
|
+
noUselessTernary?: NoUselessTernaryConfiguration | null;
|
|
367
|
+
/**
|
|
368
|
+
* Disallow useless this aliasing.
|
|
369
|
+
*/
|
|
370
|
+
noUselessThisAlias?: NoUselessThisAliasConfiguration | null;
|
|
371
|
+
/**
|
|
372
|
+
* Disallow using any or unknown as type constraint.
|
|
373
|
+
*/
|
|
374
|
+
noUselessTypeConstraint?: NoUselessTypeConstraintConfiguration | null;
|
|
375
|
+
/**
|
|
376
|
+
* Disallow initializing variables to undefined.
|
|
377
|
+
*/
|
|
378
|
+
noUselessUndefinedInitialization?: NoUselessUndefinedInitializationConfiguration | null;
|
|
379
|
+
/**
|
|
380
|
+
* Disallow the use of void operators, which is not a familiar operator.
|
|
381
|
+
*/
|
|
382
|
+
noVoid?: NoVoidConfiguration | null;
|
|
383
|
+
/**
|
|
384
|
+
* Enables the recommended rules for this group
|
|
385
|
+
*/
|
|
386
|
+
recommended?: boolean | null;
|
|
387
|
+
/**
|
|
388
|
+
* Use arrow functions over function expressions.
|
|
389
|
+
*/
|
|
390
|
+
useArrowFunction?: UseArrowFunctionConfiguration | null;
|
|
391
|
+
/**
|
|
392
|
+
* Use Date.now() to get the number of milliseconds since the Unix Epoch.
|
|
393
|
+
*/
|
|
394
|
+
useDateNow?: UseDateNowConfiguration | null;
|
|
395
|
+
/**
|
|
396
|
+
* Promotes the use of .flatMap() when map().flat() are used together.
|
|
397
|
+
*/
|
|
398
|
+
useFlatMap?: UseFlatMapConfiguration | null;
|
|
399
|
+
/**
|
|
400
|
+
* Prefer Array#{indexOf,lastIndexOf}() over Array#{findIndex,findLastIndex}() when looking for the index of an item.
|
|
401
|
+
*/
|
|
402
|
+
useIndexOf?: UseIndexOfConfiguration | null;
|
|
403
|
+
/**
|
|
404
|
+
* Enforce the usage of a literal access to properties over computed property access.
|
|
405
|
+
*/
|
|
406
|
+
useLiteralKeys?: UseLiteralKeysConfiguration | null;
|
|
407
|
+
/**
|
|
408
|
+
* Disallow parseInt() and Number.parseInt() in favor of binary, octal, and hexadecimal literals
|
|
409
|
+
*/
|
|
410
|
+
useNumericLiterals?: UseNumericLiteralsConfiguration | null;
|
|
411
|
+
/**
|
|
412
|
+
* Enforce using concise optional chain instead of chained logical expressions.
|
|
413
|
+
*/
|
|
414
|
+
useOptionalChain?: UseOptionalChainConfiguration | null;
|
|
415
|
+
/**
|
|
416
|
+
* Enforce the use of the regular expression literals instead of the RegExp constructor if possible.
|
|
417
|
+
*/
|
|
418
|
+
useRegexLiterals?: UseRegexLiteralsConfiguration | null;
|
|
419
|
+
/**
|
|
420
|
+
* Disallow number literal object member names which are not base 10 or use underscore as separator.
|
|
421
|
+
*/
|
|
422
|
+
useSimpleNumberKeys?: UseSimpleNumberKeysConfiguration | null;
|
|
423
|
+
/**
|
|
424
|
+
* Discard redundant terms from logical expressions.
|
|
425
|
+
*/
|
|
426
|
+
useSimplifiedLogicExpression?: UseSimplifiedLogicExpressionConfiguration | null;
|
|
427
|
+
/**
|
|
428
|
+
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
|
|
429
|
+
*/
|
|
430
|
+
useWhile?: UseWhileConfiguration | null;
|
|
431
|
+
}
|
|
432
|
+
export type NoPrivateImportsConfiguration = RulePlainConfiguration | RuleWithNoPrivateImportsOptions;
|
|
433
|
+
export type NoRestrictedElementsConfiguration = RulePlainConfiguration | RuleWithNoRestrictedElementsOptions;
|
|
434
|
+
export type NoUndeclaredDependenciesConfiguration = RulePlainConfiguration | RuleWithNoUndeclaredDependenciesOptions;
|
|
435
|
+
export interface RuleWithUseExhaustiveDependenciesOptions {
|
|
436
|
+
/**
|
|
437
|
+
* The kind of the code actions emitted by the rule
|
|
438
|
+
*/
|
|
439
|
+
fix?: FixKind | null;
|
|
440
|
+
/**
|
|
441
|
+
* The severity of the emitted diagnostics by the rule
|
|
442
|
+
*/
|
|
443
|
+
level: RulePlainConfiguration;
|
|
444
|
+
/**
|
|
445
|
+
* Rule's options
|
|
446
|
+
*/
|
|
447
|
+
options: UseExhaustiveDependenciesOptions;
|
|
448
|
+
}
|
|
449
|
+
export type UseConsistentArrowReturnConfiguration = RulePlainConfiguration | RuleWithUseConsistentArrowReturnOptions;
|
|
450
|
+
export type UseConsistentTypeDefinitionsConfiguration = RulePlainConfiguration | RuleWithUseConsistentTypeDefinitionsOptions;
|
|
451
|
+
/**
|
|
452
|
+
* A list of rules that belong to this group
|
|
453
|
+
*/
|
|
454
|
+
export interface Performance {
|
|
455
|
+
/**
|
|
456
|
+
* Disallow the use of spread (...) syntax on accumulators.
|
|
457
|
+
*/
|
|
458
|
+
noAccumulatingSpread?: NoAccumulatingSpreadConfiguration | null;
|
|
459
|
+
/**
|
|
460
|
+
* Disallow await inside loops.
|
|
461
|
+
*/
|
|
462
|
+
noAwaitInLoops?: NoAwaitInLoopsConfiguration | null;
|
|
463
|
+
/**
|
|
464
|
+
* Disallow the use of barrel file.
|
|
465
|
+
*/
|
|
466
|
+
noBarrelFile?: NoBarrelFileConfiguration | null;
|
|
467
|
+
/**
|
|
468
|
+
* Disallow the use of the delete operator.
|
|
469
|
+
*/
|
|
470
|
+
noDelete?: NoDeleteConfiguration | null;
|
|
471
|
+
/**
|
|
472
|
+
* Disallow accessing namespace imports dynamically.
|
|
473
|
+
*/
|
|
474
|
+
noDynamicNamespaceImportAccess?: NoDynamicNamespaceImportAccessConfiguration | null;
|
|
475
|
+
/**
|
|
476
|
+
* Prevent usage of \<img> element in a Next.js project.
|
|
477
|
+
*/
|
|
478
|
+
noImgElement?: NoImgElementConfiguration | null;
|
|
479
|
+
/**
|
|
480
|
+
* Disallow the use of namespace imports.
|
|
481
|
+
*/
|
|
482
|
+
noNamespaceImport?: NoNamespaceImportConfiguration | null;
|
|
483
|
+
/**
|
|
484
|
+
* Avoid re-export all.
|
|
485
|
+
*/
|
|
486
|
+
noReExportAll?: NoReExportAllConfiguration | null;
|
|
487
|
+
/**
|
|
488
|
+
* Prevent duplicate polyfills from Polyfill.io.
|
|
489
|
+
*/
|
|
490
|
+
noUnwantedPolyfillio?: NoUnwantedPolyfillioConfiguration | null;
|
|
491
|
+
/**
|
|
492
|
+
* Enables the recommended rules for this group
|
|
493
|
+
*/
|
|
494
|
+
recommended?: boolean | null;
|
|
495
|
+
/**
|
|
496
|
+
* Ensure the preconnect attribute is used when using Google Fonts.
|
|
497
|
+
*/
|
|
498
|
+
useGoogleFontPreconnect?: UseGoogleFontPreconnectConfiguration | null;
|
|
499
|
+
/**
|
|
500
|
+
* Enforce using Solid's \<For /> component for mapping an array to JSX elements.
|
|
501
|
+
*/
|
|
502
|
+
useSolidForComponent?: UseSolidForComponentConfiguration | null;
|
|
503
|
+
/**
|
|
504
|
+
* Require regex literals to be declared at the top level.
|
|
505
|
+
*/
|
|
506
|
+
useTopLevelRegex?: UseTopLevelRegexConfiguration | null;
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* A list of rules that belong to this group
|
|
510
|
+
*/
|
|
511
|
+
export interface Security {
|
|
512
|
+
/**
|
|
513
|
+
* Disallow target="_blank" attribute without rel="noopener".
|
|
514
|
+
*/
|
|
515
|
+
noBlankTarget?: NoBlankTargetConfiguration | null;
|
|
516
|
+
/**
|
|
517
|
+
* Prevent the usage of dangerous JSX props
|
|
518
|
+
*/
|
|
519
|
+
noDangerouslySetInnerHtml?: NoDangerouslySetInnerHtmlConfiguration | null;
|
|
520
|
+
/**
|
|
521
|
+
* Report when a DOM element or a component uses both children and dangerouslySetInnerHTML prop.
|
|
522
|
+
*/
|
|
523
|
+
noDangerouslySetInnerHtmlWithChildren?: NoDangerouslySetInnerHtmlWithChildrenConfiguration | null;
|
|
524
|
+
/**
|
|
525
|
+
* Disallow the use of global eval().
|
|
526
|
+
*/
|
|
527
|
+
noGlobalEval?: NoGlobalEvalConfiguration | null;
|
|
528
|
+
/**
|
|
529
|
+
* Enables the recommended rules for this group
|
|
530
|
+
*/
|
|
531
|
+
recommended?: boolean | null;
|
|
532
|
+
}
|
|
533
|
+
export type NoParameterAssignConfiguration = RulePlainConfiguration | RuleWithNoParameterAssignOptions;
|
|
534
|
+
export interface RuleWithNoRestrictedTypesOptions {
|
|
535
|
+
/**
|
|
536
|
+
* The kind of the code actions emitted by the rule
|
|
537
|
+
*/
|
|
538
|
+
fix?: FixKind | null;
|
|
539
|
+
/**
|
|
540
|
+
* The severity of the emitted diagnostics by the rule
|
|
541
|
+
*/
|
|
542
|
+
level: RulePlainConfiguration;
|
|
543
|
+
/**
|
|
544
|
+
* Rule's options
|
|
545
|
+
*/
|
|
546
|
+
options: NoRestrictedTypesOptions;
|
|
547
|
+
}
|
|
548
|
+
export type UseConsistentArrayTypeConfiguration = RulePlainConfiguration | RuleWithUseConsistentArrayTypeOptions;
|
|
549
|
+
export type UseConsistentMemberAccessibilityConfiguration = RulePlainConfiguration | RuleWithUseConsistentMemberAccessibilityOptions;
|
|
550
|
+
export type UseConsistentObjectDefinitionsConfiguration = RulePlainConfiguration | RuleWithUseConsistentObjectDefinitionsOptions;
|
|
551
|
+
export interface RuleWithUseFilenamingConventionOptions {
|
|
552
|
+
/**
|
|
553
|
+
* The severity of the emitted diagnostics by the rule
|
|
554
|
+
*/
|
|
555
|
+
level: RulePlainConfiguration;
|
|
556
|
+
/**
|
|
557
|
+
* Rule's options
|
|
558
|
+
*/
|
|
559
|
+
options: UseFilenamingConventionOptions;
|
|
560
|
+
}
|
|
561
|
+
export type UseImportTypeConfiguration = RulePlainConfiguration | RuleWithUseImportTypeOptions;
|
|
562
|
+
export interface Convention {
|
|
563
|
+
/**
|
|
564
|
+
* String cases to enforce
|
|
565
|
+
*/
|
|
566
|
+
formats?: Formats;
|
|
567
|
+
/**
|
|
568
|
+
* Regular expression to enforce
|
|
569
|
+
*/
|
|
570
|
+
match?: Regex | null;
|
|
571
|
+
/**
|
|
572
|
+
* Declarations concerned by this convention
|
|
573
|
+
*/
|
|
574
|
+
selector?: Selector;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* A list of rules that belong to this group
|
|
578
|
+
*/
|
|
579
|
+
export interface Suspicious {
|
|
580
|
+
/**
|
|
581
|
+
* Disallow the use of alert, confirm, and prompt.
|
|
582
|
+
*/
|
|
583
|
+
noAlert?: NoAlertConfiguration | null;
|
|
584
|
+
/**
|
|
585
|
+
* Use standard constants instead of approximated literals.
|
|
586
|
+
*/
|
|
587
|
+
noApproximativeNumericConstant?: NoApproximativeNumericConstantConfiguration | null;
|
|
588
|
+
/**
|
|
589
|
+
* Discourage the usage of Array index in keys.
|
|
590
|
+
*/
|
|
591
|
+
noArrayIndexKey?: NoArrayIndexKeyConfiguration | null;
|
|
592
|
+
/**
|
|
593
|
+
* Disallow assignments in expressions.
|
|
594
|
+
*/
|
|
595
|
+
noAssignInExpressions?: NoAssignInExpressionsConfiguration | null;
|
|
596
|
+
/**
|
|
597
|
+
* Disallows using an async function as a Promise executor.
|
|
598
|
+
*/
|
|
599
|
+
noAsyncPromiseExecutor?: NoAsyncPromiseExecutorConfiguration | null;
|
|
600
|
+
/**
|
|
601
|
+
* Prevents the use of the ! pattern in the first position of files.includes in the configuration file.
|
|
602
|
+
*/
|
|
603
|
+
noBiomeFirstException?: NoBiomeFirstExceptionConfiguration | null;
|
|
604
|
+
/**
|
|
605
|
+
* Disallow bitwise operators.
|
|
606
|
+
*/
|
|
607
|
+
noBitwiseOperators?: NoBitwiseOperatorsConfiguration | null;
|
|
608
|
+
/**
|
|
609
|
+
* Disallow reassigning exceptions in catch clauses.
|
|
610
|
+
*/
|
|
611
|
+
noCatchAssign?: NoCatchAssignConfiguration | null;
|
|
612
|
+
/**
|
|
613
|
+
* Disallow reassigning class members.
|
|
614
|
+
*/
|
|
615
|
+
noClassAssign?: NoClassAssignConfiguration | null;
|
|
616
|
+
/**
|
|
617
|
+
* Prevent comments from being inserted as text nodes
|
|
618
|
+
*/
|
|
619
|
+
noCommentText?: NoCommentTextConfiguration | null;
|
|
620
|
+
/**
|
|
621
|
+
* Disallow comparing against -0
|
|
622
|
+
*/
|
|
623
|
+
noCompareNegZero?: NoCompareNegZeroConfiguration | null;
|
|
624
|
+
/**
|
|
625
|
+
* Disallow labeled statements that are not loops.
|
|
626
|
+
*/
|
|
627
|
+
noConfusingLabels?: NoConfusingLabelsConfiguration | null;
|
|
628
|
+
/**
|
|
629
|
+
* Disallow void type outside of generic or return types.
|
|
630
|
+
*/
|
|
631
|
+
noConfusingVoidType?: NoConfusingVoidTypeConfiguration | null;
|
|
632
|
+
/**
|
|
633
|
+
* Disallow the use of console.
|
|
634
|
+
*/
|
|
635
|
+
noConsole?: NoConsoleConfiguration | null;
|
|
636
|
+
/**
|
|
637
|
+
* Disallow TypeScript const enum
|
|
638
|
+
*/
|
|
639
|
+
noConstEnum?: NoConstEnumConfiguration | null;
|
|
640
|
+
/**
|
|
641
|
+
* Disallow expressions where the operation doesn't affect the value
|
|
642
|
+
*/
|
|
643
|
+
noConstantBinaryExpressions?: NoConstantBinaryExpressionsConfiguration | null;
|
|
644
|
+
/**
|
|
645
|
+
* Prevents from having control characters and some escape sequences that match control characters in regular expression literals.
|
|
646
|
+
*/
|
|
647
|
+
noControlCharactersInRegex?: NoControlCharactersInRegexConfiguration | null;
|
|
648
|
+
/**
|
|
649
|
+
* Disallow the use of debugger
|
|
650
|
+
*/
|
|
651
|
+
noDebugger?: NoDebuggerConfiguration | null;
|
|
652
|
+
/**
|
|
653
|
+
* Disallow direct assignments to document.cookie.
|
|
654
|
+
*/
|
|
655
|
+
noDocumentCookie?: NoDocumentCookieConfiguration | null;
|
|
656
|
+
/**
|
|
657
|
+
* Prevents importing next/document outside of pages/_document.jsx in Next.js projects.
|
|
658
|
+
*/
|
|
659
|
+
noDocumentImportInPage?: NoDocumentImportInPageConfiguration | null;
|
|
660
|
+
/**
|
|
661
|
+
* Require the use of === and !==.
|
|
662
|
+
*/
|
|
663
|
+
noDoubleEquals?: NoDoubleEqualsConfiguration | null;
|
|
664
|
+
/**
|
|
665
|
+
* Disallow duplicate @import rules.
|
|
666
|
+
*/
|
|
667
|
+
noDuplicateAtImportRules?: NoDuplicateAtImportRulesConfiguration | null;
|
|
668
|
+
/**
|
|
669
|
+
* Disallow duplicate case labels.
|
|
670
|
+
*/
|
|
671
|
+
noDuplicateCase?: NoDuplicateCaseConfiguration | null;
|
|
672
|
+
/**
|
|
673
|
+
* Disallow duplicate class members.
|
|
674
|
+
*/
|
|
675
|
+
noDuplicateClassMembers?: NoDuplicateClassMembersConfiguration | null;
|
|
676
|
+
/**
|
|
677
|
+
* Disallow duplicate custom properties within declaration blocks.
|
|
678
|
+
*/
|
|
679
|
+
noDuplicateCustomProperties?: NoDuplicateCustomPropertiesConfiguration | null;
|
|
680
|
+
/**
|
|
681
|
+
* Disallow duplicate conditions in if-else-if chains
|
|
682
|
+
*/
|
|
683
|
+
noDuplicateElseIf?: NoDuplicateElseIfConfiguration | null;
|
|
684
|
+
/**
|
|
685
|
+
* No duplicated fields in GraphQL operations.
|
|
686
|
+
*/
|
|
687
|
+
noDuplicateFields?: NoDuplicateFieldsConfiguration | null;
|
|
688
|
+
/**
|
|
689
|
+
* Disallow duplicate names within font families.
|
|
690
|
+
*/
|
|
691
|
+
noDuplicateFontNames?: NoDuplicateFontNamesConfiguration | null;
|
|
692
|
+
/**
|
|
693
|
+
* Prevents JSX properties to be assigned multiple times.
|
|
694
|
+
*/
|
|
695
|
+
noDuplicateJsxProps?: NoDuplicateJsxPropsConfiguration | null;
|
|
696
|
+
/**
|
|
697
|
+
* Disallow two keys with the same name inside objects.
|
|
698
|
+
*/
|
|
699
|
+
noDuplicateObjectKeys?: NoDuplicateObjectKeysConfiguration | null;
|
|
700
|
+
/**
|
|
701
|
+
* Disallow duplicate function parameter name.
|
|
702
|
+
*/
|
|
703
|
+
noDuplicateParameters?: NoDuplicateParametersConfiguration | null;
|
|
704
|
+
/**
|
|
705
|
+
* Disallow duplicate properties within declaration blocks.
|
|
706
|
+
*/
|
|
707
|
+
noDuplicateProperties?: NoDuplicatePropertiesConfiguration | null;
|
|
708
|
+
/**
|
|
709
|
+
* Disallow duplicate selectors within keyframe blocks.
|
|
710
|
+
*/
|
|
711
|
+
noDuplicateSelectorsKeyframeBlock?: NoDuplicateSelectorsKeyframeBlockConfiguration | null;
|
|
712
|
+
/**
|
|
713
|
+
* A describe block should not contain duplicate hooks.
|
|
714
|
+
*/
|
|
715
|
+
noDuplicateTestHooks?: NoDuplicateTestHooksConfiguration | null;
|
|
716
|
+
/**
|
|
717
|
+
* Disallow CSS empty blocks.
|
|
718
|
+
*/
|
|
719
|
+
noEmptyBlock?: NoEmptyBlockConfiguration | null;
|
|
720
|
+
/**
|
|
721
|
+
* Disallow empty block statements and static blocks.
|
|
722
|
+
*/
|
|
723
|
+
noEmptyBlockStatements?: NoEmptyBlockStatementsConfiguration | null;
|
|
724
|
+
/**
|
|
725
|
+
* Disallow the declaration of empty interfaces.
|
|
726
|
+
*/
|
|
727
|
+
noEmptyInterface?: NoEmptyInterfaceConfiguration | null;
|
|
728
|
+
/**
|
|
729
|
+
* Disallow variables from evolving into any type through reassignments.
|
|
730
|
+
*/
|
|
731
|
+
noEvolvingTypes?: NoEvolvingTypesConfiguration | null;
|
|
732
|
+
/**
|
|
733
|
+
* Disallow the any type usage.
|
|
734
|
+
*/
|
|
735
|
+
noExplicitAny?: NoExplicitAnyConfiguration | null;
|
|
736
|
+
/**
|
|
737
|
+
* Disallow using export or module.exports in files containing tests
|
|
738
|
+
*/
|
|
739
|
+
noExportsInTest?: NoExportsInTestConfiguration | null;
|
|
740
|
+
/**
|
|
741
|
+
* Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
|
|
742
|
+
*/
|
|
743
|
+
noExtraNonNullAssertion?: NoExtraNonNullAssertionConfiguration | null;
|
|
744
|
+
/**
|
|
745
|
+
* Disallow fallthrough of switch clauses.
|
|
746
|
+
*/
|
|
747
|
+
noFallthroughSwitchClause?: NoFallthroughSwitchClauseConfiguration | null;
|
|
748
|
+
/**
|
|
749
|
+
* Disallow focused tests.
|
|
750
|
+
*/
|
|
751
|
+
noFocusedTests?: NoFocusedTestsConfiguration | null;
|
|
752
|
+
/**
|
|
753
|
+
* Disallow reassigning function declarations.
|
|
754
|
+
*/
|
|
755
|
+
noFunctionAssign?: NoFunctionAssignConfiguration | null;
|
|
756
|
+
/**
|
|
757
|
+
* Disallow assignments to native objects and read-only global variables.
|
|
758
|
+
*/
|
|
759
|
+
noGlobalAssign?: NoGlobalAssignConfiguration | null;
|
|
760
|
+
/**
|
|
761
|
+
* Use Number.isFinite instead of global isFinite.
|
|
762
|
+
*/
|
|
763
|
+
noGlobalIsFinite?: NoGlobalIsFiniteConfiguration | null;
|
|
764
|
+
/**
|
|
765
|
+
* Use Number.isNaN instead of global isNaN.
|
|
766
|
+
*/
|
|
767
|
+
noGlobalIsNan?: NoGlobalIsNanConfiguration | null;
|
|
768
|
+
/**
|
|
769
|
+
* Prevent using the next/head module in pages/_document.js on Next.js projects.
|
|
770
|
+
*/
|
|
771
|
+
noHeadImportInDocument?: NoHeadImportInDocumentConfiguration | null;
|
|
772
|
+
/**
|
|
773
|
+
* Disallow use of implicit any type on variable declarations.
|
|
774
|
+
*/
|
|
775
|
+
noImplicitAnyLet?: NoImplicitAnyLetConfiguration | null;
|
|
776
|
+
/**
|
|
777
|
+
* Disallow assigning to imported bindings
|
|
778
|
+
*/
|
|
779
|
+
noImportAssign?: NoImportAssignConfiguration | null;
|
|
780
|
+
/**
|
|
781
|
+
* Disallow invalid !important within keyframe declarations
|
|
782
|
+
*/
|
|
783
|
+
noImportantInKeyframe?: NoImportantInKeyframeConfiguration | null;
|
|
784
|
+
/**
|
|
785
|
+
* Disallows the use of irregular whitespace characters.
|
|
786
|
+
*/
|
|
787
|
+
noIrregularWhitespace?: NoIrregularWhitespaceConfiguration | null;
|
|
788
|
+
/**
|
|
789
|
+
* Disallow labels that share a name with a variable
|
|
790
|
+
*/
|
|
791
|
+
noLabelVar?: NoLabelVarConfiguration | null;
|
|
792
|
+
/**
|
|
793
|
+
* Disallow characters made with multiple code points in character class syntax.
|
|
794
|
+
*/
|
|
795
|
+
noMisleadingCharacterClass?: NoMisleadingCharacterClassConfiguration | null;
|
|
796
|
+
/**
|
|
797
|
+
* Enforce proper usage of new and constructor.
|
|
798
|
+
*/
|
|
799
|
+
noMisleadingInstantiator?: NoMisleadingInstantiatorConfiguration | null;
|
|
800
|
+
/**
|
|
801
|
+
* Checks that the assertion function, for example expect, is placed inside an it() function call.
|
|
802
|
+
*/
|
|
803
|
+
noMisplacedAssertion?: NoMisplacedAssertionConfiguration | null;
|
|
804
|
+
/**
|
|
805
|
+
* Disallow shorthand assign when variable appears on both sides.
|
|
806
|
+
*/
|
|
807
|
+
noMisrefactoredShorthandAssign?: NoMisrefactoredShorthandAssignConfiguration | null;
|
|
808
|
+
/**
|
|
809
|
+
* Disallow octal escape sequences in string literals
|
|
810
|
+
*/
|
|
811
|
+
noOctalEscape?: NoOctalEscapeConfiguration | null;
|
|
812
|
+
/**
|
|
813
|
+
* Disallow direct use of Object.prototype builtins.
|
|
814
|
+
*/
|
|
815
|
+
noPrototypeBuiltins?: NoPrototypeBuiltinsConfiguration | null;
|
|
816
|
+
/**
|
|
817
|
+
* Disallow the use if quickfix.biome inside editor settings file.
|
|
818
|
+
*/
|
|
819
|
+
noQuickfixBiome?: NoQuickfixBiomeConfiguration | null;
|
|
820
|
+
/**
|
|
821
|
+
* Prevents React-specific JSX properties from being used.
|
|
822
|
+
*/
|
|
823
|
+
noReactSpecificProps?: NoReactSpecificPropsConfiguration | null;
|
|
824
|
+
/**
|
|
825
|
+
* Disallow variable, function, class, and type redeclarations in the same scope.
|
|
826
|
+
*/
|
|
827
|
+
noRedeclare?: NoRedeclareConfiguration | null;
|
|
828
|
+
/**
|
|
829
|
+
* Prevents from having redundant "use strict".
|
|
830
|
+
*/
|
|
831
|
+
noRedundantUseStrict?: NoRedundantUseStrictConfiguration | null;
|
|
832
|
+
/**
|
|
833
|
+
* Disallow comparisons where both sides are exactly the same.
|
|
834
|
+
*/
|
|
835
|
+
noSelfCompare?: NoSelfCompareConfiguration | null;
|
|
836
|
+
/**
|
|
837
|
+
* Disallow identifiers from shadowing restricted names.
|
|
838
|
+
*/
|
|
839
|
+
noShadowRestrictedNames?: NoShadowRestrictedNamesConfiguration | null;
|
|
840
|
+
/**
|
|
841
|
+
* Disallow shorthand properties that override related longhand properties.
|
|
842
|
+
*/
|
|
843
|
+
noShorthandPropertyOverrides?: NoShorthandPropertyOverridesConfiguration | null;
|
|
844
|
+
/**
|
|
845
|
+
* Disallow disabled tests.
|
|
846
|
+
*/
|
|
847
|
+
noSkippedTests?: NoSkippedTestsConfiguration | null;
|
|
848
|
+
/**
|
|
849
|
+
* Prevents the use of sparse arrays (arrays with holes).
|
|
850
|
+
*/
|
|
851
|
+
noSparseArray?: NoSparseArrayConfiguration | null;
|
|
852
|
+
/**
|
|
853
|
+
* It detects possible "wrong" semicolons inside JSX elements.
|
|
854
|
+
*/
|
|
855
|
+
noSuspiciousSemicolonInJsx?: NoSuspiciousSemicolonInJsxConfiguration | null;
|
|
856
|
+
/**
|
|
857
|
+
* Disallow template literal placeholder syntax in regular strings.
|
|
858
|
+
*/
|
|
859
|
+
noTemplateCurlyInString?: NoTemplateCurlyInStringConfiguration | null;
|
|
860
|
+
/**
|
|
861
|
+
* Disallow then property.
|
|
862
|
+
*/
|
|
863
|
+
noThenProperty?: NoThenPropertyConfiguration | null;
|
|
864
|
+
/**
|
|
865
|
+
* Prevents the use of the TypeScript directive @ts-ignore.
|
|
866
|
+
*/
|
|
867
|
+
noTsIgnore?: NoTsIgnoreConfiguration | null;
|
|
868
|
+
/**
|
|
869
|
+
* Disallow let or var variables that are read but never assigned.
|
|
870
|
+
*/
|
|
871
|
+
noUnassignedVariables?: NoUnassignedVariablesConfiguration | null;
|
|
872
|
+
/**
|
|
873
|
+
* Disallow unknown at-rules.
|
|
874
|
+
*/
|
|
875
|
+
noUnknownAtRules?: NoUnknownAtRulesConfiguration | null;
|
|
876
|
+
/**
|
|
877
|
+
* Disallow unsafe declaration merging between interfaces and classes.
|
|
878
|
+
*/
|
|
879
|
+
noUnsafeDeclarationMerging?: NoUnsafeDeclarationMergingConfiguration | null;
|
|
880
|
+
/**
|
|
881
|
+
* Disallow using unsafe negation.
|
|
882
|
+
*/
|
|
883
|
+
noUnsafeNegation?: NoUnsafeNegationConfiguration | null;
|
|
884
|
+
/**
|
|
885
|
+
* Disallow unnecessary escapes in string literals.
|
|
886
|
+
*/
|
|
887
|
+
noUselessEscapeInString?: NoUselessEscapeInStringConfiguration | null;
|
|
888
|
+
/**
|
|
889
|
+
* Disallow useless backreferences in regular expression literals that always match an empty string.
|
|
890
|
+
*/
|
|
891
|
+
noUselessRegexBackrefs?: NoUselessRegexBackrefsConfiguration | null;
|
|
892
|
+
/**
|
|
893
|
+
* Disallow the use of var
|
|
894
|
+
*/
|
|
895
|
+
noVar?: NoVarConfiguration | null;
|
|
896
|
+
/**
|
|
897
|
+
* Disallow with statements in non-strict contexts.
|
|
898
|
+
*/
|
|
899
|
+
noWith?: NoWithConfiguration | null;
|
|
900
|
+
/**
|
|
901
|
+
* Enables the recommended rules for this group
|
|
902
|
+
*/
|
|
903
|
+
recommended?: boolean | null;
|
|
904
|
+
/**
|
|
905
|
+
* Disallow the use of overload signatures that are not next to each other.
|
|
906
|
+
*/
|
|
907
|
+
useAdjacentOverloadSignatures?: UseAdjacentOverloadSignaturesConfiguration | null;
|
|
908
|
+
/**
|
|
909
|
+
* Ensure async functions utilize await.
|
|
910
|
+
*/
|
|
911
|
+
useAwait?: UseAwaitConfiguration | null;
|
|
912
|
+
/**
|
|
913
|
+
* Promotes the correct usage for ignoring folders in the configuration file.
|
|
914
|
+
*/
|
|
915
|
+
useBiomeIgnoreFolder?: UseBiomeIgnoreFolderConfiguration | null;
|
|
916
|
+
/**
|
|
917
|
+
* Enforce default clauses in switch statements to be last
|
|
918
|
+
*/
|
|
919
|
+
useDefaultSwitchClauseLast?: UseDefaultSwitchClauseLastConfiguration | null;
|
|
920
|
+
/**
|
|
921
|
+
* Enforce passing a message value when creating a built-in error.
|
|
922
|
+
*/
|
|
923
|
+
useErrorMessage?: UseErrorMessageConfiguration | null;
|
|
924
|
+
/**
|
|
925
|
+
* Enforce get methods to always return a value.
|
|
926
|
+
*/
|
|
927
|
+
useGetterReturn?: UseGetterReturnConfiguration | null;
|
|
928
|
+
/**
|
|
929
|
+
* Enforces the use of a recommended display strategy with Google Fonts.
|
|
930
|
+
*/
|
|
931
|
+
useGoogleFontDisplay?: UseGoogleFontDisplayConfiguration | null;
|
|
932
|
+
/**
|
|
933
|
+
* Require for-in loops to include an if statement.
|
|
934
|
+
*/
|
|
935
|
+
useGuardForIn?: UseGuardForInConfiguration | null;
|
|
936
|
+
/**
|
|
937
|
+
* Use Array.isArray() instead of instanceof Array.
|
|
938
|
+
*/
|
|
939
|
+
useIsArray?: UseIsArrayConfiguration | null;
|
|
940
|
+
/**
|
|
941
|
+
* Enforce consistent return values in iterable callbacks.
|
|
942
|
+
*/
|
|
943
|
+
useIterableCallbackReturn?: UseIterableCallbackReturnConfiguration | null;
|
|
944
|
+
/**
|
|
945
|
+
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.
|
|
946
|
+
*/
|
|
947
|
+
useNamespaceKeyword?: UseNamespaceKeywordConfiguration | null;
|
|
948
|
+
/**
|
|
949
|
+
* Enforce using the digits argument with Number#toFixed().
|
|
950
|
+
*/
|
|
951
|
+
useNumberToFixedDigitsArgument?: UseNumberToFixedDigitsArgumentConfiguration | null;
|
|
952
|
+
/**
|
|
953
|
+
* Use static Response methods instead of new Response() constructor when possible.
|
|
954
|
+
*/
|
|
955
|
+
useStaticResponseMethods?: UseStaticResponseMethodsConfiguration | null;
|
|
956
|
+
/**
|
|
957
|
+
* Enforce the use of the directive "use strict" in script files.
|
|
958
|
+
*/
|
|
959
|
+
useStrictMode?: UseStrictModeConfiguration | null;
|
|
960
|
+
}
|
|
961
|
+
export interface ImportMatcher {
|
|
962
|
+
source?: SourcesMatcher | null;
|
|
963
|
+
type?: boolean | null;
|
|
964
|
+
[k: string]: unknown;
|
|
965
|
+
}
|
|
966
|
+
export interface PatternOptions {
|
|
967
|
+
/**
|
|
968
|
+
* An array of gitignore-style patterns.
|
|
969
|
+
*/
|
|
970
|
+
group?: SourcesMatcher | null;
|
|
971
|
+
/**
|
|
972
|
+
* A regex pattern for import names to forbid within the matched modules.
|
|
973
|
+
*/
|
|
974
|
+
importNamePattern?: Regex | null;
|
|
975
|
+
/**
|
|
976
|
+
* If true, the matched patterns in the importNamePattern will be allowed. Defaults to `false`.
|
|
977
|
+
*/
|
|
978
|
+
invertImportNamePattern?: boolean;
|
|
979
|
+
/**
|
|
980
|
+
* A custom message for diagnostics related to this pattern.
|
|
981
|
+
*/
|
|
982
|
+
message?: string | null;
|
|
983
|
+
}
|
|
984
|
+
export type SeverityOrGroupFor_A11Y = GroupPlainConfiguration | A11Y;
|
|
985
|
+
export type SeverityOrGroupFor_Complexity = GroupPlainConfiguration | Complexity;
|
|
986
|
+
export type UseExhaustiveDependenciesConfiguration = RulePlainConfiguration | RuleWithUseExhaustiveDependenciesOptions;
|