From 8a74356ff52944d857b60f2ba4b6b13a139887eb Mon Sep 17 00:00:00 2001 From: icarus Date: Mon, 15 Sep 2025 07:04:55 +0800 Subject: [PATCH] chore: update biome config and format commands - Exclude tailwind.css from linter includes - Add biome lint to format commands --- biome.jsonc | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index c19f48af9d..e43b87d228 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -64,6 +64,8 @@ }, "linter": { "enabled": true, + "includes": ["!**/tailwind.css"], + // only enable sorted tailwind css rule. used as formatter instead of linter "rules": { "nursery": { // to sort tailwind css classes diff --git a/package.json b/package.json index 7fa5c82bca..64c5f30158 100644 --- a/package.json +++ b/package.json @@ -65,8 +65,8 @@ "test:e2e": "yarn playwright test", "test:lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts", "test:scripts": "vitest scripts", - "format": "biome format --write", - "format:check": "biome format", + "format": "biome format --write && biome lint --write", + "format:check": "biome format && biome lint", "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix && yarn typecheck && yarn check:i18n", "prepare": "git config blame.ignoreRevsFile .git-blame-ignore-revs && husky", "claude": "dotenv -e .env -- claude"