refactor(all): biomejs

This commit is contained in:
z0x 2025-01-14 22:46:41 -05:00
parent 4aa7fac47f
commit 7243cd8872
8 changed files with 99 additions and 56 deletions

View file

@ -1,5 +1,5 @@
import { defineConfig } from "astro/config";
import tailwindcss from "@tailwindcss/vite"; import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
export default defineConfig({ export default defineConfig({
vite: { vite: {

43
biome.json Normal file
View file

@ -0,0 +1,43 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"ignore": ["node_modules", "dist"]
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double"
}
},
"overrides": [
{
"include": ["*.astro"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
}
}
}
}
]
}

BIN
bun.lockb

Binary file not shown.

View file

@ -14,7 +14,7 @@
}, },
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0.9.4", "@astrojs/check": "^0.9.4",
"@biomejs/biome": "1.9.4", "@biomejs/biome": "^1.9.4",
"@tailwindcss/vite": "^4.0.0-beta.9", "@tailwindcss/vite": "^4.0.0-beta.9",
"tailwindcss": "^4.0.0-beta.9" "tailwindcss": "^4.0.0-beta.9"
}, },