From dafdde8bb126f0f62d2c571463154a1ff196ff38 Mon Sep 17 00:00:00 2001 From: Benjamin Ramser Date: Tue, 13 Dec 2022 08:46:16 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=94=A7=20prettierrc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.prettierrc b/.prettierrc index 875e829..9271ebf 100644 --- a/.prettierrc +++ b/.prettierrc @@ -3,5 +3,35 @@ "tabWidth": 4, "semi": true, "singleQuote": true, - "arrowParens": "always" + "arrowParens": "always", + "overrides": [ + { + "files": ".prettierrc", + "options": { + "tabWidth": 2, + "parser": "json" + } + }, + { + "files": "**/*.json", + "options": { + "tabWidth": 2, + "parser": "json" + } + }, + { + "files": "**/*.yml", + "options": { + "tabWidth": 2, + "parser": "yaml" + } + }, + { + "files": "**/*.yaml", + "options": { + "tabWidth": 2, + "parser": "yaml" + } + } + ] }