Skip to content

Commit 19f486b

Browse files
authored
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.
1 parent 907dd83 commit 19f486b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
lib/vscode

.prettierrc.yaml

-11
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,3 @@ trailingComma: all
44
arrowParens: always
55
singleQuote: false
66
useTabs: false
7-
8-
overrides:
9-
# Attempt to keep VScode's existing code style intact.
10-
- files: "lib/vscode/**/*.ts"
11-
options:
12-
# No limit defined upstream.
13-
printWidth: 10000
14-
semi: true
15-
singleQuote: true
16-
useTabs: true
17-
arrowParens: avoid

0 commit comments

Comments
 (0)