@quentinhsu/biome-config 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.mjs +388 -0
- package/dist/index.jsonc +153 -0
- package/dist/index.mjs +358 -0
- package/dist/next.jsonc +170 -0
- package/dist/nuxt.jsonc +225 -0
- package/dist/react.jsonc +168 -0
- package/dist/types/scripts/build-presets.d.ts +1 -0
- package/dist/types/scripts/generate-biome-types.d.ts +1 -0
- package/dist/types/scripts/utils/biome-version.d.ts +12 -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-assign-in-expressions-configuration.d.ts +1002 -0
- package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +241 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +320 -0
- package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +1116 -0
- package/dist/types/src/generated/biome/no-non-null-assertion-options.d.ts +291 -0
- package/dist/types/src/generated/biome/nursery.d.ts +1023 -0
- package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +1148 -0
- package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +1440 -0
- package/dist/types/src/generated/biome/schema.d.ts +291 -0
- package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +1341 -0
- package/dist/types/src/generated/biome/use-semantic-elements-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 +177 -0
- package/package.json +12 -11
|
@@ -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' | 'auto';
|
|
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
|
+
}
|