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
@@ -149,6 +148,16 @@ The Content Security Policy (CSP) is a security layer that helps to detect and m
149
148
150
149
It contains a default and minimal policy that you can customize to fit your application needs. It's a foundation to build upon.
151
150
151
+
### Husky
152
+
153
+
Husky is a tool that helps us run scrips before Git events. We have 3 hooks:
154
+
155
+
-`pre-commit` — (Disabled by default) Runs lint-staged to lint and format the files.
156
+
-`commit-msg` — Runs commitlint to check if the commit message follows the conventional commit message format.
157
+
-`post-merge` — Runs pnpm install to update the dependencies if there was a change in the `pnpm-lock.yaml` file.
158
+
159
+
> Important note: Husky is disabled by default in the pre-commit hook. This is intention because most developers don't want to run lint-staged on every commit. If you want to enable it, run `echo 'HUSKY_ENABLED=true' > .husky/_/pre-commit.options`.
160
+
152
161
## License
153
162
154
163
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for more information.
0 commit comments