From a5ce78b638c751717b5051114c1a9f2fc5b496a8 Mon Sep 17 00:00:00 2001 From: Simeon Cheeseman <1085899+SimeonC@users.noreply.github.com> Date: Fri, 26 Jan 2024 15:52:09 +0900 Subject: [PATCH] fix: handle prettier formatting of certain json files This is a safety config for an issue introduced in prettier 3.2.2 See https://github.com/prettier/prettier/issues/15956#issuecomment-1905768038 --- packages/prettier-config/config.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/prettier-config/config.json b/packages/prettier-config/config.json index 998d5646..a249bf4e 100644 --- a/packages/prettier-config/config.json +++ b/packages/prettier-config/config.json @@ -8,6 +8,17 @@ "options": { "singleQuote": false } + }, + { + "files": [ + "devcontainer.json", + "jsconfig.json", + "language-configuration.json", + "tsconfig.json" + ], + "options": { + "parser": "json" + } } ] }