Skip to content

Commit 915a344

Browse files
Keavontimon-schelling
authored andcommitted
Bump frontend dependencies to Svelte 5 (#3648)
* Add more recommended VS Code default configs * Upgrade frontend dependencies including Svelte 5 * Fix derived_references_self runtime error * Fix lint warnings
1 parent 3b55064 commit 915a344

24 files changed

Lines changed: 974 additions & 795 deletions

.nix/pkgs/graphite.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ let
4848
npmDeps = pkgs.fetchNpmDeps {
4949
inherit (info) pname version;
5050
src = "${info.src}/frontend";
51-
hash = "sha256-D8VCNK+Ca3gxO+5wriBn8FszG8/x8n/zM6/MPo9E2j4=";
51+
hash = "sha256-WlwzWGoFi3hjRuM5ucrgavko/gg4iFAwMc6uMLjT/FI=";
5252
};
5353

5454
npmRoot = "frontend";

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
// Code quality
1212
"wayou.vscode-todo-highlight",
1313
"streetsidesoftware.code-spell-checker",
14-
// Helpful
14+
// Git
1515
"mhutchie.git-graph",
1616
"qezhu.gitlink",
17+
// Helpful
1718
"wmaurer.change-case"
1819
]
1920
}

.vscode/settings.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"editor.formatOnSave": false
3333
},
3434
// Rust Analyzer config
35+
"rust-analyzer.check.command": "clippy",
3536
"rust-analyzer.cargo.allTargets": false,
3637
"rust-analyzer.procMacro.ignored": {
3738
"serde_derive": ["Serialize", "Deserialize"],
@@ -47,13 +48,33 @@
4748
"vite-plugin-svelte-css-no-scopable-elements": "ignore", // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
4849
"a11y-no-static-element-interactions": "ignore", // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
4950
"a11y-no-noninteractive-element-interactions": "ignore", // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
50-
"a11y-click-events-have-key-events": "ignore" // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
51+
"a11y-click-events-have-key-events": "ignore", // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
52+
"a11y_consider_explicit_label": "ignore", // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
53+
"a11y_click_events_have_key_events": "ignore", // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
54+
"a11y_no_noninteractive_element_interactions": "ignore" // NOTICE: Keep this list in sync with the list in `frontend/vite.config.ts`
5155
},
56+
// Git Graph config
57+
"git-graph.repository.fetchAndPrune": true,
58+
"git-graph.repository.showRemoteHeads": false,
59+
"git-graph.repository.commits.fetchAvatars": true,
60+
// VS Code Git config
61+
"git.autofetch": true,
62+
"git.enableStatusBarSync": false,
63+
"git.showActionButton": {
64+
"sync": false
65+
},
66+
// CSpell config
67+
"cSpell.language": "en-US",
68+
"cSpell.logLevel": "Information",
69+
"cSpell.allowCompoundWords": true,
5270
// VS Code config
5371
"html.format.wrapLineLength": 200,
5472
"files.eol": "\n",
5573
"files.insertFinalNewline": true,
5674
"files.associations": {
5775
"*.graphite": "json"
58-
}
76+
},
77+
"editor.renderWhitespace": "boundary",
78+
"editor.minimap.markSectionHeaderRegex": "// ===+\\n\\s*//\\s*(?<label>[^\\n]{1,18})[^\\n]*(\\n\\s*//[^\\n]*)*\\n\\s*// ===+",
79+
"evenBetterToml.formatter.alignComments": false
5980
}

frontend/eslint.config.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ export default defineConfig([
3232
"import/resolver": { typescript: true, node: true },
3333
},
3434
languageOptions: {
35-
parserOptions: {
36-
project: "./tsconfig.json",
37-
},
3835
globals: {
3936
...globals.browser,
4037
...globals.node,

frontend/package-installer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ if (isInstallNeeded()) {
3232
console.log("Finished installing npm packages.");
3333
} catch (_) {
3434
// eslint-disable-next-line no-console
35-
console.error("Failed to install npm packages. Please delete the `node_modules` folder and run `npm install` from the `/frontend` directory.");
35+
console.error(
36+
"\n\n" +
37+
"------------------------------------------------------------> " +
38+
"Failed to install npm packages. Please delete the `node_modules` folder and run `npm install` from the `/frontend` directory.",
39+
);
3640
process.exit(1);
3741
}
3842
} else {

0 commit comments

Comments
 (0)