Closed jamesgeorge007 closed 4 years ago
@JamesMessinger I would be happy to shoot a PR :+1:
I appreciate your willingness to contribute and improve this project. Thank you for that. 🙏
However, I'm not personally a fan of doing stuff like that in pre-commit hooks because it makes each commit take several seconds, which is frustrating. It ends up encouraging people (myself included) to just do a single large commit rather than smaller commits to avoid waiting for the linter to run each time.
The lint
script is automatically run as part of CI/CD as well as part of the test
and release
scripts, which I feel is sufficient to ensure that all code passes linter checks before being merged/released.
Should I go ahead and close this one or are we gonna wait to hear out from other guys :thinking:
I'll go ahead and close it. But if anyone wants to chime-in on it, I'm totally willing to listen and maybe re-open it
pre-commit
hooks can come in handy while in the Dev workflow. Thelint
script can be made to execute automatically before making a commit (and staging updated files).