question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

integrate husky and pretty-quick for pre-commit hook

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
algomaster99commented, Jun 5, 2019

@jorgeorpinel Okay, I will try that changes don’t get staged.

2reactions
algomaster99commented, May 23, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found