Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit ed24474

Browse files
committedFeb 28, 2019
Add --verbose flag to pretty-quick precommit hook
This echoes the name of each file being formatted prior to running prettier making it easier to find syntax errors which cause prettier to fail. This is especially useful when there are a lot of staged files making it hard to track down where an error is coming from.
1 parent a6397a1 commit ed24474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"27": "live-server --open=week-3/27-attributes",
3535
"28": "live-server --open=week-3/28-git-conflict",
3636
"29": "live-server --open=week-3/29-combined-skills",
37-
"precommit": "pretty-quick --staged",
37+
"precommit": "pretty-quick --staged --verbose",
3838
"serve": "live-server"
3939
},
4040
"devDependencies": {

0 commit comments

Comments
 (0)
This repository has been archived.