Skip to content

Commit

Permalink
chore(prettier): ignore lib/vscode (#5347)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsjoeio committed Jul 15, 2022
1 parent 907dd83 commit 19f486b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
1 change: 1 addition & 0 deletions .prettierignore
@@ -0,0 +1 @@
lib/vscode
11 changes: 0 additions & 11 deletions .prettierrc.yaml
Expand Up @@ -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

0 comments on commit 19f486b

Please sign in to comment.