Git hooks : husky + lint-staged + prettier

by mbrehin
macOS ◆ xterm-256color ◆ bash 1269 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 commit lint 00:39

by mbrehin

git add file-1 file-2 00:14

by mbrehin

See all