diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..9b0935e --- /dev/null +++ b/.prettierignore @@ -0,0 +1,6 @@ +old-source/ +backup/ +drizzle/ +components/ui/ +db/amigo/schema.ts +pnpm-lock.yaml \ No newline at end of file diff --git a/package.json b/package.json index 3521b65..67dad33 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,8 @@ "build": "next build", "start": "next start", "lint": "eslint", + "format": "prettier --write .", + "format:check": "prettier --check .", "db:generate": "drizzle-kit generate", "db:migrate": "drizzle-kit migrate", "db:studio": "drizzle-kit studio", @@ -39,6 +41,7 @@ "drizzle-kit": "^0.31.11", "eslint": "^9", "eslint-config-next": "16.4.2", + "prettier": "^3.9.10", "tailwindcss": "^4", "tsx": "4.23.15", "typescript": "^5" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c41faa9..7c66673 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -78,6 +78,9 @@ importers: eslint-config-next: specifier: 16.4.2 version: 16.4.2(@typescript-eslint/parser@8.71.2(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3))(eslint@9.39.5(jiti@2.7.0))(typescript@5.9.3) + prettier: + specifier: ^3.9.10 + version: 3.9.10 tailwindcss: specifier: ^4 version: 4.3.3 @@ -3270,6 +3273,11 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + prettier@3.9.10: + resolution: {integrity: sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==} + engines: {node: '>=14'} + hasBin: true + pretty-ms@9.3.1: resolution: {integrity: sha512-HzMy3Geq23nVALD/M2LliU+F+M+gVNsvkQWWqeBZ8HDiCgzo6YPJ/Omrmtq24EFrIsk0a3EkQGEd7bDOo+IhGA==} engines: {node: '>=18'} @@ -6766,6 +6774,8 @@ snapshots: prelude-ls@1.2.1: {} + prettier@3.9.10: {} + pretty-ms@9.3.1: dependencies: parse-ms: 4.0.0