Remove precommit hooks - #249
Conversation
|
🌐 Preview URL: https://pr-249-frcsoftware.frcsoftware.workers.dev |
samfreund
left a comment
There was a problem hiding this comment.
I'm against this until we demonstrate what the issues people are hitting are, and that they're unresolvable.
|
Linting before committing does allow for guarantees that the commit is cleanly formatted and whatnot, but sometimes the linter is broken or you just wanna throw down a commit without linting. Commit hooks can be bypassed, but it's not an easily accessible setting in most IDEs and it auto-resets to no bypass on IntelliJ. Lint-staged also only lints things within the git stage, which can sometimes fail if additional stuff needs to be linted, if the lint depends on something else, or if you use an IDE that doesn't use the traditional git staging mechanism such as IntelliJ. Linting also takes a few seconds before the lint actually saves, and if it fails VSCode and IntelliJ doesn't make it obvious why it failed in the commit hook. I'm in favor of removing pre-commit hooks, then maybe adding back in a pre-push hook when we've stabilized the linter. |
Description
I removed the precommit hooks because they are annoying and keep failing for people. Just run the commands you need to.
Meta
Merge checklist: