# .pre-commit-config.yaml
...
- id: pretty-format-json
args:
- --indent 4
- --autofix
- --no-sort-keys
...
# Error:
Pretty format JSON.................................................................Failed
hookid: pretty-format-json
usage: pretty-format-json [-h] [--autofix] [--indent INDENT] [--no-sort-keys]
[filenames [filenames ...]]
pretty-format-json: error: unrecognized arguments: package.json composer.json
Setting the argument to adjust the indentation level causes the script to break. Formatting of the argument doesn't seem to matter (E.g. '4', "4", 4). The only way to get it to work is to remove the argument.
Setting the argument to adjust the indentation level causes the script to break. Formatting of the argument doesn't seem to matter (E.g. '4', "4", 4). The only way to get it to work is to remove the argument.