fix: Switch to biome & vitest (#726)

This commit is contained in:
Nerivec
2025-03-23 21:30:14 +01:00
committed by GitHub
parent 44c5bbcc1c
commit 94b76a910a
48 changed files with 1762 additions and 4075 deletions

61
biome.json Normal file
View File

@@ -0,0 +1,61 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"formatter": {
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 150,
"bracketSpacing": false
},
"files": {
"ignore": [
"package.json",
"./index.json",
"./index1.json",
"./.cache",
"./cacerts",
"./images",
"./images1",
"./not-in-manifest-images",
"./not-in-manifest-images1"
]
},
"linter": {
"rules": {
"suspicious": {
"useAwait": "error",
"noExportsInTest": "off"
},
"style": {
"noNonNullAssertion": "warn",
"noParameterAssign": "warn",
"useNamingConvention": {
"level": "error",
"options": {
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "objectLiteralProperty"
},
"formats": ["snake_case", "camelCase", "CONSTANT_CASE", "PascalCase"]
},
{
"selector": {
"kind": "typeProperty"
},
"formats": ["snake_case", "camelCase", "CONSTANT_CASE", "PascalCase"]
},
{
"selector": {
"kind": "const"
},
"formats": ["camelCase", "CONSTANT_CASE"]
}
]
}
}
}
}
}
}