diff options
| author | tuananh31j <tuananh31j@gmail.com> | 2025-07-21 19:33:06 +0700 |
|---|---|---|
| committer | tuananh31j <tuananh31j@gmail.com> | 2025-07-21 19:42:25 +0700 |
| commit | 18296402cb09965ab4918cbc6e9cedee328732c3 (patch) | |
| tree | 616d4e4f56bc7111c3ad3c490a84475396bb772c | |
| parent | 11e2e1a49de6dd03fd935c5816ff3c7a3e52c12a (diff) | |
| download | opencut-18296402cb09965ab4918cbc6e9cedee328732c3.tar.gz | |
config: Turborepo and Biome configuration
| -rw-r--r-- | apps/web/package.json | 5 | ||||
| -rw-r--r-- | biome.json | 70 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | turbo.json | 9 |
4 files changed, 51 insertions, 34 deletions
diff --git a/apps/web/package.json b/apps/web/package.json index f7b09de8..f4d975cd 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -7,7 +7,9 @@ "dev": "next dev", "build": "next build", "start": "next start", - "lint": "next lint", + "lint": "biome check src/", + "lint:fix": "biome check src/ --write", + "format": "biome format src/ --write", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:push:local": "cross-env NODE_ENV=development drizzle-kit push", @@ -67,7 +69,6 @@ "cross-env": "^7.0.3", "drizzle-kit": "^0.31.4", "postcss": "^8", - "prettier": "^3.4.2", "tailwindcss": "^3.4.1", "tsx": "^4.7.1", "typescript": "^5.8.3" @@ -1,34 +1,40 @@ { - "$schema": "https://biomejs.dev/schemas/2.0.4/schema.json", - "vcs": { - "enabled": false, - "clientKind": "git", - "useIgnoreFile": false - }, - "files": { - "ignoreUnknown": false - }, - "formatter": { - "enabled": true, - "indentStyle": "tab" - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true - } - }, - "javascript": { - "formatter": { - "quoteStyle": "double" - } - }, - "assist": { - "enabled": true, - "actions": { - "source": { - "organizeImports": "on" - } - } - } + "$schema": "https://biomejs.dev/schemas/2.1.2/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": false, + "includes": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.json"], + "experimentalScannerIgnores": [ + "**/node_modules/**", + "**/.next/**", + "**/turbo/**" + ] + }, + "formatter": { + "enabled": true, + "indentStyle": "tab" + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double" + } + }, + "assist": { + "enabled": true, + "actions": { + "source": { + "organizeImports": "on" + } + } + } } diff --git a/package.json b/package.json index 459621f7..bd34a1c1 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "build": "turbo run build", "check-types": "turbo run check-types", "lint": "turbo run lint", + "lint:fix": "turbo run lint:fix", "format": "turbo run format" }, "dependencies": { @@ -17,6 +17,15 @@ "dev": { "persistent": true, "cache": false + }, + "lint": { + "dependsOn": ["^lint"] + }, + "lint:fix": { + "dependsOn": ["^lint:fix"] + }, + "format": { + "dependsOn": ["^format"] } } } |
