From 19f486b6723b495b31e10c49d6ee573e646dc3f5 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 15 Jul 2022 14:13:13 -0700 Subject: [PATCH] chore(prettier): ignore lib/vscode (#5347) We were using an overrides command in our `.prettierrc.yaml` which quickly became out of sync with Code's Prettier styles. Instead, we simply tell Prettier to ignore `lib/vscode`. This way, if you have `formatOnSave` on and you save inside `lib/vscode`, you won't convert the file to use code-server's styles. --- .prettierignore | 1 + .prettierrc.yaml | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) create mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..a65aaff4d --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +lib/vscode \ No newline at end of file diff --git a/.prettierrc.yaml b/.prettierrc.yaml index a58621d69..b6114bf46 100644 --- a/.prettierrc.yaml +++ b/.prettierrc.yaml @@ -4,14 +4,3 @@ trailingComma: all arrowParens: always singleQuote: false useTabs: false - -overrides: - # Attempt to keep VScode's existing code style intact. - - files: "lib/vscode/**/*.ts" - options: - # No limit defined upstream. - printWidth: 10000 - semi: true - singleQuote: true - useTabs: true - arrowParens: avoid