@jarsec/biome-config 0.0.1 → 0.0.2
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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/configs/biome.json +48 -142
- package/package.json +22 -22
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Jarrod Seccombe
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/configs/biome.json
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.3.
|
|
3
|
-
"
|
|
4
|
-
"
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
|
|
3
|
+
"root": false,
|
|
4
|
+
"vcs": {
|
|
5
|
+
"enabled": true,
|
|
6
|
+
"clientKind": "git",
|
|
7
|
+
"useIgnoreFile": true
|
|
8
|
+
},
|
|
9
|
+
"files": {
|
|
10
|
+
"ignoreUnknown": false
|
|
11
|
+
},
|
|
12
|
+
"assist": {
|
|
13
|
+
"enabled": true,
|
|
14
|
+
"actions": {
|
|
15
|
+
"source": {
|
|
16
|
+
"organizeImports": "on"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
5
20
|
"formatter": {
|
|
6
21
|
"enabled": true,
|
|
7
22
|
"indentStyle": "tab",
|
|
@@ -55,7 +70,6 @@
|
|
|
55
70
|
},
|
|
56
71
|
"nursery": {
|
|
57
72
|
"noEmptySource": "error",
|
|
58
|
-
"noUndeclaredEnvVars": "warn",
|
|
59
73
|
"noUnusedExpressions": "off",
|
|
60
74
|
"noUselessUndefined": "error"
|
|
61
75
|
},
|
|
@@ -72,9 +86,9 @@
|
|
|
72
86
|
"useCollapsedIf": "error",
|
|
73
87
|
"useConsistentArrayType": "error",
|
|
74
88
|
"useConsistentTypeDefinitions": {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
89
|
+
"level": "error",
|
|
90
|
+
"options": { "style": "type" }
|
|
91
|
+
},
|
|
78
92
|
"useExplicitLengthCheck": "error",
|
|
79
93
|
"useFilenamingConvention": {
|
|
80
94
|
"level": "error",
|
|
@@ -130,48 +144,16 @@
|
|
|
130
144
|
"useNamespaceKeyword": "error",
|
|
131
145
|
"useNumberToFixedDigitsArgument": "error"
|
|
132
146
|
}
|
|
133
|
-
}
|
|
134
|
-
"includes": ["**", "!dist/**", "**", "!dist/**"]
|
|
147
|
+
}
|
|
135
148
|
},
|
|
136
|
-
"javascript": { "formatter": { "quoteStyle": "double" }, "globals": [] },
|
|
137
149
|
"overrides": [
|
|
138
150
|
{
|
|
139
151
|
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
140
152
|
"linter": {
|
|
141
153
|
"rules": {
|
|
142
|
-
"complexity": {
|
|
143
|
-
|
|
144
|
-
"noConstAssign": "off",
|
|
145
|
-
"noGlobalObjectCalls": "off",
|
|
146
|
-
"noInvalidBuiltinInstantiation": "off",
|
|
147
|
-
"noInvalidConstructorSuper": "off",
|
|
148
|
-
"noSetterReturn": "off",
|
|
149
|
-
"noUndeclaredVariables": "off",
|
|
150
|
-
"noUnreachable": "off",
|
|
151
|
-
"noUnreachableSuper": "off"
|
|
154
|
+
"complexity": {
|
|
155
|
+
"noArguments": "error"
|
|
152
156
|
},
|
|
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
157
|
"correctness": {
|
|
176
158
|
"noConstAssign": "off",
|
|
177
159
|
"noGlobalObjectCalls": "off",
|
|
@@ -182,89 +164,12 @@
|
|
|
182
164
|
"noUnreachable": "off",
|
|
183
165
|
"noUnreachableSuper": "off"
|
|
184
166
|
},
|
|
185
|
-
"
|
|
186
|
-
|
|
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"
|
|
167
|
+
"nursery": {
|
|
168
|
+
"useSpread": "error"
|
|
232
169
|
},
|
|
233
|
-
"
|
|
234
|
-
|
|
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"
|
|
170
|
+
"style": {
|
|
171
|
+
"useConst": "error"
|
|
265
172
|
},
|
|
266
|
-
"nursery": { "useSpread": "error" },
|
|
267
|
-
"style": { "useConst": "error" },
|
|
268
173
|
"suspicious": {
|
|
269
174
|
"noClassAssign": "off",
|
|
270
175
|
"noDuplicateClassMembers": "off",
|
|
@@ -283,35 +188,40 @@
|
|
|
283
188
|
},
|
|
284
189
|
{
|
|
285
190
|
"includes": ["**/*.js"],
|
|
286
|
-
"javascript": { "globals": [] },
|
|
287
191
|
"linter": {
|
|
288
192
|
"rules": {
|
|
289
|
-
"complexity": {
|
|
290
|
-
|
|
291
|
-
"
|
|
292
|
-
"noFloatingPromises": "off",
|
|
293
|
-
"noForIn": "off",
|
|
294
|
-
"noMisusedPromises": "off",
|
|
295
|
-
"noUnnecessaryConditions": "off",
|
|
296
|
-
"useArraySortCompare": "off",
|
|
297
|
-
"useExhaustiveSwitchCases": "off",
|
|
298
|
-
"useFind": "off",
|
|
299
|
-
"useRegexpExec": "off"
|
|
193
|
+
"complexity": {
|
|
194
|
+
"useLiteralKeys": "off",
|
|
195
|
+
"useOptionalChain": "error"
|
|
300
196
|
},
|
|
301
197
|
"style": {
|
|
302
198
|
"useExportType": "off",
|
|
303
199
|
"useNamingConvention": {
|
|
304
200
|
"level": "off",
|
|
305
|
-
"options": {
|
|
201
|
+
"options": {
|
|
202
|
+
"strictCase": false,
|
|
203
|
+
"requireAscii": true
|
|
204
|
+
}
|
|
306
205
|
},
|
|
307
206
|
"useReadonlyClassProperties": "off",
|
|
308
207
|
"useThrowOnlyError": "off"
|
|
309
208
|
},
|
|
310
|
-
"suspicious": {
|
|
209
|
+
"suspicious": {
|
|
210
|
+
"useAwait": "error"
|
|
211
|
+
},
|
|
212
|
+
"nursery": {
|
|
213
|
+
"noDeprecatedImports": "off",
|
|
214
|
+
"noFloatingPromises": "error",
|
|
215
|
+
"noForIn": "warn",
|
|
216
|
+
"noMisusedPromises": "error",
|
|
217
|
+
"noUnnecessaryConditions": "error",
|
|
218
|
+
"useArraySortCompare": "warn",
|
|
219
|
+
"useExhaustiveSwitchCases": "warn",
|
|
220
|
+
"useFind": "error"
|
|
221
|
+
}
|
|
311
222
|
}
|
|
312
223
|
}
|
|
313
224
|
},
|
|
314
|
-
{ "includes": ["**/*.js"] },
|
|
315
225
|
{
|
|
316
226
|
"includes": ["eslint.config.js", "drizzle.config.ts", "**/*.test.ts"],
|
|
317
227
|
"linter": { "rules": {} }
|
|
@@ -333,9 +243,5 @@
|
|
|
333
243
|
"formatter": {
|
|
334
244
|
"trailingCommas": "none"
|
|
335
245
|
}
|
|
336
|
-
},
|
|
337
|
-
"assist": {
|
|
338
|
-
"enabled": true,
|
|
339
|
-
"actions": { "source": { "organizeImports": "on" } }
|
|
340
246
|
}
|
|
341
247
|
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
2
|
+
"name": "@jarsec/biome-config",
|
|
3
|
+
"version": "0.0.2",
|
|
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
|
+
"exports": {
|
|
14
|
+
".": "./configs/biome.json"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@biomejs/biome": "2.3.8"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"provenance": true
|
|
22
|
+
}
|
|
23
|
+
}
|