You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While most of the time, you'll just run a few `npm run` or `npx` commands in your hooks, you can also script hooks using POSIX shell for custom workflows.
66
+
While most of the time, you'll just run a few `npm run` or `npx` commands in your hooks, you can also script them using POSIX shell for custom workflows.
67
67
68
-
For example, here's how you can lint your staged files on each commit with only two lines of shell code:
68
+
For example, here's how you can lint your staged files on each commit with only two lines of shell code and no external dependency:
See also [lint-staged](https://github.com/lint-staged/lint-staged) if you need more.
76
+
_This is a basic but workinkg example, check [lint-staged](https://github.com/lint-staged/lint-staged) if you need more._
77
77
78
78
### Disabling hooks
79
79
80
-
Husky doesn't force Git hooks and can be globally disabled if wished. They can be made opt-in as well.
81
-
82
-
_For manual setup and more information, see the [How To](how-to) section._
83
-
80
+
Husky doesn't force Git hooks. It can be globally disabled (`HUSKY=0`) or be opt-in if wanted. See the [How To](how-to) section for manual setup and more information.
w(_('husky.sh'),'echo "husky - `#!/usr/bin/env sh` and `. "$(dirname -- "$0")/_/husky.sh"` lines in hooks are DEPRECATED and won\'t be supported in v10. You can remove these two lines safely for even simpler scripts"')
21
+
w(_('husky.sh'),'echo "husky - `#!/usr/bin/env sh` and `. "$(dirname -- "$0")/_/husky.sh"` lines in hooks are DEPRECATED and won\'t be supported in v10. You can remove these two lines for even simpler scripts"')
0 commit comments