@neosianexus/quality 1.0.0-beta.5

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/biome.json ADDED
@@ -0,0 +1,639 @@
1
+ {
2
+ "$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
3
+ "vcs": {
4
+ "enabled": true,
5
+ "clientKind": "git",
6
+ "useIgnoreFile": true,
7
+ "defaultBranch": "main"
8
+ },
9
+ "assist": { "actions": { "source": { "organizeImports": "on" } } },
10
+ "formatter": {
11
+ "enabled": true,
12
+ "indentStyle": "tab",
13
+ "indentWidth": 2,
14
+ "lineWidth": 100,
15
+ "lineEnding": "lf",
16
+ "formatWithErrors": false,
17
+ "includes": [
18
+ "**",
19
+ "!**/node_modules/**",
20
+ "!**/.next/**",
21
+ "!**/dist/**",
22
+ "!**/build/**",
23
+ "!**/coverage/**",
24
+ "!**/.git/**",
25
+ "!**/pnpm-lock.yaml",
26
+ "!**/package-lock.json",
27
+ "!**/bun.lockb",
28
+ "!bin/**/*.js"
29
+ ]
30
+ },
31
+ "javascript": {
32
+ "jsxRuntime": "reactClassic",
33
+ "formatter": {
34
+ "quoteStyle": "double",
35
+ "jsxQuoteStyle": "double",
36
+ "semicolons": "always",
37
+ "trailingCommas": "all",
38
+ "quoteProperties": "asNeeded",
39
+ "arrowParentheses": "always",
40
+ "bracketSpacing": true,
41
+ "bracketSameLine": false
42
+ },
43
+ "parser": {
44
+ "unsafeParameterDecoratorsEnabled": true
45
+ }
46
+ },
47
+ "json": {
48
+ "formatter": {
49
+ "trailingCommas": "none"
50
+ },
51
+ "parser": {
52
+ "allowComments": true,
53
+ "allowTrailingCommas": true
54
+ }
55
+ },
56
+ "css": {
57
+ "parser": {
58
+ "cssModules": true,
59
+ "tailwindDirectives": true
60
+ }
61
+ },
62
+ "linter": {
63
+ "enabled": true,
64
+ "rules": {
65
+ "recommended": true,
66
+ "a11y": {
67
+ "recommended": true,
68
+ "noAccessKey": "error",
69
+ "noAriaHiddenOnFocusable": "error",
70
+ "noAriaUnsupportedElements": "error",
71
+ "noAutofocus": "error",
72
+ "noDistractingElements": "error",
73
+ "noHeaderScope": "error",
74
+ "noInteractiveElementToNoninteractiveRole": "error",
75
+ "noLabelWithoutControl": "error",
76
+ "noNoninteractiveElementInteractions": "error",
77
+ "noNoninteractiveElementToInteractiveRole": "error",
78
+ "noNoninteractiveTabindex": "error",
79
+ "noPositiveTabindex": "error",
80
+ "noRedundantAlt": "error",
81
+ "noRedundantRoles": "error",
82
+ "noStaticElementInteractions": "error",
83
+ "noSvgWithoutTitle": "error",
84
+ "useAltText": "error",
85
+ "useAnchorContent": "error",
86
+ "useAriaActivedescendantWithTabindex": "error",
87
+ "useAriaPropsForRole": "error",
88
+ "useAriaPropsSupportedByRole": "error",
89
+ "useButtonType": "error",
90
+ "useFocusableInteractive": "error",
91
+ "useHeadingContent": "error",
92
+ "useHtmlLang": "error",
93
+ "useIframeTitle": "error",
94
+ "useKeyWithClickEvents": "error",
95
+ "useKeyWithMouseEvents": "error",
96
+ "useMediaCaption": "error",
97
+ "useSemanticElements": "error",
98
+ "useValidAnchor": "error",
99
+ "useValidAriaProps": "error",
100
+ "useValidAriaRole": "error",
101
+ "useValidAriaValues": "error",
102
+ "useValidAutocomplete": "error",
103
+ "useValidLang": "error"
104
+ },
105
+ "complexity": {
106
+ "recommended": true,
107
+ "noAdjacentSpacesInRegex": "error",
108
+ "noArguments": "error",
109
+ "noBannedTypes": "error",
110
+ "noCommaOperator": "error",
111
+ "noEmptyTypeParameters": "error",
112
+ "noExcessiveCognitiveComplexity": {
113
+ "level": "error",
114
+ "options": { "maxAllowedComplexity": 15 }
115
+ },
116
+ "noExcessiveLinesPerFunction": {
117
+ "level": "warn",
118
+ "options": { "maxLines": 100 }
119
+ },
120
+ "noExcessiveNestedTestSuites": "error",
121
+ "noExtraBooleanCast": "error",
122
+ "noFlatMapIdentity": "error",
123
+ "noForEach": "warn",
124
+ "noImplicitCoercions": "error",
125
+ "noStaticOnlyClass": "error",
126
+ "noThisInStatic": "error",
127
+ "noUselessCatch": "error",
128
+ "noUselessConstructor": "error",
129
+ "noUselessContinue": "error",
130
+ "noUselessEmptyExport": "error",
131
+ "noUselessEscapeInRegex": "error",
132
+ "noUselessFragments": "error",
133
+ "noUselessLabel": "error",
134
+ "noUselessLoneBlockStatements": "error",
135
+ "noUselessRename": "error",
136
+ "noUselessStringConcat": "error",
137
+ "noUselessStringRaw": "error",
138
+ "noUselessSwitchCase": "error",
139
+ "noUselessTernary": "error",
140
+ "noUselessThisAlias": "error",
141
+ "noUselessTypeConstraint": "error",
142
+ "noUselessUndefinedInitialization": "error",
143
+ "noVoid": "error",
144
+ "useArrowFunction": "error",
145
+ "useDateNow": "error",
146
+ "useFlatMap": "error",
147
+ "useIndexOf": "error",
148
+ "useLiteralKeys": "error",
149
+ "useNumericLiterals": "error",
150
+ "useOptionalChain": "error",
151
+ "useRegexLiterals": "error",
152
+ "useSimpleNumberKeys": "error",
153
+ "useSimplifiedLogicExpression": "error",
154
+ "useWhile": "error"
155
+ },
156
+ "correctness": {
157
+ "recommended": true,
158
+ "noChildrenProp": "error",
159
+ "noConstAssign": "error",
160
+ "noConstantCondition": "error",
161
+ "noConstantMathMinMaxClamp": "error",
162
+ "noConstructorReturn": "error",
163
+ "noEmptyCharacterClassInRegex": "error",
164
+ "noEmptyPattern": "error",
165
+ "noGlobalDirnameFilename": "error",
166
+ "noGlobalObjectCalls": "error",
167
+ "noInnerDeclarations": "error",
168
+ "noInvalidBuiltinInstantiation": "error",
169
+ "noInvalidConstructorSuper": "error",
170
+ "noInvalidUseBeforeDeclaration": "error",
171
+ "noNodejsModules": "off",
172
+ "noNonoctalDecimalEscape": "error",
173
+ "noPrecisionLoss": "error",
174
+ "noReactPropAssignments": "error",
175
+ "noRenderReturnValue": "error",
176
+ "noRestrictedElements": "off",
177
+ "noSelfAssign": "error",
178
+ "noSetterReturn": "error",
179
+ "noStringCaseMismatch": "error",
180
+ "noSwitchDeclarations": "error",
181
+ "noUndeclaredDependencies": "error",
182
+ "noUndeclaredVariables": "error",
183
+ "noUnreachable": "error",
184
+ "noUnreachableSuper": "error",
185
+ "noUnsafeFinally": "error",
186
+ "noUnsafeOptionalChaining": "error",
187
+ "noUnusedFunctionParameters": "error",
188
+ "noUnusedImports": "error",
189
+ "noUnusedLabels": "error",
190
+ "noUnusedPrivateClassMembers": "error",
191
+ "noUnusedVariables": "error",
192
+ "noVoidElementsWithChildren": "error",
193
+ "noVoidTypeReturn": "error",
194
+ "useExhaustiveDependencies": "error",
195
+ "useHookAtTopLevel": "error",
196
+ "useImportExtensions": "off",
197
+ "useIsNan": "error",
198
+ "useJsxKeyInIterable": "error",
199
+ "useParseIntRadix": "error",
200
+ "useValidForDirection": "error",
201
+ "useValidTypeof": "error",
202
+ "useYield": "error"
203
+ },
204
+ "nursery": {
205
+ "noAmbiguousAnchorText": "error",
206
+ "noBeforeInteractiveScriptOutsideDocument": "error",
207
+ "noContinue": "warn",
208
+ "noDeprecatedImports": "error",
209
+ "noDivRegex": "error",
210
+ "noDuplicateEnumValues": "error",
211
+ "noDuplicatedSpreadProps": "error",
212
+ "noEmptySource": "error",
213
+ "noEqualsToNull": "error",
214
+ "noExcessiveClassesPerFile": {
215
+ "level": "warn",
216
+ "options": { "maxClasses": 3 }
217
+ },
218
+ "noExcessiveLinesPerFile": {
219
+ "level": "warn",
220
+ "options": { "maxLines": 500 }
221
+ },
222
+ "noFloatingClasses": "error",
223
+ "noFloatingPromises": "error",
224
+ "noForIn": "error",
225
+ "noImportCycles": "error",
226
+ "noIncrementDecrement": "off",
227
+ "noJsxLiterals": "off",
228
+ "noJsxPropsBind": "warn",
229
+ "noLeakedRender": "error",
230
+ "noMisusedPromises": "error",
231
+ "noMultiAssign": "error",
232
+ "noMultiStr": "error",
233
+ "noNextAsyncClientComponent": "error",
234
+ "noParametersOnlyUsedInRecursion": "error",
235
+ "noProto": "error",
236
+ "noReactForwardRef": "warn",
237
+ "noReturnAssign": "error",
238
+ "noScriptUrl": "error",
239
+ "noShadow": "error",
240
+ "noSyncScripts": "error",
241
+ "noTernary": "off",
242
+ "noUnnecessaryConditions": "error",
243
+ "noUnknownAttribute": "error",
244
+ "noUnresolvedImports": "error",
245
+ "noUnusedExpressions": "error",
246
+ "noUselessCatchBinding": "error",
247
+ "noUselessUndefined": "error",
248
+ "useArraySortCompare": "error",
249
+ "useAwaitThenable": "error",
250
+ "useConsistentArrowReturn": "error",
251
+ "useConsistentEnumValueType": "error",
252
+ "useDestructuring": "warn",
253
+ "useErrorCause": "warn",
254
+ "useExhaustiveSwitchCases": "error",
255
+ "useExplicitType": "warn",
256
+ "useFind": "error",
257
+ "useInlineScriptId": "error",
258
+ "useMaxParams": {
259
+ "level": "error",
260
+ "options": { "max": 4 }
261
+ },
262
+ "useRegexpExec": "error",
263
+ "useSortedClasses": "error",
264
+ "useSpread": "error"
265
+ },
266
+ "performance": {
267
+ "recommended": true,
268
+ "noAccumulatingSpread": "error",
269
+ "noAwaitInLoops": "warn",
270
+ "noBarrelFile": "warn",
271
+ "noDelete": "error",
272
+ "noDynamicNamespaceImportAccess": "error",
273
+ "noImgElement": "error",
274
+ "noNamespaceImport": "warn",
275
+ "noReExportAll": "warn",
276
+ "noUnwantedPolyfillio": "error",
277
+ "useGoogleFontPreconnect": "error",
278
+ "useTopLevelRegex": "error"
279
+ },
280
+ "security": {
281
+ "recommended": true,
282
+ "noBlankTarget": "error",
283
+ "noDangerouslySetInnerHtml": "error",
284
+ "noDangerouslySetInnerHtmlWithChildren": "error",
285
+ "noGlobalEval": "error",
286
+ "noSecrets": "error"
287
+ },
288
+ "style": {
289
+ "recommended": true,
290
+ "noCommonJs": "error",
291
+ "noDefaultExport": "off",
292
+ "noDoneCallback": "error",
293
+ "noEnum": "warn",
294
+ "noExportedImports": "error",
295
+ "noHeadElement": "error",
296
+ "noImplicitBoolean": "error",
297
+ "noInferrableTypes": "error",
298
+ "noMagicNumbers": "off",
299
+ "noNamespace": "error",
300
+ "noNegationElse": "error",
301
+ "noNestedTernary": "error",
302
+ "noNonNullAssertion": "error",
303
+ "noParameterAssign": "error",
304
+ "noParameterProperties": "off",
305
+ "noRestrictedGlobals": "error",
306
+ "noRestrictedImports": "off",
307
+ "noRestrictedTypes": "off",
308
+ "noShoutyConstants": "warn",
309
+ "noSubstr": "error",
310
+ "noUnusedTemplateLiteral": "error",
311
+ "noUselessElse": "error",
312
+ "noYodaExpression": "error",
313
+ "useArrayLiterals": "error",
314
+ "useAsConstAssertion": "error",
315
+ "useAtIndex": "error",
316
+ "useBlockStatements": "error",
317
+ "useCollapsedElseIf": "error",
318
+ "useCollapsedIf": "error",
319
+ "useConsistentArrayType": {
320
+ "level": "error",
321
+ "options": { "syntax": "shorthand" }
322
+ },
323
+ "useConsistentBuiltinInstantiation": "error",
324
+ "useConsistentCurlyBraces": "error",
325
+ "useConsistentMemberAccessibility": {
326
+ "level": "error",
327
+ "options": { "accessibility": "noPublic" }
328
+ },
329
+ "useConsistentObjectDefinitions": "error",
330
+ "useConsistentTypeDefinitions": "error",
331
+ "useConst": "error",
332
+ "useDefaultParameterLast": "error",
333
+ "useDefaultSwitchClause": "error",
334
+ "useEnumInitializers": "error",
335
+ "useExplicitLengthCheck": "error",
336
+ "useExponentiationOperator": "error",
337
+ "useExportType": "error",
338
+ "useExportsLast": "error",
339
+ "useFilenamingConvention": {
340
+ "level": "error",
341
+ "options": {
342
+ "strictCase": false,
343
+ "filenameCases": ["camelCase", "PascalCase", "kebab-case"]
344
+ }
345
+ },
346
+ "useForOf": "error",
347
+ "useFragmentSyntax": "error",
348
+ "useGroupedAccessorPairs": "error",
349
+ "useImportType": "error",
350
+ "useLiteralEnumMembers": "error",
351
+ "useNamingConvention": {
352
+ "level": "error",
353
+ "options": {
354
+ "strictCase": false,
355
+ "conventions": [
356
+ {
357
+ "selector": { "kind": "variable" },
358
+ "formats": ["camelCase", "PascalCase", "CONSTANT_CASE"]
359
+ },
360
+ {
361
+ "selector": { "kind": "function" },
362
+ "formats": ["camelCase", "PascalCase"]
363
+ },
364
+ {
365
+ "selector": { "kind": "typeLike" },
366
+ "formats": ["PascalCase"]
367
+ },
368
+ {
369
+ "selector": { "kind": "enumMember" },
370
+ "formats": ["PascalCase", "CONSTANT_CASE"]
371
+ }
372
+ ]
373
+ }
374
+ },
375
+ "useNodeAssertStrict": "error",
376
+ "useNodejsImportProtocol": "error",
377
+ "useNumberNamespace": "error",
378
+ "useNumericSeparators": "error",
379
+ "useObjectSpread": "error",
380
+ "useReadonlyClassProperties": "warn",
381
+ "useSelfClosingElements": "error",
382
+ "useShorthandAssign": "error",
383
+ "useShorthandFunctionType": "error",
384
+ "useSingleVarDeclarator": "error",
385
+ "useSymbolDescription": "error",
386
+ "useTemplate": "error",
387
+ "useThrowNewError": "error",
388
+ "useThrowOnlyError": "error",
389
+ "useTrimStartEnd": "error",
390
+ "useUnifiedTypeSignatures": "error"
391
+ },
392
+ "suspicious": {
393
+ "recommended": true,
394
+ "noAlert": "error",
395
+ "noApproximativeNumericConstant": "error",
396
+ "noArrayIndexKey": "warn",
397
+ "noAssignInExpressions": "error",
398
+ "noAsyncPromiseExecutor": "error",
399
+ "noBitwiseOperators": "off",
400
+ "noCatchAssign": "error",
401
+ "noClassAssign": "error",
402
+ "noCommentText": "error",
403
+ "noCompareNegZero": "error",
404
+ "noConfusingLabels": "error",
405
+ "noConfusingVoidType": "error",
406
+ "noConsole": "warn",
407
+ "noConstEnum": "error",
408
+ "noConstantBinaryExpressions": "error",
409
+ "noControlCharactersInRegex": "error",
410
+ "noDebugger": "error",
411
+ "noDocumentCookie": "error",
412
+ "noDocumentImportInPage": "error",
413
+ "noDoubleEquals": "error",
414
+ "noDuplicateCase": "error",
415
+ "noDuplicateClassMembers": "error",
416
+ "noDuplicateElseIf": "error",
417
+ "noDuplicateJsxProps": "error",
418
+ "noDuplicateObjectKeys": "error",
419
+ "noDuplicateParameters": "error",
420
+ "noDuplicateTestHooks": "error",
421
+ "noEmptyBlockStatements": "error",
422
+ "noEmptyInterface": "error",
423
+ "noEvolvingTypes": "error",
424
+ "noExplicitAny": "error",
425
+ "noExportsInTest": "error",
426
+ "noExtraNonNullAssertion": "error",
427
+ "noFallthroughSwitchClause": "error",
428
+ "noFocusedTests": "error",
429
+ "noFunctionAssign": "error",
430
+ "noGlobalAssign": "error",
431
+ "noGlobalIsFinite": "error",
432
+ "noGlobalIsNan": "error",
433
+ "noHeadImportInDocument": "error",
434
+ "noImplicitAnyLet": "error",
435
+ "noImportAssign": "error",
436
+ "noIrregularWhitespace": "error",
437
+ "noLabelVar": "error",
438
+ "noMisleadingCharacterClass": "error",
439
+ "noMisleadingInstantiator": "error",
440
+ "noMisrefactoredShorthandAssign": "error",
441
+ "noOctalEscape": "error",
442
+ "noPrototypeBuiltins": "error",
443
+ "noReactSpecificProps": "off",
444
+ "noRedeclare": "error",
445
+ "noRedundantUseStrict": "error",
446
+ "noSelfCompare": "error",
447
+ "noShadowRestrictedNames": "error",
448
+ "noSkippedTests": "warn",
449
+ "noSparseArray": "error",
450
+ "noSuspiciousSemicolonInJsx": "error",
451
+ "noTemplateCurlyInString": "error",
452
+ "noThenProperty": "error",
453
+ "noUnsafeDeclarationMerging": "error",
454
+ "noUnsafeNegation": "error",
455
+ "noUnassignedVariables": "error",
456
+ "noVar": "error",
457
+ "noWith": "error",
458
+ "useAdjacentOverloadSignatures": "error",
459
+ "useAwait": "error",
460
+ "useDefaultSwitchClauseLast": "error",
461
+ "useErrorMessage": "error",
462
+ "useGetterReturn": "error",
463
+ "useGoogleFontDisplay": "error",
464
+ "useGuardForIn": "error",
465
+ "useIsArray": "error",
466
+ "useNamespaceKeyword": "error",
467
+ "useNumberToFixedDigitsArgument": "error",
468
+ "useStrictMode": "off"
469
+ }
470
+ }
471
+ },
472
+ "overrides": [
473
+ {
474
+ "includes": [
475
+ "**/*.config.ts",
476
+ "**/*.config.js",
477
+ "**/*.config.mjs",
478
+ "**/*.config.cjs",
479
+ "**/next.config.*",
480
+ "**/tailwind.config.*",
481
+ "**/postcss.config.*",
482
+ "**/vite.config.*",
483
+ "**/vitest.config.*",
484
+ "**/playwright.config.*",
485
+ "**/jest.config.*",
486
+ "**/tsconfig.json",
487
+ "**/tsconfig.*.json",
488
+ "**/drizzle.config.*",
489
+ "**/biome.json"
490
+ ],
491
+ "linter": {
492
+ "rules": {
493
+ "style": {
494
+ "noDefaultExport": "off",
495
+ "useNamingConvention": "off",
496
+ "useFilenamingConvention": "off",
497
+ "noCommonJs": "off"
498
+ },
499
+ "suspicious": {
500
+ "noConsole": "off"
501
+ },
502
+ "correctness": {
503
+ "noNodejsModules": "off"
504
+ },
505
+ "nursery": {
506
+ "noShadow": "off"
507
+ }
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "includes": [
513
+ "**/*.test.ts",
514
+ "**/*.test.tsx",
515
+ "**/*.spec.ts",
516
+ "**/*.spec.tsx",
517
+ "**/__tests__/**",
518
+ "**/__mocks__/**"
519
+ ],
520
+ "linter": {
521
+ "rules": {
522
+ "suspicious": {
523
+ "noExplicitAny": "warn",
524
+ "noSkippedTests": "warn",
525
+ "noFocusedTests": "error"
526
+ },
527
+ "complexity": {
528
+ "noExcessiveCognitiveComplexity": "off",
529
+ "noExcessiveNestedTestSuites": "warn"
530
+ },
531
+ "nursery": {
532
+ "noShadow": "off"
533
+ }
534
+ }
535
+ }
536
+ },
537
+ {
538
+ "includes": ["**/scripts/**", "**/bin/**", "**/cli/**"],
539
+ "linter": {
540
+ "rules": {
541
+ "suspicious": {
542
+ "noConsole": "off"
543
+ },
544
+ "correctness": {
545
+ "noNodejsModules": "off"
546
+ },
547
+ "nursery": {
548
+ "noUnresolvedImports": "off",
549
+ "noExcessiveLinesPerFile": "off",
550
+ "useExplicitType": "off",
551
+ "noUnnecessaryConditions": "off"
552
+ }
553
+ }
554
+ }
555
+ },
556
+ {
557
+ "includes": [
558
+ "**/app/**/page.tsx",
559
+ "**/app/**/layout.tsx",
560
+ "**/app/**/loading.tsx",
561
+ "**/app/**/error.tsx",
562
+ "**/app/**/not-found.tsx",
563
+ "**/app/**/template.tsx",
564
+ "**/app/**/default.tsx",
565
+ "**/app/**/route.ts",
566
+ "**/app/**/route.tsx",
567
+ "**/app/manifest.ts",
568
+ "**/app/sitemap.ts",
569
+ "**/app/robots.ts",
570
+ "**/app/opengraph-image.tsx",
571
+ "**/app/twitter-image.tsx",
572
+ "**/pages/**/*.tsx",
573
+ "**/pages/**/*.ts",
574
+ "**/middleware.ts",
575
+ "**/proxy.ts"
576
+ ],
577
+ "linter": {
578
+ "rules": {
579
+ "style": {
580
+ "noDefaultExport": "off"
581
+ },
582
+ "nursery": {
583
+ "noUnresolvedImports": "off",
584
+ "useExplicitType": "off"
585
+ }
586
+ }
587
+ }
588
+ },
589
+ {
590
+ "includes": ["**/commitlint.config.*"],
591
+ "linter": {
592
+ "rules": {
593
+ "style": {
594
+ "noDefaultExport": "off",
595
+ "noExportedImports": "off"
596
+ }
597
+ }
598
+ }
599
+ },
600
+ {
601
+ "includes": ["**/*.d.ts"],
602
+ "linter": {
603
+ "rules": {
604
+ "correctness": {
605
+ "noUnusedVariables": "off",
606
+ "noUnusedImports": "off"
607
+ },
608
+ "style": {
609
+ "useNamingConvention": "off"
610
+ }
611
+ }
612
+ }
613
+ },
614
+ {
615
+ "includes": ["**/migrations/**", "**/seed/**"],
616
+ "linter": {
617
+ "rules": {
618
+ "style": {
619
+ "useNamingConvention": "off",
620
+ "useFilenamingConvention": "off"
621
+ },
622
+ "suspicious": {
623
+ "noConsole": "off"
624
+ }
625
+ }
626
+ }
627
+ },
628
+ {
629
+ "includes": ["**/actions/**", "**/server/**"],
630
+ "linter": {
631
+ "rules": {
632
+ "suspicious": {
633
+ "noConsole": "warn"
634
+ }
635
+ }
636
+ }
637
+ }
638
+ ]
639
+ }