-
I have a file/folder that I want to commit to git that is also ignored by my Eslint config. My
The issue is, this will produce a Eslin warning: And here I end up in a deadlock, since Eslin warnings are forbidden. Is there a way to tell lefthook to ignore staged files in specific folders? Or any other ideas on how to solve this? My interim solution is to disable git hooks every time I commit within the ignored folder. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, there is an |
Beta Was this translation helpful? Give feedback.
Yes, there is an
exclude
option for this: https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md#exclude