Skip to content

Commit b503d23

Browse files
committed
Add JSON wrap & comma rules to .editorconfig
ij_json_wrap_long_lines causes IntelliJ to produce invalid files with excessively long last lines ij_json_keep_trailing_comma being set to true would produce invalid JSON.
1 parent bf0d8ad commit b503d23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@ ij_groovy_method_brace_style = end_of_line
2222

2323
[{*.har,*.json,*.png.mcmeta,mcmod.info,pack.mcmeta}]
2424
ij_json_array_wrapping = split_into_lines
25+
26+
# Lang files get excessively long lines, and IntelliJ insists on using broken formatting.
27+
ij_json_wrap_long_lines = false
28+
29+
# This is invalid to JSON spec, must be false.
30+
ij_json_keep_trailing_comma = false

0 commit comments

Comments
 (0)