Skip to content

Commit 23d4811

Browse files
authored
Merge pull request #457 from dougthor42/doc-fix-gh456
Fix docs for pretty-format-json: default indent is **2** spaces.
2 parents d9ccd95 + 1091574 commit 23d4811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Checks that all your JSON files are pretty. "Pretty"
136136
here means that keys are sorted and indented. You can configure this with
137137
the following commandline options:
138138
- `--autofix` - automatically format json files
139-
- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace). Defaults to 4 spaces.
139+
- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace). Defaults to 2 spaces.
140140
- `--no-ensure-ascii` preserve unicode characters instead of converting to escape sequences
141141
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
142142
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.

0 commit comments

Comments
 (0)