mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Co-authored-by: Thomas Cheng <35661641+Androxium@users.noreply.github.com> Co-authored-by: Robert Nadal <Robnadal44@gmail.com> Co-authored-by: ll2zheng <ll2zheng@uwaterloo.ca>
42 lines
1.1 KiB
JSON
42 lines
1.1 KiB
JSON
{
|
|
// Rust: save on format
|
|
"[rust]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnPaste": true,
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer",
|
|
},
|
|
// Web: save on format
|
|
"[typescript][javascript][vue]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": true,
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
|
|
},
|
|
// Handlebars: don't save on format
|
|
// (`about.hbs` is used by Cargo About to encode license information)
|
|
"[handlebars]": {
|
|
"editor.formatOnSave": false,
|
|
},
|
|
// Rust Analyzer config
|
|
"rust-analyzer.cargo.target": "wasm32-unknown-unknown",
|
|
"rust-analyzer.checkOnSave.command": "clippy",
|
|
// ESLint config
|
|
"eslint.format.enable": true,
|
|
"eslint.workingDirectories": [
|
|
"./frontend",
|
|
"./bezier-rs/docs/interactive-docs",
|
|
],
|
|
"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,
|
|
}
|