@tilli-pro/biome 0.1.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 +3 -0
  2. package/biome.json +337 -0
  3. package/package.json +13 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # `biome`
2
+
3
+ Keep it clean
package/biome.json ADDED
@@ -0,0 +1,337 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true
7
+ },
8
+ "files": {
9
+ "ignoreUnknown": false,
10
+ "maxSize": 8
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
+
32
+ "noBannedTypes": "warn",
33
+ "noUselessContinue": "warn",
34
+ "noUselessTernary": "warn",
35
+
36
+ "noAdjacentSpacesInRegex": "error",
37
+ "noArguments": "error",
38
+ "noExtraBooleanCast": "error",
39
+ "noUselessCatch": "error",
40
+ "noUselessEscapeInRegex": "error",
41
+ "noUselessTypeConstraint": "error",
42
+ "noImportantStyles": "warn",
43
+ "noUselessRename": "error",
44
+ "useArrowFunction": "warn",
45
+ "useRegexLiterals": "warn",
46
+ "useWhile": "error",
47
+ "noEmptyTypeParameters": "error",
48
+ "noThisInStatic": "error",
49
+ "noStaticOnlyClass": "error",
50
+ "noUselessThisAlias": "warn",
51
+ "useSimplifiedLogicExpression": "warn",
52
+ "useDateNow": "warn",
53
+ "noImplicitCoercions": "off"
54
+ },
55
+ "correctness": {
56
+ "useYield": "warn",
57
+ "useExhaustiveDependencies": "warn",
58
+ "useHookAtTopLevel": "warn",
59
+ "useParseIntRadix": "warn",
60
+ "noUnusedImports": "warn",
61
+ "noUnusedLabels": "error",
62
+ "noUnusedPrivateClassMembers": "error",
63
+ "noUnusedVariables": "error",
64
+ "noConstAssign": "error",
65
+ "noConstantCondition": "error",
66
+ "noEmptyCharacterClassInRegex": "error",
67
+ "noEmptyPattern": "error",
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": "error",
78
+ "options": { "checkTypes": true }
79
+ },
80
+ "noUnreachable": "error",
81
+ "noUnreachableSuper": "error",
82
+ "noUnsafeFinally": "error",
83
+ "noUnsafeOptionalChaining": "error",
84
+ "useIsNan": "error",
85
+ "useJsxKeyInIterable": "error",
86
+ "useSingleJsDocAsterisk": "error",
87
+ "useValidForDirection": "error",
88
+ "useValidTypeof": "error",
89
+ "noReactPropAssignments": "error",
90
+ "noConstructorReturn": "error",
91
+ "noInvalidGridAreas": "warn",
92
+ "noInvalidUseBeforeDeclaration": "error",
93
+ "noVoidTypeReturn": "error"
94
+ },
95
+ "style": {
96
+ "noImplicitBoolean": "warn",
97
+ "noInferrableTypes": "error",
98
+ "noNamespace": "error",
99
+ "noUnusedTemplateLiteral": "warn",
100
+ "noYodaExpression": "error",
101
+ "useConsistentArrayType": {
102
+ "level": "error",
103
+ "options": {
104
+ "syntax": "shorthand"
105
+ }
106
+ },
107
+ "useArrayLiterals": "error",
108
+ "useAsConstAssertion": "error",
109
+ "useConsistentCurlyBraces": "warn",
110
+ "useConst": "warn",
111
+ "useBlockStatements": "off",
112
+ "useDeprecatedReason": "error",
113
+ "useExportType": "warn",
114
+ "useFragmentSyntax": "error",
115
+ "useImportType": "error",
116
+ "useNodejsImportProtocol": "error",
117
+ "useShorthandAssign": "warn",
118
+ "useTemplate": "error",
119
+ "useThrowNewError": "warn",
120
+ "useObjectSpread": "error",
121
+ "useGroupedAccessorPairs": "error",
122
+ "useNamingConvention": "warn",
123
+ "useReadonlyClassProperties": "warn",
124
+ "noDefaultExport": "warn",
125
+ "noDoneCallback": "warn",
126
+ "noNonNullAssertion": "warn",
127
+ "useThrowOnlyError": "warn",
128
+ "noSubstr": "warn",
129
+ "useDefaultSwitchClause": "warn"
130
+ },
131
+ "suspicious": {
132
+ "noArrayIndexKey": "warn",
133
+ "noAsyncPromiseExecutor": "error",
134
+ "noCatchAssign": "error",
135
+ "noClassAssign": "error",
136
+ "noCommentText": "error",
137
+ "noCompareNegZero": "error",
138
+ "noConstantBinaryExpressions": "warn",
139
+ "noControlCharactersInRegex": "error",
140
+ "noDoubleEquals": "error",
141
+ "noDebugger": "error",
142
+ "noDuplicateCase": "error",
143
+ "noDuplicateClassMembers": "error",
144
+ "noDuplicateElseIf": "error",
145
+ "noDuplicateJsxProps": "error",
146
+ "noDuplicateObjectKeys": "warn",
147
+ "noDuplicateParameters": "error",
148
+ "noEmptyBlockStatements": "error",
149
+ "noExplicitAny": "error",
150
+ "noExtraNonNullAssertion": "error",
151
+ "noFallthroughSwitchClause": "error",
152
+ "noFunctionAssign": "error",
153
+ "noGlobalAssign": "error",
154
+ "noImplicitAnyLet": "warn",
155
+ "noImportAssign": "error",
156
+ "noIrregularWhitespace": "error",
157
+ "noMisleadingCharacterClass": "error",
158
+ "noMisleadingInstantiator": "error",
159
+ "noPrototypeBuiltins": "error",
160
+ "noRedeclare": "error",
161
+ "noShadowRestrictedNames": "error",
162
+ "noSparseArray": "error",
163
+ "noSuspiciousSemicolonInJsx": "warn",
164
+ "noUnsafeDeclarationMerging": "error",
165
+ "noUnsafeNegation": "error",
166
+ "noVar": "error",
167
+ "noWith": "error",
168
+ "useGetterReturn": "error",
169
+ "useIsArray": "warn",
170
+ "noUnassignedVariables": "warn",
171
+ "noGlobalIsNan": "error",
172
+ "noGlobalIsFinite": "error",
173
+ "useErrorMessage": "warn"
174
+ },
175
+ "a11y": {
176
+ "recommended": true,
177
+ "noRedundantAlt": "error",
178
+ "noStaticElementInteractions": "error",
179
+ "useAltText": "error",
180
+ "useValidLang": "error"
181
+ },
182
+ "performance": {
183
+ "noAwaitInLoops": "warn",
184
+ "useTopLevelRegex": "info",
185
+ "noAccumulatingSpread": "warn",
186
+ "noDelete": "warn"
187
+ },
188
+ "security": {
189
+ "noBlankTarget": "error",
190
+ "noDangerouslySetInnerHtmlWithChildren": "error",
191
+ "noGlobalEval": "error",
192
+ "noDangerouslySetInnerHtml": "warn"
193
+ },
194
+ "nursery": {
195
+ "noFloatingPromises": "warn",
196
+ "useSortedClasses": "warn",
197
+ "noUselessUndefined": "warn",
198
+ "useExhaustiveSwitchCases": "warn",
199
+ "noImportCycles": "error",
200
+ "noDeprecatedImports": "warn",
201
+ "noNextAsyncClientComponent": "error",
202
+ "noSecrets": "warn",
203
+ "noShadow": "warn",
204
+ "noMisusedPromises": "warn",
205
+ "noUnnecessaryConditions": "warn",
206
+ "noUnresolvedImports": "warn",
207
+ "useAnchorHref": "warn",
208
+ "useImageSize": "warn",
209
+ "noUselessCatchBinding": "warn",
210
+ "useReactFunctionComponents": "warn"
211
+ }
212
+ }
213
+ },
214
+ "javascript": {
215
+ "formatter": {
216
+ "jsxQuoteStyle": "double",
217
+ "quoteProperties": "asNeeded",
218
+ "trailingCommas": "all",
219
+ "semicolons": "asNeeded",
220
+ "arrowParentheses": "always",
221
+ "bracketSameLine": false,
222
+ "quoteStyle": "double",
223
+ "attributePosition": "auto",
224
+ "bracketSpacing": true,
225
+ "indentStyle": "space",
226
+ "indentWidth": 2,
227
+ "lineEnding": "lf",
228
+ "lineWidth": 80,
229
+ "enabled": true,
230
+ "expand": "auto",
231
+ "operatorLinebreak": "after"
232
+ },
233
+ "globals": ["exports", "React", "JSX"],
234
+ "linter": {
235
+ "enabled": true
236
+ },
237
+ "parser": {
238
+ "jsxEverywhere": false,
239
+ "unsafeParameterDecoratorsEnabled": true,
240
+ "gritMetavariables": true
241
+ },
242
+ "assist": {
243
+ "enabled": true
244
+ },
245
+ "jsxRuntime": "transparent"
246
+ },
247
+ "html": {
248
+ "parser": {
249
+ "interpolation": true
250
+ },
251
+ "formatter": {
252
+ "enabled": true,
253
+ "selfCloseVoidElements": "always",
254
+ "lineEnding": "lf",
255
+ "lineWidth": 80,
256
+ "indentStyle": "space",
257
+ "indentWidth": 2,
258
+ "whitespaceSensitivity": "css"
259
+ }
260
+ },
261
+ "css": {
262
+ "formatter": {
263
+ "enabled": true,
264
+ "lineWidth": 80,
265
+ "indentStyle": "space",
266
+ "indentWidth": 2,
267
+ "lineEnding": "lf",
268
+ "quoteStyle": "double"
269
+ },
270
+ "linter": {
271
+ "enabled": true
272
+ },
273
+ "assist": {
274
+ "enabled": true
275
+ },
276
+ "parser": {
277
+ "cssModules": true
278
+ },
279
+ "globals": []
280
+ },
281
+ "json": {
282
+ "parser": {
283
+ "allowComments": true,
284
+ "allowTrailingCommas": false
285
+ },
286
+ "assist": {
287
+ "enabled": true
288
+ },
289
+ "linter": {
290
+ "enabled": true
291
+ },
292
+ "formatter": {
293
+ "enabled": true,
294
+ "lineWidth": 80,
295
+ "indentStyle": "space",
296
+ "indentWidth": 2,
297
+ "lineEnding": "lf"
298
+ }
299
+ },
300
+ "assist": {
301
+ "enabled": true,
302
+ "actions": {
303
+ "source": {
304
+ "organizeImports": {
305
+ "level": "on",
306
+ "options": {
307
+ "identifierOrder": "natural",
308
+ "groups": [
309
+ ":URL:",
310
+ ":NODE:",
311
+ ":PACKAGE:",
312
+ ":ALIAS:",
313
+ { "type": false },
314
+ ":PATH:"
315
+ ]
316
+ }
317
+ },
318
+ "useSortedAttributes": "on",
319
+ "useSortedProperties": "on",
320
+ "useSortedKeys": "on"
321
+ }
322
+ }
323
+ },
324
+ "plugins": [],
325
+ "overrides": [
326
+ {
327
+ "includes": [
328
+ "**",
329
+ "!.*.js",
330
+ "!node_modules/",
331
+ "!dist/",
332
+ "!build/",
333
+ "!out/"
334
+ ]
335
+ }
336
+ ]
337
+ }
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "@tilli-pro/biome",
3
+ "version": "0.1.0",
4
+ "files": [
5
+ "biome.json"
6
+ ],
7
+ "exports": {
8
+ "default": "./biome.json"
9
+ },
10
+ "peerDependencies": {
11
+ "@biomejs/biome": "latest"
12
+ }
13
+ }