Skip to content

Commit

Permalink
PGOV-554: pre-commit config for husky.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrienne committed Feb 3, 2025
1 parent a483a4e commit 919c722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cd src/frontend
npx lint-staged
npm run lint-staged
prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown
git update-index --again
3 changes: 2 additions & 1 deletion src/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"lint": "next lint",
"format": "prettier --write .",
"format:check": "prettier --check .",
"prepare": "cd .. && husky src/frontend/.husky"
"prepare": "cd .. && husky src/frontend/.husky",
"lint-staged": "lint-staged"
},
"dependencies": {
"@trussworks/react-uswds": "^9.1.0",
Expand Down

0 comments on commit 919c722

Please sign in to comment.