The recent commit added a lint-staged pre-commit hook in .husky
. How do I configure it to lint specific file types?
#53
Answered
by
dailker
IsmailBinMujeeb
asked this question in
Q&A
-
The recent commit added a lint-staged pre-commit hook in |
Beta Was this translation helpful? Give feedback.
Answered by
dailker
Oct 3, 2025
Replies: 1 comment
-
To configure |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
IsmailBinMujeeb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To configure
lint-staged
:1. In
package.json
:json<br>"lint-staged": { "*.{js,jsx}": "eslint --fix", "*.css": "stylelint --fix" }<br>
2. Install
stylelint
if needed.3. Test with
git commit
and submit a pull request.