From 9ab248737841710426fff202715afa786a66adae Mon Sep 17 00:00:00 2001 From: Jaco Date: Sat, 19 Mar 2022 13:38:19 +0100 Subject: [PATCH] Swap to using tabs in json (#1304) * Swap to using tabs in json * Update .editorconfig --- .editorconfig | 3 +++ scripts/sortAll.mjs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 () {