mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
fix: 🚨 Enable more Biome 2.0 rules
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 4s
Build Docker Images / lint (push) Failing after 10s
Build Docker Images / check (push) Failing after 10s
Build Docker Images / tests (push) Failing after 6s
Deploy Docs to GitHub Pages / build (push) Failing after 0s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 0s
Some checks failed
CodeQL Scan / Analyze (javascript-typescript) (push) Failing after 4s
Build Docker Images / lint (push) Failing after 10s
Build Docker Images / check (push) Failing after 10s
Build Docker Images / tests (push) Failing after 6s
Deploy Docs to GitHub Pages / build (push) Failing after 0s
Build Docker Images / build (server, Dockerfile, ${{ github.repository_owner }}/server) (push) Has been skipped
Build Docker Images / build (worker, Worker.Dockerfile, ${{ github.repository_owner }}/worker) (push) Has been skipped
Deploy Docs to GitHub Pages / Deploy (push) Has been skipped
Mirror to Codeberg / Mirror (push) Failing after 0s
Nix Build / check (push) Failing after 0s
This commit is contained in:
parent
963173cdae
commit
1679585c4c
21 changed files with 116 additions and 53 deletions
58
biome.json
58
biome.json
|
|
@ -45,6 +45,23 @@
|
|||
},
|
||||
"useLiteralEnumMembers": "error",
|
||||
"noCommaOperator": "error",
|
||||
"noNegationElse": "error",
|
||||
"noYodaExpression": "error",
|
||||
"useBlockStatements": "error",
|
||||
"useCollapsedElseIf": "error",
|
||||
"useConsistentArrayType": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"syntax": "shorthand"
|
||||
}
|
||||
},
|
||||
"useConsistentBuiltinInstantiation": "error",
|
||||
"useExplicitLengthCheck": "error",
|
||||
"useForOf": "error",
|
||||
"useNodeAssertStrict": "error",
|
||||
"useShorthandAssign": "error",
|
||||
"useThrowNewError": "error",
|
||||
"useThrowOnlyError": "error",
|
||||
"useNodejsImportProtocol": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useNumericLiterals": "error",
|
||||
|
|
@ -67,16 +84,39 @@
|
|||
"useShorthandFunctionType": "error"
|
||||
},
|
||||
"correctness": {
|
||||
"useImportExtensions": "error"
|
||||
"useImportExtensions": "error",
|
||||
"noConstantMathMinMaxClamp": "error",
|
||||
"noUndeclaredDependencies": "error",
|
||||
"noUnusedFunctionParameters": "error",
|
||||
"noUnusedImports": "error",
|
||||
"noUnusedPrivateClassMembers": "error",
|
||||
"useArrayLiterals": "error"
|
||||
},
|
||||
"nursery": {
|
||||
"noBitwiseOperators": "error",
|
||||
"noConstantBinaryExpression": "error",
|
||||
"noFloatingPromises": "error",
|
||||
"noGlobalDirnameFilename": "error",
|
||||
"noOctalEscape": "error",
|
||||
"noProcessEnv": "error",
|
||||
"noDuplicateElseIf": "warn",
|
||||
"noProcessGlobal": "warn",
|
||||
"noTsIgnore": "warn",
|
||||
"useAtIndex": "warn",
|
||||
"useCollapsedIf": "warn",
|
||||
"useConsistentObjectDefinition": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
"syntax": "shorthand"
|
||||
}
|
||||
},
|
||||
"useConsistentMemberAccessibility": {
|
||||
"level": "warn",
|
||||
"options": {
|
||||
"accessibility": "explicit"
|
||||
}
|
||||
},
|
||||
"useParseIntRadix": "warn",
|
||||
"noCommonJs": "warn",
|
||||
"noDynamicNamespaceImportAccess": "warn",
|
||||
"noExportedImports": "warn",
|
||||
|
|
@ -91,11 +131,21 @@
|
|||
"useTrimStartEnd": "warn"
|
||||
},
|
||||
"complexity": {
|
||||
"noExcessiveCognitiveComplexity": "off"
|
||||
"noForEach": "error",
|
||||
"noUselessStringConcat": "error",
|
||||
"useDateNow": "error",
|
||||
"useSimplifiedLogicExpression": "error",
|
||||
"useWhile": "error"
|
||||
},
|
||||
"suspicious": {
|
||||
"noMisplacedAssertion": "off",
|
||||
"noConsole": "off"
|
||||
"noDuplicateTestHooks": "error",
|
||||
"noEmptyBlockStatements": "error",
|
||||
"noEvolvingTypes": "error",
|
||||
"noExportsInTest": "error",
|
||||
"noVar": "error",
|
||||
"useAwait": "error",
|
||||
"useErrorMessage": "error",
|
||||
"useNumberToFixedDigitsArgument": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue