mirror of
https://github.com/versia-pub/frontend.git
synced 2026-06-14 07:29:15 +02:00
chore: ⬆️ Upgrade Biome to v2
This commit is contained in:
parent
00b6783ae0
commit
9b55759220
155 changed files with 311 additions and 293 deletions
65
biome.json
65
biome.json
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue