From 733a8c6a61e87cbba236c3070218758742a03269 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Tue, 22 Nov 2022 10:42:36 +0100 Subject: [PATCH 1/3] refactor: aligned code styles through projects --- .prettierrc.json | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.prettierrc.json b/.prettierrc.json index 92deab90a..15e18d74f 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -2,16 +2,12 @@ "trailingComma": "none", "overrides": [ { - "files": "**/*.js", + "files": ["*.js", "*.jsx", "*.ts", "*.tsx"], "options": { - "singleQuote": true - } - }, - { - "files": "**/*.mjs", - "options": { - "singleQuote": true + "bracketSameLine": true } } - ] + ], + "editorconfig": true, + "bracketSpacing": true } From 5ad02432ff75787fac1bd196496ebda39bf7704d Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Wed, 23 Nov 2022 17:58:21 +0100 Subject: [PATCH 2/3] fix: this is not an option for the config --- .prettierrc.json | 1 - 1 file changed, 1 deletion(-) diff --git a/.prettierrc.json b/.prettierrc.json index 15e18d74f..1da97fada 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -8,6 +8,5 @@ } } ], - "editorconfig": true, "bracketSpacing": true } From b1b14094ac886414bab808f12a6fdaa135846583 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> Date: Mon, 5 Dec 2022 14:32:32 +0100 Subject: [PATCH 3/3] refactor: added further necessary declarations --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 84653c799..0e0572b75 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,7 +12,7 @@ indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true -[*.js] +[*.{js,jsx,ts,tsx,mjs}] quote_type = single [package.json] @@ -21,6 +21,6 @@ quote_type = single indent_size = 2 indent_style = space -[{*.yaml,*.yml}] +[*.{yaml,yml,md}] indent_style = space indent_size = 2