mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Upgrade npm packages that were locked to old versions due to now-resolved problems Remove unused/unnecessary dependencies and their configurations Fix VS Code format on save Fix VS Code removing EOF newline in JSON files in conflict with npm Remove JSON files from ESLint because it doesn't properly support JSON Add detailed comments to web-related configuration files
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
{
|
|
// Rust: save on format
|
|
"[rust]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnPaste": true,
|
|
"editor.defaultFormatter": "matklad.rust-analyzer",
|
|
},
|
|
// Web: save on format (consolidate these when https://github.com/microsoft/vscode/issues/51935 is implemented)
|
|
"[typescript]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true,
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
},
|
|
"[javascript]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true,
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
},
|
|
"[vue]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true,
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
},
|
|
// Rust Analyzer config
|
|
"rust-analyzer.experimental.procAttrMacros": true,
|
|
"rust-analyzer.cargo.target": "wasm32-unknown-unknown",
|
|
// ESLint config
|
|
"eslint.format.enable": true,
|
|
"eslint.workingDirectories": [
|
|
"./frontend",
|
|
],
|
|
"eslint.validate": [
|
|
"javascript",
|
|
"typescript",
|
|
],
|
|
// Vue config
|
|
"vetur.format.enable": false,
|
|
// VS Code config
|
|
"html.format.wrapLineLength": 200,
|
|
"files.eol": "\n",
|
|
"files.insertFinalNewline": true,
|
|
}
|