mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-09 21:04:17 +00:00
Fix docs for pretty-format-json: default indent is **2** spaces.
This commit is contained in:
parent
d9ccd95055
commit
1091574d2d
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ Checks that all your JSON files are pretty. "Pretty"
|
||||||
here means that keys are sorted and indented. You can configure this with
|
here means that keys are sorted and indented. You can configure this with
|
||||||
the following commandline options:
|
the following commandline options:
|
||||||
- `--autofix` - automatically format json files
|
- `--autofix` - automatically format json files
|
||||||
- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace). Defaults to 4 spaces.
|
- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace). Defaults to 2 spaces.
|
||||||
- `--no-ensure-ascii` preserve unicode characters instead of converting to escape sequences
|
- `--no-ensure-ascii` preserve unicode characters instead of converting to escape sequences
|
||||||
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
|
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
|
||||||
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue