Skip to content
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

Only lint staged files on commit #258

Open
JesseLeung97 opened this issue Nov 17, 2024 · 0 comments
Open

Only lint staged files on commit #258

JesseLeung97 opened this issue Nov 17, 2024 · 0 comments
Labels
devops Related to developer experience or software development lifecycle

Comments

@JesseLeung97
Copy link
Collaborator

This is inspired by something I'm running into with a project in my team.

Currently the pre-commit lint hook runs the linter against all qualifying (js, ts, jsx, tsx, ...) files in the project even if they are not staged. This is helpful in maintaining the code quality of committed code but it can become obtrusive when trying to commit a subset of changed files. We should investigate options for linting only staged files so that commits are not blocked in situations where staged files pass the linting rules but unstaged files do not comply with the rules.

Possible packages to help:

@JesseLeung97 JesseLeung97 added the devops Related to developer experience or software development lifecycle label Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Related to developer experience or software development lifecycle
Projects
None yet
Development

No branches or pull requests

1 participant