web
web copied to clipboard
Lint set up with Husky pre-commit hook
Intended / expected behavior with "pre-commit": "npm run lint" in our package.json:
- Files in staging have lint errors
- Lint errors are fixed with a pre-commit hook
- Files pushed to GitHub with the lint fix
Actual behavior:
- Files in staging have lint errors
- Lint errors are fixed with a pre-commit hook
- Files in step 1 prior to
npm run lintare committed instead of the newly modified files after running the pre-commit hook