Githook ultilities
Filename: /src/pre-commit
- ESLint is installed and configured
- Copy
pre-commitfile into your/.git/hooks/folder chmod +x pre-commitif needed
pre-commitwill be triggered whengit commitpre-commitwill run ESLint test only on the files that have been modified/added and to be commited- If ESLint test fails, commit will not be allowed