0

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?

Migwell
  • 18,631
  • 21
  • 91
  • 160

1 Answers1

-1

for a CI equivalent you can use something like file-changes-action

related post

Nitsan Avni
  • 753
  • 6
  • 6