-
Notifications
You must be signed in to change notification settings - Fork 2
Add lint staged #12
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
Add lint staged #12
Conversation
c3380f8 to
b5f8089
Compare
4373a65 to
38ba78b
Compare
|
Perhaps the PR needs to be updated again since some time as passed, but what’s the reason it hasn’t been merged for all these years? |
38ba78b to
e861416
Compare
|
Updated the PR. @nunofgs can you give this a last review before merging? I've tested this out manually and is working as intended. |
|
Unrelated to this PR but this line: Line 8 in 9a544e1
pre-commit, that line should be on every root project that uses uphold-scripts and not here.
|
|
Should we consider adding |
e861416 to
eba61b9
Compare
|
LGTM. |
Currently, linting runs on every pre-commit for the whole project. This can be slow for medium to large sized projects. With lint-staged, linting runs only on git staged files.
eba61b9 to
c815dda
Compare
|
🚀 |
You should know the answer by heart right now 😆 |
The lint-staged package implements a mechanism for running linters only against git changes staged for commit (rather than the entire codebase), as a pre-commit hook.