Skip to content

Commit

Permalink
Format JSON files.
Browse files Browse the repository at this point in the history
Currently we store JSON as a single line in files. We should prettify it
like we do the other formats.
  • Loading branch information
tech4him1 authored and erquhart committed Jan 3, 2018
1 parent 1167f27 commit e45f531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formats/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export default {
},

toFile(data) {
return JSON.stringify(data);
return JSON.stringify(data, null, 2);
}
}

0 comments on commit e45f531

Please sign in to comment.