feat: 配置 Biome 代码格式化与校验工具

添加 biome.json 配置(formatter + linter + organizeImports),
.editorconfig 统一编辑器配置,package.json 新增 lint/format scripts。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
claude-code-best
2026-04-01 01:40:27 +08:00
parent 2de3d309b4
commit 074ea844dc
4 changed files with 106 additions and 2 deletions

View File

@@ -12,7 +12,10 @@
"scripts": {
"build": "bun build src/entrypoints/cli.tsx --outdir dist --target bun",
"dev": "bun run src/entrypoints/cli.tsx",
"prepublishOnly": "bun run build"
"prepublishOnly": "bun run build",
"lint": "biome check src/",
"lint:fix": "biome check --fix src/",
"format": "biome format --write src/"
},
"dependencies": {
"@alcalzone/ansi-tokenize": "^0.3.0",