adamantite 0.17.0 → 0.18.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.
@@ -1,439 +0,0 @@
1
- {
2
- "$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
3
- "root": false,
4
-
5
- // ------------------------------ ASSIST ------------------------------
6
- // Help with code organization.
7
- "assist": {
8
- "enabled": true,
9
-
10
- "actions": {
11
- "source": {
12
- "organizeImports": "off",
13
- // Enforce that the attributes of a JSX element are sorted.
14
- "useSortedAttributes": "on",
15
- // Enforce that CSS properties are sorted.
16
- "useSortedProperties": "on",
17
- // Don't sort the keys of an object.
18
- "useSortedKeys": "off",
19
- },
20
- },
21
- },
22
-
23
- // ------------------------------ LINTER ------------------------------
24
-
25
- "linter": {
26
- "enabled": true,
27
- "rules": {
28
- "a11y": {
29
- // ----------------------- JavaScript ------------------------
30
- "noAccessKey": "error",
31
- "noAriaHiddenOnFocusable": "error",
32
- "noAriaUnsupportedElements": "error",
33
- "noAutofocus": "error",
34
- "noDistractingElements": "error",
35
- "noHeaderScope": "error",
36
- "noInteractiveElementToNoninteractiveRole": "error",
37
- "noLabelWithoutControl": "error",
38
- "noNoninteractiveElementInteractions": "error",
39
- "noNoninteractiveElementToInteractiveRole": "error",
40
- "noNoninteractiveTabindex": "error",
41
- "noPositiveTabindex": "error",
42
- "noRedundantAlt": "error",
43
- "noRedundantRoles": "error",
44
- "noStaticElementInteractions": "error",
45
- "noSvgWithoutTitle": "error",
46
- "useAltText": "error",
47
- "useAnchorContent": "error",
48
- "useAriaActivedescendantWithTabindex": "error",
49
- "useAriaPropsForRole": "error",
50
- "useAriaPropsSupportedByRole": "error",
51
- "useButtonType": "error",
52
- "useFocusableInteractive": "error",
53
- "useHeadingContent": "error",
54
- "useHtmlLang": "error",
55
- "useIframeTitle": "error",
56
- "useKeyWithClickEvents": "error",
57
- "useKeyWithMouseEvents": "error",
58
- "useMediaCaption": "error",
59
- "useSemanticElements": "error",
60
- "useValidAnchor": "error",
61
- "useValidAriaProps": "error",
62
- "useValidAriaRole": "error",
63
- "useValidAriaValues": "error",
64
- "useValidAutocomplete": "error",
65
- "useValidLang": "error",
66
-
67
- // --------------------------- CSS ---------------------------
68
- "useGenericFontNames": "error",
69
- },
70
- "complexity": {
71
- // ----------------------- JavaScript ------------------------
72
- "noAdjacentSpacesInRegex": "error",
73
- "noArguments": "error",
74
- "noBannedTypes": "error",
75
- "noCommaOperator": "error",
76
- "noEmptyTypeParameters": "error",
77
- "noExtraBooleanCast": "error",
78
- "noExcessiveCognitiveComplexity": {
79
- "level": "warn",
80
- "options": {
81
- "maxAllowedComplexity": 40,
82
- },
83
- },
84
- "noExcessiveNestedTestSuites": "error",
85
- "noStaticOnlyClass": "error",
86
- "noThisInStatic": "error",
87
- "noUselessContinue": "error",
88
- "noUselessEmptyExport": "error",
89
- "noUselessEscapeInRegex": "error",
90
- "noUselessFragments": "error",
91
- "noUselessLabel": "error",
92
- "noUselessLoneBlockStatements": "error",
93
- "noUselessRename": "error",
94
- "noUselessStringConcat": "error",
95
- "noUselessStringRaw": "error",
96
- "noUselessSwitchCase": "error",
97
- "noUselessTernary": "error",
98
- "noUselessThisAlias": "error",
99
- "noUselessTypeConstraint": "error",
100
- "noUselessUndefinedInitialization": "error",
101
- "useArrowFunction": "error",
102
- "useDateNow": "error",
103
- "useFlatMap": "error",
104
- "useIndexOf": "error",
105
- "useLiteralKeys": "error",
106
- "useNumericLiterals": "error",
107
- "useOptionalChain": "error",
108
- "useRegexLiterals": "error",
109
- "useSimpleNumberKeys": "error",
110
- "useSimplifiedLogicExpression": "error",
111
- "useWhile": "error",
112
-
113
- // --------------------------- CSS ---------------------------
114
- "noImportantStyles": "error",
115
- },
116
- "correctness": {
117
- // ----------------------- JavaScript ------------------------
118
- "noChildrenProp": "error",
119
- "noConstantCondition": "error",
120
- "noConstantMathMinMaxClamp": "error",
121
- "noConstAssign": "error",
122
- "noConstructorReturn": "error",
123
- "noEmptyCharacterClassInRegex": "error",
124
- "noEmptyPattern": "error",
125
- "noGlobalDirnameFilename": "error",
126
- "noGlobalObjectCalls": "error",
127
- "noInnerDeclarations": "error",
128
- "noInvalidBuiltinInstantiation": "error",
129
- "noInvalidConstructorSuper": "error",
130
- "noInvalidUseBeforeDeclaration": "error",
131
- "noNestedComponentDefinitions": "error",
132
- "noNodejsModules": "off",
133
- "noNonoctalDecimalEscape": "error",
134
- "noPrecisionLoss": "error",
135
- "noPrivateImports": "error",
136
- "noProcessGlobal": "off",
137
- "noRenderReturnValue": "error",
138
- "noSelfAssign": "error",
139
- "noSetterReturn": "error",
140
- "noStringCaseMismatch": "error",
141
- "noSwitchDeclarations": "error",
142
- "noUndeclaredVariables": "error",
143
- "noUnreachable": "error",
144
- "noUnreachableSuper": "error",
145
- "noUnsafeFinally": "error",
146
- "noUnsafeOptionalChaining": "error",
147
- "noUnusedFunctionParameters": "error",
148
- "noUnusedImports": "error",
149
- "noUnusedLabels": "error",
150
- "noUnusedPrivateClassMembers": "error",
151
- "noUnusedVariables": "error",
152
- "noVoidElementsWithChildren": "error",
153
- "noVoidTypeReturn": "error",
154
- "useExhaustiveDependencies": "error",
155
- "useHookAtTopLevel": "error",
156
- "useImageSize": "error",
157
- "useIsNan": "error",
158
- "useJsonImportAttributes": "error",
159
- "useJsxKeyInIterable": "error",
160
- "useParseIntRadix": "error",
161
- "useSingleJsDocAsterisk": "error",
162
- "useUniqueElementIds": "error",
163
- "useValidForDirection": "error",
164
- "useValidTypeof": "error",
165
- "useYield": "error",
166
-
167
- // --------------------------- CSS ---------------------------
168
- "noInvalidDirectionInLinearGradient": "error",
169
- "noInvalidGridAreas": "error",
170
- "noInvalidPositionAtImportRule": "error",
171
- "noMissingVarFunction": "error",
172
- "noReactPropAssignments": "error",
173
- "noRestrictedElements": "error",
174
- "noUnknownFunction": "error",
175
- "noUnknownMediaFeatureName": "error",
176
- "noUnknownProperty": "error",
177
- "noUnknownPseudoClass": "error",
178
- "noUnknownPseudoElement": "error",
179
- "noUnknownTypeSelector": "error",
180
- "noUnknownUnit": "error",
181
- "noUnmatchableAnbSelector": "error",
182
- },
183
- "nursery": {
184
- // ----------------------- JavaScript ------------------------
185
- "noFloatingPromises": "error",
186
- "noMisusedPromises": "error",
187
- "noReactForwardRef": "error",
188
- "noShadow": "error",
189
- "noUnnecessaryConditions": "error",
190
- "noUselessUndefined": "error",
191
- "useExhaustiveSwitchCases": "error",
192
- "useConsistentArrowReturn": "error",
193
- "useSortedClasses": {
194
- "fix": "safe",
195
- "level": "error",
196
- "options": {
197
- "attributes": ["className"],
198
- "functions": ["clsx", "cva", "tw", "twMerge", "cn", "twJoin", "tv"],
199
- },
200
- },
201
- },
202
- "performance": {
203
- // ----------------------- JavaScript ------------------------
204
- "noAccumulatingSpread": "error",
205
- "noAwaitInLoops": "error",
206
- "noDelete": "error",
207
- "noDynamicNamespaceImportAccess": "error",
208
- "useTopLevelRegex": "error",
209
- "noUnwantedPolyfillio": "error",
210
- "useGoogleFontPreconnect": "error",
211
- },
212
- "security": {
213
- // ----------------------- JavaScript ------------------------
214
- "noBlankTarget": "error",
215
- "noDangerouslySetInnerHtml": "error",
216
- "noDangerouslySetInnerHtmlWithChildren": "error",
217
- "noGlobalEval": "error",
218
- },
219
- "style": {
220
- // ----------------------- JavaScript ------------------------
221
- "noDoneCallback": "error",
222
- "noEnum": "error",
223
- "noExportedImports": "error",
224
- "noImplicitBoolean": "off",
225
- "noInferrableTypes": "error",
226
- "noNamespace": "error",
227
- "noNegationElse": "error",
228
- "noNonNullAssertion": "error",
229
- "noParameterAssign": "error",
230
- "noParameterProperties": "error",
231
- "noRestrictedGlobals": "error",
232
- "noRestrictedImports": "error",
233
- "noRestrictedTypes": "error",
234
- "noShoutyConstants": "error",
235
- "noSubstr": "error",
236
- "noUnusedTemplateLiteral": "error",
237
- "noUselessElse": "error",
238
- "noYodaExpression": "error",
239
- "useArrayLiterals": "error",
240
- "useAsConstAssertion": "error",
241
- "useAtIndex": "error",
242
- "useBlockStatements": "error",
243
- "useCollapsedElseIf": "error",
244
- "useCollapsedIf": "error",
245
- "useConsistentArrayType": "error",
246
- "useConsistentBuiltinInstantiation": "error",
247
- "useConsistentCurlyBraces": "off",
248
- "useConsistentMemberAccessibility": "error",
249
- "useConst": "error",
250
- "useDefaultParameterLast": "error",
251
- "useDefaultSwitchClause": "error",
252
- "useEnumInitializers": "error",
253
- "useExplicitLengthCheck": "error",
254
- "useExponentiationOperator": "error",
255
- "useExportType": "error",
256
- "useFilenamingConvention": {
257
- "level": "error",
258
- "options": {
259
- "filenameCases": ["kebab-case"],
260
- "requireAscii": false,
261
- "match": "[+_\\-\\[]*[a-z0-9]+[a-z0-9\\-_.\\$\\[\\]]*[.][a-z]+",
262
- },
263
- },
264
- "useConsistentObjectDefinitions": "error",
265
- "useForOf": "error",
266
- "useFragmentSyntax": "error",
267
- "useGroupedAccessorPairs": "error",
268
- "useImportType": "error",
269
- "useLiteralEnumMembers": "error",
270
- "useNodeAssertStrict": "error",
271
- "useNodejsImportProtocol": "error",
272
- "useNumberNamespace": "error",
273
- "useNumericSeparators": "error",
274
- "useObjectSpread": "error",
275
- "useReactFunctionComponents": "error",
276
- "useSelfClosingElements": "error",
277
- "useShorthandAssign": "error",
278
- "useShorthandFunctionType": "error",
279
- "useSingleVarDeclarator": "error",
280
- "useSymbolDescription": "error",
281
- "useTemplate": "error",
282
- "useThrowNewError": "error",
283
- "useThrowOnlyError": "error",
284
- "useTrimStartEnd": "error",
285
-
286
- // --------------------------- CSS ---------------------------
287
- "noDescendingSpecificity": "error",
288
- "noValueAtRule": "error",
289
- },
290
- "suspicious": {
291
- "noApproximativeNumericConstant": "error",
292
- "noArrayIndexKey": "error",
293
- "noAssignInExpressions": "error",
294
- "noAsyncPromiseExecutor": "error",
295
- "noBitwiseOperators": "error",
296
- "noCatchAssign": "error",
297
- "noClassAssign": "error",
298
- "noCommentText": "error",
299
- "noCompareNegZero": "error",
300
- "noConfusingLabels": "error",
301
- "noConfusingVoidType": "error",
302
- // Warn for the use of console to avoid accidental logging. Prefer a dedicated logger.
303
- "noConsole": "warn",
304
- "noConstantBinaryExpressions": "error",
305
- "noConstEnum": "error",
306
- "noControlCharactersInRegex": "error",
307
- "noDebugger": "error",
308
- "noDocumentCookie": "error",
309
- "noDocumentImportInPage": "error",
310
- "noDoubleEquals": "error",
311
- "noDuplicateCase": "error",
312
- "noDuplicateClassMembers": "error",
313
- "noDuplicateElseIf": "error",
314
- "noDuplicateJsxProps": "error",
315
- "noDuplicateObjectKeys": "error",
316
- "noDuplicateParameters": "error",
317
- "noDuplicateTestHooks": "error",
318
- "noEmptyBlockStatements": "error",
319
- "noEmptyInterface": "error",
320
- "noEvolvingTypes": "error",
321
- "noExplicitAny": "error",
322
- "noExportsInTest": "error",
323
- "noExtraNonNullAssertion": "error",
324
- "noFallthroughSwitchClause": "error",
325
- "noFocusedTests": "error",
326
- "noFunctionAssign": "error",
327
- "noGlobalAssign": "error",
328
- "noGlobalIsFinite": "error",
329
- "noGlobalIsNan": "error",
330
- "noImplicitAnyLet": "error",
331
- "noImportAssign": "error",
332
- "noIrregularWhitespace": "error",
333
- "noLabelVar": "error",
334
- "noMisleadingCharacterClass": "error",
335
- "noMisleadingInstantiator": "error",
336
- "noMisplacedAssertion": "error",
337
- "noMisrefactoredShorthandAssign": "error",
338
- "noOctalEscape": "error",
339
- "noPrototypeBuiltins": "error",
340
- "noNonNullAssertedOptionalChain": "error",
341
- // Disabling to allow passing specific props (like `className`) from
342
- // parent to child components
343
- "noReactSpecificProps": "off",
344
- "noRedeclare": "error",
345
- "noRedundantUseStrict": "error",
346
- "noSelfCompare": "error",
347
- "noShadowRestrictedNames": "error",
348
- "noSkippedTests": "error",
349
- "noSparseArray": "error",
350
- "noSuspiciousSemicolonInJsx": "error",
351
- "noTemplateCurlyInString": "error",
352
- "noThenProperty": "error",
353
- "noTsIgnore": "error",
354
- "noUnsafeDeclarationMerging": "error",
355
- "noUnsafeNegation": "error",
356
- "noUselessEscapeInString": "error",
357
- "noUselessRegexBackrefs": "error",
358
- "noVar": "error",
359
- "noWith": "error",
360
- "useAdjacentOverloadSignatures": "error",
361
- "useAwait": "error",
362
- "useDefaultSwitchClauseLast": "error",
363
- "useErrorMessage": "error",
364
- "useGetterReturn": "error",
365
- "useGoogleFontDisplay": "error",
366
- "useGuardForIn": "error",
367
- "useIsArray": "error",
368
- "useIterableCallbackReturn": "error",
369
- "useNamespaceKeyword": "error",
370
- "useNumberToFixedDigitsArgument": "error",
371
- "useStaticResponseMethods": "error",
372
- "useStrictMode": "error",
373
-
374
- // --------------------------- CSS ---------------------------
375
- "noDuplicateAtImportRules": "error",
376
- "noDuplicateCustomProperties": "error",
377
- "noDuplicateFontNames": "error",
378
- "noDuplicateProperties": "error",
379
- "noDuplicateSelectorsKeyframeBlock": "error",
380
- "noEmptyBlock": "error",
381
- "noImportantInKeyframe": "error",
382
- "noShorthandPropertyOverrides": "error",
383
- "noUnknownAtRules": "error",
384
-
385
- // --------------------------- JSON ---------------------------
386
- "noBiomeFirstException": "error",
387
- "noQuickfixBiome": "error",
388
- "useBiomeIgnoreFolder": "error",
389
- },
390
- },
391
- },
392
- "javascript": {
393
- "formatter": {
394
- "enabled": false,
395
- },
396
- },
397
- // ------------------------------- CSS -------------------------------
398
- "css": {
399
- "formatter": {
400
- "enabled": false,
401
- },
402
- "parser": {
403
- "allowWrongLineComments": false,
404
- "cssModules": false,
405
- "tailwindDirectives": true,
406
- },
407
- },
408
- // ------------------------------ JSON -------------------------------
409
- "json": {
410
- "assist": {
411
- "enabled": false,
412
- },
413
- "formatter": {
414
- "enabled": false,
415
- },
416
- "linter": {
417
- "enabled": true,
418
- },
419
- },
420
- "html": {
421
- "assist": {
422
- "enabled": true,
423
- },
424
- "experimentalFullSupportEnabled": true,
425
- "linter": {
426
- "enabled": true,
427
- },
428
- "parser": {
429
- "interpolation": true,
430
- },
431
- },
432
- "vcs": {
433
- "enabled": true,
434
-
435
- "clientKind": "git",
436
- "defaultBranch": "main",
437
- "useIgnoreFile": true,
438
- },
439
- }