Git hooks : husky + lint-staged + prettier

by mbrehin
macOS ◆ xterm-256color ◆ bash 1113 views

Improve your dev experience while using dev automation around Git commits. Here is an example with husky, triggering a pre-commit hook that runs lint-staged. lint-staged is configured to run prettier that reformats code, then lint-staged automatically add reformatted code to Git therefore your commit is clean and you don’t have anything else to do or to think about.

More by mbrehin

git add -u 00:13

by mbrehin

git stash --stage 00:18

by mbrehin

commit-multilines 00:44

by mbrehin

git add --intent-to-add 00:30

by mbrehin

See all