git-hooks-example
git-hooks-example copied to clipboard
hooks grep matches only a singular file type
The Pre-commit hook only listens for the one file extension. It would be more suitable if you could include a variety of file extensions to have eslint do it's thing.
From what I can see, using .{tsx,js,jsx} is invalid POSIX syntax, so is fairly brittle. (Source: https://stackoverflow.com/questions/10619160/how-do-i-use-the-grep-include-option-for-multiple-file-types ) .
Do you have any other suggestions for using this?