@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
package/dist/nuxt.jsonc
ADDED
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.2/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
|
+
"!**/.nuxt",
|
|
20
|
+
"!**/.nitro"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"formatter": {
|
|
24
|
+
"enabled": true,
|
|
25
|
+
"indentStyle": "space",
|
|
26
|
+
"lineWidth": 140,
|
|
27
|
+
"formatWithErrors": true
|
|
28
|
+
},
|
|
29
|
+
"assist": {
|
|
30
|
+
"actions": {
|
|
31
|
+
"source": {
|
|
32
|
+
"organizeImports": {
|
|
33
|
+
"level": "on",
|
|
34
|
+
"options": {
|
|
35
|
+
"groups": [
|
|
36
|
+
[
|
|
37
|
+
":NODE:",
|
|
38
|
+
":BUN:",
|
|
39
|
+
":PACKAGE_WITH_PROTOCOL:",
|
|
40
|
+
":PACKAGE:"
|
|
41
|
+
],
|
|
42
|
+
":BLANK_LINE:",
|
|
43
|
+
":ALIAS:",
|
|
44
|
+
":BLANK_LINE:",
|
|
45
|
+
":PATH:"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"useSortedKeys": "on",
|
|
50
|
+
"useSortedAttributes": {
|
|
51
|
+
"level": "on",
|
|
52
|
+
"options": {
|
|
53
|
+
"sortOrder": "natural"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"linter": {
|
|
60
|
+
"enabled": true,
|
|
61
|
+
"rules": {
|
|
62
|
+
"recommended": true,
|
|
63
|
+
"complexity": {
|
|
64
|
+
"noUselessStringConcat": "error",
|
|
65
|
+
"noUselessUndefinedInitialization": "error",
|
|
66
|
+
"noVoid": "error",
|
|
67
|
+
"useDateNow": "error"
|
|
68
|
+
},
|
|
69
|
+
"correctness": {
|
|
70
|
+
"noConstantMathMinMaxClamp": "error",
|
|
71
|
+
"noUndeclaredVariables": "error",
|
|
72
|
+
"noUnusedImports": "error",
|
|
73
|
+
"noUnusedFunctionParameters": "error",
|
|
74
|
+
"noUnusedPrivateClassMembers": "error",
|
|
75
|
+
"useExhaustiveDependencies": {
|
|
76
|
+
"level": "error",
|
|
77
|
+
"options": {
|
|
78
|
+
"reportUnnecessaryDependencies": false
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"noUnusedVariables": "error"
|
|
82
|
+
},
|
|
83
|
+
"style": {
|
|
84
|
+
"noParameterProperties": "error",
|
|
85
|
+
"noYodaExpression": "error",
|
|
86
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
87
|
+
"useFragmentSyntax": "error",
|
|
88
|
+
"useImportType": {
|
|
89
|
+
"level": "error",
|
|
90
|
+
"fix": "safe",
|
|
91
|
+
"options": {
|
|
92
|
+
"style": "separatedType"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"useSelfClosingElements": {
|
|
96
|
+
"level": "error",
|
|
97
|
+
"fix": "safe",
|
|
98
|
+
"options": {}
|
|
99
|
+
},
|
|
100
|
+
"useShorthandAssign": "error",
|
|
101
|
+
"useArrayLiterals": "error"
|
|
102
|
+
},
|
|
103
|
+
"nursery": {
|
|
104
|
+
"useSortedClasses": {
|
|
105
|
+
"level": "error",
|
|
106
|
+
"fix": "safe",
|
|
107
|
+
"options": {
|
|
108
|
+
"functions": [
|
|
109
|
+
"clsx",
|
|
110
|
+
"cn"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"suspicious": {
|
|
116
|
+
"useAwait": "error",
|
|
117
|
+
"noEvolvingTypes": "error"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"javascript": {
|
|
122
|
+
"formatter": {
|
|
123
|
+
"quoteStyle": "single",
|
|
124
|
+
"jsxQuoteStyle": "single",
|
|
125
|
+
"arrowParentheses": "asNeeded",
|
|
126
|
+
"trailingCommas": "all"
|
|
127
|
+
},
|
|
128
|
+
"parser": {
|
|
129
|
+
"jsxEverywhere": false
|
|
130
|
+
},
|
|
131
|
+
"globals": [
|
|
132
|
+
"defineNuxtConfig",
|
|
133
|
+
"defineAppConfig",
|
|
134
|
+
"defineNuxtPlugin",
|
|
135
|
+
"defineNuxtRouteMiddleware",
|
|
136
|
+
"defineNuxtServerPlugin",
|
|
137
|
+
"defineNitroPlugin",
|
|
138
|
+
"defineEventHandler",
|
|
139
|
+
"defineLazyEventHandler",
|
|
140
|
+
"definePayloadPlugin",
|
|
141
|
+
"defineRouteRules",
|
|
142
|
+
"definePageMeta",
|
|
143
|
+
"useRuntimeConfig",
|
|
144
|
+
"useNuxtApp",
|
|
145
|
+
"useAsyncData",
|
|
146
|
+
"useLazyAsyncData",
|
|
147
|
+
"useFetch",
|
|
148
|
+
"useLazyFetch",
|
|
149
|
+
"useState",
|
|
150
|
+
"useCookie",
|
|
151
|
+
"useHead",
|
|
152
|
+
"useSeoMeta",
|
|
153
|
+
"useError",
|
|
154
|
+
"clearError",
|
|
155
|
+
"showError",
|
|
156
|
+
"navigateTo",
|
|
157
|
+
"abortNavigation",
|
|
158
|
+
"refreshNuxtData",
|
|
159
|
+
"onNuxtReady",
|
|
160
|
+
"useRouter",
|
|
161
|
+
"useRoute",
|
|
162
|
+
"useRequestEvent",
|
|
163
|
+
"useRequestHeaders"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"overrides": [
|
|
167
|
+
{
|
|
168
|
+
"includes": [
|
|
169
|
+
"**/*.jsx",
|
|
170
|
+
"**/*.tsx"
|
|
171
|
+
],
|
|
172
|
+
"linter": {
|
|
173
|
+
"rules": {
|
|
174
|
+
"style": {
|
|
175
|
+
"noParameterAssign": "error"
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"includes": [
|
|
182
|
+
"**/*.ts",
|
|
183
|
+
"**/*.tsx"
|
|
184
|
+
],
|
|
185
|
+
"linter": {
|
|
186
|
+
"rules": {
|
|
187
|
+
"correctness": {
|
|
188
|
+
"noUnusedVariables": "off"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"includes": [
|
|
195
|
+
"**/*.vue"
|
|
196
|
+
],
|
|
197
|
+
"formatter": {
|
|
198
|
+
"lineWidth": 120
|
|
199
|
+
},
|
|
200
|
+
"javascript": {
|
|
201
|
+
"formatter": {
|
|
202
|
+
"quoteStyle": "single"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"includes": [
|
|
208
|
+
"**/*.ts"
|
|
209
|
+
],
|
|
210
|
+
"linter": {
|
|
211
|
+
"rules": {
|
|
212
|
+
"correctness": {
|
|
213
|
+
"noUndeclaredVariables": "error"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"html": {
|
|
220
|
+
"formatter": {
|
|
221
|
+
"indentScriptAndStyle": true,
|
|
222
|
+
"selfCloseVoidElements": "always"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
package/dist/react.jsonc
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.2/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
|
+
"!**/.storybook"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"formatter": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"indentStyle": "space",
|
|
23
|
+
"lineWidth": 140,
|
|
24
|
+
"formatWithErrors": true
|
|
25
|
+
},
|
|
26
|
+
"assist": {
|
|
27
|
+
"actions": {
|
|
28
|
+
"source": {
|
|
29
|
+
"organizeImports": {
|
|
30
|
+
"level": "on",
|
|
31
|
+
"options": {
|
|
32
|
+
"groups": [
|
|
33
|
+
[
|
|
34
|
+
":NODE:",
|
|
35
|
+
":BUN:",
|
|
36
|
+
":PACKAGE_WITH_PROTOCOL:",
|
|
37
|
+
":PACKAGE:"
|
|
38
|
+
],
|
|
39
|
+
":BLANK_LINE:",
|
|
40
|
+
":ALIAS:",
|
|
41
|
+
":BLANK_LINE:",
|
|
42
|
+
":PATH:"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"useSortedKeys": "on",
|
|
47
|
+
"useSortedAttributes": {
|
|
48
|
+
"level": "on",
|
|
49
|
+
"options": {
|
|
50
|
+
"sortOrder": "natural"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"linter": {
|
|
57
|
+
"enabled": true,
|
|
58
|
+
"rules": {
|
|
59
|
+
"recommended": true,
|
|
60
|
+
"complexity": {
|
|
61
|
+
"noUselessStringConcat": "error",
|
|
62
|
+
"noUselessUndefinedInitialization": "error",
|
|
63
|
+
"noVoid": "error",
|
|
64
|
+
"useDateNow": "error"
|
|
65
|
+
},
|
|
66
|
+
"correctness": {
|
|
67
|
+
"noConstantMathMinMaxClamp": "error",
|
|
68
|
+
"noUndeclaredVariables": "error",
|
|
69
|
+
"noUnusedImports": "error",
|
|
70
|
+
"noUnusedFunctionParameters": "error",
|
|
71
|
+
"noUnusedPrivateClassMembers": "error",
|
|
72
|
+
"useExhaustiveDependencies": {
|
|
73
|
+
"level": "error",
|
|
74
|
+
"options": {
|
|
75
|
+
"reportUnnecessaryDependencies": false
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"noUnusedVariables": "error"
|
|
79
|
+
},
|
|
80
|
+
"style": {
|
|
81
|
+
"noParameterProperties": "error",
|
|
82
|
+
"noYodaExpression": "error",
|
|
83
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
84
|
+
"useFragmentSyntax": "error",
|
|
85
|
+
"useImportType": {
|
|
86
|
+
"level": "error",
|
|
87
|
+
"fix": "safe",
|
|
88
|
+
"options": {
|
|
89
|
+
"style": "separatedType"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"useSelfClosingElements": {
|
|
93
|
+
"level": "error",
|
|
94
|
+
"fix": "safe",
|
|
95
|
+
"options": {}
|
|
96
|
+
},
|
|
97
|
+
"useShorthandAssign": "error",
|
|
98
|
+
"useArrayLiterals": "error"
|
|
99
|
+
},
|
|
100
|
+
"nursery": {
|
|
101
|
+
"useSortedClasses": {
|
|
102
|
+
"level": "error",
|
|
103
|
+
"fix": "safe",
|
|
104
|
+
"options": {
|
|
105
|
+
"functions": [
|
|
106
|
+
"clsx",
|
|
107
|
+
"cn"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"suspicious": {
|
|
113
|
+
"useAwait": "error",
|
|
114
|
+
"noEvolvingTypes": "error"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"javascript": {
|
|
119
|
+
"formatter": {
|
|
120
|
+
"quoteStyle": "single",
|
|
121
|
+
"jsxQuoteStyle": "single",
|
|
122
|
+
"arrowParentheses": "asNeeded",
|
|
123
|
+
"trailingCommas": "all"
|
|
124
|
+
},
|
|
125
|
+
"jsxRuntime": "reactClassic"
|
|
126
|
+
},
|
|
127
|
+
"overrides": [
|
|
128
|
+
{
|
|
129
|
+
"includes": [
|
|
130
|
+
"**/*.jsx",
|
|
131
|
+
"**/*.tsx"
|
|
132
|
+
],
|
|
133
|
+
"linter": {
|
|
134
|
+
"rules": {
|
|
135
|
+
"style": {
|
|
136
|
+
"noParameterAssign": "error"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"includes": [
|
|
143
|
+
"**/*.ts",
|
|
144
|
+
"**/*.tsx"
|
|
145
|
+
],
|
|
146
|
+
"linter": {
|
|
147
|
+
"rules": {
|
|
148
|
+
"correctness": {
|
|
149
|
+
"noUnusedVariables": "off"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"includes": [
|
|
156
|
+
"**/__tests__/**",
|
|
157
|
+
"**/*.{test,spec}.{ts,tsx,js,jsx}"
|
|
158
|
+
],
|
|
159
|
+
"linter": {
|
|
160
|
+
"rules": {
|
|
161
|
+
"correctness": {
|
|
162
|
+
"noUnusedVariables": "off"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the @biomejs/biome version from package.json
|
|
3
|
+
*/
|
|
4
|
+
export declare function getBiomejsVersion(): Promise<string>;
|
|
5
|
+
/**
|
|
6
|
+
* Update the biome.ts constants file with the current version
|
|
7
|
+
* @returns An object containing the version and schema URL
|
|
8
|
+
*/
|
|
9
|
+
export declare function updateBiomeConstantsFile(): Promise<{
|
|
10
|
+
version: string;
|
|
11
|
+
schemaUrl: string;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const BIOME_SCHEMA_URL: "https://biomejs.dev/schemas/2.3.2/schema.json";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './schema.ts';
|
|
2
|
+
export * from './no-global-object-calls-options.ts';
|
|
3
|
+
export * from './no-non-null-assertion-options.ts';
|
|
4
|
+
export * from './no-misrefactored-shorthand-assign-options.ts';
|
|
5
|
+
export * from './rule-with-no-implicit-coercions-options.ts';
|
|
6
|
+
export * from './use-consistent-arrow-return-options.ts';
|
|
7
|
+
export * from './rule-with-no-document-import-in-page-options.ts';
|
|
8
|
+
export * from './use-semantic-elements-configuration.ts';
|
|
9
|
+
export * from './no-empty-source-configuration.ts';
|
|
10
|
+
export * from './no-assign-in-expressions-configuration.ts';
|
|
11
|
+
export * from './nursery.ts';
|