ESLint and Husky are both Node packages (libraries that can be included in your JavaScript projects). ESLint is a linter, which checks your code for stylistic and formatting discrepancies. Husky is a CI (continuous integration) tool that makes it easy to setup Git hooks through the package.json file part of modern JS projects.
The idea is to configure ESLint to match a desired code format, and then use the precommit hook to make sure that local changes still follow the code format. A subsequent use can be to use the prepush hook to make sure all builds/tests are passing before submitting a pull request/merge.
ESLint and Husky are both Node packages (libraries that can be included in your JavaScript projects). ESLint is a linter, which checks your code for stylistic and formatting discrepancies. Husky is a CI (continuous integration) tool that makes it easy to setup Git hooks through the
package.json
file part of modern JS projects.The idea is to configure ESLint to match a desired code format, and then use the
precommit
hook to make sure that local changes still follow the code format. A subsequent use can be to use theprepush
hook to make sure all builds/tests are passing before submitting a pull request/merge.