Verifiedsetup0 installs

Setup Git Hooks

Install Husky for Git hooks with lint-staged

Command

npx husky-init && npm install && npx husky add .husky/pre-commit "npx lint-staged"

Installation

Via StackShack CLI

npx stackshack install setup-husky

Manual Installation

Copy and run the command in your terminal:

npx husky-init && npm install && npx husky add .husky/pre-commit "npx lint-staged"

Prerequisites

nodenpmgit

Tags

#husky#git-hooks#lint

Quick Actions

Stats

Installs0
Categorysetup
Statuspublished

Need Help?

Check our documentation or reach out to the community.

Get Support

More setup Commands