There is a tool called pre-commit (see pre-commit.com) that allows managing pre-commit hooks. When I installed the eslint hook using these instructions, and I run the hook, it complains eslint has no configuration file. However, when I run eslint
it's not in my path.
So, where is pre-commit running eslint from?
I tried using -v
to see verbose output, but I still see no hook repository path. I also tried reading the website.