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

18
.vscode/launch.json vendored
View file

@ -1,11 +1,11 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"command": "./node_modules/.bin/astro dev", "command": "./node_modules/.bin/astro dev",
"name": "Development server", "name": "Development server",
"request": "launch", "request": "launch",
"type": "node-terminal" "type": "node-terminal"
} }
] ]
} }

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

@ -1,27 +1,27 @@
{ {
"name": "homepage", "name": "homepage",
"type": "module", "type": "module",
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
"build": "astro check && astro build", "build": "astro check && astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.1.6" "astro": "^5.1.6"
}, },
"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"
}, },
"trustedDependencies": [ "trustedDependencies": [
"@biomejs/biome", "@biomejs/biome",
"@parcel/watcher", "@parcel/watcher",
"esbuild", "esbuild",
"sharp" "sharp"
] ]
} }

View file

@ -1,7 +1,7 @@
--- ---
export interface ServiceProps { export interface ServiceProps {
serviceName: string; serviceName: string;
serviceUrl?: string; serviceUrl?: string;
} }
const { serviceName, serviceUrl } = Astro.props; const { serviceName, serviceUrl } = Astro.props;

View file

@ -1 +1 @@
@import "tailwindcss"; @import "tailwindcss";

View file

@ -3,24 +3,24 @@ import "/src/css/app.css";
import ServiceCard from "../components/ServiceCard.astro"; import ServiceCard from "../components/ServiceCard.astro";
const services = [ const services = [
{ serviceName: "Amnezia" }, { serviceName: "Amnezia" },
{ serviceName: "Blog", serviceUrl: "https://blog.z0x.home.arpa" }, { serviceName: "Blog", serviceUrl: "https://blog.z0x.home.arpa" },
{ serviceName: "Dockge" }, { serviceName: "Dockge" },
{ serviceName: "Dozzle" }, { serviceName: "Dozzle" },
{ serviceName: "Element" }, { serviceName: "Element" },
{ serviceName: "Gitea", serviceUrl: "https://git.home.arpa" }, { serviceName: "Gitea", serviceUrl: "https://git.home.arpa" },
{ serviceName: "Immich" }, { serviceName: "Immich" },
{ serviceName: "Lodestone" }, { serviceName: "Lodestone" },
{ serviceName: "Navidrome" }, { serviceName: "Navidrome" },
{ serviceName: "Radicale" }, { serviceName: "Radicale" },
{ serviceName: "Redlib" }, { serviceName: "Redlib" },
{ serviceName: "Scrutiny" }, { serviceName: "Scrutiny" },
{ serviceName: "Synapse Admin" }, { serviceName: "Synapse Admin" },
{ serviceName: "Umami" }, { serviceName: "Umami" },
{ serviceName: "Unifi" }, { serviceName: "Unifi" },
{ serviceName: "Vaultwarden" }, { serviceName: "Vaultwarden" },
{ serviceName: "Zyxel", serviceUrl: "https://10.0.0.1" }, { serviceName: "Zyxel", serviceUrl: "https://10.0.0.1" },
{ serviceName: "z0x" }, { serviceName: "z0x" },
]; ];
--- ---