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

Using lint-staged for pre-commit hook #1274

Open
blitzmann opened this issue Jul 27, 2022 · 0 comments
Open

Using lint-staged for pre-commit hook #1274

blitzmann opened this issue Jul 27, 2022 · 0 comments

Comments

@blitzmann
Copy link

Is your feature request related to a problem? Please describe.
I'm looking for abit of discussion on whether or not [lint-staged](https://github.com/okonet/lint-staged) has ben considered for use before, and if not, if it's something that we would be interested in adding. Right now, for every commit, prettier and eslint is run for the entire repo, which can take quite a bit of time. lint-staged saves time by only running linters on files that are being staged for commit (files that the user changed), under the assumption that everything else in the repo is in a proper state.

Describe the solution you'd like
Using lint-staged to surgically apply linters rather than applying them to the whole repo.

Describe alternatives you've considered
n/a

Additional context
n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant