Skip to content

Commit

Permalink
Add --staged parameter to pretty-quick
Browse files Browse the repository at this point in the history
Makes it so you don't have to re-stage manually after pre-commit hook is run
  • Loading branch information
dihmeetree committed Feb 27, 2020
1 parent 05d1535 commit e1c34a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"e2e": "cypress run",
"e2e:open": "cypress open",
"dev:e2e": "server-test dev :3000 e2e:open",
"pretty-quick": "pretty-quick --pattern \"**/*.*(html|js|json|vue)\"",
"pretty-quick": "pretty-quick --staged --pattern \"**/*.*(html|js|json|vue)\"",
"test": "start-server-and-test start http-get://localhost:3000 e2e"
},
"husky": {
Expand Down

0 comments on commit e1c34a3

Please sign in to comment.