-
Notifications
You must be signed in to change notification settings - Fork 172
Add prettier commit hook #2199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add prettier commit hook #2199
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/usr/bin/env sh | ||
| . "$(dirname -- "$0")/_/husky.sh" | ||
|
|
||
| npx lint-staged --verbose | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "*.{ts,tsx,js,jsx,json,css,scss,md,html,yaml,yml}": "prettier --write" | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -391,7 +391,7 @@ | |
| "eslint-plugin-testing-library": "6.2.2", | ||
| "eslint-plugin-vitest": "0.5.4", | ||
| "generate-license-file": "4.1.0", | ||
| "husky": "8.0.3", | ||
| "husky": "9.1.7", | ||
|
||
| "i18next-parser": "9.0.2", | ||
| "inquirer": "8.2.6", | ||
| "jest": "29.7.0", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The hook sources
.husky/_/husky.sh, but this PR doesn’t add the.husky/_directory (it’s not present in the repo). As-is, the hook will fail with “No such file” and the commit will be blocked. Add the Husky support files under.husky/_(e.g.,husky.shand its companion files) or update the hook to match the Husky v9-generated template used in this repo.