mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 11:16:53 +00:00
for pretty-format-json add option: --empty-object-with-newline
This commit is contained in:
parent
61b5f7e6f7
commit
496e23dea6
4 changed files with 82 additions and 1 deletions
17
testing/resources/empty_object_json_multiline.json
Normal file
17
testing/resources/empty_object_json_multiline.json
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"empty": {
|
||||
},
|
||||
"inhabited": {
|
||||
"person": {
|
||||
"name": "Roger",
|
||||
"nested_empty_with_comma": {
|
||||
},
|
||||
"array": [
|
||||
{
|
||||
"nested_empty_in_array": {
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
14
testing/resources/empty_object_json_sameline.json
Normal file
14
testing/resources/empty_object_json_sameline.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"empty": {},
|
||||
"inhabited": {
|
||||
"person": {
|
||||
"name": "Roger",
|
||||
"nested_empty_with_comma": {},
|
||||
"array": [
|
||||
{
|
||||
"nested_empty_in_array": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue