mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 01:28:12 +08:00
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
This commit is contained in:
Vendored
+9
-19
@@ -3,30 +3,20 @@
|
|||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.formatOnPaste": true
|
"editor.formatOnPaste": true
|
||||||
},
|
},
|
||||||
"[vue]": {
|
"[typescript, javascript, json, vue]": {
|
||||||
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": true
|
||||||
|
},
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
||||||
},
|
},
|
||||||
"[javascript]": {
|
"rust-analyzer.experimental.procAttrMacros": true,
|
||||||
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
},
|
|
||||||
"[json]": {
|
|
||||||
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
},
|
|
||||||
"[typescript, json]": {
|
|
||||||
"editor.codeActionsOnSave": { "source.fixAll.eslint": true },
|
|
||||||
"editor.formatOnSave": true,
|
|
||||||
},
|
|
||||||
"rust-analyzer.diagnostics.disabled": [
|
|
||||||
"missing-unsafe" // Remove when rust-analyzer bug fixes unsafe code on WASM JavaScript https://github.com/rust-analyzer/rust-analyzer/issues/5412
|
|
||||||
],
|
|
||||||
"files.eol": "\n",
|
"files.eol": "\n",
|
||||||
"html.format.wrapLineLength": 200,
|
"html.format.wrapLineLength": 200,
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
||||||
"eslint.format.enable": true,
|
"eslint.format.enable": true,
|
||||||
"eslint.workingDirectories": ["./client/web"],
|
"eslint.workingDirectories": [
|
||||||
|
"./client/web"
|
||||||
|
],
|
||||||
"eslint.validate": [
|
"eslint.validate": [
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
|
|||||||
Reference in New Issue
Block a user