The open-source CapCut alternative
config: Turborepo and Biome configuration
tuananh31j18296402cb09
diff --git a/apps/web/package.json b/apps/web/package.jsonindex 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"diff --git a/biome.json b/biome.jsonindex 7175ec21..f9a66754 100644--- a/biome.json+++ b/biome.json@@ -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.jsonindex 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": {diff --git a/turbo.json b/turbo.jsonindex 0ed5be6b..558f3d51 100644--- a/turbo.json+++ b/turbo.json@@ -17,6 +17,15 @@"dev": {"persistent": true,"cache": false+ },+ "lint": {+ "dependsOn": ["^lint"]+ },+ "lint:fix": {+ "dependsOn": ["^lint:fix"]+ },+ "format": {+ "dependsOn": ["^format"]}}}