@quentinhsu/biome-config 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.mjs +59 -59
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +59 -59
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +10 -9
- package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +25 -24
- package/dist/types/src/generated/biome/{no-misrefactored-shorthand-assign-options.d.ts → no-label-var-options.d.ts} +55 -95
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → no-magic-numbers-options.d.ts} +17 -17
- package/dist/types/src/generated/biome/{rule-with-no-document-import-in-page-options.d.ts → rule-with-no-confusing-labels-options.d.ts} +175 -87
- package/dist/types/src/generated/biome/{rule-with-no-implicit-coercions-options.d.ts → rule-with-no-excessive-nested-test-suites-options.d.ts} +182 -182
- package/dist/types/src/generated/biome/{use-consistent-arrow-return-options.d.ts → rule-with-no-unused-expressions-options.d.ts} +202 -206
- package/dist/types/src/generated/biome/schema.d.ts +11 -11
- package/dist/types/src/generated/biome/{nursery.d.ts → use-consistent-object-definitions-configuration.d.ts} +473 -192
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → use-focusable-interactive-configuration.d.ts} +16 -16
- package/dist/types/src/generated/biome/{no-empty-source-configuration.d.ts → use-qwik-classlist-configuration.d.ts} +26 -26
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → use-shorthand-assign-configuration.d.ts} +19 -450
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +34 -34
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { Bool, Extends, Schema } from './schema.ts';
|
|
2
|
+
import type { NormalizedGlob, OverrideFilesConfiguration, OverrideFormatterConfiguration, OverrideGlobs, RuleDomains } from './no-label-var-options.ts';
|
|
3
|
+
import type { CssConfiguration, FilesConfiguration, FormatterConfiguration, GraphqlConfiguration, GritConfiguration, HtmlConfiguration, JsConfiguration, JsonConfiguration, Plugins, VcsConfiguration } from './rule-with-no-confusing-labels-options.ts';
|
|
4
|
+
import type { Actions, Rules } from './use-consistent-object-definitions-configuration.ts';
|
|
5
|
+
export interface LinterConfiguration {
|
|
6
|
+
/**
|
|
7
|
+
* An object where the keys are the names of the domains, and the values are `all`, `recommended`, or `none`.
|
|
8
|
+
*/
|
|
9
|
+
domains?: RuleDomains | null;
|
|
10
|
+
/**
|
|
11
|
+
* if `false`, it disables the feature and the linter won't be executed. `true` by default
|
|
12
|
+
*/
|
|
13
|
+
enabled?: Bool | null;
|
|
14
|
+
/**
|
|
15
|
+
* A list of glob patterns. The analyzer will handle only those files/folders that will match these patterns.
|
|
16
|
+
*/
|
|
17
|
+
includes?: NormalizedGlob[] | null;
|
|
18
|
+
/**
|
|
19
|
+
* List of rules
|
|
20
|
+
*/
|
|
21
|
+
rules?: Rules | null;
|
|
22
|
+
}
|
|
23
|
+
export interface OverrideLinterConfiguration {
|
|
24
|
+
/**
|
|
25
|
+
* List of rules
|
|
26
|
+
*/
|
|
27
|
+
domains?: RuleDomains | null;
|
|
28
|
+
/**
|
|
29
|
+
* if `false`, it disables the feature and the linter won't be executed. `true` by default
|
|
30
|
+
*/
|
|
31
|
+
enabled?: Bool | null;
|
|
32
|
+
/**
|
|
33
|
+
* List of rules
|
|
34
|
+
*/
|
|
35
|
+
rules?: Rules | null;
|
|
36
|
+
}
|
|
37
|
+
export interface AssistConfiguration {
|
|
38
|
+
/**
|
|
39
|
+
* Whether Biome should fail in CLI if the assist were not applied to the code.
|
|
40
|
+
*/
|
|
41
|
+
actions?: Actions | null;
|
|
42
|
+
/**
|
|
43
|
+
* Whether Biome should enable assist via LSP and CLI.
|
|
44
|
+
*/
|
|
45
|
+
enabled?: Bool | null;
|
|
46
|
+
/**
|
|
47
|
+
* A list of glob patterns. Biome will include files/folders that will match these patterns.
|
|
48
|
+
*/
|
|
49
|
+
includes?: NormalizedGlob[] | null;
|
|
50
|
+
}
|
|
51
|
+
export interface OverrideAssistConfiguration {
|
|
52
|
+
/**
|
|
53
|
+
* List of actions
|
|
54
|
+
*/
|
|
55
|
+
actions?: Actions | null;
|
|
56
|
+
/**
|
|
57
|
+
* if `false`, it disables the feature and the assist won't be executed. `true` by default
|
|
58
|
+
*/
|
|
59
|
+
enabled?: Bool | null;
|
|
60
|
+
}
|
|
61
|
+
export interface OverridePattern {
|
|
62
|
+
/**
|
|
63
|
+
* Specific configuration for the Json language
|
|
64
|
+
*/
|
|
65
|
+
assist?: OverrideAssistConfiguration | null;
|
|
66
|
+
/**
|
|
67
|
+
* Specific configuration for the CSS language
|
|
68
|
+
*/
|
|
69
|
+
css?: CssConfiguration | null;
|
|
70
|
+
/**
|
|
71
|
+
* Specific configuration for the filesystem
|
|
72
|
+
*/
|
|
73
|
+
files?: OverrideFilesConfiguration | null;
|
|
74
|
+
/**
|
|
75
|
+
* Specific configuration for the Json language
|
|
76
|
+
*/
|
|
77
|
+
formatter?: OverrideFormatterConfiguration | null;
|
|
78
|
+
/**
|
|
79
|
+
* Specific configuration for the Graphql language
|
|
80
|
+
*/
|
|
81
|
+
graphql?: GraphqlConfiguration | null;
|
|
82
|
+
/**
|
|
83
|
+
* Specific configuration for the GritQL language
|
|
84
|
+
*/
|
|
85
|
+
grit?: GritConfiguration | null;
|
|
86
|
+
/**
|
|
87
|
+
* Specific configuration for the GritQL language
|
|
88
|
+
*/
|
|
89
|
+
html?: HtmlConfiguration | null;
|
|
90
|
+
/**
|
|
91
|
+
* A list of glob patterns. Biome will include files/folders that will match these patterns.
|
|
92
|
+
*/
|
|
93
|
+
includes?: OverrideGlobs | null;
|
|
94
|
+
/**
|
|
95
|
+
* Specific configuration for the JavaScript language
|
|
96
|
+
*/
|
|
97
|
+
javascript?: JsConfiguration | null;
|
|
98
|
+
/**
|
|
99
|
+
* Specific configuration for the Json language
|
|
100
|
+
*/
|
|
101
|
+
json?: JsonConfiguration | null;
|
|
102
|
+
/**
|
|
103
|
+
* Specific configuration for the Json language
|
|
104
|
+
*/
|
|
105
|
+
linter?: OverrideLinterConfiguration | null;
|
|
106
|
+
/**
|
|
107
|
+
* Specific configuration for additional plugins
|
|
108
|
+
*/
|
|
109
|
+
plugins?: Plugins | null;
|
|
110
|
+
}
|
|
111
|
+
export type Overrides = OverridePattern[];
|
|
112
|
+
/**
|
|
113
|
+
* The configuration that is contained inside the file `biome.json`
|
|
114
|
+
*/
|
|
115
|
+
export interface Configuration {
|
|
116
|
+
/**
|
|
117
|
+
* A field for the [JSON schema](https://json-schema.org/) specification
|
|
118
|
+
*/
|
|
119
|
+
$schema?: Schema | null;
|
|
120
|
+
/**
|
|
121
|
+
* Specific configuration for assists
|
|
122
|
+
*/
|
|
123
|
+
assist?: AssistConfiguration | null;
|
|
124
|
+
/**
|
|
125
|
+
* Specific configuration for the Css language
|
|
126
|
+
*/
|
|
127
|
+
css?: CssConfiguration | null;
|
|
128
|
+
/**
|
|
129
|
+
* A list of paths to other JSON files, used to extends the current configuration.
|
|
130
|
+
*/
|
|
131
|
+
extends?: Extends | null;
|
|
132
|
+
/**
|
|
133
|
+
* The configuration of the filesystem
|
|
134
|
+
*/
|
|
135
|
+
files?: FilesConfiguration | null;
|
|
136
|
+
/**
|
|
137
|
+
* The configuration of the formatter
|
|
138
|
+
*/
|
|
139
|
+
formatter?: FormatterConfiguration | null;
|
|
140
|
+
/**
|
|
141
|
+
* Specific configuration for the GraphQL language
|
|
142
|
+
*/
|
|
143
|
+
graphql?: GraphqlConfiguration | null;
|
|
144
|
+
/**
|
|
145
|
+
* Specific configuration for the GraphQL language
|
|
146
|
+
*/
|
|
147
|
+
grit?: GritConfiguration | null;
|
|
148
|
+
/**
|
|
149
|
+
* Specific configuration for the HTML language
|
|
150
|
+
*/
|
|
151
|
+
html?: HtmlConfiguration | null;
|
|
152
|
+
/**
|
|
153
|
+
* Specific configuration for the JavaScript language
|
|
154
|
+
*/
|
|
155
|
+
javascript?: JsConfiguration | null;
|
|
156
|
+
/**
|
|
157
|
+
* Specific configuration for the Json language
|
|
158
|
+
*/
|
|
159
|
+
json?: JsonConfiguration | null;
|
|
160
|
+
/**
|
|
161
|
+
* The configuration for the linter
|
|
162
|
+
*/
|
|
163
|
+
linter?: LinterConfiguration | null;
|
|
164
|
+
/**
|
|
165
|
+
* A list of granular patterns that should be applied only to a sub set of files
|
|
166
|
+
*/
|
|
167
|
+
overrides?: Overrides | null;
|
|
168
|
+
/**
|
|
169
|
+
* List of plugins to load.
|
|
170
|
+
*/
|
|
171
|
+
plugins?: Plugins | null;
|
|
172
|
+
/**
|
|
173
|
+
* Indicates whether this configuration file is at the root of a Biome project. By default, this is `true`.
|
|
174
|
+
*/
|
|
175
|
+
root?: Bool | null;
|
|
176
|
+
/**
|
|
177
|
+
* The configuration of the VCS integration
|
|
178
|
+
*/
|
|
179
|
+
vcs?: VcsConfiguration | null;
|
|
180
|
+
}
|
|
181
|
+
export type BiomeConfig = Configuration;
|
|
@@ -51,7 +51,7 @@ export interface NoUndeclaredVariablesOptions {
|
|
|
51
51
|
/**
|
|
52
52
|
* Check undeclared types.
|
|
53
53
|
*/
|
|
54
|
-
checkTypes?: boolean;
|
|
54
|
+
checkTypes?: boolean | null;
|
|
55
55
|
}
|
|
56
56
|
export interface NoUnknownFunctionOptions {
|
|
57
57
|
}
|
|
@@ -81,7 +81,7 @@ export interface NoUnusedFunctionParametersOptions {
|
|
|
81
81
|
/**
|
|
82
82
|
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
83
83
|
*/
|
|
84
|
-
ignoreRestSiblings?: boolean;
|
|
84
|
+
ignoreRestSiblings?: boolean | null;
|
|
85
85
|
}
|
|
86
86
|
export interface NoUnusedImportsOptions {
|
|
87
87
|
}
|
|
@@ -93,7 +93,7 @@ export interface NoUnusedVariablesOptions {
|
|
|
93
93
|
/**
|
|
94
94
|
* Whether to ignore unused variables from an object destructuring with a spread.
|
|
95
95
|
*/
|
|
96
|
-
ignoreRestSiblings?: boolean;
|
|
96
|
+
ignoreRestSiblings?: boolean | null;
|
|
97
97
|
}
|
|
98
98
|
export interface NoVoidElementsWithChildrenOptions {
|
|
99
99
|
}
|
|
@@ -109,7 +109,7 @@ export interface UseImportExtensionsOptions {
|
|
|
109
109
|
/**
|
|
110
110
|
* If `true`, the suggested extension is always `.js` regardless of what extension the source file has in your project.
|
|
111
111
|
*/
|
|
112
|
-
forceJsExtensions?: boolean;
|
|
112
|
+
forceJsExtensions?: boolean | null;
|
|
113
113
|
}
|
|
114
114
|
export interface UseIsNanOptions {
|
|
115
115
|
}
|
|
@@ -119,7 +119,7 @@ export interface UseJsxKeyInIterableOptions {
|
|
|
119
119
|
/**
|
|
120
120
|
* Set to `true` to check shorthand fragments (`<></>`)
|
|
121
121
|
*/
|
|
122
|
-
checkShorthandFragments?: boolean;
|
|
122
|
+
checkShorthandFragments?: boolean | null;
|
|
123
123
|
}
|
|
124
124
|
export interface UseParseIntRadixOptions {
|
|
125
125
|
}
|
|
@@ -131,7 +131,7 @@ export interface UseUniqueElementIdsOptions {
|
|
|
131
131
|
/**
|
|
132
132
|
* Component names that accept an `id` prop that does not translate to a DOM element id.
|
|
133
133
|
*/
|
|
134
|
-
excludedComponents?: string[];
|
|
134
|
+
excludedComponents?: string[] | null;
|
|
135
135
|
}
|
|
136
136
|
export interface UseValidForDirectionOptions {
|
|
137
137
|
}
|
|
@@ -139,6 +139,8 @@ export interface UseValidTypeofOptions {
|
|
|
139
139
|
}
|
|
140
140
|
export interface UseYieldOptions {
|
|
141
141
|
}
|
|
142
|
+
export interface NoContinueOptions {
|
|
143
|
+
}
|
|
142
144
|
export interface NoDeprecatedImportsOptions {
|
|
143
145
|
}
|
|
144
146
|
export interface NoDuplicateDependenciesOptions {
|
|
@@ -147,7 +149,7 @@ export interface NoEmptySourceOptions {
|
|
|
147
149
|
/**
|
|
148
150
|
* Whether comments are considered meaningful
|
|
149
151
|
*/
|
|
150
|
-
allowComments?: boolean;
|
|
152
|
+
allowComments?: boolean | null;
|
|
151
153
|
}
|
|
152
154
|
export interface NoFloatingPromisesOptions {
|
|
153
155
|
}
|
|
@@ -155,36 +157,41 @@ export interface NoImportCyclesOptions {
|
|
|
155
157
|
/**
|
|
156
158
|
* Ignores type-only imports when finding an import cycle. A type-only import (`import type`) will be removed by the compiler, so it cuts an import cycle at runtime. Note that named type imports (`import { type Foo }`) aren't considered as type-only because it's not removed by the compiler if the `verbatimModuleSyntax` option is enabled. Enabled by default.
|
|
157
159
|
*/
|
|
158
|
-
ignoreTypes?: boolean;
|
|
160
|
+
ignoreTypes?: boolean | null;
|
|
159
161
|
}
|
|
160
162
|
export interface NoIncrementDecrementOptions {
|
|
161
163
|
/**
|
|
162
164
|
* Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
|
|
163
165
|
*/
|
|
164
|
-
allowForLoopAfterthoughts?: boolean;
|
|
166
|
+
allowForLoopAfterthoughts?: boolean | null;
|
|
165
167
|
}
|
|
166
168
|
export interface NoJsxLiteralsOptions {
|
|
167
169
|
/**
|
|
168
170
|
* An array of strings that won't trigger the rule. Whitespaces are taken into consideration
|
|
169
171
|
*/
|
|
170
|
-
allowedStrings?: string[];
|
|
172
|
+
allowedStrings?: string[] | null;
|
|
171
173
|
/**
|
|
172
174
|
* When enabled, strings inside props are always ignored
|
|
173
175
|
*/
|
|
174
|
-
ignoreProps?: boolean;
|
|
176
|
+
ignoreProps?: boolean | null;
|
|
175
177
|
/**
|
|
176
178
|
* When enabled, also flag string literals inside JSX expressions and attributes
|
|
177
179
|
*/
|
|
178
|
-
noStrings?: boolean;
|
|
180
|
+
noStrings?: boolean | null;
|
|
179
181
|
}
|
|
180
182
|
export interface NoMisusedPromisesOptions {
|
|
181
183
|
}
|
|
182
184
|
export interface NoNextAsyncClientComponentOptions {
|
|
183
185
|
}
|
|
186
|
+
export interface NoParametersOnlyUsedInRecursionOptions {
|
|
187
|
+
}
|
|
184
188
|
export interface NoReactForwardRefOptions {
|
|
185
189
|
}
|
|
186
190
|
export interface NoShadowOptions {
|
|
187
191
|
}
|
|
192
|
+
export interface NoUnknownAttributeOptions {
|
|
193
|
+
ignore?: string[] | null;
|
|
194
|
+
}
|
|
188
195
|
export interface NoUnnecessaryConditionsOptions {
|
|
189
196
|
}
|
|
190
197
|
export interface NoUnresolvedImportsOptions {
|
|
@@ -206,9 +213,11 @@ export interface NoVueReservedKeysOptions {
|
|
|
206
213
|
}
|
|
207
214
|
export interface NoVueReservedPropsOptions {
|
|
208
215
|
}
|
|
216
|
+
export interface UseArraySortCompareOptions {
|
|
217
|
+
}
|
|
209
218
|
export type UseConsistentArrowReturnStyle = 'asNeeded' | 'always' | 'never';
|
|
210
219
|
export interface UseDeprecatedDateOptions {
|
|
211
|
-
argumentName?: string;
|
|
220
|
+
argumentName?: string | null;
|
|
212
221
|
}
|
|
213
222
|
export interface UseExhaustiveSwitchCasesOptions {
|
|
214
223
|
}
|
|
@@ -218,7 +227,7 @@ export interface UseMaxParamsOptions {
|
|
|
218
227
|
/**
|
|
219
228
|
* Maximum number of parameters allowed (default: 4)
|
|
220
229
|
*/
|
|
221
|
-
max?: number;
|
|
230
|
+
max?: number | null;
|
|
222
231
|
}
|
|
223
232
|
export interface UseQwikMethodUsageOptions {
|
|
224
233
|
}
|
|
@@ -238,7 +247,7 @@ export interface UseVueDefineMacrosOrderOptions {
|
|
|
238
247
|
/**
|
|
239
248
|
* The order of the Vue define macros.
|
|
240
249
|
*/
|
|
241
|
-
order?: string[];
|
|
250
|
+
order?: string[] | null;
|
|
242
251
|
}
|
|
243
252
|
export interface UseVueMultiWordComponentNamesOptions {
|
|
244
253
|
/**
|
|
@@ -278,7 +287,7 @@ export interface NoBlankTargetOptions {
|
|
|
278
287
|
/**
|
|
279
288
|
* Whether `noreferrer` is allowed in addition to `noopener`.
|
|
280
289
|
*/
|
|
281
|
-
allowNoReferrer?: boolean;
|
|
290
|
+
allowNoReferrer?: boolean | null;
|
|
282
291
|
}
|
|
283
292
|
export interface NoDangerouslySetInnerHtmlOptions {
|
|
284
293
|
}
|
|
@@ -310,11 +319,3 @@ export interface NoImplicitBooleanOptions {
|
|
|
310
319
|
}
|
|
311
320
|
export interface NoInferrableTypesOptions {
|
|
312
321
|
}
|
|
313
|
-
export interface NoMagicNumbersOptions {
|
|
314
|
-
}
|
|
315
|
-
export interface NoNamespaceOptions {
|
|
316
|
-
}
|
|
317
|
-
export interface NoNegationElseOptions {
|
|
318
|
-
}
|
|
319
|
-
export interface NoNestedTernaryOptions {
|
|
320
|
-
}
|