integrate husky and pretty-quick for pre-commit hook
See original GitHub issueThis comment justifies the usage of husky pre-commit hook over pre-commit package.
UPDATE: In summary the husky config file would probably look like:
"husky": {
"hooks": {
"pre-commit": "lint-staged"
},
},
"lint-staged": {
"static/docs/**/*.md": [ "prettier --write"],
}
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Pre-commit Hook - Prettier
pretty -quick. Use Case: Great for when you want an entire file formatting on your changed/staged files. Install it along with husky:.
Read more >How to integrate Husky, ESLint, Prettier to project in less than ...
5.1 Add husky hooks to package.json · 5.2 Add prepare script to package.json · 5.3 run prepare script · 5.4 create hook for...
Read more >Pre-commit hook (husky + pretty-quick) doesn't work
I've configured prettier and pre-commit hook like before but in my new project husky doesn't run before any commit!
Read more >How to Add Commit Hooks to Git with Husky to Automate ...
Husky is a tool that allows us to easily wrangle Git hooks and run the scripts we want at those stages. It works...
Read more >Angular + Prettier + Husky - Dapton Technologies
Husky describes itself as “Git hooks made easy”. It provides pre-commit and pre-push hooks. Pre-push/Pre-commit hooks are nothing but commands which you ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jorgeorpinel Okay, I will try that changes don’t get staged.
@jorgeorpinel okay! So I’ll integrate husky/lint-staged as soon as possible if you are not working on it and update the docs too.