build: replace prettier with biome for formatting

Use biome as the default formatter instead of prettier for better performance and modern tooling support
This commit is contained in:
icarus 2025-09-15 07:19:27 +08:00
parent 9228eb3102
commit 76c19ea59f

View File

@ -370,11 +370,11 @@
"packageManager": "yarn@4.9.1", "packageManager": "yarn@4.9.1",
"lint-staged": { "lint-staged": {
"*.{js,jsx,ts,tsx,cjs,mjs,cts,mts}": [ "*.{js,jsx,ts,tsx,cjs,mjs,cts,mts}": [
"prettier --write", "biome format --write",
"eslint --fix" "eslint --fix"
], ],
"*.{json,yml,yaml,css,html}": [ "*.{json,yml,yaml,css,html}": [
"prettier --write" "biome format --write"
] ]
} }
} }