Add --staged parameter to pretty-quick

Makes it so you don't have to re-stage manually after pre-commit hook is run
This commit is contained in:
Dmitry Yankowski
2020-02-27 18:20:21 -05:00
parent 05d1535823
commit e1c34a3689

View File

@@ -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": {