diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index a0b4caa1..2b8818ff 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -16,6 +16,6 @@ "@sdeverywhere/cli": "^0.7.23", "@sdeverywhere/plugin-check": "^0.3.5", "@sdeverywhere/plugin-worker": "^0.2.3", - "vite": "^4.4.9" + "vite": "^5.4.2" } } diff --git a/examples/house-game/packages/app/package.json b/examples/house-game/packages/app/package.json index 9f02a588..4d33641e 100644 --- a/examples/house-game/packages/app/package.json +++ b/examples/house-game/packages/app/package.json @@ -6,7 +6,7 @@ "scripts": { "clean": "rm -rf public", "lint:ts": "eslint src --max-warnings 0", - "lint:svelte": "svelte-check --fail-on-warnings --output human --compiler-warnings \"a11y-click-events-have-key-events:ignore,a11y-no-noninteractive-tabindex:ignore\"", + "lint:svelte": "svelte-check --fail-on-warnings --output human --compiler-warnings \"a11y-click-events-have-key-events:ignore,a11y-no-noninteractive-tabindex:ignore,a11y-no-static-element-interactions:ignore\"", "lint": "run-s lint:ts lint:svelte", "prettier:check": "prettier --check .", "prettier:fix": "prettier --write .", @@ -23,14 +23,14 @@ "chart.js": "^2.9.4" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.4.5", + "@sveltejs/vite-plugin-svelte": "^3.1.2", "@types/chart.js": "^2.9.34", - "postcss": "^8.4.31", - "sass": "^1.34.1", - "svelte": "^3.59.2", - "svelte-check": "^3.5.1", - "svelte-preprocess": "^5.0.4", - "vite": "^4.4.9" + "postcss": "^8.4.41", + "sass": "^1.77.8", + "svelte": "^4.2.19", + "svelte-check": "^3.8.6", + "svelte-preprocess": "^6.0.2", + "vite": "^5.4.2" }, "author": "Climate Interactive", "license": "MIT", diff --git a/examples/house-game/packages/app/svelte.config.js b/examples/house-game/packages/app/svelte.config.js index 8638b5c5..e3a3813d 100644 --- a/examples/house-game/packages/app/svelte.config.js +++ b/examples/house-game/packages/app/svelte.config.js @@ -1,14 +1,16 @@ -import sveltePreprocess from 'svelte-preprocess' +import { sveltePreprocess } from 'svelte-preprocess' export default { preprocess: sveltePreprocess({}), onwarn: (warning, defaultHandler) => { // TODO: We should resolve these warnings instead of ignoring them - if (warning.code === 'a11y-click-events-have-key-events') { - return - } - if (warning.code === 'a11y-no-noninteractive-tabindex') { - return + switch (warning.code) { + case 'a11y-click-events-have-key-events': + case 'a11y-no-noninteractive-tabindex': + case 'a11y-no-static-element-interactions': + return + default: + break } // Handle all other warnings normally diff --git a/examples/house-game/packages/app/tsconfig.json b/examples/house-game/packages/app/tsconfig.json index ed52760d..3d64918a 100644 --- a/examples/house-game/packages/app/tsconfig.json +++ b/examples/house-game/packages/app/tsconfig.json @@ -19,6 +19,8 @@ "target": "esnext", "module": "esnext", "moduleResolution": "node", + "isolatedModules": true, + "verbatimModuleSyntax": true, "skipLibCheck": true, "allowJs": true, "noImplicitAny": false, diff --git a/examples/sample-check-app/package.json b/examples/sample-check-app/package.json index 4f5a4229..d5df313c 100644 --- a/examples/sample-check-app/package.json +++ b/examples/sample-check-app/package.json @@ -6,7 +6,7 @@ "scripts": { "clean": "rm -rf public", "lint:ts": "eslint src --max-warnings 0", - "lint:svelte": "svelte-check --fail-on-warnings --output human --compiler-warnings \"a11y-click-events-have-key-events:ignore,a11y-no-noninteractive-tabindex:ignore\"", + "lint:svelte": "svelte-check --fail-on-warnings --output human --compiler-warnings \"a11y-click-events-have-key-events:ignore,a11y-no-noninteractive-tabindex:ignore,a11y-no-static-element-interactions:ignore\"", "lint": "run-s lint:ts lint:svelte", "prettier:check": "prettier --check .", "prettier:fix": "prettier --write .", @@ -23,14 +23,14 @@ "@sdeverywhere/sample-check-tests": "workspace:*" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.4.5", - "postcss": "^8.4.31", - "pug": "^3.0.1", - "sass": "^1.34.1", - "svelte": "^3.59.2", - "svelte-check": "^3.5.1", - "svelte-preprocess": "^5.0.4", - "vite": "^4.4.9" + "@sveltejs/vite-plugin-svelte": "^3.1.2", + "postcss": "^8.4.41", + "pug": "^3.0.3", + "sass": "^1.77.8", + "svelte": "^4.2.19", + "svelte-check": "^3.8.6", + "svelte-preprocess": "^6.0.2", + "vite": "^5.4.2" }, "author": "Climate Interactive", "license": "MIT", diff --git a/examples/sample-check-app/svelte.config.js b/examples/sample-check-app/svelte.config.js index 8638b5c5..e3a3813d 100644 --- a/examples/sample-check-app/svelte.config.js +++ b/examples/sample-check-app/svelte.config.js @@ -1,14 +1,16 @@ -import sveltePreprocess from 'svelte-preprocess' +import { sveltePreprocess } from 'svelte-preprocess' export default { preprocess: sveltePreprocess({}), onwarn: (warning, defaultHandler) => { // TODO: We should resolve these warnings instead of ignoring them - if (warning.code === 'a11y-click-events-have-key-events') { - return - } - if (warning.code === 'a11y-no-noninteractive-tabindex') { - return + switch (warning.code) { + case 'a11y-click-events-have-key-events': + case 'a11y-no-noninteractive-tabindex': + case 'a11y-no-static-element-interactions': + return + default: + break } // Handle all other warnings normally diff --git a/examples/sample-check-bundle/package.json b/examples/sample-check-bundle/package.json index 2e974d57..422cee48 100644 --- a/examples/sample-check-bundle/package.json +++ b/examples/sample-check-bundle/package.json @@ -5,6 +5,7 @@ "files": [ "dist/**" ], + "type": "module", "module": "dist/index.js", "types": "types/index.d.ts", "scripts": { @@ -26,7 +27,7 @@ "assert-never": "^1.2.1" }, "devDependencies": { - "vite": "^4.4.9" + "vite": "^5.4.2" }, "author": "Climate Interactive", "license": "MIT", diff --git a/examples/sample-check-tests/package.json b/examples/sample-check-tests/package.json index 8d5e4d29..71e7b667 100644 --- a/examples/sample-check-tests/package.json +++ b/examples/sample-check-tests/package.json @@ -24,7 +24,7 @@ "assert-never": "^1.2.1" }, "devDependencies": { - "vite": "^4.4.9" + "vite": "^5.4.2" }, "author": "Climate Interactive", "license": "MIT", diff --git a/examples/sample-check-tests/src/index.ts b/examples/sample-check-tests/src/index.ts index d3b971b0..7a306fa3 100644 --- a/examples/sample-check-tests/src/index.ts +++ b/examples/sample-check-tests/src/index.ts @@ -11,15 +11,15 @@ import type { import { createBaseComparisonSpecs } from './comparisons/comparison-specs' -const checksYamlGlob = import.meta.glob('./checks/*.yaml', { eager: true, as: 'raw' }) -const checksYaml = Object.values(checksYamlGlob) +const checksYamlGlob = import.meta.glob('./checks/*.yaml', { eager: true, query: '?raw', import: 'default' }) +const checksYaml = Object.values(checksYamlGlob) as string[] -const comparisonsYamlGlob = import.meta.glob('./comparisons/*.yaml', { eager: true, as: 'raw' }) +const comparisonsYamlGlob = import.meta.glob('./comparisons/*.yaml', { eager: true, query: '?raw', import: 'default' }) const comparisonsYaml: ComparisonSpecsSource[] = Object.entries(comparisonsYamlGlob).map(entry => { return { kind: 'yaml', filename: entry[0], - content: entry[1] + content: entry[1] as string } }) diff --git a/examples/template-default/packages/app/package.json b/examples/template-default/packages/app/package.json index b9bee167..330c522a 100644 --- a/examples/template-default/packages/app/package.json +++ b/examples/template-default/packages/app/package.json @@ -20,6 +20,6 @@ }, "devDependencies": { "@types/chart.js": "^2.9.34", - "vite": "^4.4.9" + "vite": "^5.4.2" } } diff --git a/examples/template-default/packages/core/package.json b/examples/template-default/packages/core/package.json index 2afedd61..a1df76fb 100644 --- a/examples/template-default/packages/core/package.json +++ b/examples/template-default/packages/core/package.json @@ -19,6 +19,6 @@ }, "devDependencies": { "typescript": "^5.2.2", - "vite": "^4.4.9" + "vite": "^5.4.2" } } diff --git a/package.json b/package.json index 552c6f1f..9994d4b5 100644 --- a/package.json +++ b/package.json @@ -21,20 +21,20 @@ "test": "run-s test:pkgs test:c-int test:js-int" }, "devDependencies": { - "@typescript-eslint/eslint-plugin": "^6.5.0", - "@typescript-eslint/parser": "^6.5.0", - "eslint": "^8.48.0", - "eslint-config-prettier": "^9.0.0", + "@typescript-eslint/eslint-plugin": "^8.2.0", + "@typescript-eslint/parser": "^8.2.0", + "eslint": "^8.57.0", + "eslint-config-prettier": "^9.1.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-svelte3": "^4.0.0", "glob": "^8.0.3", "npm-run-all": "^4.1.5", "prettier": "^2.6.2", - "tsup": "^7.2.0", + "tsup": "^8.2.4", "typedoc": "0.25.0", "typedoc-plugin-markdown": "3.16.0", "typescript": "^5.2.2", - "vitest": "^0.34.3" + "vitest": "^2.0.5" }, "pnpm": { "peerDependencyRules": { diff --git a/packages/build/package.json b/packages/build/package.json index 48241053..ff55bd3b 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -23,7 +23,7 @@ "precommit": "../../scripts/precommit", "test": "vitest run", "test:watch": "vitest", - "test:ci": "vitest --threads=false --test-timeout=10000 run", + "test:ci": "vitest --pool=forks --test-timeout=10000 run", "type-check": "tsc --noEmit -p tsconfig-test.json", "build": "tsup", "docs": "../../scripts/gen-docs.js", diff --git a/packages/check-ui-shell/package.json b/packages/check-ui-shell/package.json index 50571e3a..c0254246 100644 --- a/packages/check-ui-shell/package.json +++ b/packages/check-ui-shell/package.json @@ -11,7 +11,7 @@ "scripts": { "clean": "rm -rf dist", "lint:ts": "eslint src --max-warnings 0", - "lint:svelte": "svelte-check --fail-on-warnings --output human --compiler-warnings \"a11y-click-events-have-key-events:ignore,a11y-no-noninteractive-tabindex:ignore\"", + "lint:svelte": "svelte-check --fail-on-warnings --output human --compiler-warnings \"a11y-click-events-have-key-events:ignore,a11y-no-noninteractive-tabindex:ignore,a11y-no-static-element-interactions:ignore\"", "lint": "run-s lint:ts lint:svelte", "prettier:check": "prettier --check .", "prettier:fix": "prettier --write .", @@ -26,27 +26,27 @@ "ci:build": "run-s clean lint prettier:check test:ci type-check build docs" }, "dependencies": { - "@sdeverywhere/check-core": "^0.1.2", "@fortawesome/free-regular-svg-icons": "^6.1.1", "@fortawesome/free-solid-svg-icons": "^6.1.1", - "@juggle/resize-observer": "^3.3.0", + "@juggle/resize-observer": "^3.4.0", + "@sdeverywhere/check-core": "^0.1.2", "assert-never": "^1.2.1", "chart.js": "^2.9.4", - "copy-text-to-clipboard": "^3.0.1", - "fontfaceobserver": "^2.1.0" + "copy-text-to-clipboard": "^3.2.0", + "fontfaceobserver": "^2.3.0" }, "devDependencies": { - "@sveltejs/vite-plugin-svelte": "^2.4.5", + "@sveltejs/vite-plugin-svelte": "^3.1.2", "@types/chart.js": "^2.9.34", - "@types/fontfaceobserver": "^0.0.6", - "postcss": "^8.4.31", - "pug": "^3.0.1", - "sass": "^1.34.1", - "svelte": "^3.59.2", - "svelte-awesome": "^3.0.0", - "svelte-check": "^3.5.1", - "svelte-preprocess": "^5.0.4", - "vite": "^4.4.9" + "@types/fontfaceobserver": "^2.1.3", + "postcss": "^8.4.41", + "pug": "^3.0.3", + "sass": "^1.77.8", + "svelte": "^4.2.19", + "svelte-awesome": "^3.3.1", + "svelte-check": "^3.8.6", + "svelte-preprocess": "^6.0.2", + "vite": "^5.4.2" }, "devDependenciesComments": { "svelte-awesome": [ diff --git a/packages/check-ui-shell/src/components/playground/wizard-card-desc.svelte b/packages/check-ui-shell/src/components/playground/wizard-card-desc.svelte index dd4e5cff..e6a0434e 100644 --- a/packages/check-ui-shell/src/components/playground/wizard-card-desc.svelte +++ b/packages/check-ui-shell/src/components/playground/wizard-card-desc.svelte @@ -4,7 +4,7 @@