@tilli.dev/biome 0.10.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.
Files changed (3) hide show
  1. package/README.md +14 -0
  2. package/config.json +378 -0
  3. package/package.json +22 -0
package/README.md ADDED
@@ -0,0 +1,14 @@
1
+ # `@tilli.dev/biome`
2
+
3
+ tilli's shared [Biome](https://biomejs.dev) configuration. Formerly `@tilli-pro/biome`.
4
+
5
+ ```sh
6
+ pnpm add -D @tilli.dev/biome @biomejs/biome
7
+ ```
8
+
9
+ ```json
10
+ {
11
+ "root": true,
12
+ "extends": ["@tilli.dev/biome"]
13
+ }
14
+ ```
package/config.json ADDED
@@ -0,0 +1,378 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.5.6/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true
7
+ },
8
+ "files": {
9
+ "ignoreUnknown": false,
10
+ "maxSize": 16777216
11
+ },
12
+ "formatter": {
13
+ "enabled": true,
14
+ "formatWithErrors": false,
15
+ "indentStyle": "space",
16
+ "indentWidth": 2,
17
+ "lineEnding": "lf",
18
+ "lineWidth": 80,
19
+ "attributePosition": "auto",
20
+ "bracketSameLine": false,
21
+ "bracketSpacing": true,
22
+ "expand": "auto",
23
+ "useEditorconfig": true
24
+ },
25
+ "linter": {
26
+ "enabled": true,
27
+ "rules": {
28
+ "recommended": false,
29
+ "complexity": {
30
+ "noVoid": "off",
31
+ "noBannedTypes": "warn",
32
+ "noUselessContinue": "warn",
33
+ "noUselessTernary": "warn",
34
+ "noAdjacentSpacesInRegex": "error",
35
+ "noArguments": "error",
36
+ "noExtraBooleanCast": "error",
37
+ "noUselessCatch": "error",
38
+ "noUselessEscapeInRegex": "error",
39
+ "noUselessTypeConstraint": "error",
40
+ "noImportantStyles": "warn",
41
+ "noUselessRename": "error",
42
+ "useArrowFunction": "info",
43
+ "useRegexLiterals": "warn",
44
+ "useWhile": "warn",
45
+ "noEmptyTypeParameters": "warn",
46
+ "noThisInStatic": "error",
47
+ "noStaticOnlyClass": "error",
48
+ "noUselessThisAlias": "warn",
49
+ "useSimplifiedLogicExpression": "warn",
50
+ "useDateNow": "warn",
51
+ "noImplicitCoercions": "off",
52
+ "noUselessUndefined": "warn",
53
+ "noUselessCatchBinding": "warn"
54
+ },
55
+ "correctness": {
56
+ "useYield": "warn",
57
+ "useExhaustiveDependencies": "warn",
58
+ "useHookAtTopLevel": "warn",
59
+ "useParseIntRadix": "warn",
60
+ "noUnusedImports": "warn",
61
+ "noUnusedLabels": "warn",
62
+ "noUnusedPrivateClassMembers": "warn",
63
+ "noUnusedVariables": "warn",
64
+ "noConstAssign": "error",
65
+ "noConstantCondition": "warn",
66
+ "noEmptyCharacterClassInRegex": "error",
67
+ "noEmptyPattern": "warn",
68
+ "noGlobalObjectCalls": "error",
69
+ "noInvalidBuiltinInstantiation": "error",
70
+ "noInvalidConstructorSuper": "error",
71
+ "noNonoctalDecimalEscape": "error",
72
+ "noPrecisionLoss": "error",
73
+ "noSelfAssign": "error",
74
+ "noSetterReturn": "error",
75
+ "noSwitchDeclarations": "error",
76
+ "noUndeclaredVariables": {
77
+ "level": "warn",
78
+ "options": {
79
+ "checkTypes": false
80
+ }
81
+ },
82
+ "noUnreachable": "warn",
83
+ "noUnreachableSuper": "error",
84
+ "noUnsafeFinally": "error",
85
+ "noUnsafeOptionalChaining": "error",
86
+ "useIsNan": "error",
87
+ "useJsxKeyInIterable": "error",
88
+ "useSingleJsDocAsterisk": "error",
89
+ "useValidForDirection": "error",
90
+ "useValidTypeof": "error",
91
+ "noReactPropAssignments": "error",
92
+ "noConstructorReturn": "error",
93
+ "noInvalidGridAreas": "warn",
94
+ "noInvalidUseBeforeDeclaration": "error",
95
+ "noVoidTypeReturn": "error",
96
+ "useImageSize": "warn",
97
+ "noChildrenProp": "warn",
98
+ "noNextAsyncClientComponent": "error",
99
+ "noUnresolvedImports": "off"
100
+ },
101
+ "style": {
102
+ "noImplicitBoolean": "warn",
103
+ "noInferrableTypes": "error",
104
+ "noNamespace": "error",
105
+ "noUnusedTemplateLiteral": "warn",
106
+ "noYodaExpression": "error",
107
+ "useConsistentArrayType": {
108
+ "level": "error",
109
+ "options": {
110
+ "syntax": "shorthand"
111
+ }
112
+ },
113
+ "useArrayLiterals": "error",
114
+ "useAsConstAssertion": "error",
115
+ "useConsistentCurlyBraces": "warn",
116
+ "useConst": "warn",
117
+ "useBlockStatements": "off",
118
+ "useDeprecatedReason": "error",
119
+ "useExportType": "warn",
120
+ "useFragmentSyntax": "error",
121
+ "useImportType": "warn",
122
+ "useNodejsImportProtocol": "error",
123
+ "useShorthandAssign": "warn",
124
+ "useTemplate": "error",
125
+ "useThrowNewError": "warn",
126
+ "useObjectSpread": "error",
127
+ "useGroupedAccessorPairs": "error",
128
+ "useNamingConvention": "off",
129
+ "useReadonlyClassProperties": "warn",
130
+ "noDefaultExport": "info",
131
+ "noDoneCallback": "warn",
132
+ "noNonNullAssertion": "warn",
133
+ "useThrowOnlyError": "warn",
134
+ "noSubstr": "warn",
135
+ "useDefaultSwitchClause": "warn",
136
+ "useReactFunctionComponents": "warn",
137
+ "useFilenamingConvention": "off"
138
+ },
139
+ "suspicious": {
140
+ "noArrayIndexKey": "warn",
141
+ "noAsyncPromiseExecutor": "error",
142
+ "noCatchAssign": "warn",
143
+ "noClassAssign": "error",
144
+ "noCommentText": "error",
145
+ "noCompareNegZero": "error",
146
+ "noConstantBinaryExpressions": "warn",
147
+ "noControlCharactersInRegex": "error",
148
+ "noDoubleEquals": "warn",
149
+ "noDebugger": "error",
150
+ "noDuplicateCase": "error",
151
+ "noDuplicateClassMembers": "error",
152
+ "noDuplicateElseIf": "error",
153
+ "noDuplicateJsxProps": "error",
154
+ "noDuplicateObjectKeys": "warn",
155
+ "noDuplicateParameters": "error",
156
+ "noEmptyBlockStatements": "error",
157
+ "noExplicitAny": "error",
158
+ "noExtraNonNullAssertion": "error",
159
+ "noFallthroughSwitchClause": "error",
160
+ "noFunctionAssign": "error",
161
+ "noGlobalAssign": "error",
162
+ "noImplicitAnyLet": "warn",
163
+ "noImportAssign": "error",
164
+ "noIrregularWhitespace": "error",
165
+ "noMisleadingCharacterClass": "error",
166
+ "noMisleadingInstantiator": "error",
167
+ "noPrototypeBuiltins": "error",
168
+ "noRedeclare": "error",
169
+ "noShadowRestrictedNames": "error",
170
+ "noSparseArray": "error",
171
+ "noSuspiciousSemicolonInJsx": "warn",
172
+ "noUnsafeDeclarationMerging": "error",
173
+ "noUnsafeNegation": "error",
174
+ "noVar": "error",
175
+ "noWith": "error",
176
+ "useGetterReturn": "error",
177
+ "useIsArray": "warn",
178
+ "noUnassignedVariables": "warn",
179
+ "noGlobalIsNan": "error",
180
+ "noGlobalIsFinite": "error",
181
+ "useErrorMessage": "warn",
182
+ "noImportCycles": "error",
183
+ "noDeprecatedImports": "warn",
184
+ "noShadow": "info",
185
+ "noUnnecessaryConditions": "warn"
186
+ },
187
+ "a11y": {
188
+ "recommended": true,
189
+ "noRedundantAlt": "warn",
190
+ "noStaticElementInteractions": "error",
191
+ "useAltText": "warn",
192
+ "useValidAnchor": "warn",
193
+ "useValidLang": "warn",
194
+ "useFocusableInteractive": "off",
195
+ "useSemanticElements": "off",
196
+ "noRedundantRoles": "off",
197
+ "noDistractingElements": "error"
198
+ },
199
+ "performance": {
200
+ "noAwaitInLoops": "warn",
201
+ "useTopLevelRegex": "info",
202
+ "noAccumulatingSpread": "warn",
203
+ "noDelete": "info",
204
+ "noImgElement": "info"
205
+ },
206
+ "security": {
207
+ "noBlankTarget": "warn",
208
+ "noDangerouslySetInnerHtmlWithChildren": "error",
209
+ "noGlobalEval": "error",
210
+ "noDangerouslySetInnerHtml": "warn",
211
+ "noSecrets": "off"
212
+ },
213
+ "nursery": {
214
+ "noFloatingPromises": "warn",
215
+ "useSortedClasses": "warn",
216
+ "useExhaustiveSwitchCases": "warn",
217
+ "noMisusedPromises": "warn"
218
+ }
219
+ }
220
+ },
221
+ "javascript": {
222
+ "formatter": {
223
+ "jsxQuoteStyle": "double",
224
+ "quoteProperties": "asNeeded",
225
+ "trailingCommas": "all",
226
+ "semicolons": "always",
227
+ "arrowParentheses": "always",
228
+ "bracketSameLine": false,
229
+ "quoteStyle": "double",
230
+ "attributePosition": "auto",
231
+ "bracketSpacing": true,
232
+ "indentStyle": "space",
233
+ "indentWidth": 2,
234
+ "lineEnding": "lf",
235
+ "lineWidth": 80,
236
+ "enabled": true,
237
+ "expand": "auto",
238
+ "operatorLinebreak": "after"
239
+ },
240
+ "globals": ["exports", "React", "JSX"],
241
+ "linter": {
242
+ "enabled": true
243
+ },
244
+ "parser": {
245
+ "jsxEverywhere": false,
246
+ "unsafeParameterDecoratorsEnabled": true,
247
+ "gritMetavariables": true
248
+ },
249
+ "assist": {
250
+ "enabled": true
251
+ },
252
+ "jsxRuntime": "transparent"
253
+ },
254
+ "html": {
255
+ "parser": {
256
+ "interpolation": true
257
+ },
258
+ "formatter": {
259
+ "enabled": true,
260
+ "selfCloseVoidElements": "always",
261
+ "lineEnding": "lf",
262
+ "lineWidth": 80,
263
+ "indentStyle": "space",
264
+ "indentWidth": 2,
265
+ "whitespaceSensitivity": "css"
266
+ }
267
+ },
268
+ "css": {
269
+ "formatter": {
270
+ "enabled": true,
271
+ "lineWidth": 80,
272
+ "indentStyle": "space",
273
+ "indentWidth": 2,
274
+ "lineEnding": "lf",
275
+ "quoteStyle": "double"
276
+ },
277
+ "linter": {
278
+ "enabled": true
279
+ },
280
+ "assist": {
281
+ "enabled": true
282
+ },
283
+ "parser": {
284
+ "cssModules": true,
285
+ "tailwindDirectives": true
286
+ },
287
+ "globals": []
288
+ },
289
+ "json": {
290
+ "parser": {
291
+ "allowComments": true,
292
+ "allowTrailingCommas": false
293
+ },
294
+ "assist": {
295
+ "enabled": true
296
+ },
297
+ "linter": {
298
+ "enabled": true
299
+ },
300
+ "formatter": {
301
+ "enabled": true,
302
+ "lineWidth": 80,
303
+ "indentStyle": "space",
304
+ "indentWidth": 2,
305
+ "lineEnding": "lf"
306
+ }
307
+ },
308
+ "assist": {
309
+ "enabled": true,
310
+ "actions": {
311
+ "source": {
312
+ "organizeImports": {
313
+ "level": "on",
314
+ "options": {
315
+ "identifierOrder": "natural",
316
+ "groups": [
317
+ ":URL:",
318
+ [":NODE:"],
319
+ [
320
+ "react",
321
+ "react-dom",
322
+ "react/**",
323
+ "react-dom/**",
324
+ "next",
325
+ "next/**"
326
+ ],
327
+ ["@tilli-pro/**", "@tilli.dev/**", "@tilli-internal/**"],
328
+ ":PACKAGE:",
329
+ ":ALIAS:",
330
+ {
331
+ "type": false
332
+ },
333
+ ":PATH:",
334
+ ["**/*.css"]
335
+ ]
336
+ }
337
+ },
338
+ "useSortedAttributes": "on",
339
+ "useSortedProperties": "on",
340
+ "useSortedKeys": "off"
341
+ }
342
+ }
343
+ },
344
+ "plugins": [],
345
+ "overrides": [
346
+ {
347
+ "includes": [
348
+ "src/app/**/page.tsx",
349
+ "src/app/**/layout.tsx",
350
+ "src/app/**/error.tsx",
351
+ "src/app/**/loading.tsx",
352
+ "src/app/**/template.tsx",
353
+ "src/app/**/not-found.tsx",
354
+ "next.config.*ts",
355
+ "next.config.*js",
356
+ "*.config.*ts",
357
+ "*.config.*js"
358
+ ],
359
+ "linter": {
360
+ "rules": {
361
+ "style": {
362
+ "noDefaultExport": "off"
363
+ }
364
+ }
365
+ }
366
+ },
367
+ {
368
+ "includes": [
369
+ "**",
370
+ "!.*.js",
371
+ "!node_modules/",
372
+ "!dist/",
373
+ "!build/",
374
+ "!out/"
375
+ ]
376
+ }
377
+ ]
378
+ }
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@tilli.dev/biome",
3
+ "version": "0.10.0",
4
+ "description": "tilli's shared Biome configuration",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/tilli-pro/dotfiles.git",
8
+ "directory": "tooling/biome"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "files": [
14
+ "config.json"
15
+ ],
16
+ "exports": {
17
+ "default": "./config.json"
18
+ },
19
+ "dependencies": {
20
+ "@biomejs/biome": "2.5.6"
21
+ }
22
+ }