Skip to content

Commit bda7fde

Browse files
sea-snakelmuntaner
andauthored
Add sveltekit and update deps (#2965)
* Update deps * Update deps * Update deps * Update deps * Update deps * Update deps * Update deps * Update deps * Update deps * Ignore astro/config TS error. * Ignore astro/config TS error. * Fix astro type errors. * Fix eslint * Fix eslint * Fix eslint * Fix linter * Fix linter * Apply changes from new prettier version. * Updated vitest related deps * Fix TS error * Avoid top level await in browser.execute. * Avoid top level await in browser.execute. * Avoid top level await in browser.execute. * Use status code instead of console logs. * Use status code instead of console logs. * Use status code instead of console logs. * Use status code instead of console logs. * Increase e2e sharding. * Re-use browser instance and revert sharding increase. * Wait a few seconds after closing browser. * Wait a few seconds after closing browser. * Wait a few seconds after closing browser. * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Maybe this works * Singlethread * Enable sharding again. * Update webdriverio * Update webdriverio * Update webdriverio * Singlethread * Try different cache dir * Try different cache dir * Try different cache dir * Try different cache dir * Change deleteSession config. * Try reloadSession * Revert various changes * Revert prettier changes. * Revert prettier changes. * Revert prettier changes. * Revert prettier changes. * Fix TS errors. * Fix TS errors. * Fix eslint issues * Increase timeout * Change order on init function in test app * Retry mechanism and add cleanup step between retries * Set timeouts to 60_000 * Add better error handling and setup shared memory in CI * Increase one more timeout * Fix shared memory setup * Increase one more timeout to 60_000 * Increase remaining timeouts to 60_000 * More Sonnet suggested changes * Improve comment * Remove charding * single therad and one shard * Improve one failing test * Revert AI suggested changes * Revert extra space * Narrow down and comment out flaky e2e tests * Narrow down and comment out flaky e2e tests * Bump webdriverio version * Bump webdriverio version * Bump webdriverio version * Log to see if cleanup always happens. * Add test name to logs instead of random id. * Add test name to logs instead of random id. * Does single thread mean single file? * Apparently not, trying max concurrency option now. * Bump chrome * Try fileParallelism option. * Fix test * Re-enable tests and skip formatting check * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR * Cleanup PR --------- Co-authored-by: Llorenç <[email protected]>
1 parent 6425ede commit bda7fde

32 files changed

+6989
-5191
lines changed

.eslintrc.json

-24
This file was deleted.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dist/
1616
dist-showcase/
1717
.env
1818
lib
19+
/.svelte-kit
1920

2021
# Cargo build output
2122
target/

.prettierrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"plugins": [
3+
"prettier-plugin-svelte"
4+
],
5+
"overrides": [
6+
{
7+
"files": "*.svelte",
8+
"options": {
9+
"parser": "svelte"
10+
}
11+
}
12+
]
13+
}

.prettierrc.json

-1
This file was deleted.

demos/test-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@types/react-dom": "^18.2.17",
2626
"@vitejs/plugin-react": "^4.2.0",
2727
"typescript": "5.2.2",
28-
"vite": "^5.4.6",
28+
"vite": "^6.0.0",
2929
"vite-plugin-node-polyfills": "^0.23.0"
3030
}
3131
}

demos/vc_issuer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@types/react-dom": "^18.2.17",
3030
"@vitejs/plugin-react": "^4.2.0",
3131
"typescript": "5.2.2",
32-
"vite": "^5.4.6",
32+
"vite": "^6.0.0",
3333
"vite-plugin-node-polyfills": "^0.23.0"
3434
}
3535
}

eslint.config.js

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
import prettier from "eslint-config-prettier";
2+
import js from "@eslint/js";
3+
import { includeIgnoreFile } from "@eslint/compat";
4+
import svelte from "eslint-plugin-svelte";
5+
import globals from "globals";
6+
import { fileURLToPath } from "node:url";
7+
import ts from "typescript-eslint";
8+
9+
const gitignorePath = fileURLToPath(new URL("./.gitignore", import.meta.url));
10+
11+
export default ts.config(
12+
includeIgnoreFile(gitignorePath),
13+
js.configs.recommended,
14+
...ts.configs.recommended,
15+
...svelte.configs["flat/recommended"],
16+
prettier,
17+
...svelte.configs["flat/prettier"],
18+
{
19+
languageOptions: {
20+
globals: {
21+
...globals.browser,
22+
...globals.node,
23+
},
24+
},
25+
},
26+
{
27+
files: ["**/*.svelte"],
28+
29+
languageOptions: {
30+
parserOptions: {
31+
parser: ts.parser,
32+
},
33+
},
34+
},
35+
{
36+
languageOptions: {
37+
parserOptions: {
38+
project: ["./tsconfig.json"],
39+
},
40+
},
41+
},
42+
{
43+
rules: {
44+
"@typescript-eslint/strict-boolean-expressions": [
45+
2,
46+
{ allowString: false, allowNumber: false },
47+
],
48+
"@typescript-eslint/no-unused-vars": [
49+
"warn",
50+
{
51+
argsIgnorePattern: "^_",
52+
varsIgnorePattern: "^_",
53+
caughtErrorsIgnorePattern: "^_",
54+
},
55+
],
56+
"require-await": ["error"],
57+
"@typescript-eslint/no-floating-promises": ["error"],
58+
},
59+
},
60+
{
61+
ignores: ["src/frontend/generated/*", "src/showcase/.astro/*"],
62+
},
63+
);

0 commit comments

Comments
 (0)