@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,291 @@
|
|
|
1
|
+
export type Schema = string;
|
|
2
|
+
export type RuleAssistPlainConfiguration = 'off' | 'on';
|
|
3
|
+
export type NegatablePredefinedSourceMatcher = ':ALIAS:' | ':BUN:' | ':NODE:' | ':PACKAGE:' | ':PACKAGE_WITH_PROTOCOL:' | ':PATH:' | ':URL:' | '!:ALIAS:' | '!:BUN:' | '!:NODE:' | '!:PACKAGE:' | '!:PACKAGE_WITH_PROTOCOL:' | '!:PATH:' | '!:URL:';
|
|
4
|
+
export type Glob = string;
|
|
5
|
+
export type SortOrder = 'natural' | 'lexicographic';
|
|
6
|
+
export interface UseSortedPropertiesOptions {
|
|
7
|
+
}
|
|
8
|
+
export type Bool = boolean;
|
|
9
|
+
export type IndentStyle = 'tab' | 'space';
|
|
10
|
+
export type IndentWidth = number;
|
|
11
|
+
export type LineEnding = 'lf' | 'crlf' | 'cr';
|
|
12
|
+
/**
|
|
13
|
+
* Validated value for the `line_width` formatter options
|
|
14
|
+
*
|
|
15
|
+
* The allowed range of values is 1..=320
|
|
16
|
+
*/
|
|
17
|
+
export type LineWidth = number;
|
|
18
|
+
export type QuoteStyle = 'double' | 'single';
|
|
19
|
+
export type Extends = string[] | string;
|
|
20
|
+
export type MaxSize = number;
|
|
21
|
+
export type AttributePosition = 'auto' | 'multiline';
|
|
22
|
+
/**
|
|
23
|
+
* Put the `>` of a multi-line HTML or JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
|
|
24
|
+
*/
|
|
25
|
+
export type BracketSameLine = boolean;
|
|
26
|
+
export type BracketSpacing = boolean;
|
|
27
|
+
export type Expand = 'auto' | 'always' | 'never';
|
|
28
|
+
/**
|
|
29
|
+
* Whether to indent the content of `<script>` and `<style>` tags for HTML-ish templating languages (Vue, Svelte, etc.).
|
|
30
|
+
*
|
|
31
|
+
* When true, the content of `<script>` and `<style>` tags will be indented one level.
|
|
32
|
+
*/
|
|
33
|
+
export type IndentScriptAndStyle = boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Controls whether void-elements should be self closed
|
|
36
|
+
*/
|
|
37
|
+
export type SelfCloseVoidElements = 'never' | 'always';
|
|
38
|
+
/**
|
|
39
|
+
* Whitespace sensitivity for HTML formatting.
|
|
40
|
+
*
|
|
41
|
+
* The following two cases won't produce the same output:
|
|
42
|
+
*
|
|
43
|
+
* | | html | output | | -------------- | :------------: | :----------: | | with spaces | `1<b> 2 </b>3` | 1<b> 2 </b>3 | | without spaces | `1<b>2</b>3` | 1<b>2</b>3 |
|
|
44
|
+
*
|
|
45
|
+
* This happens because whitespace is significant in inline elements.
|
|
46
|
+
*
|
|
47
|
+
* As a consequence of this, the formatter must format blocks that look like this (assume a small line width, <20): ```html <span>really long content</span> ``` as this, where the content hugs the tags: ```html <span >really long content</span > ```
|
|
48
|
+
*
|
|
49
|
+
* Note that this is only necessary for inline elements. Block elements do not have this restriction.
|
|
50
|
+
*/
|
|
51
|
+
export type WhitespaceSensitivity = 'css' | 'strict' | 'ignore';
|
|
52
|
+
export type ArrowParentheses = 'always' | 'asNeeded';
|
|
53
|
+
export type OperatorLinebreak = 'after' | 'before';
|
|
54
|
+
export type QuoteProperties = 'asNeeded' | 'preserve';
|
|
55
|
+
export type Semicolons = 'always' | 'asNeeded';
|
|
56
|
+
/**
|
|
57
|
+
* Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
|
|
58
|
+
*/
|
|
59
|
+
export type TrailingCommas = 'all' | 'es5' | 'none';
|
|
60
|
+
/**
|
|
61
|
+
* Indicates the type of runtime or transformation used for interpreting JSX.
|
|
62
|
+
*/
|
|
63
|
+
export type JsxRuntime = 'transparent' | 'reactClassic';
|
|
64
|
+
export type TrailingCommas2 = 'none' | 'all';
|
|
65
|
+
export type RuleDomainValue = 'all' | 'none' | 'recommended';
|
|
66
|
+
export type GroupPlainConfiguration = 'off' | 'on' | 'info' | 'warn' | 'error';
|
|
67
|
+
export type RulePlainConfiguration = 'off' | 'on' | 'info' | 'warn' | 'error';
|
|
68
|
+
/**
|
|
69
|
+
* Used to identify the kind of code action emitted by a rule
|
|
70
|
+
*/
|
|
71
|
+
export type FixKind = 'none' | 'safe' | 'unsafe';
|
|
72
|
+
export interface NoAccessKeyOptions {
|
|
73
|
+
}
|
|
74
|
+
export interface NoAriaHiddenOnFocusableOptions {
|
|
75
|
+
}
|
|
76
|
+
export interface NoAriaUnsupportedElementsOptions {
|
|
77
|
+
}
|
|
78
|
+
export interface NoAutofocusOptions {
|
|
79
|
+
}
|
|
80
|
+
export interface NoDistractingElementsOptions {
|
|
81
|
+
}
|
|
82
|
+
export interface NoHeaderScopeOptions {
|
|
83
|
+
}
|
|
84
|
+
export interface NoInteractiveElementToNoninteractiveRoleOptions {
|
|
85
|
+
}
|
|
86
|
+
export interface NoLabelWithoutControlOptions {
|
|
87
|
+
/**
|
|
88
|
+
* Array of component names that should be considered the same as an `input` element.
|
|
89
|
+
*/
|
|
90
|
+
inputComponents?: string[];
|
|
91
|
+
/**
|
|
92
|
+
* Array of attributes that should be treated as the `label` accessible text content.
|
|
93
|
+
*/
|
|
94
|
+
labelAttributes?: string[];
|
|
95
|
+
/**
|
|
96
|
+
* Array of component names that should be considered the same as a `label` element.
|
|
97
|
+
*/
|
|
98
|
+
labelComponents?: string[];
|
|
99
|
+
}
|
|
100
|
+
export interface NoNoninteractiveElementInteractionsOptions {
|
|
101
|
+
}
|
|
102
|
+
export interface NoNoninteractiveElementToInteractiveRoleOptions {
|
|
103
|
+
}
|
|
104
|
+
export interface NoNoninteractiveTabindexOptions {
|
|
105
|
+
}
|
|
106
|
+
export interface NoPositiveTabindexOptions {
|
|
107
|
+
}
|
|
108
|
+
export interface NoRedundantAltOptions {
|
|
109
|
+
}
|
|
110
|
+
export interface NoRedundantRolesOptions {
|
|
111
|
+
}
|
|
112
|
+
export interface NoStaticElementInteractionsOptions {
|
|
113
|
+
}
|
|
114
|
+
export interface NoSvgWithoutTitleOptions {
|
|
115
|
+
}
|
|
116
|
+
export interface UseAltTextOptions {
|
|
117
|
+
}
|
|
118
|
+
export interface UseAnchorContentOptions {
|
|
119
|
+
}
|
|
120
|
+
export interface UseAriaActivedescendantWithTabindexOptions {
|
|
121
|
+
}
|
|
122
|
+
export interface UseAriaPropsForRoleOptions {
|
|
123
|
+
}
|
|
124
|
+
export interface UseAriaPropsSupportedByRoleOptions {
|
|
125
|
+
}
|
|
126
|
+
export interface UseButtonTypeOptions {
|
|
127
|
+
}
|
|
128
|
+
export interface UseFocusableInteractiveOptions {
|
|
129
|
+
}
|
|
130
|
+
export interface UseGenericFontNamesOptions {
|
|
131
|
+
}
|
|
132
|
+
export interface UseHeadingContentOptions {
|
|
133
|
+
}
|
|
134
|
+
export interface UseHtmlLangOptions {
|
|
135
|
+
}
|
|
136
|
+
export interface UseIframeTitleOptions {
|
|
137
|
+
}
|
|
138
|
+
export interface UseKeyWithClickEventsOptions {
|
|
139
|
+
}
|
|
140
|
+
export interface UseKeyWithMouseEventsOptions {
|
|
141
|
+
}
|
|
142
|
+
export interface UseMediaCaptionOptions {
|
|
143
|
+
}
|
|
144
|
+
export interface UseSemanticElementsOptions {
|
|
145
|
+
}
|
|
146
|
+
export interface UseValidAnchorOptions {
|
|
147
|
+
}
|
|
148
|
+
export interface UseValidAriaPropsOptions {
|
|
149
|
+
}
|
|
150
|
+
export interface UseValidAriaRoleOptions {
|
|
151
|
+
/**
|
|
152
|
+
* It allows specifying a list of roles that might be invalid otherwise
|
|
153
|
+
*/
|
|
154
|
+
allowInvalidRoles?: string[];
|
|
155
|
+
/**
|
|
156
|
+
* Use this option to ignore non-DOM elements, such as custom components
|
|
157
|
+
*/
|
|
158
|
+
ignoreNonDom?: boolean;
|
|
159
|
+
}
|
|
160
|
+
export interface UseValidAriaValuesOptions {
|
|
161
|
+
}
|
|
162
|
+
export interface UseValidAutocompleteOptions {
|
|
163
|
+
/**
|
|
164
|
+
* `input` like custom components that should be checked.
|
|
165
|
+
*/
|
|
166
|
+
inputComponents?: string[];
|
|
167
|
+
}
|
|
168
|
+
export interface UseValidLangOptions {
|
|
169
|
+
}
|
|
170
|
+
export interface NoAdjacentSpacesInRegexOptions {
|
|
171
|
+
}
|
|
172
|
+
export interface NoArgumentsOptions {
|
|
173
|
+
}
|
|
174
|
+
export interface NoBannedTypesOptions {
|
|
175
|
+
}
|
|
176
|
+
export interface NoCommaOperatorOptions {
|
|
177
|
+
}
|
|
178
|
+
export interface NoEmptyTypeParametersOptions {
|
|
179
|
+
}
|
|
180
|
+
export interface NoExcessiveCognitiveComplexityOptions {
|
|
181
|
+
/**
|
|
182
|
+
* The maximum complexity score that we allow. Anything higher is considered excessive.
|
|
183
|
+
*/
|
|
184
|
+
maxAllowedComplexity?: number;
|
|
185
|
+
}
|
|
186
|
+
export interface NoExcessiveLinesPerFunctionOptions {
|
|
187
|
+
/**
|
|
188
|
+
* The maximum number of lines allowed in a function body.
|
|
189
|
+
*/
|
|
190
|
+
maxLines?: number;
|
|
191
|
+
/**
|
|
192
|
+
* When this options is set to `true`, blank lines in the function body are not counted towards the maximum line limit.
|
|
193
|
+
*/
|
|
194
|
+
skipBlankLines?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* When this option is set to `true`, Immediately Invoked Function Expressions (IIFEs) are not checked for the maximum line limit.
|
|
197
|
+
*/
|
|
198
|
+
skipIifes?: boolean;
|
|
199
|
+
}
|
|
200
|
+
export interface NoExcessiveNestedTestSuitesOptions {
|
|
201
|
+
}
|
|
202
|
+
export interface NoExtraBooleanCastOptions {
|
|
203
|
+
}
|
|
204
|
+
export interface NoFlatMapIdentityOptions {
|
|
205
|
+
}
|
|
206
|
+
export interface NoForEachOptions {
|
|
207
|
+
/**
|
|
208
|
+
* A list of variable names allowed for `forEach` calls.
|
|
209
|
+
*/
|
|
210
|
+
allowedIdentifiers?: string[];
|
|
211
|
+
}
|
|
212
|
+
export interface NoImplicitCoercionsOptions {
|
|
213
|
+
}
|
|
214
|
+
export interface NoImportantStylesOptions {
|
|
215
|
+
}
|
|
216
|
+
export interface NoStaticOnlyClassOptions {
|
|
217
|
+
}
|
|
218
|
+
export interface NoThisInStaticOptions {
|
|
219
|
+
}
|
|
220
|
+
export interface NoUselessCatchOptions {
|
|
221
|
+
}
|
|
222
|
+
export interface NoUselessConstructorOptions {
|
|
223
|
+
}
|
|
224
|
+
export interface NoUselessContinueOptions {
|
|
225
|
+
}
|
|
226
|
+
export interface NoUselessEmptyExportOptions {
|
|
227
|
+
}
|
|
228
|
+
export interface NoUselessEscapeInRegexOptions {
|
|
229
|
+
}
|
|
230
|
+
export interface NoUselessFragmentsOptions {
|
|
231
|
+
}
|
|
232
|
+
export interface NoUselessLabelOptions {
|
|
233
|
+
}
|
|
234
|
+
export interface NoUselessLoneBlockStatementsOptions {
|
|
235
|
+
}
|
|
236
|
+
export interface NoUselessRenameOptions {
|
|
237
|
+
}
|
|
238
|
+
export interface NoUselessStringConcatOptions {
|
|
239
|
+
}
|
|
240
|
+
export interface NoUselessStringRawOptions {
|
|
241
|
+
}
|
|
242
|
+
export interface NoUselessSwitchCaseOptions {
|
|
243
|
+
}
|
|
244
|
+
export interface NoUselessTernaryOptions {
|
|
245
|
+
}
|
|
246
|
+
export interface NoUselessThisAliasOptions {
|
|
247
|
+
}
|
|
248
|
+
export interface NoUselessTypeConstraintOptions {
|
|
249
|
+
}
|
|
250
|
+
export interface NoUselessUndefinedInitializationOptions {
|
|
251
|
+
}
|
|
252
|
+
export interface NoVoidOptions {
|
|
253
|
+
}
|
|
254
|
+
export interface UseArrowFunctionOptions {
|
|
255
|
+
}
|
|
256
|
+
export interface UseDateNowOptions {
|
|
257
|
+
}
|
|
258
|
+
export interface UseFlatMapOptions {
|
|
259
|
+
}
|
|
260
|
+
export interface UseIndexOfOptions {
|
|
261
|
+
}
|
|
262
|
+
export interface UseLiteralKeysOptions {
|
|
263
|
+
}
|
|
264
|
+
export interface UseNumericLiteralsOptions {
|
|
265
|
+
}
|
|
266
|
+
export interface UseOptionalChainOptions {
|
|
267
|
+
}
|
|
268
|
+
export interface UseRegexLiteralsOptions {
|
|
269
|
+
}
|
|
270
|
+
export interface UseSimpleNumberKeysOptions {
|
|
271
|
+
}
|
|
272
|
+
export interface UseSimplifiedLogicExpressionOptions {
|
|
273
|
+
}
|
|
274
|
+
export interface UseWhileOptions {
|
|
275
|
+
}
|
|
276
|
+
export interface NoChildrenPropOptions {
|
|
277
|
+
}
|
|
278
|
+
export interface NoConstAssignOptions {
|
|
279
|
+
}
|
|
280
|
+
export interface NoConstantConditionOptions {
|
|
281
|
+
}
|
|
282
|
+
export interface NoConstantMathMinMaxClampOptions {
|
|
283
|
+
}
|
|
284
|
+
export interface NoConstructorReturnOptions {
|
|
285
|
+
}
|
|
286
|
+
export interface NoEmptyCharacterClassInRegexOptions {
|
|
287
|
+
}
|
|
288
|
+
export interface NoEmptyPatternOptions {
|
|
289
|
+
}
|
|
290
|
+
export interface NoGlobalDirnameFilenameOptions {
|
|
291
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { RulePlainConfiguration } from './schema.ts';
|
|
2
|
+
import type { RuleWithNoAdjacentSpacesInRegexOptions, RuleWithNoArgumentsOptions, RuleWithNoBannedTypesOptions, RuleWithNoCommaOperatorOptions, RuleWithNoEmptyTypeParametersOptions, RuleWithNoExcessiveCognitiveComplexityOptions, RuleWithNoExcessiveLinesPerFunctionOptions, RuleWithNoExcessiveNestedTestSuitesOptions, RuleWithNoExtraBooleanCastOptions, RuleWithNoFlatMapIdentityOptions, RuleWithNoForEachOptions, RuleWithNoImplicitCoercionsOptions, RuleWithNoImportantStylesOptions, RuleWithNoStaticOnlyClassOptions, RuleWithNoThisInStaticOptions, RuleWithUseValidLangOptions } from './no-octal-escape-options.ts';
|
|
3
|
+
import type { Hook, NoPrivateImportsOptions, NoRestrictedElementsOptions, NoUndeclaredDependenciesOptions, RuleWithNoChildrenPropOptions, RuleWithNoConstAssignOptions, RuleWithNoConstantConditionOptions, RuleWithNoConstantMathMinMaxClampOptions, RuleWithNoConstructorReturnOptions, RuleWithNoDeprecatedImportsOptions, RuleWithNoDuplicateDependenciesOptions, RuleWithNoEmptyCharacterClassInRegexOptions, RuleWithNoEmptyPatternOptions, RuleWithNoFloatingPromisesOptions, RuleWithNoGlobalDirnameFilenameOptions, RuleWithNoGlobalObjectCallsOptions, RuleWithNoImportCyclesOptions, RuleWithNoInnerDeclarationsOptions, RuleWithNoInvalidBuiltinInstantiationOptions, RuleWithNoInvalidConstructorSuperOptions, RuleWithNoInvalidDirectionInLinearGradientOptions, RuleWithNoInvalidGridAreasOptions, RuleWithNoInvalidPositionAtImportRuleOptions, RuleWithNoInvalidUseBeforeDeclarationOptions, RuleWithNoJsxLiteralsOptions, RuleWithNoMissingVarFunctionOptions, RuleWithNoMisusedPromisesOptions, RuleWithNoNestedComponentDefinitionsOptions, RuleWithNoNextAsyncClientComponentOptions, RuleWithNoNodejsModulesOptions, RuleWithNoNonNullAssertedOptionalChainOptions, RuleWithNoNonoctalDecimalEscapeOptions, RuleWithNoPrecisionLossOptions, RuleWithNoProcessGlobalOptions, RuleWithNoQwikUseVisibleTaskOptions, RuleWithNoReactForwardRefOptions, RuleWithNoReactPropAssignmentsOptions, RuleWithNoRenderReturnValueOptions, RuleWithNoSecretsOptions, RuleWithNoSelfAssignOptions, RuleWithNoSetterReturnOptions, RuleWithNoSolidDestructuredPropsOptions, RuleWithNoStringCaseMismatchOptions, RuleWithNoSwitchDeclarationsOptions, RuleWithNoUndeclaredVariablesOptions, RuleWithNoUnknownFunctionOptions, RuleWithNoUnknownMediaFeatureNameOptions, RuleWithNoUnknownPropertyOptions, RuleWithNoUnknownPseudoClassOptions, RuleWithNoUnknownPseudoElementOptions, RuleWithNoUnknownTypeSelectorOptions, RuleWithNoUnknownUnitOptions, RuleWithNoUnmatchableAnbSelectorOptions, RuleWithNoUnreachableOptions, RuleWithNoUnreachableSuperOptions, RuleWithNoUnsafeFinallyOptions, RuleWithNoUnsafeOptionalChainingOptions, RuleWithNoUnusedFunctionParametersOptions, RuleWithNoUnusedImportsOptions, RuleWithNoUnusedLabelsOptions, RuleWithNoUnusedPrivateClassMembersOptions, RuleWithNoUnusedVariablesOptions, RuleWithNoUselessCatchOptions, RuleWithNoUselessConstructorOptions, RuleWithNoUselessContinueOptions, RuleWithNoUselessEmptyExportOptions, RuleWithNoUselessEscapeInRegexOptions, RuleWithNoUselessFragmentsOptions, RuleWithNoUselessLabelOptions, RuleWithNoUselessLoneBlockStatementsOptions, RuleWithNoUselessRenameOptions, RuleWithNoUselessStringConcatOptions, RuleWithNoUselessStringRawOptions, RuleWithNoUselessSwitchCaseOptions, RuleWithNoUselessTernaryOptions, RuleWithNoUselessThisAliasOptions, RuleWithNoUselessTypeConstraintOptions, RuleWithNoUselessUndefinedInitializationOptions, RuleWithNoVoidElementsWithChildrenOptions, RuleWithNoVoidOptions, RuleWithNoVoidTypeReturnOptions, RuleWithUseArrowFunctionOptions, RuleWithUseDateNowOptions, RuleWithUseFlatMapOptions, RuleWithUseGraphqlNamedOperationsOptions, RuleWithUseHookAtTopLevelOptions, RuleWithUseImportExtensionsOptions, RuleWithUseIndexOfOptions, RuleWithUseIsNanOptions, RuleWithUseJsonImportAttributesOptions, RuleWithUseJsxKeyInIterableOptions, RuleWithUseLiteralKeysOptions, RuleWithUseNumericLiteralsOptions, RuleWithUseOptionalChainOptions, RuleWithUseParseIntRadixOptions, RuleWithUseRegexLiteralsOptions, RuleWithUseSimpleNumberKeysOptions, RuleWithUseSimplifiedLogicExpressionOptions, RuleWithUseSingleJsDocAsteriskOptions, RuleWithUseUniqueElementIdsOptions, RuleWithUseValidForDirectionOptions, RuleWithUseValidTypeofOptions, RuleWithUseWhileOptions, RuleWithUseYieldOptions } from './rule-with-no-useless-catch-options.ts';
|
|
4
|
+
export type UseValidLangConfiguration = RulePlainConfiguration | RuleWithUseValidLangOptions;
|
|
5
|
+
export type NoAdjacentSpacesInRegexConfiguration = RulePlainConfiguration | RuleWithNoAdjacentSpacesInRegexOptions;
|
|
6
|
+
export type NoArgumentsConfiguration = RulePlainConfiguration | RuleWithNoArgumentsOptions;
|
|
7
|
+
export type NoBannedTypesConfiguration = RulePlainConfiguration | RuleWithNoBannedTypesOptions;
|
|
8
|
+
export type NoCommaOperatorConfiguration = RulePlainConfiguration | RuleWithNoCommaOperatorOptions;
|
|
9
|
+
export type NoEmptyTypeParametersConfiguration = RulePlainConfiguration | RuleWithNoEmptyTypeParametersOptions;
|
|
10
|
+
export type NoExcessiveCognitiveComplexityConfiguration = RulePlainConfiguration | RuleWithNoExcessiveCognitiveComplexityOptions;
|
|
11
|
+
export type NoExcessiveLinesPerFunctionConfiguration = RulePlainConfiguration | RuleWithNoExcessiveLinesPerFunctionOptions;
|
|
12
|
+
export type NoExcessiveNestedTestSuitesConfiguration = RulePlainConfiguration | RuleWithNoExcessiveNestedTestSuitesOptions;
|
|
13
|
+
export type NoExtraBooleanCastConfiguration = RulePlainConfiguration | RuleWithNoExtraBooleanCastOptions;
|
|
14
|
+
export type NoFlatMapIdentityConfiguration = RulePlainConfiguration | RuleWithNoFlatMapIdentityOptions;
|
|
15
|
+
export type NoForEachConfiguration = RulePlainConfiguration | RuleWithNoForEachOptions;
|
|
16
|
+
export type NoImplicitCoercionsConfiguration = RulePlainConfiguration | RuleWithNoImplicitCoercionsOptions;
|
|
17
|
+
export type NoImportantStylesConfiguration = RulePlainConfiguration | RuleWithNoImportantStylesOptions;
|
|
18
|
+
export type NoStaticOnlyClassConfiguration = RulePlainConfiguration | RuleWithNoStaticOnlyClassOptions;
|
|
19
|
+
export type NoThisInStaticConfiguration = RulePlainConfiguration | RuleWithNoThisInStaticOptions;
|
|
20
|
+
export type NoUselessCatchConfiguration = RulePlainConfiguration | RuleWithNoUselessCatchOptions;
|
|
21
|
+
export type NoUselessConstructorConfiguration = RulePlainConfiguration | RuleWithNoUselessConstructorOptions;
|
|
22
|
+
export type NoUselessContinueConfiguration = RulePlainConfiguration | RuleWithNoUselessContinueOptions;
|
|
23
|
+
export type NoUselessEmptyExportConfiguration = RulePlainConfiguration | RuleWithNoUselessEmptyExportOptions;
|
|
24
|
+
export type NoUselessEscapeInRegexConfiguration = RulePlainConfiguration | RuleWithNoUselessEscapeInRegexOptions;
|
|
25
|
+
export type NoUselessFragmentsConfiguration = RulePlainConfiguration | RuleWithNoUselessFragmentsOptions;
|
|
26
|
+
export type NoUselessLabelConfiguration = RulePlainConfiguration | RuleWithNoUselessLabelOptions;
|
|
27
|
+
export type NoUselessLoneBlockStatementsConfiguration = RulePlainConfiguration | RuleWithNoUselessLoneBlockStatementsOptions;
|
|
28
|
+
export type NoUselessRenameConfiguration = RulePlainConfiguration | RuleWithNoUselessRenameOptions;
|
|
29
|
+
export type NoUselessStringConcatConfiguration = RulePlainConfiguration | RuleWithNoUselessStringConcatOptions;
|
|
30
|
+
export type NoUselessStringRawConfiguration = RulePlainConfiguration | RuleWithNoUselessStringRawOptions;
|
|
31
|
+
export type NoUselessSwitchCaseConfiguration = RulePlainConfiguration | RuleWithNoUselessSwitchCaseOptions;
|
|
32
|
+
export type NoUselessTernaryConfiguration = RulePlainConfiguration | RuleWithNoUselessTernaryOptions;
|
|
33
|
+
export type NoUselessThisAliasConfiguration = RulePlainConfiguration | RuleWithNoUselessThisAliasOptions;
|
|
34
|
+
export type NoUselessTypeConstraintConfiguration = RulePlainConfiguration | RuleWithNoUselessTypeConstraintOptions;
|
|
35
|
+
export type NoUselessUndefinedInitializationConfiguration = RulePlainConfiguration | RuleWithNoUselessUndefinedInitializationOptions;
|
|
36
|
+
export type NoVoidConfiguration = RulePlainConfiguration | RuleWithNoVoidOptions;
|
|
37
|
+
export type UseArrowFunctionConfiguration = RulePlainConfiguration | RuleWithUseArrowFunctionOptions;
|
|
38
|
+
export type UseDateNowConfiguration = RulePlainConfiguration | RuleWithUseDateNowOptions;
|
|
39
|
+
export type UseFlatMapConfiguration = RulePlainConfiguration | RuleWithUseFlatMapOptions;
|
|
40
|
+
export type UseIndexOfConfiguration = RulePlainConfiguration | RuleWithUseIndexOfOptions;
|
|
41
|
+
export type UseLiteralKeysConfiguration = RulePlainConfiguration | RuleWithUseLiteralKeysOptions;
|
|
42
|
+
export type UseNumericLiteralsConfiguration = RulePlainConfiguration | RuleWithUseNumericLiteralsOptions;
|
|
43
|
+
export type UseOptionalChainConfiguration = RulePlainConfiguration | RuleWithUseOptionalChainOptions;
|
|
44
|
+
export type UseRegexLiteralsConfiguration = RulePlainConfiguration | RuleWithUseRegexLiteralsOptions;
|
|
45
|
+
export type UseSimpleNumberKeysConfiguration = RulePlainConfiguration | RuleWithUseSimpleNumberKeysOptions;
|
|
46
|
+
export type UseSimplifiedLogicExpressionConfiguration = RulePlainConfiguration | RuleWithUseSimplifiedLogicExpressionOptions;
|
|
47
|
+
export type UseWhileConfiguration = RulePlainConfiguration | RuleWithUseWhileOptions;
|
|
48
|
+
export type NoChildrenPropConfiguration = RulePlainConfiguration | RuleWithNoChildrenPropOptions;
|
|
49
|
+
export type NoConstAssignConfiguration = RulePlainConfiguration | RuleWithNoConstAssignOptions;
|
|
50
|
+
export type NoConstantConditionConfiguration = RulePlainConfiguration | RuleWithNoConstantConditionOptions;
|
|
51
|
+
export type NoConstantMathMinMaxClampConfiguration = RulePlainConfiguration | RuleWithNoConstantMathMinMaxClampOptions;
|
|
52
|
+
export type NoConstructorReturnConfiguration = RulePlainConfiguration | RuleWithNoConstructorReturnOptions;
|
|
53
|
+
export type NoEmptyCharacterClassInRegexConfiguration = RulePlainConfiguration | RuleWithNoEmptyCharacterClassInRegexOptions;
|
|
54
|
+
export type NoEmptyPatternConfiguration = RulePlainConfiguration | RuleWithNoEmptyPatternOptions;
|
|
55
|
+
export type NoGlobalDirnameFilenameConfiguration = RulePlainConfiguration | RuleWithNoGlobalDirnameFilenameOptions;
|
|
56
|
+
export type NoGlobalObjectCallsConfiguration = RulePlainConfiguration | RuleWithNoGlobalObjectCallsOptions;
|
|
57
|
+
export type NoInnerDeclarationsConfiguration = RulePlainConfiguration | RuleWithNoInnerDeclarationsOptions;
|
|
58
|
+
export type NoInvalidBuiltinInstantiationConfiguration = RulePlainConfiguration | RuleWithNoInvalidBuiltinInstantiationOptions;
|
|
59
|
+
export type NoInvalidConstructorSuperConfiguration = RulePlainConfiguration | RuleWithNoInvalidConstructorSuperOptions;
|
|
60
|
+
export type NoInvalidDirectionInLinearGradientConfiguration = RulePlainConfiguration | RuleWithNoInvalidDirectionInLinearGradientOptions;
|
|
61
|
+
export type NoInvalidGridAreasConfiguration = RulePlainConfiguration | RuleWithNoInvalidGridAreasOptions;
|
|
62
|
+
export type NoInvalidPositionAtImportRuleConfiguration = RulePlainConfiguration | RuleWithNoInvalidPositionAtImportRuleOptions;
|
|
63
|
+
export type NoInvalidUseBeforeDeclarationConfiguration = RulePlainConfiguration | RuleWithNoInvalidUseBeforeDeclarationOptions;
|
|
64
|
+
export type NoMissingVarFunctionConfiguration = RulePlainConfiguration | RuleWithNoMissingVarFunctionOptions;
|
|
65
|
+
export type NoNestedComponentDefinitionsConfiguration = RulePlainConfiguration | RuleWithNoNestedComponentDefinitionsOptions;
|
|
66
|
+
export type NoNodejsModulesConfiguration = RulePlainConfiguration | RuleWithNoNodejsModulesOptions;
|
|
67
|
+
export type NoNonoctalDecimalEscapeConfiguration = RulePlainConfiguration | RuleWithNoNonoctalDecimalEscapeOptions;
|
|
68
|
+
export type NoPrecisionLossConfiguration = RulePlainConfiguration | RuleWithNoPrecisionLossOptions;
|
|
69
|
+
export interface RuleWithNoPrivateImportsOptions {
|
|
70
|
+
/**
|
|
71
|
+
* The severity of the emitted diagnostics by the rule
|
|
72
|
+
*/
|
|
73
|
+
level: RulePlainConfiguration;
|
|
74
|
+
/**
|
|
75
|
+
* Rule's options
|
|
76
|
+
*/
|
|
77
|
+
options: NoPrivateImportsOptions;
|
|
78
|
+
}
|
|
79
|
+
export type NoProcessGlobalConfiguration = RulePlainConfiguration | RuleWithNoProcessGlobalOptions;
|
|
80
|
+
export type NoReactPropAssignmentsConfiguration = RulePlainConfiguration | RuleWithNoReactPropAssignmentsOptions;
|
|
81
|
+
export type NoRenderReturnValueConfiguration = RulePlainConfiguration | RuleWithNoRenderReturnValueOptions;
|
|
82
|
+
export interface RuleWithNoRestrictedElementsOptions {
|
|
83
|
+
/**
|
|
84
|
+
* The severity of the emitted diagnostics by the rule
|
|
85
|
+
*/
|
|
86
|
+
level: RulePlainConfiguration;
|
|
87
|
+
/**
|
|
88
|
+
* Rule's options
|
|
89
|
+
*/
|
|
90
|
+
options: NoRestrictedElementsOptions;
|
|
91
|
+
}
|
|
92
|
+
export type NoSelfAssignConfiguration = RulePlainConfiguration | RuleWithNoSelfAssignOptions;
|
|
93
|
+
export type NoSetterReturnConfiguration = RulePlainConfiguration | RuleWithNoSetterReturnOptions;
|
|
94
|
+
export type NoSolidDestructuredPropsConfiguration = RulePlainConfiguration | RuleWithNoSolidDestructuredPropsOptions;
|
|
95
|
+
export type NoStringCaseMismatchConfiguration = RulePlainConfiguration | RuleWithNoStringCaseMismatchOptions;
|
|
96
|
+
export type NoSwitchDeclarationsConfiguration = RulePlainConfiguration | RuleWithNoSwitchDeclarationsOptions;
|
|
97
|
+
export interface RuleWithNoUndeclaredDependenciesOptions {
|
|
98
|
+
/**
|
|
99
|
+
* The severity of the emitted diagnostics by the rule
|
|
100
|
+
*/
|
|
101
|
+
level: RulePlainConfiguration;
|
|
102
|
+
/**
|
|
103
|
+
* Rule's options
|
|
104
|
+
*/
|
|
105
|
+
options: NoUndeclaredDependenciesOptions;
|
|
106
|
+
}
|
|
107
|
+
export type NoUndeclaredVariablesConfiguration = RulePlainConfiguration | RuleWithNoUndeclaredVariablesOptions;
|
|
108
|
+
export type NoUnknownFunctionConfiguration = RulePlainConfiguration | RuleWithNoUnknownFunctionOptions;
|
|
109
|
+
export type NoUnknownMediaFeatureNameConfiguration = RulePlainConfiguration | RuleWithNoUnknownMediaFeatureNameOptions;
|
|
110
|
+
export type NoUnknownPropertyConfiguration = RulePlainConfiguration | RuleWithNoUnknownPropertyOptions;
|
|
111
|
+
export type NoUnknownPseudoClassConfiguration = RulePlainConfiguration | RuleWithNoUnknownPseudoClassOptions;
|
|
112
|
+
export type NoUnknownPseudoElementConfiguration = RulePlainConfiguration | RuleWithNoUnknownPseudoElementOptions;
|
|
113
|
+
export type NoUnknownTypeSelectorConfiguration = RulePlainConfiguration | RuleWithNoUnknownTypeSelectorOptions;
|
|
114
|
+
export type NoUnknownUnitConfiguration = RulePlainConfiguration | RuleWithNoUnknownUnitOptions;
|
|
115
|
+
export type NoUnmatchableAnbSelectorConfiguration = RulePlainConfiguration | RuleWithNoUnmatchableAnbSelectorOptions;
|
|
116
|
+
export type NoUnreachableConfiguration = RulePlainConfiguration | RuleWithNoUnreachableOptions;
|
|
117
|
+
export type NoUnreachableSuperConfiguration = RulePlainConfiguration | RuleWithNoUnreachableSuperOptions;
|
|
118
|
+
export type NoUnsafeFinallyConfiguration = RulePlainConfiguration | RuleWithNoUnsafeFinallyOptions;
|
|
119
|
+
export type NoUnsafeOptionalChainingConfiguration = RulePlainConfiguration | RuleWithNoUnsafeOptionalChainingOptions;
|
|
120
|
+
export type NoUnusedFunctionParametersConfiguration = RulePlainConfiguration | RuleWithNoUnusedFunctionParametersOptions;
|
|
121
|
+
export type NoUnusedImportsConfiguration = RulePlainConfiguration | RuleWithNoUnusedImportsOptions;
|
|
122
|
+
export type NoUnusedLabelsConfiguration = RulePlainConfiguration | RuleWithNoUnusedLabelsOptions;
|
|
123
|
+
export type NoUnusedPrivateClassMembersConfiguration = RulePlainConfiguration | RuleWithNoUnusedPrivateClassMembersOptions;
|
|
124
|
+
export type NoUnusedVariablesConfiguration = RulePlainConfiguration | RuleWithNoUnusedVariablesOptions;
|
|
125
|
+
export type NoVoidElementsWithChildrenConfiguration = RulePlainConfiguration | RuleWithNoVoidElementsWithChildrenOptions;
|
|
126
|
+
export type NoVoidTypeReturnConfiguration = RulePlainConfiguration | RuleWithNoVoidTypeReturnOptions;
|
|
127
|
+
export interface UseExhaustiveDependenciesOptions {
|
|
128
|
+
/**
|
|
129
|
+
* List of hooks of which the dependencies should be validated.
|
|
130
|
+
*/
|
|
131
|
+
hooks?: Hook[];
|
|
132
|
+
/**
|
|
133
|
+
* Whether to report an error when a hook has no dependencies array.
|
|
134
|
+
*/
|
|
135
|
+
reportMissingDependenciesArray?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Whether to report an error when a dependency is listed in the dependencies array but isn't used. Defaults to true.
|
|
138
|
+
*/
|
|
139
|
+
reportUnnecessaryDependencies?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export type UseGraphqlNamedOperationsConfiguration = RulePlainConfiguration | RuleWithUseGraphqlNamedOperationsOptions;
|
|
142
|
+
export type UseHookAtTopLevelConfiguration = RulePlainConfiguration | RuleWithUseHookAtTopLevelOptions;
|
|
143
|
+
export type UseImportExtensionsConfiguration = RulePlainConfiguration | RuleWithUseImportExtensionsOptions;
|
|
144
|
+
export type UseIsNanConfiguration = RulePlainConfiguration | RuleWithUseIsNanOptions;
|
|
145
|
+
export type UseJsonImportAttributesConfiguration = RulePlainConfiguration | RuleWithUseJsonImportAttributesOptions;
|
|
146
|
+
export type UseJsxKeyInIterableConfiguration = RulePlainConfiguration | RuleWithUseJsxKeyInIterableOptions;
|
|
147
|
+
export type UseParseIntRadixConfiguration = RulePlainConfiguration | RuleWithUseParseIntRadixOptions;
|
|
148
|
+
export type UseSingleJsDocAsteriskConfiguration = RulePlainConfiguration | RuleWithUseSingleJsDocAsteriskOptions;
|
|
149
|
+
export type UseUniqueElementIdsConfiguration = RulePlainConfiguration | RuleWithUseUniqueElementIdsOptions;
|
|
150
|
+
export type UseValidForDirectionConfiguration = RulePlainConfiguration | RuleWithUseValidForDirectionOptions;
|
|
151
|
+
export type UseValidTypeofConfiguration = RulePlainConfiguration | RuleWithUseValidTypeofOptions;
|
|
152
|
+
export type UseYieldConfiguration = RulePlainConfiguration | RuleWithUseYieldOptions;
|
|
153
|
+
export type NoDeprecatedImportsConfiguration = RulePlainConfiguration | RuleWithNoDeprecatedImportsOptions;
|
|
154
|
+
export type NoDuplicateDependenciesConfiguration = RulePlainConfiguration | RuleWithNoDuplicateDependenciesOptions;
|
|
155
|
+
export type NoFloatingPromisesConfiguration = RulePlainConfiguration | RuleWithNoFloatingPromisesOptions;
|
|
156
|
+
export type NoImportCyclesConfiguration = RulePlainConfiguration | RuleWithNoImportCyclesOptions;
|
|
157
|
+
export type NoJsxLiteralsConfiguration = RulePlainConfiguration | RuleWithNoJsxLiteralsOptions;
|
|
158
|
+
export type NoMisusedPromisesConfiguration = RulePlainConfiguration | RuleWithNoMisusedPromisesOptions;
|
|
159
|
+
export type NoNextAsyncClientComponentConfiguration = RulePlainConfiguration | RuleWithNoNextAsyncClientComponentOptions;
|
|
160
|
+
export type NoNonNullAssertedOptionalChainConfiguration = RulePlainConfiguration | RuleWithNoNonNullAssertedOptionalChainOptions;
|
|
161
|
+
export type NoQwikUseVisibleTaskConfiguration = RulePlainConfiguration | RuleWithNoQwikUseVisibleTaskOptions;
|
|
162
|
+
export type NoReactForwardRefConfiguration = RulePlainConfiguration | RuleWithNoReactForwardRefOptions;
|
|
163
|
+
export type NoSecretsConfiguration = RulePlainConfiguration | RuleWithNoSecretsOptions;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { nextConfig } from './presets/next.ts';
|
|
2
|
+
import { nuxtConfig } from './presets/nuxt.ts';
|
|
3
|
+
import { reactConfig } from './presets/react.ts';
|
|
4
|
+
import { vueConfig } from './presets/vue.ts';
|
|
5
|
+
import { indexConfig } from './source/index.ts';
|
|
6
|
+
export { BIOME_SCHEMA_URL } from './constants/biome.ts';
|
|
7
|
+
export { indexConfig, reactConfig, nextConfig, vueConfig, nuxtConfig };
|
|
8
|
+
export declare const allPresets: Readonly<{
|
|
9
|
+
index: import("./types.ts").Configuration;
|
|
10
|
+
react: import("./types.ts").Configuration;
|
|
11
|
+
next: import("./types.ts").Configuration;
|
|
12
|
+
vue: import("./types.ts").Configuration;
|
|
13
|
+
nuxt: import("./types.ts").Configuration;
|
|
14
|
+
}>;
|
|
15
|
+
export type { BiomeConfig } from './types.ts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const nextConfig: import("../types.ts").Configuration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const nuxtConfig: import("../types.ts").Configuration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const reactConfig: import("../types.ts").Configuration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const vueConfig: import("../types.ts").Configuration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generated/biome/index.ts';
|
package/dist/vue.jsonc
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
|
|
3
|
+
"root": true,
|
|
4
|
+
"vcs": {
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"clientKind": "git",
|
|
7
|
+
"useIgnoreFile": true,
|
|
8
|
+
"defaultBranch": "main"
|
|
9
|
+
},
|
|
10
|
+
"files": {
|
|
11
|
+
"ignoreUnknown": true,
|
|
12
|
+
"includes": [
|
|
13
|
+
"**",
|
|
14
|
+
"!**/build",
|
|
15
|
+
"!**/dist",
|
|
16
|
+
"!**/.next",
|
|
17
|
+
"!**/.vitepress",
|
|
18
|
+
"!**/.output"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"formatter": {
|
|
22
|
+
"enabled": true,
|
|
23
|
+
"indentStyle": "space",
|
|
24
|
+
"lineWidth": 140,
|
|
25
|
+
"formatWithErrors": true
|
|
26
|
+
},
|
|
27
|
+
"assist": {
|
|
28
|
+
"actions": {
|
|
29
|
+
"source": {
|
|
30
|
+
"organizeImports": {
|
|
31
|
+
"level": "on",
|
|
32
|
+
"options": {
|
|
33
|
+
"groups": [
|
|
34
|
+
[
|
|
35
|
+
":NODE:",
|
|
36
|
+
":BUN:",
|
|
37
|
+
":PACKAGE_WITH_PROTOCOL:",
|
|
38
|
+
":PACKAGE:"
|
|
39
|
+
],
|
|
40
|
+
":BLANK_LINE:",
|
|
41
|
+
":ALIAS:",
|
|
42
|
+
":BLANK_LINE:",
|
|
43
|
+
":PATH:"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"linter": {
|
|
51
|
+
"enabled": true,
|
|
52
|
+
"rules": {
|
|
53
|
+
"recommended": true,
|
|
54
|
+
"complexity": {
|
|
55
|
+
"noUselessStringConcat": "error",
|
|
56
|
+
"noUselessUndefinedInitialization": "error",
|
|
57
|
+
"noVoid": "error",
|
|
58
|
+
"useDateNow": "error"
|
|
59
|
+
},
|
|
60
|
+
"correctness": {
|
|
61
|
+
"noConstantMathMinMaxClamp": "error",
|
|
62
|
+
"noUndeclaredVariables": "error",
|
|
63
|
+
"noUnusedImports": "error",
|
|
64
|
+
"noUnusedFunctionParameters": "error",
|
|
65
|
+
"noUnusedPrivateClassMembers": "error",
|
|
66
|
+
"useExhaustiveDependencies": {
|
|
67
|
+
"level": "error",
|
|
68
|
+
"options": {
|
|
69
|
+
"reportUnnecessaryDependencies": false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"noUnusedVariables": "error"
|
|
73
|
+
},
|
|
74
|
+
"style": {
|
|
75
|
+
"noParameterProperties": "error",
|
|
76
|
+
"noYodaExpression": "error",
|
|
77
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
78
|
+
"useFragmentSyntax": "error",
|
|
79
|
+
"useImportType": {
|
|
80
|
+
"level": "error",
|
|
81
|
+
"fix": "safe",
|
|
82
|
+
"options": {
|
|
83
|
+
"style": "separatedType"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"useSelfClosingElements": {
|
|
87
|
+
"level": "error",
|
|
88
|
+
"fix": "safe",
|
|
89
|
+
"options": {}
|
|
90
|
+
},
|
|
91
|
+
"useShorthandAssign": "error",
|
|
92
|
+
"useArrayLiterals": "error"
|
|
93
|
+
},
|
|
94
|
+
"nursery": {
|
|
95
|
+
"useSortedClasses": {
|
|
96
|
+
"level": "error",
|
|
97
|
+
"fix": "safe",
|
|
98
|
+
"options": {
|
|
99
|
+
"functions": [
|
|
100
|
+
"clsx",
|
|
101
|
+
"cn"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"suspicious": {
|
|
107
|
+
"useAwait": "error",
|
|
108
|
+
"noEvolvingTypes": "error"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"javascript": {
|
|
113
|
+
"formatter": {
|
|
114
|
+
"quoteStyle": "single",
|
|
115
|
+
"jsxQuoteStyle": "single",
|
|
116
|
+
"arrowParentheses": "asNeeded",
|
|
117
|
+
"trailingCommas": "all"
|
|
118
|
+
},
|
|
119
|
+
"parser": {
|
|
120
|
+
"jsxEverywhere": false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"overrides": [
|
|
124
|
+
{
|
|
125
|
+
"includes": [
|
|
126
|
+
"**/*.jsx",
|
|
127
|
+
"**/*.tsx"
|
|
128
|
+
],
|
|
129
|
+
"linter": {
|
|
130
|
+
"rules": {
|
|
131
|
+
"style": {
|
|
132
|
+
"noParameterAssign": "error"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"includes": [
|
|
139
|
+
"**/*.ts",
|
|
140
|
+
"**/*.tsx"
|
|
141
|
+
],
|
|
142
|
+
"linter": {
|
|
143
|
+
"rules": {
|
|
144
|
+
"correctness": {
|
|
145
|
+
"noUnusedVariables": "off"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"includes": [
|
|
152
|
+
"**/*.vue"
|
|
153
|
+
],
|
|
154
|
+
"formatter": {
|
|
155
|
+
"lineWidth": 120
|
|
156
|
+
},
|
|
157
|
+
"javascript": {
|
|
158
|
+
"formatter": {
|
|
159
|
+
"quoteStyle": "single"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"html": {
|
|
165
|
+
"formatter": {
|
|
166
|
+
"indentScriptAndStyle": true,
|
|
167
|
+
"selfCloseVoidElements": "always"
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|