chore: update biome settings

This commit is contained in:
BennyKok 2024-01-21 23:55:18 +08:00
parent 6de7bf3f20
commit 271552b453
4 changed files with 26 additions and 30 deletions

View File

@ -1,13 +1,7 @@
{ {
"recommendations": [ "recommendations": [
"DavidAnson.vscode-markdownlint", // markdown linting
"esbenp.prettier-vscode", // prettier plugin
"dbaeumer.vscode-eslint", // eslint plugin
"bradlc.vscode-tailwindcss", // hinting / autocompletion for tailwind "bradlc.vscode-tailwindcss", // hinting / autocompletion for tailwind
"ban.spellright", // Spell check for docs "ban.spellright", // Spell check for docs
"stripe.vscode-stripe", // stripe VSCode extension
"rebornix.project-snippets", // Share useful snippets between collaborators
"inlang.vs-code-extension",
"biomejs.biome" // improved i18n DX "biomejs.biome" // improved i18n DX
] ]
} }

View File

@ -2,18 +2,15 @@
"typescript.tsdk": "node_modules/typescript/lib", "typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"quickfix.biome": "explicit", "quickfix.biome": "always"
"source.organizeImports.biome": "explicit" // "source.organizeImports.biome": "explicit"
}, },
"typescript.preferences.importModuleSpecifier": "non-relative", "typescript.preferences.importModuleSpecifier": "non-relative",
"spellright.language": ["en"], "spellright.language": ["en"],
"spellright.documentTypes": ["markdown", "typescript", "typescriptreact"], "spellright.documentTypes": ["markdown", "typescript", "typescriptreact"],
"tailwindCSS.experimental.classRegex": [ "tailwindCSS.experimental.classRegex": [
[ ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
"cva\\(([^)]*)\\)",
"[\"'`]([^\"'`]*).*?[\"'`]"
] ]
],
// "eslint.workingDirectories": [ // "eslint.workingDirectories": [
// { "mode": "auto" } // { "mode": "auto" }
// ], // ],

View File

@ -1,10 +1,15 @@
{ {
"$schema": "https://biomejs.dev/schemas/1.5.2/schema.json", "$schema": "./web/node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": { "organizeImports": {
"enabled": true "enabled": true
}, },
"formatter": {
"indentStyle": "space",
"indentWidth": 2,
"enabled": true
},
"linter": { "linter": {
"enabled": true, "enabled": false,
"rules": { "rules": {
"recommended": true "recommended": true
} }