@aprx/biome-config 0.1.0 → 0.2.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/package.json +9 -12
- package/src/base.jsonc +110 -117
- package/src/dom.jsonc +44 -44
- package/src/lib.jsonc +16 -16
package/package.json
CHANGED
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aprx/biome-config",
|
|
3
|
+
"version": "0.2.0",
|
|
3
4
|
"description": "An opinionated Biome configuration",
|
|
4
|
-
"version": "0.1.0",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"author": "Aperrix",
|
|
7
5
|
"homepage": "https://github.com/aperrix/code-quality-tools/tree/main/packages/biome#readme",
|
|
8
6
|
"repository": {
|
|
9
7
|
"type": "git",
|
|
10
8
|
"url": "git+https://github.com/aperrix/code-quality-tools.git",
|
|
11
9
|
"directory": "packages/biome"
|
|
12
10
|
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Aperrix",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": "./src/base.jsonc",
|
|
16
16
|
"./dom": "./src/dom.jsonc",
|
|
17
17
|
"./lib": "./src/lib.jsonc",
|
|
18
|
-
"./react": "./src/react.jsonc",
|
|
19
18
|
"./nextjs": "./src/nextjs.jsonc",
|
|
20
|
-
"./
|
|
21
|
-
"./testing": "./src/testing.jsonc"
|
|
22
|
-
|
|
23
|
-
"files": [
|
|
24
|
-
"src"
|
|
25
|
-
],
|
|
26
|
-
"publishConfig": {
|
|
27
|
-
"access": "public"
|
|
19
|
+
"./react": "./src/react.jsonc",
|
|
20
|
+
"./testing": "./src/testing.jsonc",
|
|
21
|
+
"./vue": "./src/vue.jsonc"
|
|
28
22
|
},
|
|
29
23
|
"peerDependencies": {
|
|
30
24
|
"@biomejs/biome": "^2.3.9"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
31
28
|
}
|
|
32
29
|
}
|
package/src/base.jsonc
CHANGED
|
@@ -1,26 +1,112 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
-
"
|
|
3
|
+
"assist": {
|
|
4
|
+
// "includes": [],
|
|
5
|
+
"actions": {
|
|
6
|
+
"source": {
|
|
7
|
+
// "recommended": true,
|
|
8
|
+
"organizeImports": "on",
|
|
9
|
+
"useSortedAttributes": "on",
|
|
10
|
+
"useSortedKeys": "on",
|
|
11
|
+
"useSortedProperties": "on"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"enabled": true
|
|
15
|
+
},
|
|
4
16
|
// "extends": [],
|
|
5
17
|
"files": {
|
|
6
18
|
// "includes": [],
|
|
7
19
|
"ignoreUnknown": true
|
|
8
20
|
// "maxSize": 1048576
|
|
9
21
|
},
|
|
10
|
-
"
|
|
22
|
+
"formatter": {
|
|
23
|
+
"attributePosition": "auto",
|
|
24
|
+
"bracketSpacing": true,
|
|
11
25
|
"enabled": true,
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
"
|
|
26
|
+
"expand": "auto",
|
|
27
|
+
// "includes": [],
|
|
28
|
+
"formatWithErrors": false,
|
|
29
|
+
"indentStyle": "space",
|
|
30
|
+
"indentWidth": 4,
|
|
31
|
+
"lineEnding": "lf",
|
|
32
|
+
"lineWidth": 80,
|
|
33
|
+
"useEditorconfig": false
|
|
34
|
+
},
|
|
35
|
+
"grit": {
|
|
36
|
+
"assist": {
|
|
37
|
+
"enabled": true
|
|
38
|
+
},
|
|
39
|
+
"formatter": {
|
|
40
|
+
"enabled": true
|
|
41
|
+
// "indentStyle": "space",
|
|
42
|
+
// "indentWidth": 4,
|
|
43
|
+
// "lineEnding": "lf",
|
|
44
|
+
// "lineWidth": 120,
|
|
45
|
+
// "quoteStyle": "double"
|
|
46
|
+
},
|
|
47
|
+
"linter": {
|
|
48
|
+
"enabled": true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"javascript": {
|
|
52
|
+
"assist": {
|
|
53
|
+
"enabled": true
|
|
54
|
+
},
|
|
55
|
+
"formatter": {
|
|
56
|
+
"arrowParentheses": "always",
|
|
57
|
+
"bracketSameLine": true,
|
|
58
|
+
"enabled": true,
|
|
59
|
+
"jsxQuoteStyle": "double",
|
|
60
|
+
// "bracketSpacing": true,
|
|
61
|
+
// "attributePosition": "auto",
|
|
62
|
+
// "expand": "auto",
|
|
63
|
+
"operatorLinebreak": "before",
|
|
64
|
+
"quoteProperties": "asNeeded",
|
|
65
|
+
// "indentStyle": "space",
|
|
66
|
+
// "indentWidth": 4,
|
|
67
|
+
// "lineEnding": "lf",
|
|
68
|
+
// "lineWidth": 120,
|
|
69
|
+
"quoteStyle": "double",
|
|
70
|
+
"semicolons": "asNeeded",
|
|
71
|
+
"trailingCommas": "none"
|
|
72
|
+
},
|
|
73
|
+
// "globals": [],
|
|
74
|
+
"jsxRuntime": "transparent",
|
|
75
|
+
"linter": {
|
|
76
|
+
"enabled": true
|
|
77
|
+
},
|
|
78
|
+
"parser": {
|
|
79
|
+
"jsxEverywhere": true,
|
|
80
|
+
"unsafeParameterDecoratorsEnabled": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"json": {
|
|
84
|
+
"assist": {
|
|
85
|
+
"enabled": true
|
|
86
|
+
},
|
|
87
|
+
"formatter": {
|
|
88
|
+
// "expand": "auto",
|
|
89
|
+
"bracketSpacing": true,
|
|
90
|
+
"enabled": true,
|
|
91
|
+
// "indentStyle": "space",
|
|
92
|
+
// "indentWidth": 4,
|
|
93
|
+
// "lineEnding": "lf",
|
|
94
|
+
// "lineWidth": 120,
|
|
95
|
+
"trailingCommas": "none"
|
|
96
|
+
},
|
|
97
|
+
"linter": {
|
|
98
|
+
"enabled": true
|
|
99
|
+
},
|
|
100
|
+
"parser": {
|
|
101
|
+
"allowComments": true,
|
|
102
|
+
"allowTrailingCommas": true
|
|
103
|
+
}
|
|
16
104
|
},
|
|
17
105
|
"linter": {
|
|
18
106
|
"enabled": true,
|
|
19
107
|
// "includes": [],
|
|
20
108
|
"rules": {
|
|
21
109
|
"complexity": {
|
|
22
|
-
"recommended": true,
|
|
23
|
-
|
|
24
110
|
// JS/TS
|
|
25
111
|
// "noAdjacentSpacesInRegex": "error",
|
|
26
112
|
// "noArguments": "error",
|
|
@@ -47,6 +133,7 @@
|
|
|
47
133
|
// "noUselessStringRaw": "error",
|
|
48
134
|
// "noUselessSwitchCase": "error",
|
|
49
135
|
"noUselessTernary": "error",
|
|
136
|
+
"recommended": true,
|
|
50
137
|
// "noUselessThisAlias": "error",
|
|
51
138
|
// "noUselessTypeConstraint": "error",
|
|
52
139
|
// "noUselessUndefinedInitialization": "error",
|
|
@@ -64,8 +151,6 @@
|
|
|
64
151
|
// "useWhile": "error"
|
|
65
152
|
},
|
|
66
153
|
"correctness": {
|
|
67
|
-
"recommended": true,
|
|
68
|
-
|
|
69
154
|
// JS/TS
|
|
70
155
|
// "noConstAssign": "error",
|
|
71
156
|
// "noConstantCondition": "error",
|
|
@@ -88,7 +173,8 @@
|
|
|
88
173
|
// "noSolidDestructuredProps": "error",
|
|
89
174
|
// "noStringCaseMismatch": "error",
|
|
90
175
|
// "noSwitchDeclarations": "error",
|
|
91
|
-
"noUndeclaredDependencies": "error"
|
|
176
|
+
"noUndeclaredDependencies": "error",
|
|
177
|
+
"recommended": true
|
|
92
178
|
// "noUndeclaredVariables": "error",
|
|
93
179
|
// "noUnreachable": "error",
|
|
94
180
|
// "noUnreachableSuper": "error",
|
|
@@ -111,8 +197,6 @@
|
|
|
111
197
|
// "useYield": "error"
|
|
112
198
|
},
|
|
113
199
|
"nursery": {
|
|
114
|
-
"recommended": true,
|
|
115
|
-
|
|
116
200
|
// JS/TS
|
|
117
201
|
// "noContinue": "error",
|
|
118
202
|
// "noDeprecatedImports": "error",
|
|
@@ -140,7 +224,8 @@
|
|
|
140
224
|
// "noUndeclaredEnvVars": "error",
|
|
141
225
|
// "noUnknownAttribute": "error",
|
|
142
226
|
// "noUnnecessaryConditions": "error",
|
|
143
|
-
"noUnresolvedImports": "error"
|
|
227
|
+
"noUnresolvedImports": "error",
|
|
228
|
+
"recommended": true
|
|
144
229
|
// "noUnusedExpressions": "error",
|
|
145
230
|
// "noUselessCatchBinding": "error",
|
|
146
231
|
// "noUselessUndefined": "error",
|
|
@@ -163,8 +248,6 @@
|
|
|
163
248
|
// "useRequiredScripts": "error"
|
|
164
249
|
},
|
|
165
250
|
"performance": {
|
|
166
|
-
"recommended": true,
|
|
167
|
-
|
|
168
251
|
// JS/TS
|
|
169
252
|
"noAccumulatingSpread": "error",
|
|
170
253
|
"noAwaitInLoops": "error",
|
|
@@ -173,19 +256,17 @@
|
|
|
173
256
|
"noDynamicNamespaceImportAccess": "error",
|
|
174
257
|
"noNamespaceImport": "error",
|
|
175
258
|
"noReExportAll": "error",
|
|
259
|
+
"recommended": true,
|
|
176
260
|
// "useSolidForComponent": "error",
|
|
177
261
|
"useTopLevelRegex": "error"
|
|
178
262
|
},
|
|
179
263
|
"security": {
|
|
180
|
-
"recommended": true,
|
|
181
|
-
|
|
182
264
|
// JS/TS
|
|
183
265
|
"noGlobalEval": "error",
|
|
184
|
-
"noSecrets": "error"
|
|
266
|
+
"noSecrets": "error",
|
|
267
|
+
"recommended": true
|
|
185
268
|
},
|
|
186
269
|
"style": {
|
|
187
|
-
"recommended": true,
|
|
188
|
-
|
|
189
270
|
// JS/TS
|
|
190
271
|
"noCommonJs": "error",
|
|
191
272
|
// "noDefaultExport": "error",
|
|
@@ -209,6 +290,7 @@
|
|
|
209
290
|
"noUnusedTemplateLiteral": "error",
|
|
210
291
|
"noUselessElse": "error",
|
|
211
292
|
"noYodaExpression": "error",
|
|
293
|
+
"recommended": true,
|
|
212
294
|
// "useArrayLiterals": "error",
|
|
213
295
|
"useAsConstAssertion": "error",
|
|
214
296
|
"useAtIndex": "error",
|
|
@@ -251,8 +333,6 @@
|
|
|
251
333
|
// "useUnifiedTypeSignatures": "error"
|
|
252
334
|
},
|
|
253
335
|
"suspicious": {
|
|
254
|
-
"recommended": true,
|
|
255
|
-
|
|
256
336
|
// JS/TS
|
|
257
337
|
// "noApproximativeNumericConstant": "error",
|
|
258
338
|
// "noAssignInExpressions": "error",
|
|
@@ -308,6 +388,7 @@
|
|
|
308
388
|
// "noUselessEscapeInString": "error",
|
|
309
389
|
// "noUselessRegexBackrefs": "error",
|
|
310
390
|
"noVar": "error",
|
|
391
|
+
"recommended": true,
|
|
311
392
|
// "noWith": "error",
|
|
312
393
|
// "useAdjacentOverloadSignatures": "error",
|
|
313
394
|
// "useAwait": "error",
|
|
@@ -329,101 +410,13 @@
|
|
|
329
410
|
}
|
|
330
411
|
}
|
|
331
412
|
},
|
|
332
|
-
"
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
"
|
|
336
|
-
|
|
337
|
-
// "recommended": true,
|
|
338
|
-
"organizeImports": "on",
|
|
339
|
-
"useSortedAttributes": "on",
|
|
340
|
-
"useSortedProperties": "on",
|
|
341
|
-
"useSortedKeys": "on"
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
"formatter": {
|
|
413
|
+
"root": true,
|
|
414
|
+
"vcs": {
|
|
415
|
+
"clientKind": "git",
|
|
416
|
+
// "root": "",
|
|
417
|
+
"defaultBranch": "main",
|
|
346
418
|
"enabled": true,
|
|
347
|
-
|
|
348
|
-
"formatWithErrors": false,
|
|
349
|
-
"indentStyle": "space",
|
|
350
|
-
"indentWidth": 4,
|
|
351
|
-
"lineEnding": "lf",
|
|
352
|
-
"lineWidth": 120,
|
|
353
|
-
"attributePosition": "auto",
|
|
354
|
-
"bracketSpacing": true,
|
|
355
|
-
"expand": "auto",
|
|
356
|
-
"useEditorconfig": false
|
|
357
|
-
},
|
|
358
|
-
"javascript": {
|
|
359
|
-
"parser": {
|
|
360
|
-
"unsafeParameterDecoratorsEnabled": true,
|
|
361
|
-
"jsxEverywhere": true
|
|
362
|
-
},
|
|
363
|
-
"formatter": {
|
|
364
|
-
"enabled": true,
|
|
365
|
-
// "indentStyle": "space",
|
|
366
|
-
// "indentWidth": 4,
|
|
367
|
-
// "lineEnding": "lf",
|
|
368
|
-
// "lineWidth": 120,
|
|
369
|
-
"quoteStyle": "double",
|
|
370
|
-
"jsxQuoteStyle": "double",
|
|
371
|
-
"quoteProperties": "asNeeded",
|
|
372
|
-
"trailingCommas": "all",
|
|
373
|
-
"semicolons": "asNeeded",
|
|
374
|
-
"arrowParentheses": "always",
|
|
375
|
-
"bracketSameLine": true,
|
|
376
|
-
// "bracketSpacing": true,
|
|
377
|
-
// "attributePosition": "auto",
|
|
378
|
-
// "expand": "auto",
|
|
379
|
-
"operatorLinebreak": "before"
|
|
380
|
-
},
|
|
381
|
-
// "globals": [],
|
|
382
|
-
"jsxRuntime": "transparent",
|
|
383
|
-
"linter": {
|
|
384
|
-
"enabled": true
|
|
385
|
-
},
|
|
386
|
-
"assist": {
|
|
387
|
-
"enabled": true
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
"json": {
|
|
391
|
-
"parser": {
|
|
392
|
-
"allowComments": true,
|
|
393
|
-
"allowTrailingCommas": true
|
|
394
|
-
},
|
|
395
|
-
"formatter": {
|
|
396
|
-
"enabled": true,
|
|
397
|
-
// "indentStyle": "space",
|
|
398
|
-
// "indentWidth": 4,
|
|
399
|
-
// "lineEnding": "lf",
|
|
400
|
-
// "lineWidth": 120,
|
|
401
|
-
"trailingCommas": "all",
|
|
402
|
-
// "expand": "auto",
|
|
403
|
-
"bracketSpacing": true
|
|
404
|
-
},
|
|
405
|
-
"linter": {
|
|
406
|
-
"enabled": true
|
|
407
|
-
},
|
|
408
|
-
"assist": {
|
|
409
|
-
"enabled": true
|
|
410
|
-
}
|
|
411
|
-
},
|
|
412
|
-
"grit": {
|
|
413
|
-
"formatter": {
|
|
414
|
-
"enabled": true
|
|
415
|
-
// "indentStyle": "space",
|
|
416
|
-
// "indentWidth": 4,
|
|
417
|
-
// "lineEnding": "lf",
|
|
418
|
-
// "lineWidth": 120,
|
|
419
|
-
// "quoteStyle": "double"
|
|
420
|
-
},
|
|
421
|
-
"linter": {
|
|
422
|
-
"enabled": true
|
|
423
|
-
},
|
|
424
|
-
"assist": {
|
|
425
|
-
"enabled": true
|
|
426
|
-
}
|
|
419
|
+
"useIgnoreFile": true
|
|
427
420
|
}
|
|
428
421
|
// "overrides": []
|
|
429
422
|
}
|
package/src/dom.jsonc
CHANGED
|
@@ -1,6 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"css": {
|
|
4
|
+
"assist": {
|
|
5
|
+
"enabled": true
|
|
6
|
+
},
|
|
7
|
+
"formatter": {
|
|
8
|
+
"enabled": true,
|
|
9
|
+
// "indentStyle": "space",
|
|
10
|
+
// "indentWidth": 4,
|
|
11
|
+
// "lineEnding": "lf",
|
|
12
|
+
// "lineWidth": 120,
|
|
13
|
+
"quoteStyle": "double"
|
|
14
|
+
},
|
|
15
|
+
"linter": {
|
|
16
|
+
"enabled": true
|
|
17
|
+
},
|
|
18
|
+
"parser": {
|
|
19
|
+
"cssModules": true,
|
|
20
|
+
"tailwindDirectives": true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
3
23
|
"extends": ["./base.jsonc"],
|
|
24
|
+
"html": {
|
|
25
|
+
"assist": {
|
|
26
|
+
"enabled": true
|
|
27
|
+
},
|
|
28
|
+
"formatter": {
|
|
29
|
+
"enabled": true
|
|
30
|
+
// "indentStyle": "space",
|
|
31
|
+
// "indentWidth": 4,
|
|
32
|
+
// "lineEnding": "lf",
|
|
33
|
+
// "lineWidth": 120,
|
|
34
|
+
// "attributePosition": "auto",
|
|
35
|
+
// "bracketSameLine": false,
|
|
36
|
+
// "whitespaceSensitivity": "css",
|
|
37
|
+
// "indentScriptAndStyle": false,
|
|
38
|
+
// "selfCloseVoidElements": "never"
|
|
39
|
+
},
|
|
40
|
+
"linter": {
|
|
41
|
+
"enabled": true
|
|
42
|
+
},
|
|
43
|
+
// "experimentalFullSupportEnabled": true,
|
|
44
|
+
"parser": {
|
|
45
|
+
// "interpolation": false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
4
48
|
"linter": {
|
|
5
49
|
"rules": {
|
|
6
50
|
"a11y": {
|
|
@@ -100,49 +144,5 @@
|
|
|
100
144
|
// "noUnknownAtRules": "error"
|
|
101
145
|
}
|
|
102
146
|
}
|
|
103
|
-
},
|
|
104
|
-
"css": {
|
|
105
|
-
"parser": {
|
|
106
|
-
"cssModules": true,
|
|
107
|
-
"tailwindDirectives": true
|
|
108
|
-
},
|
|
109
|
-
"formatter": {
|
|
110
|
-
"enabled": true,
|
|
111
|
-
// "indentStyle": "space",
|
|
112
|
-
// "indentWidth": 4,
|
|
113
|
-
// "lineEnding": "lf",
|
|
114
|
-
// "lineWidth": 120,
|
|
115
|
-
"quoteStyle": "double"
|
|
116
|
-
},
|
|
117
|
-
"linter": {
|
|
118
|
-
"enabled": true
|
|
119
|
-
},
|
|
120
|
-
"assist": {
|
|
121
|
-
"enabled": true
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
"html": {
|
|
125
|
-
// "experimentalFullSupportEnabled": true,
|
|
126
|
-
"parser": {
|
|
127
|
-
// "interpolation": false
|
|
128
|
-
},
|
|
129
|
-
"formatter": {
|
|
130
|
-
"enabled": true
|
|
131
|
-
// "indentStyle": "space",
|
|
132
|
-
// "indentWidth": 4,
|
|
133
|
-
// "lineEnding": "lf",
|
|
134
|
-
// "lineWidth": 120,
|
|
135
|
-
// "attributePosition": "auto",
|
|
136
|
-
// "bracketSameLine": false,
|
|
137
|
-
// "whitespaceSensitivity": "css",
|
|
138
|
-
// "indentScriptAndStyle": false,
|
|
139
|
-
// "selfCloseVoidElements": "never"
|
|
140
|
-
},
|
|
141
|
-
"linter": {
|
|
142
|
-
"enabled": true
|
|
143
|
-
},
|
|
144
|
-
"assist": {
|
|
145
|
-
"enabled": true
|
|
146
|
-
}
|
|
147
147
|
}
|
|
148
148
|
}
|
package/src/lib.jsonc
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
3
|
"extends": ["./base.jsonc"],
|
|
4
|
+
"graphql": {
|
|
5
|
+
"assist": {
|
|
6
|
+
"enabled": true
|
|
7
|
+
},
|
|
8
|
+
"formatter": {
|
|
9
|
+
"enabled": true,
|
|
10
|
+
// "indentStyle": "space",
|
|
11
|
+
// "indentWidth": 4,
|
|
12
|
+
// "lineEnding": "lf",
|
|
13
|
+
// "lineWidth": 120,
|
|
14
|
+
"quoteStyle": "double"
|
|
15
|
+
},
|
|
16
|
+
"linter": {
|
|
17
|
+
"enabled": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
4
20
|
"linter": {
|
|
5
21
|
"rules": {
|
|
6
22
|
"correctness": {
|
|
@@ -35,21 +51,5 @@
|
|
|
35
51
|
// "noDuplicateFields": "error"
|
|
36
52
|
}
|
|
37
53
|
}
|
|
38
|
-
},
|
|
39
|
-
"graphql": {
|
|
40
|
-
"formatter": {
|
|
41
|
-
"enabled": true,
|
|
42
|
-
// "indentStyle": "space",
|
|
43
|
-
// "indentWidth": 4,
|
|
44
|
-
// "lineEnding": "lf",
|
|
45
|
-
// "lineWidth": 120,
|
|
46
|
-
"quoteStyle": "double"
|
|
47
|
-
},
|
|
48
|
-
"linter": {
|
|
49
|
-
"enabled": true
|
|
50
|
-
},
|
|
51
|
-
"assist": {
|
|
52
|
-
"enabled": true
|
|
53
|
-
}
|
|
54
54
|
}
|
|
55
55
|
}
|