2025-10-22 15:43:08 -04:00

102 lines
1.9 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"includes": ["**", "!**/vscode-icons/**"]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"useEditorconfig": true,
"lineWidth": 80,
"includes": ["**", "!**/pnpm-lock.yaml"]
},
"assist": {
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
["wxt", "#imports"],
":BLANK_LINE:",
{ "type": true },
":BLANK_LINE:",
["@/**", "!@/*.json"],
":PATH:",
":BLANK_LINE:",
["@catppuccin/*"],
":BLANK_LINE:",
["*.json"]
]
}
}
}
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": "warn",
"noUnusedVariables": "warn"
},
"style": {
"noNegationElse": "error",
"useCollapsedElseIf": "error",
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "generic"
}
},
"useForOf": "error",
"noUselessElse": "error",
"useArrayLiterals": "error",
"useImportType": {
"level": "error",
"options": {
"style": "separatedType"
}
}
},
"suspicious": {
"useAwait": "error",
"noConsole": "error"
},
"complexity": {
"useSimplifiedLogicExpression": "error"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
},
"css": {
"formatter": {
"quoteStyle": "single"
}
},
"overrides": [
{
"includes": ["**/*.{yml,yaml,md}"],
"formatter": { "indentStyle": "space", "indentWidth": 2 }
}
]
}