Loading...
Loading...
Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.
npx skill4agent add mattpocock/skills setup-pre-commitpackage-lock.jsonpnpm-lock.yamlyarn.lockbun.lockbhusky lint-staged prettiernpx husky init.husky/prepare: "husky".husky/pre-commitnpx lint-staged
npm run typecheck
npm run testnpmtypechecktest.lintstagedrc{
"*": "prettier --ignore-unknown --write"
}.prettierrc{
"useTabs": false,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": false,
"trailingComma": "es5",
"semi": true,
"arrowParens": "always"
}.husky/pre-commit.lintstagedrcprepare"husky"prettiernpx lint-stagedAdd pre-commit hooks (husky + lint-staged + prettier)prettier --ignore-unknown