diff --git a/.editorconfig b/.editorconfig index 3c229b5dc..eefd85684 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,6 @@ charset=utf-8 trim_trailing_whitespace=true max_line_length=120 insert_final_newline=true +[*.json] +indent_style=tab +indent_size=4 diff --git a/scripts/sortAll.mjs b/scripts/sortAll.mjs index 48aa14926..8aeb858ec 100644 --- a/scripts/sortAll.mjs +++ b/scripts/sortAll.mjs @@ -60,7 +60,7 @@ function readJson (file) { } function writeJson (file, contents) { - fs.writeFileSync(file, `${JSON.stringify(contents, null, 2)}\n`); + fs.writeFileSync(file, `${JSON.stringify(contents, null, '\t')}\n`); } function readMeta () {