mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
This new hook allows to standardize one's JSON files (sorted key/4 spaces indent). By default it just fails if any file is not complying with the standard, but you can also pass the arg `--autofix` and the hook will pretty-format the file itself. Good in use combined with the `check-json` hook. |
||
|---|---|---|
| .. | ||
| bad_json.notjson | ||
| bad_xml.notxml | ||
| bad_yaml.notyaml | ||
| cannot_parse_ast.notpy | ||
| file_with_debug.notpy | ||
| not_pretty_formatted_json.json | ||
| ok_json.json | ||
| ok_xml.xml | ||
| ok_yaml.yaml | ||
| pretty_formatted_json.json | ||