pre-commit / pre-commit-hooks

Some out-of-the-box hooks for pre-commit
MIT License
5.2k stars 694 forks source link

[Feature Request] Allow arbitrary file extensions when validating JSON #1058

Closed matthew-rister closed 3 months ago

matthew-rister commented 3 months ago

Some file formats such as glTF internally use JSON to represent data. Unfortunately the check-json hook does not provide the ability to validate extensions other than .json. Please consider adding a hook option to enable JSON validation on arbitrary file extensions.

asottile commented 3 months ago

have you read the pre-commit docs? there are settings you can override on hooks to do exactly what you want