We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f50abb commit 6afa48bCopy full SHA for 6afa48b
.pre-commit-config.yaml
@@ -21,7 +21,8 @@ repos:
21
hooks:
22
- id: prettier
23
name: prettier
24
- entry: bash -c 'cd frontend && npm run format'
+ # Runs prettier on staged, removing the `frontend/` prefix to work with relative filepaths
25
+ entry: bash -c 'cd frontend && npx prettier --write "${@/#frontend\//}"' --
26
language: system
27
files: ^frontend/.*\.(js|jsx|ts|tsx|json|css|md)$
- pass_filenames: false
28
+ pass_filenames: true
frontend/package.json
@@ -6,8 +6,7 @@
6
"dev": "next dev --turbopack",
7
"build": "next build --turbopack",
8
"start": "next start",
9
- "lint": "eslint",
10
- "format": "prettier --write ."
+ "lint": "eslint"
11
},
12
"dependencies": {
13
"@hookform/resolvers": "^5.2.2",
0 commit comments