Skip to content

Commit 56cbae6

Browse files
Disable Prettier if no prettier config exists (#3994)
A lot of users of [prettier extension](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) use it to format files automatically on save leading to unwanted diffs, so I've added an option to disable prettier unless there is a prettier config file. Co-authored-by: Joey Robichaud <[email protected]>
1 parent 8dd1b8b commit 56cbae6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"editor.tabSize": 4,
33
"editor.insertSpaces": true,
4+
"prettier.requireConfig": true,
45

56
"files.exclude": {
67
"out": true,
@@ -20,4 +21,4 @@
2021
"typescript.tsdk": "./node_modules/typescript/lib",
2122
"mocha.enabled": true,
2223
"omnisharp.autoStart": false
23-
}
24+
}

0 commit comments

Comments
 (0)