I tossed all the various pre-commit scripts into G...
# dev-help
l
I tossed all the various pre-commit scripts into GPT-5, and had it write a fast lint:fix script that only runs on staged files (gist here). The script can be launched stand-alone from the project root folder, or installed/uninstalled as a pre-commit hook. So far, it seems to work fine, much faster than the husky script that does frontend checks on all files all the times. If you like the idea, it could be 'promoted' to a makefile target or maybe even default pre-commit.
w
I love this
🙏 1
l
Ok, I'll dogfood it a few more days then prepare a PR to add it to the makefile (as an alternative, so that it won't break all the stuff relying on the original implementation).
🙌 2