New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lint staged files on pre-commit hook #3906
Conversation
Should we also run eslint as part of the precommit hook? |
Make sense. I will push a new commit to this PR and change the PR title. 👌 |
Because we may not notice the lint errors until our CI occurs them.
remark
for committing markdown files
package.json
Outdated
@@ -140,7 +140,11 @@ | |||
"lint-staged": { | |||
"*.js": [ | |||
"prettier --write", | |||
"eslint --max-warnings=0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[note] I excluded --cache
option to lint files in the clean state. I think it no performance problem because of not for all JS files in the project.
Done. Please review again. 🙏 |
Co-Authored-By: ybiquitous <473530+ybiquitous@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
None. This PR aims to improve our DX (Developer eXperience).
Because we may not notice the lint errors until our CI occurs them.