Archived
1
0

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.
This commit is contained in:
Joe Previte 2022-07-15 14:13:13 -07:00 committed by GitHub
parent 907dd835e8
commit 19f486b672
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
lib/vscode

View File

@ -4,14 +4,3 @@ trailingComma: all
arrowParens: always arrowParens: always
singleQuote: false singleQuote: false
useTabs: 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