mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
* Migrate Specta to Tsify to auto-generate messages.ts, working except colors and widgets * Adopt the generated FillColor/Color/GradientStops * Fix widget typing * Separate WidgetGroup enum variants into wrapper structs * Small rename * Simplify widgets further * Clean up message type references * Switch type imports to the auto-generated file * Remove lowercase serde rename * Fix FillChoice deserialization * Fix small regression from #3837 * Improve type safety * Make WidgetSpan type-safe * More cleanup and type safety * More type safety * More type safety * Get the rest to type-check without errors; improve widget builder macro to have optional icons; improve Svelte 5 configs * Cargo fmt * Fix imports * Update outdated readme info * Fix lint command rename references * Fix typos * One more typos fix * Remove unnecessary dep: prefix from the edited Cargo.toml files * Remove excess parts from Cargo.toml * Fix compiling on desktop * Revert "Remove excess parts from Cargo.toml" This reverts commit 6b711117b3a5d5d8a3ee20f36a43bc74930b7c82. * Update dev docs with simpler, more accurate instructions
75 lines
2.2 KiB
JSON
75 lines
2.2 KiB
JSON
{
|
|
// Rust: save on format
|
|
"[rust]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.formatOnPaste": true,
|
|
"editor.defaultFormatter": "rust-lang.rust-analyzer"
|
|
},
|
|
// Web: save on format
|
|
"[javascript][typescript][svelte]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"editor.formatOnSave": true,
|
|
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
},
|
|
"[scss]": {
|
|
"editor.codeActionsOnSave": {
|
|
"source.fixAll.eslint": "explicit"
|
|
},
|
|
"editor.formatOnSave": true,
|
|
// Configured in `.prettierrc`
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
"[json][jsonc][yaml][github-actions-workflow]": {
|
|
"editor.formatOnSave": true,
|
|
// Configured in `.prettierrc`
|
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
},
|
|
// Website: don't format Zola/Tera-templated HTML on save
|
|
"[html]": {
|
|
"editor.formatOnSave": false
|
|
},
|
|
// 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.check.command": "clippy",
|
|
"rust-analyzer.cargo.allTargets": false,
|
|
"rust-analyzer.procMacro.ignored": {
|
|
"serde_derive": ["Serialize", "Deserialize"]
|
|
},
|
|
// ESLint config
|
|
"eslint.format.enable": true,
|
|
"eslint.workingDirectories": ["./frontend", "./website"],
|
|
"eslint.validate": ["javascript", "typescript", "svelte"],
|
|
// Git Graph config
|
|
"git-graph.repository.fetchAndPrune": true,
|
|
"git-graph.repository.showRemoteHeads": false,
|
|
"git-graph.repository.commits.fetchAvatars": true,
|
|
// VS Code Git config
|
|
"git.autofetch": true,
|
|
"git.enableStatusBarSync": false,
|
|
"git.showActionButton": {
|
|
"sync": false
|
|
},
|
|
// CSpell config
|
|
"cSpell.language": "en-US",
|
|
"cSpell.logLevel": "Information",
|
|
"cSpell.allowCompoundWords": true,
|
|
// Other extensions config
|
|
"evenBetterToml.formatter.alignComments": false,
|
|
"package-json-upgrade.ignorePatterns": ["source-sans-pro"],
|
|
// VS Code config
|
|
"html.format.wrapLineLength": 200,
|
|
"files.eol": "\n",
|
|
"files.insertFinalNewline": true,
|
|
"files.associations": {
|
|
"*.graphite": "json"
|
|
},
|
|
"editor.renderWhitespace": "boundary",
|
|
"editor.minimap.markSectionHeaderRegex": "// ===+\\n\\s*//\\s*(?<label>[^\\n]{1,18})[^\\n]*(\\n\\s*//[^\\n]*)*\\n\\s*// ===+"
|
|
}
|