In the Python world, it's common to use pre-commit
, which provides a git commit
hook, and then on your CI server you can run pre-commit run --all-files
which will ignore the commit and run the linting tools on all files. This ensures that, for example, pull requests must pass the linting requirements or the build will fail.
However, in the JS world, it seems common to use Husky + Lint-Staged, which satisfies the git commit
hook requirement, but doesn't seem to have an equivalent to pre-commit run --all-files
. How do Husky users check pull request code in their CI?