Skip to content

Commit 6948425

Browse files
authored
Add pretty-format-json hook to pre-commit config
Added pretty-format-json hook with autofix and indent options.
1 parent 5352a5b commit 6948425

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ repos:
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
7+
- id: pretty-format-json
8+
args: [--autofix, --indent=2]
79
- id: check-yaml
810
- id: debug-statements
911
- id: double-quote-string-fixer

0 commit comments

Comments
 (0)