upgrade to biome v2

This commit is contained in:
Aman Varshney
2025-06-18 16:50:04 +05:30
parent 0e70ea5774
commit 7013426017
43 changed files with 198 additions and 154 deletions

View File

@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
@@ -7,26 +7,24 @@
},
"files": {
"ignoreUnknown": false,
"ignore": [
".next",
"dist",
".source",
"out",
"template",
"templates",
".turbo",
"package.json",
"analytics-data.json"
"includes": [
"**",
"!**/.next",
"!**/dist",
"!**/.source",
"!**/out",
"!**/templates/**",
"!**/.turbo",
"!**/package.json",
"!**/analytics-data.json"
]
},
"formatter": {
"enabled": true,
"indentStyle": "tab",
"ignore": ["**/templates"]
},
"organizeImports": {
"enabled": true
"includes": ["**", "!**/templates"]
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
@@ -44,9 +42,21 @@
"noUnusedImports": "error",
"noUnusedLabels": "error",
"noUnusedVariables": "error"
},
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
},
"ignore": ["template"]
"includes": ["**", "!**/template"]
},
"javascript": {
"formatter": {