@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 interface NoNonNullAssertionOptions {
|
|
2
|
+
}
|
|
3
|
+
/**
|
|
4
|
+
* Specifies whether property assignments on function parameters are allowed or denied.
|
|
5
|
+
*/
|
|
6
|
+
export type PropertyAssignmentMode = 'allow' | 'deny';
|
|
7
|
+
export interface NoParameterPropertiesOptions {
|
|
8
|
+
}
|
|
9
|
+
export interface NoProcessEnvOptions {
|
|
10
|
+
}
|
|
11
|
+
export interface NoRestrictedGlobalsOptions {
|
|
12
|
+
/**
|
|
13
|
+
* A list of names that should trigger the rule
|
|
14
|
+
*/
|
|
15
|
+
deniedGlobals?: {
|
|
16
|
+
[k: string]: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface PathOptions {
|
|
20
|
+
/**
|
|
21
|
+
* Names of the exported members that allowed to be not be used.
|
|
22
|
+
*/
|
|
23
|
+
allowImportNames?: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Names of the exported members that should not be used.
|
|
26
|
+
*/
|
|
27
|
+
importNames?: string[];
|
|
28
|
+
/**
|
|
29
|
+
* The message to display when this module is imported.
|
|
30
|
+
*/
|
|
31
|
+
message?: string;
|
|
32
|
+
}
|
|
33
|
+
export type Regex = string;
|
|
34
|
+
export interface CustomRestrictedTypeOptions {
|
|
35
|
+
message?: string;
|
|
36
|
+
use?: string | null;
|
|
37
|
+
}
|
|
38
|
+
export interface NoShoutyConstantsOptions {
|
|
39
|
+
}
|
|
40
|
+
export interface NoSubstrOptions {
|
|
41
|
+
}
|
|
42
|
+
export interface NoUnusedTemplateLiteralOptions {
|
|
43
|
+
}
|
|
44
|
+
export interface NoUselessElseOptions {
|
|
45
|
+
}
|
|
46
|
+
export interface NoValueAtRuleOptions {
|
|
47
|
+
}
|
|
48
|
+
export interface NoYodaExpressionOptions {
|
|
49
|
+
}
|
|
50
|
+
export interface UseArrayLiteralsOptions {
|
|
51
|
+
}
|
|
52
|
+
export interface UseAsConstAssertionOptions {
|
|
53
|
+
}
|
|
54
|
+
export interface UseAtIndexOptions {
|
|
55
|
+
}
|
|
56
|
+
export interface UseBlockStatementsOptions {
|
|
57
|
+
}
|
|
58
|
+
export interface UseCollapsedElseIfOptions {
|
|
59
|
+
}
|
|
60
|
+
export interface UseCollapsedIfOptions {
|
|
61
|
+
}
|
|
62
|
+
export interface UseComponentExportOnlyModulesOptions {
|
|
63
|
+
/**
|
|
64
|
+
* Allows the export of constants. This option is for environments that support it, such as [Vite](https://vitejs.dev/)
|
|
65
|
+
*/
|
|
66
|
+
allowConstantExport?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
|
|
69
|
+
*/
|
|
70
|
+
allowExportNames?: string[];
|
|
71
|
+
}
|
|
72
|
+
export type ConsistentArrayType = 'shorthand' | 'generic';
|
|
73
|
+
export interface UseConsistentBuiltinInstantiationOptions {
|
|
74
|
+
}
|
|
75
|
+
export interface UseConsistentCurlyBracesOptions {
|
|
76
|
+
}
|
|
77
|
+
export type Accessibility = 'noPublic' | 'explicit' | 'none';
|
|
78
|
+
export type ObjectPropertySyntax = 'explicit' | 'shorthand';
|
|
79
|
+
export type ConsistentTypeDefinition = 'interface' | 'type';
|
|
80
|
+
export interface UseConstOptions {
|
|
81
|
+
}
|
|
82
|
+
export interface UseDefaultParameterLastOptions {
|
|
83
|
+
}
|
|
84
|
+
export interface UseDefaultSwitchClauseOptions {
|
|
85
|
+
}
|
|
86
|
+
export interface UseDeprecatedReasonOptions {
|
|
87
|
+
}
|
|
88
|
+
export interface UseEnumInitializersOptions {
|
|
89
|
+
}
|
|
90
|
+
export interface UseExplicitLengthCheckOptions {
|
|
91
|
+
}
|
|
92
|
+
export interface UseExponentiationOperatorOptions {
|
|
93
|
+
}
|
|
94
|
+
export interface UseExportTypeOptions {
|
|
95
|
+
}
|
|
96
|
+
export interface UseExportsLastOptions {
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Supported cases for file names.
|
|
100
|
+
*/
|
|
101
|
+
export type FilenameCase = 'camelCase' | 'export' | 'kebab-case' | 'PascalCase' | 'snake_case';
|
|
102
|
+
export interface UseForOfOptions {
|
|
103
|
+
}
|
|
104
|
+
export interface UseFragmentSyntaxOptions {
|
|
105
|
+
}
|
|
106
|
+
export interface UseGraphqlNamingConventionOptions {
|
|
107
|
+
}
|
|
108
|
+
export interface UseGroupedAccessorPairsOptions {
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Rule's options.
|
|
112
|
+
*/
|
|
113
|
+
export type Style2 = 'auto' | 'inlineType' | 'separatedType';
|
|
114
|
+
export interface UseLiteralEnumMembersOptions {
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Supported cases.
|
|
118
|
+
*/
|
|
119
|
+
export type Format = 'camelCase' | 'CONSTANT_CASE' | 'PascalCase' | 'snake_case';
|
|
120
|
+
export type Kind = ('class' | 'enum' | 'interface' | 'enumMember' | 'importNamespace' | 'exportNamespace' | 'variable' | 'const' | 'let' | 'using' | 'var' | 'catchParameter' | 'indexParameter' | 'exportAlias' | 'importAlias' | 'classGetter' | 'classSetter' | 'classMethod' | 'objectLiteralProperty' | 'objectLiteralGetter' | 'objectLiteralSetter' | 'objectLiteralMethod' | 'typeAlias') | 'any' | 'typeLike' | 'function' | 'namespaceLike' | 'namespace' | 'functionParameter' | 'typeParameter' | 'classMember' | 'classProperty' | 'objectLiteralMember' | 'typeMember' | 'typeGetter' | 'typeProperty' | 'typeSetter' | 'typeMethod';
|
|
121
|
+
export type RestrictedModifier = 'abstract' | 'private' | 'protected' | 'readonly' | 'static';
|
|
122
|
+
export type Scope = 'any' | 'global';
|
|
123
|
+
export interface UseNodeAssertStrictOptions {
|
|
124
|
+
}
|
|
125
|
+
export interface UseNodejsImportProtocolOptions {
|
|
126
|
+
}
|
|
127
|
+
export interface UseNumberNamespaceOptions {
|
|
128
|
+
}
|
|
129
|
+
export interface UseNumericSeparatorsOptions {
|
|
130
|
+
}
|
|
131
|
+
export interface UseObjectSpreadOptions {
|
|
132
|
+
}
|
|
133
|
+
export interface UseReactFunctionComponentsOptions {
|
|
134
|
+
}
|
|
135
|
+
export interface UseReadonlyClassPropertiesOptions {
|
|
136
|
+
/**
|
|
137
|
+
* When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
|
|
138
|
+
*/
|
|
139
|
+
checkAllProperties?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export interface UseSelfClosingElementsOptions {
|
|
142
|
+
ignoreHtmlElements?: boolean;
|
|
143
|
+
}
|
|
144
|
+
export interface UseShorthandAssignOptions {
|
|
145
|
+
}
|
|
146
|
+
export interface UseShorthandFunctionTypeOptions {
|
|
147
|
+
}
|
|
148
|
+
export interface UseSingleVarDeclaratorOptions {
|
|
149
|
+
}
|
|
150
|
+
export interface UseSymbolDescriptionOptions {
|
|
151
|
+
}
|
|
152
|
+
export interface UseTemplateOptions {
|
|
153
|
+
}
|
|
154
|
+
export interface UseThrowNewErrorOptions {
|
|
155
|
+
}
|
|
156
|
+
export interface UseThrowOnlyErrorOptions {
|
|
157
|
+
}
|
|
158
|
+
export interface UseTrimStartEndOptions {
|
|
159
|
+
}
|
|
160
|
+
export interface UseUnifiedTypeSignaturesOptions {
|
|
161
|
+
}
|
|
162
|
+
export interface NoAlertOptions {
|
|
163
|
+
}
|
|
164
|
+
export interface NoApproximativeNumericConstantOptions {
|
|
165
|
+
}
|
|
166
|
+
export interface NoArrayIndexKeyOptions {
|
|
167
|
+
}
|
|
168
|
+
export interface NoAssignInExpressionsOptions {
|
|
169
|
+
}
|
|
170
|
+
export interface NoAsyncPromiseExecutorOptions {
|
|
171
|
+
}
|
|
172
|
+
export interface NoBiomeFirstExceptionOptions {
|
|
173
|
+
}
|
|
174
|
+
export interface NoBitwiseOperatorsOptions {
|
|
175
|
+
/**
|
|
176
|
+
* Allows a list of bitwise operators to be used as exceptions.
|
|
177
|
+
*/
|
|
178
|
+
allow?: string[];
|
|
179
|
+
}
|
|
180
|
+
export interface NoCatchAssignOptions {
|
|
181
|
+
}
|
|
182
|
+
export interface NoClassAssignOptions {
|
|
183
|
+
}
|
|
184
|
+
export interface NoCommentTextOptions {
|
|
185
|
+
}
|
|
186
|
+
export interface NoCompareNegZeroOptions {
|
|
187
|
+
}
|
|
188
|
+
export interface NoConfusingLabelsOptions {
|
|
189
|
+
/**
|
|
190
|
+
* A list of (non-confusing) labels that should be allowed
|
|
191
|
+
*/
|
|
192
|
+
allowedLabels?: string[];
|
|
193
|
+
}
|
|
194
|
+
export interface NoConfusingVoidTypeOptions {
|
|
195
|
+
}
|
|
196
|
+
export interface NoConsoleOptions {
|
|
197
|
+
/**
|
|
198
|
+
* Allowed calls on the console object.
|
|
199
|
+
*/
|
|
200
|
+
allow?: string[];
|
|
201
|
+
}
|
|
202
|
+
export interface NoConstEnumOptions {
|
|
203
|
+
}
|
|
204
|
+
export interface NoConstantBinaryExpressionsOptions {
|
|
205
|
+
}
|
|
206
|
+
export interface NoControlCharactersInRegexOptions {
|
|
207
|
+
}
|
|
208
|
+
export interface NoDebuggerOptions {
|
|
209
|
+
}
|
|
210
|
+
export interface NoDocumentCookieOptions {
|
|
211
|
+
}
|
|
212
|
+
export interface NoDocumentImportInPageOptions {
|
|
213
|
+
}
|
|
214
|
+
export interface NoDoubleEqualsOptions {
|
|
215
|
+
/**
|
|
216
|
+
* If `true`, an exception is made when comparing with `null`, as it's often relied on to check both for `null` or `undefined`.
|
|
217
|
+
*
|
|
218
|
+
* If `false`, no such exception will be made.
|
|
219
|
+
*/
|
|
220
|
+
ignoreNull?: boolean;
|
|
221
|
+
}
|
|
222
|
+
export interface NoDuplicateAtImportRulesOptions {
|
|
223
|
+
}
|
|
224
|
+
export interface NoDuplicateCaseOptions {
|
|
225
|
+
}
|
|
226
|
+
export interface NoDuplicateClassMembersOptions {
|
|
227
|
+
}
|
|
228
|
+
export interface NoDuplicateCustomPropertiesOptions {
|
|
229
|
+
}
|
|
230
|
+
export interface NoDuplicateElseIfOptions {
|
|
231
|
+
}
|
|
232
|
+
export interface NoDuplicateFieldsOptions {
|
|
233
|
+
}
|
|
234
|
+
export interface NoDuplicateFontNamesOptions {
|
|
235
|
+
}
|
|
236
|
+
export interface NoDuplicateJsxPropsOptions {
|
|
237
|
+
}
|
|
238
|
+
export interface NoDuplicateObjectKeysOptions {
|
|
239
|
+
}
|
|
240
|
+
export interface NoDuplicateParametersOptions {
|
|
241
|
+
}
|
|
242
|
+
export interface NoDuplicatePropertiesOptions {
|
|
243
|
+
}
|
|
244
|
+
export interface NoDuplicateSelectorsKeyframeBlockOptions {
|
|
245
|
+
}
|
|
246
|
+
export interface NoDuplicateTestHooksOptions {
|
|
247
|
+
}
|
|
248
|
+
export interface NoEmptyBlockOptions {
|
|
249
|
+
}
|
|
250
|
+
export interface NoEmptyBlockStatementsOptions {
|
|
251
|
+
}
|
|
252
|
+
export interface NoEmptyInterfaceOptions {
|
|
253
|
+
}
|
|
254
|
+
export interface NoEvolvingTypesOptions {
|
|
255
|
+
}
|
|
256
|
+
export interface NoExplicitAnyOptions {
|
|
257
|
+
}
|
|
258
|
+
export interface NoExportsInTestOptions {
|
|
259
|
+
}
|
|
260
|
+
export interface NoExtraNonNullAssertionOptions {
|
|
261
|
+
}
|
|
262
|
+
export interface NoFallthroughSwitchClauseOptions {
|
|
263
|
+
}
|
|
264
|
+
export interface NoFocusedTestsOptions {
|
|
265
|
+
}
|
|
266
|
+
export interface NoFunctionAssignOptions {
|
|
267
|
+
}
|
|
268
|
+
export interface NoGlobalAssignOptions {
|
|
269
|
+
}
|
|
270
|
+
export interface NoGlobalIsFiniteOptions {
|
|
271
|
+
}
|
|
272
|
+
export interface NoGlobalIsNanOptions {
|
|
273
|
+
}
|
|
274
|
+
export interface NoHeadImportInDocumentOptions {
|
|
275
|
+
}
|
|
276
|
+
export interface NoImplicitAnyLetOptions {
|
|
277
|
+
}
|
|
278
|
+
export interface NoImportAssignOptions {
|
|
279
|
+
}
|
|
280
|
+
export interface NoImportantInKeyframeOptions {
|
|
281
|
+
}
|
|
282
|
+
export interface NoIrregularWhitespaceOptions {
|
|
283
|
+
}
|
|
284
|
+
export interface NoLabelVarOptions {
|
|
285
|
+
}
|
|
286
|
+
export interface NoMisleadingCharacterClassOptions {
|
|
287
|
+
}
|
|
288
|
+
export interface NoMisleadingInstantiatorOptions {
|
|
289
|
+
}
|
|
290
|
+
export interface NoMisplacedAssertionOptions {
|
|
291
|
+
}
|