Drift
Drift copied to clipboard
Run linter on pre-commit hook
I'm very bad at running prettier, and there is a very easy way to hook it to the git pre-commit in both server/
and client/
https://prettier.io/docs/en/precommit.html
Additionally, I think there are a lot of files in client/component
are not formatted
Additionally, I think there are a lot of files in client/component are not formatted
Thanks, I forgot to lint tsx files. Pushed.
😅 Ok this might be tricker than expected, as it is one repo with multiple projects, none of the out of the box solutions with Husky will work. I'll leave this issue as is, but I think we'll just close it and be more vigilant 🙈
I can look into writing a custom hook, iirc its really just a bash script
Yup. But I'm on Windows atm 🙈 So it wouldn't fix my inability to remember to run the linter 😅