Configure Husky to run eslint on staged files before commit
🔖 Feature description
By integrating Husky with lint-staged, we can ensure that only code that passes ESLint checks is committed, helping to maintain consistent code quality and style across the repository. Also, we don't have to fix eslint warning after we open a PR. Let's solve it locally, then do a PR.
🎤 Why is this feature needed ?
To ensure that all code meets the linting standards before it's committed, reducing the need for last-minute fixes and ensuring a smoother, more consistent PR process. This helps maintain high code quality throughout development
✌️ How do you aim to achieve this?
- Install Husky and lint-staged
- Set up Husky pre-commit hook
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
- [X] I checked and didn't find similar issue
Are you willing to submit PR?
Yes I am willing to submit a PR!
@nevo-david, if you think this would help the project, I can start working on the implementation and submit a PR. Otherwise, I can close this issue.
@caushcani feel free to try it, but it might not compile the project you would need to do some changes :)
This issue is stale because it has been open for 90 days with no activity.
https://github.com/user-attachments/assets/c03f2889-7846-40fb-93d2-d8e757f75c4f
This issue is stale because it has been open for 90 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.