{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"includes": [
"!**/.next",
"!**/dist",
"!**/.turbo",
"!**/dev-dist",
"!**/.zed",
"!**/.vscode",
"!**/routeTree.gen.ts",
"!**/src-tauri",
"!**/.nuxt",
"!bts.jsonc",
"!**/.expo",
"!**/.wrangler",
"!**/.alchemy",
"!**/.svelte-kit",
"!**/wrangler.jsonc",
"!**/.source",
"!**/convex/_generated"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"includes": [
"**/*.svelte",
"**/*.vue",
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx"
]
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"includes": [
"**/*.svelte",
"**/*.vue",
"**/*.ts",
"**/*.tsx",
"**/*.js",
"**/*.jsx"
],
"rules": {
"recommended": true,
"correctness": {
"useExhaustiveDependencies": "info"
},
"performance": {
"noBarrelFile": "warn"
},
"nursery": {
"useSortedClasses": {
"level": "warn",
"fix": "safe",
"options": {
"functions": ["clsx", "cva", "cn"]
}
}
},
"style": {
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"css": {
"parser": {
"tailwindDirectives": true
}
},
"extends": ["ultracite/biome/core", "ultracite/biome/svelte"]
}
Environment information
Details
Configuration
{ "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, "files": { "ignoreUnknown": false, "includes": [ "!**/.next", "!**/dist", "!**/.turbo", "!**/dev-dist", "!**/.zed", "!**/.vscode", "!**/routeTree.gen.ts", "!**/src-tauri", "!**/.nuxt", "!bts.jsonc", "!**/.expo", "!**/.wrangler", "!**/.alchemy", "!**/.svelte-kit", "!**/wrangler.jsonc", "!**/.source", "!**/convex/_generated" ] }, "formatter": { "enabled": true, "indentStyle": "space", "indentWidth": 2, "includes": [ "**/*.svelte", "**/*.vue", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx" ] }, "assist": { "actions": { "source": { "organizeImports": "on" } } }, "linter": { "enabled": true, "includes": [ "**/*.svelte", "**/*.vue", "**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx" ], "rules": { "recommended": true, "correctness": { "useExhaustiveDependencies": "info" }, "performance": { "noBarrelFile": "warn" }, "nursery": { "useSortedClasses": { "level": "warn", "fix": "safe", "options": { "functions": ["clsx", "cva", "cn"] } } }, "style": { "noParameterAssign": "error", "useAsConstAssertion": "error", "useDefaultParameterLast": "error", "useEnumInitializers": "error", "useSelfClosingElements": "error", "useSingleVarDeclarator": "error", "noUnusedTemplateLiteral": "error", "useNumberNamespace": "error", "noInferrableTypes": "error", "noUselessElse": "error" } } }, "javascript": { "formatter": { "quoteStyle": "double" } }, "css": { "parser": { "tailwindDirectives": true } }, "extends": ["ultracite/biome/core", "ultracite/biome/svelte"] }Playground link
https://biomejs.dev/playground/?code=PABmAG8AcgBtAC4ARgBpAGUAbABkAD4ACgA8AC8AZgBvAHIAbQAuAEYAaQBlAGwAZAA%2BAAoAPABmAG8AcgBtAC4AUwB1AGIAcwBjAHIAaQBiAGUAPgAKADwALwBmAG8AcgBtAC4AUwB1AGIAcwBjAHIAaQBiAGUAPgAKADwAZABhAHQAYQAuAGMAbABpAGUAbgB0AD4ACgA8AC8AZABhAHQAYQAuAGMAbABpAGUAbgB0AD4ACgAKADwARgBvAHIAbQAuAEYAaQBlAGwAZAA%2BADwALwBGAG8AcgBtAC4ARgBpAGUAbABkAD4ACgA8AEYAbwByAG0ALgBTAHUAYgBzAGMAcgBpAGIAZQA%2BADwALwBGAG8AcgBtAC4AUwB1AGIAcwBjAHIAaQBiAGUAPgAKADwARABhAHQAYQAuAEMAbABpAGUAbgB0AD4APAAvAEQAYQB0AGEALgBDAGwAaQBlAG4AdAA%2BAA%3D%3D&language=svelte&ruleDomains.test=all
Code of Conduct