that.us
that.us copied to clipboard
Using `lint-staged` for pre-commit hook
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