build: migrate workspace tooling to Oxc

Replace Turbo task orchestration with Bun workspace scripts and remove the Prettier configuration. Add Oxlint and Oxfmt project configuration, including Tailwind class sorting, generated-file exclusions, and unified check/fix commands. Apply the new formatter and resolve Hook dependency errors surfaced by Oxlint.
This commit is contained in:
Maofeng
2026-07-30 15:50:51 +08:00
parent 8cf3a1f03a
commit d36028d67b
47 changed files with 337 additions and 233 deletions
+10 -7
View File
@@ -3,15 +3,18 @@
"version": "0.0.1",
"private": true,
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"format": "turbo format",
"typecheck": "turbo typecheck"
"build": "bun run --filter web build",
"check": "bun run format:check && bun run lint && bun run typecheck",
"dev": "bun run --filter web dev",
"format": "oxfmt apps packages package.json tsconfig.json .oxlintrc.json .oxfmtrc.json",
"format:check": "oxfmt --check apps packages package.json tsconfig.json .oxlintrc.json .oxfmtrc.json",
"lint": "oxlint .",
"lint:fix": "oxlint --fix .",
"typecheck": "bun run --workspaces typecheck"
},
"devDependencies": {
"prettier": "^3.8.3",
"prettier-plugin-tailwindcss": "^0.8.0",
"turbo": "^2.9.18",
"oxfmt": "^0.61.0",
"oxlint": "^1.76.0",
"typescript": "~6"
},
"packageManager": "bun@1.3.5",