chore: ⬆️ Upgrade Biome to v2

This commit is contained in:
Jesse Wierzbinski 2025-06-26 22:39:02 +02:00
parent 00b6783ae0
commit 9b55759220
No known key found for this signature in database
155 changed files with 311 additions and 293 deletions

View file

@ -1,18 +1,18 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"all": true,
"suspicious": {
"noConsole": "off",
"noExplicitAny": "off"
"noExplicitAny": "off",
"noDuplicateElseIf": "error",
"noDocumentCookie": "off"
},
"performance": {
"noBarrelFile": "off"
"noBarrelFile": "off",
"noNamespaceImport": "off"
},
"correctness": {
"noNodejsModules": "off",
@ -30,7 +30,6 @@
"style": {
"noDefaultExport": "off",
"noParameterProperties": "off",
"noNamespaceImport": "off",
"useFilenamingConvention": "off",
"useNamingConvention": {
"level": "warn",
@ -63,12 +62,20 @@
}
]
}
}
},
"nursery": {
"noDuplicateElseIf": "error",
},
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error",
"noCommonJs": "error"
}
},
"nursery": {}
}
},
"formatter": {
@ -76,15 +83,31 @@
"indentStyle": "space",
"indentWidth": 4
},
"overrides": [
{
"includes": ["**/*.vue"],
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "off"
},
"style": {
"useImportType": "off"
}
}
}
}
],
"files": {
"ignore": [
"node_modules/**/*",
"dist/**/*",
".output",
".nuxt",
"paraglide",
"result",
"project.inlang"
"includes": [
"**",
"!**/node_modules/**/*",
"!**/dist/**/*",
"!**/.output",
"!**/.nuxt",
"!**/paraglide",
"!**/result",
"!**/project.inlang"
]
}
}