Skip to content

Commit

Permalink
fix: change to lint-staged over command
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Oct 18, 2023
1 parent 26b1fa5 commit 25f747d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm prettier:apply
pnpx lint-staged
pnpm test -- --onlyChanged
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -141,5 +141,8 @@
"webpack-merge": "5.9.0",
"husky": "^8.0.0"
},
"packageManager": "pnpm@8.9.0"
"packageManager": "pnpm@8.9.0",
"lint-staged": {
"*.{md,js,ts,tsx}": "prettier --write"
}
}

0 comments on commit 25f747d

Please sign in to comment.