Closed ibigbug closed 8 years ago
It might make more sense to allow specific hooks be ran for extensions instead of applying this to all extensions so you can have a JSHint run only for JS changes and a CSSHint for just css changes.
Yes I agree with you. And how do you think the config will look like ? Maybe:
"pre-commit": {
"run": ["jshint|js,css", "csslint|css", "flake8|py"]
}
Is that ok?
Example:
Only commit includes the custom file types can trigger the hook.
It may be very useful in a big project written in multiple languages. :)