Skip to content

Commit 12b373f

Browse files
pkupperKeavon
authored andcommitted
Don't use ESLint formatter for Rust files in VS Code (#228)
* Remove default formatter from vscode settings * Only use eslint formatter on js/ts/json/vue files
1 parent d84f7c7 commit 12b373f

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

.vscode/settings.json

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,20 @@
33
"editor.formatOnSave": true,
44
"editor.formatOnPaste": true
55
},
6-
"[vue]": {
7-
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
6+
"[typescript, javascript, json, vue]": {
7+
"editor.codeActionsOnSave": {
8+
"source.fixAll.eslint": true
9+
},
810
"editor.formatOnSave": true,
11+
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
912
},
10-
"[javascript]": {
11-
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
12-
"editor.formatOnSave": true,
13-
},
14-
"[json]": {
15-
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
16-
"editor.formatOnSave": true,
17-
},
18-
"[typescript, json]": {
19-
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
20-
"editor.formatOnSave": true,
21-
},
22-
"rust-analyzer.diagnostics.disabled": [
23-
"missing-unsafe" // Remove when rust-analyzer bug fixes unsafe code on WASM JavaScript https://github.com/rust-analyzer/rust-analyzer/issues/5412
24-
],
13+
"rust-analyzer.experimental.procAttrMacros": true,
2514
"files.eol": "\n",
2615
"html.format.wrapLineLength": 200,
27-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
2816
"eslint.format.enable": true,
29-
"eslint.workingDirectories": ["./client/web"],
17+
"eslint.workingDirectories": [
18+
"./client/web"
19+
],
3020
"eslint.validate": [
3121
"javascript",
3222
"typescript",

0 commit comments

Comments
 (0)