But when i try to commit it gives me error:. I still see that the eslint is running before every commit from the command line but i don't see any output presented. What could be the issue?
Complete guide to ESLint, Prettier, husky and lintstaged
Currently with the code below, i am receiving a report of all of the errors and warnings but the commit is exiting with this error:
How to set up prettier & eslint with husky in node.js 🚀 let’s face it — we’ve all been there.
You commit a piece of code, push it to the repo, and just as. In order to force people to fix the code before commit it, we can use husky. If i run yarn lint, yarn lint:fix manually it don't give any error. In this case, we use husky to run.
To temporarily solve this issue, the only effective measure i have found is to reinstall husky every time the.git folder is deleted. But when i commit via the terminal in vscodium. Thats how it works when i use phpstorm. My expectaction is that the commit isn't executed if eslint finds errors or warnings.



