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
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,22 @@ This project and everyone participating in it is governed by our Code of Conduct
79
79
80
80
5. Push to your fork and create a Pull Request
81
81
82
+
6. Pre-commit Hooks:
83
+
84
+
We use [husky](https://typicode.github.io/husky/) and [lint-staged](https://github.com/okonet/lint-staged) to automatically run linting and formatting on staged files before each commit. This helps maintain code quality and consistency.
85
+
86
+
The pre-commit hooks are configured to run:
87
+
-`pnpm lint`: Lints the staged files using ESLint
88
+
-`pnpm format`: Formats the staged files using Prettier
89
+
90
+
If either of these commands fails due to linting errors or formatting issues, the commit will be aborted. Please fix the reported issues and try committing again.
91
+
92
+
You can also run the lint and format commands manually at any time:
0 commit comments