This PR introduces a pre-commit hook for enforcing formatting and linting locally before commits can be made, using husky and lint-staged npm packages. Helps all devs to integrate quality and uniformly-styled code.
Changes
Frontend:
Added husky and lint-staged
Modified package.json with new script and lint-staged configurations
Testing
Manual testing was conducted in the command line
Notes
Tested in the command line, after several attempts and alterations, all is working correctly
Why was npm run lint not functioning? We may look into this in the future, but this fix is quick and simple. Will delete the feature branch after the merge. Approved.
Feature: Pre-Commit Linting
Description
This PR introduces a pre-commit hook for enforcing formatting and linting locally before commits can be made, using husky and lint-staged npm packages. Helps all devs to integrate quality and uniformly-styled code.
Changes
Frontend:
lint-staged
configurationsTesting
Notes
Checklist
Tags
enhancement