@jarsec/biome-config 0.0.1
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/configs/biome.json +341 -0
- package/package.json +23 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
3
|
+
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
|
|
4
|
+
"files": { "ignoreUnknown": false },
|
|
5
|
+
"formatter": {
|
|
6
|
+
"enabled": true,
|
|
7
|
+
"indentStyle": "tab",
|
|
8
|
+
"lineWidth": 100
|
|
9
|
+
},
|
|
10
|
+
"linter": {
|
|
11
|
+
"enabled": true,
|
|
12
|
+
"rules": {
|
|
13
|
+
"recommended": false,
|
|
14
|
+
"complexity": {
|
|
15
|
+
"noAdjacentSpacesInRegex": "error",
|
|
16
|
+
"noBannedTypes": "error",
|
|
17
|
+
"noExtraBooleanCast": "error",
|
|
18
|
+
"noForEach": "error",
|
|
19
|
+
"noStaticOnlyClass": "error",
|
|
20
|
+
"noUselessCatch": "error",
|
|
21
|
+
"noUselessEscapeInRegex": "error",
|
|
22
|
+
"noUselessSwitchCase": "error",
|
|
23
|
+
"noUselessThisAlias": "error",
|
|
24
|
+
"noUselessTypeConstraint": "error",
|
|
25
|
+
"useDateNow": "error",
|
|
26
|
+
"useFlatMap": "error",
|
|
27
|
+
"useIndexOf": "error"
|
|
28
|
+
},
|
|
29
|
+
"correctness": {
|
|
30
|
+
"noConstAssign": "error",
|
|
31
|
+
"noConstantCondition": "error",
|
|
32
|
+
"noEmptyCharacterClassInRegex": "error",
|
|
33
|
+
"noEmptyPattern": "error",
|
|
34
|
+
"noGlobalDirnameFilename": "error",
|
|
35
|
+
"noGlobalObjectCalls": "error",
|
|
36
|
+
"noInvalidBuiltinInstantiation": "error",
|
|
37
|
+
"noInvalidConstructorSuper": "error",
|
|
38
|
+
"noNonoctalDecimalEscape": "error",
|
|
39
|
+
"noPrecisionLoss": "error",
|
|
40
|
+
"noSelfAssign": "error",
|
|
41
|
+
"noSetterReturn": "error",
|
|
42
|
+
"noSwitchDeclarations": "error",
|
|
43
|
+
"noUndeclaredVariables": "error",
|
|
44
|
+
"noUnreachable": "error",
|
|
45
|
+
"noUnreachableSuper": "error",
|
|
46
|
+
"noUnsafeFinally": "error",
|
|
47
|
+
"noUnsafeOptionalChaining": "error",
|
|
48
|
+
"noUnusedLabels": "error",
|
|
49
|
+
"noUnusedPrivateClassMembers": "error",
|
|
50
|
+
"noUnusedVariables": "error",
|
|
51
|
+
"useIsNan": "error",
|
|
52
|
+
"useValidForDirection": "error",
|
|
53
|
+
"useValidTypeof": "error",
|
|
54
|
+
"useYield": "error"
|
|
55
|
+
},
|
|
56
|
+
"nursery": {
|
|
57
|
+
"noEmptySource": "error",
|
|
58
|
+
"noUndeclaredEnvVars": "warn",
|
|
59
|
+
"noUnusedExpressions": "off",
|
|
60
|
+
"noUselessUndefined": "error"
|
|
61
|
+
},
|
|
62
|
+
"style": {
|
|
63
|
+
"noCommonJs": "error",
|
|
64
|
+
"noInferrableTypes": "error",
|
|
65
|
+
"noNamespace": "error",
|
|
66
|
+
"noNegationElse": "off",
|
|
67
|
+
"noNestedTernary": "off",
|
|
68
|
+
"noSubstr": "error",
|
|
69
|
+
"useArrayLiterals": "error",
|
|
70
|
+
"useAsConstAssertion": "error",
|
|
71
|
+
"useAtIndex": "error",
|
|
72
|
+
"useCollapsedIf": "error",
|
|
73
|
+
"useConsistentArrayType": "error",
|
|
74
|
+
"useConsistentTypeDefinitions": {
|
|
75
|
+
"level": "error",
|
|
76
|
+
"options": { "style": "type" }
|
|
77
|
+
}
|
|
78
|
+
"useExplicitLengthCheck": "error",
|
|
79
|
+
"useFilenamingConvention": {
|
|
80
|
+
"level": "error",
|
|
81
|
+
"options": { "filenameCases": ["kebab-case"] }
|
|
82
|
+
},
|
|
83
|
+
"useForOf": "error",
|
|
84
|
+
"useNodejsImportProtocol": "error",
|
|
85
|
+
"useNumberNamespace": "error",
|
|
86
|
+
"useNumericSeparators": "error",
|
|
87
|
+
"useShorthandFunctionType": "error",
|
|
88
|
+
"useThrowNewError": "error",
|
|
89
|
+
"useTrimStartEnd": "error"
|
|
90
|
+
},
|
|
91
|
+
"suspicious": {
|
|
92
|
+
"noAssignInExpressions": "error",
|
|
93
|
+
"noAsyncPromiseExecutor": "error",
|
|
94
|
+
"noCatchAssign": "error",
|
|
95
|
+
"noClassAssign": "error",
|
|
96
|
+
"noCompareNegZero": "error",
|
|
97
|
+
"noConstantBinaryExpressions": "error",
|
|
98
|
+
"noControlCharactersInRegex": "error",
|
|
99
|
+
"noDebugger": "error",
|
|
100
|
+
"noDocumentCookie": "error",
|
|
101
|
+
"noDuplicateCase": "error",
|
|
102
|
+
"noDuplicateClassMembers": "error",
|
|
103
|
+
"noDuplicateElseIf": "error",
|
|
104
|
+
"noDuplicateObjectKeys": "error",
|
|
105
|
+
"noDuplicateParameters": "error",
|
|
106
|
+
"noEmptyBlockStatements": "error",
|
|
107
|
+
"noExplicitAny": "error",
|
|
108
|
+
"noExtraNonNullAssertion": "error",
|
|
109
|
+
"noFallthroughSwitchClause": "error",
|
|
110
|
+
"noFunctionAssign": "error",
|
|
111
|
+
"noGlobalAssign": "error",
|
|
112
|
+
"noImportAssign": "error",
|
|
113
|
+
"noIrregularWhitespace": "error",
|
|
114
|
+
"noMisleadingCharacterClass": "error",
|
|
115
|
+
"noMisleadingInstantiator": "error",
|
|
116
|
+
"noNonNullAssertedOptionalChain": "error",
|
|
117
|
+
"noPrototypeBuiltins": "error",
|
|
118
|
+
"noRedeclare": "error",
|
|
119
|
+
"noShadowRestrictedNames": "error",
|
|
120
|
+
"noSparseArray": "error",
|
|
121
|
+
"noThenProperty": "error",
|
|
122
|
+
"noTsIgnore": "error",
|
|
123
|
+
"noUnsafeDeclarationMerging": "error",
|
|
124
|
+
"noUnsafeNegation": "error",
|
|
125
|
+
"noUselessRegexBackrefs": "error",
|
|
126
|
+
"noWith": "error",
|
|
127
|
+
"useAdjacentOverloadSignatures": "error",
|
|
128
|
+
"useErrorMessage": "error",
|
|
129
|
+
"useGetterReturn": "error",
|
|
130
|
+
"useNamespaceKeyword": "error",
|
|
131
|
+
"useNumberToFixedDigitsArgument": "error"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"includes": ["**", "!dist/**", "**", "!dist/**"]
|
|
135
|
+
},
|
|
136
|
+
"javascript": { "formatter": { "quoteStyle": "double" }, "globals": [] },
|
|
137
|
+
"overrides": [
|
|
138
|
+
{
|
|
139
|
+
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
140
|
+
"linter": {
|
|
141
|
+
"rules": {
|
|
142
|
+
"complexity": { "noArguments": "error" },
|
|
143
|
+
"correctness": {
|
|
144
|
+
"noConstAssign": "off",
|
|
145
|
+
"noGlobalObjectCalls": "off",
|
|
146
|
+
"noInvalidBuiltinInstantiation": "off",
|
|
147
|
+
"noInvalidConstructorSuper": "off",
|
|
148
|
+
"noSetterReturn": "off",
|
|
149
|
+
"noUndeclaredVariables": "off",
|
|
150
|
+
"noUnreachable": "off",
|
|
151
|
+
"noUnreachableSuper": "off"
|
|
152
|
+
},
|
|
153
|
+
"style": { "useConst": "error" },
|
|
154
|
+
"suspicious": {
|
|
155
|
+
"noClassAssign": "off",
|
|
156
|
+
"noDuplicateClassMembers": "off",
|
|
157
|
+
"noDuplicateObjectKeys": "off",
|
|
158
|
+
"noDuplicateParameters": "off",
|
|
159
|
+
"noFunctionAssign": "off",
|
|
160
|
+
"noImportAssign": "off",
|
|
161
|
+
"noRedeclare": "off",
|
|
162
|
+
"noUnsafeNegation": "off",
|
|
163
|
+
"noVar": "error",
|
|
164
|
+
"noWith": "off",
|
|
165
|
+
"useGetterReturn": "off"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
172
|
+
"linter": {
|
|
173
|
+
"rules": {
|
|
174
|
+
"complexity": { "noArguments": "error" },
|
|
175
|
+
"correctness": {
|
|
176
|
+
"noConstAssign": "off",
|
|
177
|
+
"noGlobalObjectCalls": "off",
|
|
178
|
+
"noInvalidBuiltinInstantiation": "off",
|
|
179
|
+
"noInvalidConstructorSuper": "off",
|
|
180
|
+
"noSetterReturn": "off",
|
|
181
|
+
"noUndeclaredVariables": "off",
|
|
182
|
+
"noUnreachable": "off",
|
|
183
|
+
"noUnreachableSuper": "off"
|
|
184
|
+
},
|
|
185
|
+
"style": { "useConst": "error" },
|
|
186
|
+
"suspicious": {
|
|
187
|
+
"noClassAssign": "off",
|
|
188
|
+
"noDuplicateClassMembers": "off",
|
|
189
|
+
"noDuplicateObjectKeys": "off",
|
|
190
|
+
"noDuplicateParameters": "off",
|
|
191
|
+
"noFunctionAssign": "off",
|
|
192
|
+
"noImportAssign": "off",
|
|
193
|
+
"noRedeclare": "off",
|
|
194
|
+
"noUnsafeNegation": "off",
|
|
195
|
+
"noVar": "error",
|
|
196
|
+
"noWith": "off",
|
|
197
|
+
"useGetterReturn": "off"
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"includes": ["**/*.js"],
|
|
204
|
+
"javascript": { "globals": [] },
|
|
205
|
+
"linter": {
|
|
206
|
+
"rules": {
|
|
207
|
+
"complexity": { "useLiteralKeys": "off", "useOptionalChain": "off" },
|
|
208
|
+
"style": { "useReadonlyClassProperties": "off" },
|
|
209
|
+
"suspicious": { "useAwait": "off" }
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{ "includes": ["**/*.js"] },
|
|
214
|
+
{
|
|
215
|
+
"includes": ["eslint.config.js", "drizzle.config.ts", "**/*.test.ts"],
|
|
216
|
+
"linter": { "rules": {} }
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
220
|
+
"linter": {
|
|
221
|
+
"rules": {
|
|
222
|
+
"complexity": { "noArguments": "error" },
|
|
223
|
+
"correctness": {
|
|
224
|
+
"noConstAssign": "off",
|
|
225
|
+
"noGlobalObjectCalls": "off",
|
|
226
|
+
"noInvalidBuiltinInstantiation": "off",
|
|
227
|
+
"noInvalidConstructorSuper": "off",
|
|
228
|
+
"noSetterReturn": "off",
|
|
229
|
+
"noUndeclaredVariables": "off",
|
|
230
|
+
"noUnreachable": "off",
|
|
231
|
+
"noUnreachableSuper": "off"
|
|
232
|
+
},
|
|
233
|
+
"nursery": { "useSpread": "error" },
|
|
234
|
+
"style": { "useConst": "error" },
|
|
235
|
+
"suspicious": {
|
|
236
|
+
"noClassAssign": "off",
|
|
237
|
+
"noDuplicateClassMembers": "off",
|
|
238
|
+
"noDuplicateObjectKeys": "off",
|
|
239
|
+
"noDuplicateParameters": "off",
|
|
240
|
+
"noFunctionAssign": "off",
|
|
241
|
+
"noImportAssign": "off",
|
|
242
|
+
"noRedeclare": "off",
|
|
243
|
+
"noUnsafeNegation": "off",
|
|
244
|
+
"noVar": "error",
|
|
245
|
+
"noWith": "off",
|
|
246
|
+
"useGetterReturn": "off"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
253
|
+
"linter": {
|
|
254
|
+
"rules": {
|
|
255
|
+
"complexity": { "noArguments": "error" },
|
|
256
|
+
"correctness": {
|
|
257
|
+
"noConstAssign": "off",
|
|
258
|
+
"noGlobalObjectCalls": "off",
|
|
259
|
+
"noInvalidBuiltinInstantiation": "off",
|
|
260
|
+
"noInvalidConstructorSuper": "off",
|
|
261
|
+
"noSetterReturn": "off",
|
|
262
|
+
"noUndeclaredVariables": "off",
|
|
263
|
+
"noUnreachable": "off",
|
|
264
|
+
"noUnreachableSuper": "off"
|
|
265
|
+
},
|
|
266
|
+
"nursery": { "useSpread": "error" },
|
|
267
|
+
"style": { "useConst": "error" },
|
|
268
|
+
"suspicious": {
|
|
269
|
+
"noClassAssign": "off",
|
|
270
|
+
"noDuplicateClassMembers": "off",
|
|
271
|
+
"noDuplicateObjectKeys": "off",
|
|
272
|
+
"noDuplicateParameters": "off",
|
|
273
|
+
"noFunctionAssign": "off",
|
|
274
|
+
"noImportAssign": "off",
|
|
275
|
+
"noRedeclare": "off",
|
|
276
|
+
"noUnsafeNegation": "off",
|
|
277
|
+
"noVar": "error",
|
|
278
|
+
"noWith": "off",
|
|
279
|
+
"useGetterReturn": "off"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"includes": ["**/*.js"],
|
|
286
|
+
"javascript": { "globals": [] },
|
|
287
|
+
"linter": {
|
|
288
|
+
"rules": {
|
|
289
|
+
"complexity": { "useLiteralKeys": "off", "useOptionalChain": "off" },
|
|
290
|
+
"nursery": {
|
|
291
|
+
"noDeprecatedImports": "off",
|
|
292
|
+
"noFloatingPromises": "off",
|
|
293
|
+
"noForIn": "off",
|
|
294
|
+
"noMisusedPromises": "off",
|
|
295
|
+
"noUnnecessaryConditions": "off",
|
|
296
|
+
"useArraySortCompare": "off",
|
|
297
|
+
"useExhaustiveSwitchCases": "off",
|
|
298
|
+
"useFind": "off",
|
|
299
|
+
"useRegexpExec": "off"
|
|
300
|
+
},
|
|
301
|
+
"style": {
|
|
302
|
+
"useExportType": "off",
|
|
303
|
+
"useNamingConvention": {
|
|
304
|
+
"level": "off",
|
|
305
|
+
"options": { "strictCase": false, "requireAscii": false }
|
|
306
|
+
},
|
|
307
|
+
"useReadonlyClassProperties": "off",
|
|
308
|
+
"useThrowOnlyError": "off"
|
|
309
|
+
},
|
|
310
|
+
"suspicious": { "useAwait": "off" }
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{ "includes": ["**/*.js"] },
|
|
315
|
+
{
|
|
316
|
+
"includes": ["eslint.config.js", "drizzle.config.ts", "**/*.test.ts"],
|
|
317
|
+
"linter": { "rules": {} }
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"javascript": {
|
|
321
|
+
"formatter": {
|
|
322
|
+
"quoteStyle": "single",
|
|
323
|
+
"arrowParentheses": "asNeeded",
|
|
324
|
+
"bracketSameLine": false,
|
|
325
|
+
"bracketSpacing": true,
|
|
326
|
+
"jsxQuoteStyle": "single",
|
|
327
|
+
"quoteProperties": "asNeeded",
|
|
328
|
+
"semicolons": "always",
|
|
329
|
+
"trailingCommas": "all"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"json": {
|
|
333
|
+
"formatter": {
|
|
334
|
+
"trailingCommas": "none"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"assist": {
|
|
338
|
+
"enabled": true,
|
|
339
|
+
"actions": { "source": { "organizeImports": "on" } }
|
|
340
|
+
}
|
|
341
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jarsec/biome-config",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "jsec's Biome configurations",
|
|
5
|
+
"homepage": "https://github.com/jsec/code-quality-tools#readme",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/jsec/code-quality-tools.git",
|
|
9
|
+
"directory": "packages/biome-config"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Jarrod Seccombe <jarrod.seccombe@icloud.com>",
|
|
13
|
+
"type": "commonjs",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": "./configs/biome.json"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@biomejs/biome": "2.3.8"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
}
|
|
23
|
+
}
|