36 lines
900 B
JSON
36 lines
900 B
JSON
{
|
|
// Rust: save on format
|
|
"[rust]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnPaste": true,
|
|
"editor.defaultFormatter": "matklad.rust-analyzer",
|
|
},
|
|
// Web: save on format
|
|
"[typescript][javascript][vue]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true,
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
},
|
|
// Rust Analyzer config
|
|
"rust-analyzer.cargo.target": "wasm32-unknown-unknown",
|
|
"rust-analyzer.checkOnSave.command": "clippy",
|
|
// ESLint config
|
|
"eslint.format.enable": true,
|
|
"eslint.workingDirectories": [
|
|
"./frontend"
|
|
],
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"typescript",
|
|
],
|
|
// Vue config
|
|
"volar.completion.preferredAttrNameCase": "camel",
|
|
"volar.completion.preferredTagNameCase": "pascal",
|
|
// VS Code config
|
|
"html.format.wrapLineLength": 200,
|
|
"files.eol": "\n",
|
|
"files.insertFinalNewline": true,
|
|
}
|