Skip to content

Conversation

@ibigbug
Copy link

@ibigbug ibigbug commented Oct 12, 2015

Example:

  "pre-commit": {
    "run": ["hint"],
    "fileType": "js|json"
  }

Only commit includes the custom file types can trigger the hook.

It may be very useful in a big project written in multiple languages. :)

@3rd-Eden
Copy link
Member

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.

@ibigbug
Copy link
Author

ibigbug commented Oct 12, 2015

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?

@ibigbug ibigbug closed this Oct 6, 2016
@ibigbug ibigbug deleted the fileType branch October 6, 2016 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants