git-hooks-example icon indicating copy to clipboard operation
git-hooks-example copied to clipboard

hooks grep matches only a singular file type

Open brett-james-rocketlab opened this issue 3 years ago • 0 comments

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?

brett-james-rocketlab avatar May 13 '22 02:05 brett-james-rocketlab