diff --git a/.husky/task-runner.json b/.husky/task-runner.json index 8e50f6a..576b8bc 100644 --- a/.husky/task-runner.json +++ b/.husky/task-runner.json @@ -4,14 +4,31 @@ { "name": "run-prettier", "command": "pnpm", - "args": ["format"], + "args": [ + "prettier", + "-w", + "${staged}" + ], + "include": [ + "Foxnouns.Frontend/**/*.ts", + "Foxnouns.Frontend/**/*.json", + "Foxnouns.Frontend/**/*.scss", + "Foxnouns.Frontend/**/*.js", + "Foxnouns.Frontend/**/*.svelte" + ], + "cwd": "Foxnouns.Frontend/", "pathMode": "absolute" }, { "name": "run-csharpier", "command": "dotnet", - "args": [ "csharpier", "${staged}" ], - "include": [ "**/*.cs" ] + "args": [ + "csharpier", + "${staged}" + ], + "include": [ + "**/*.cs" + ] } ] } diff --git a/Foxnouns.Frontend/package.json b/Foxnouns.Frontend/package.json index a2197f8..b172fd4 100644 --- a/Foxnouns.Frontend/package.json +++ b/Foxnouns.Frontend/package.json @@ -28,7 +28,7 @@ "prettier": "^3.4.2", "prettier-plugin-svelte": "^3.3.2", "sass": "^1.83.0", - "svelte": "^5.14.2", + "svelte": "^5.14.3", "svelte-bootstrap-icons": "^3.1.1", "svelte-check": "^4.1.1", "sveltekit-i18n": "^2.4.2", @@ -49,10 +49,5 @@ "svelte-tippy": "^1.3.2", "tippy.js": "^6.3.7", "tslog": "^4.9.3" - }, - "pnpm": { - "overrides": { - "esrap@1.3.0": "1.2.3" - } } } diff --git a/Foxnouns.Frontend/pnpm-lock.yaml b/Foxnouns.Frontend/pnpm-lock.yaml index 0016718..fd95138 100644 --- a/Foxnouns.Frontend/pnpm-lock.yaml +++ b/Foxnouns.Frontend/pnpm-lock.yaml @@ -4,9 +4,6 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -overrides: - esrap@1.3.0: 1.2.3 - importers: .: @@ -47,16 +44,16 @@ importers: devDependencies: '@sveltejs/adapter-node': specifier: ^5.2.10 - version: 5.2.10(@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0))) + version: 5.2.10(@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0))) '@sveltejs/kit': specifier: ^2.12.1 - version: 2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)) + version: 2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)) '@sveltejs/vite-plugin-svelte': specifier: ^5.0.2 - version: 5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)) + version: 5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)) '@sveltestrap/sveltestrap': specifier: ^6.2.7 - version: 6.2.7(svelte@5.14.2) + version: 6.2.7(svelte@5.14.3) '@types/eslint': specifier: ^9.6.1 version: 9.6.1 @@ -80,7 +77,7 @@ importers: version: 9.1.0(eslint@9.17.0) eslint-plugin-svelte: specifier: ^2.46.1 - version: 2.46.1(eslint@9.17.0)(svelte@5.14.2) + version: 2.46.1(eslint@9.17.0)(svelte@5.14.3) globals: specifier: ^15.13.0 version: 15.13.0 @@ -89,22 +86,22 @@ importers: version: 3.4.2 prettier-plugin-svelte: specifier: ^3.3.2 - version: 3.3.2(prettier@3.4.2)(svelte@5.14.2) + version: 3.3.2(prettier@3.4.2)(svelte@5.14.3) sass: specifier: ^1.83.0 version: 1.83.0 svelte: - specifier: ^5.14.2 - version: 5.14.2 + specifier: ^5.14.3 + version: 5.14.3 svelte-bootstrap-icons: specifier: ^3.1.1 version: 3.1.1 svelte-check: specifier: ^4.1.1 - version: 4.1.1(picomatch@4.0.2)(svelte@5.14.2)(typescript@5.7.2) + version: 4.1.1(picomatch@4.0.2)(svelte@5.14.3)(typescript@5.7.2) sveltekit-i18n: specifier: ^2.4.2 - version: 2.4.2(svelte@5.14.2) + version: 2.4.2(svelte@5.14.3) typescript: specifier: ^5.7.2 version: 5.7.2 @@ -899,8 +896,8 @@ packages: resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} - esrap@1.2.3: - resolution: {integrity: sha512-ZlQmCCK+n7SGoqo7DnfKaP1sJZa49P01/dXzmjCASSo04p72w8EksT2NMK8CEX8DhKsfJXANioIw8VyHNsBfvQ==} + esrap@1.3.1: + resolution: {integrity: sha512-KpAH3+QsDmtOP1KOW04CbD1PgzWsIHjB8tOCk3PCb8xzNGn8XkjI8zl80i09fmXdzQyaS8tcsKCCDzHF7AcowA==} esrecurse@4.3.0: resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==} @@ -1351,8 +1348,8 @@ packages: svelte-tippy@1.3.2: resolution: {integrity: sha512-41f+85hwhKBRqX0UNYrgFsi34Kk/KDvUkIZXYANxkWoA2NTVTCZbUC2J8hRNZ4TRVxObTshoZRjK2co5+i6LMw==} - svelte@5.14.2: - resolution: {integrity: sha512-OxNh82bYjbutXNSZSPQspZzzmVzlRyNbiz0a6KrpOWvQ9LBUUZifXyeKhfl73LgyQC9UbsnVS9M55nQzqekMTA==} + svelte@5.14.3: + resolution: {integrity: sha512-k9l8cuDuzvx/4IjWg2cVHLvkoPQUJUpOz6YtJbfdkqaBMxixxR3PSmkJKC0i+Oq59iPUj5UoHkskp3/OQFiN2g==} engines: {node: '>=18'} sveltekit-i18n@2.4.2: @@ -1799,17 +1796,17 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.28.1': optional: true - '@sveltejs/adapter-node@5.2.10(@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))': + '@sveltejs/adapter-node@5.2.10(@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))': dependencies: '@rollup/plugin-commonjs': 28.0.2(rollup@4.28.1) '@rollup/plugin-json': 6.1.0(rollup@4.28.1) '@rollup/plugin-node-resolve': 15.3.1(rollup@4.28.1) - '@sveltejs/kit': 2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)) + '@sveltejs/kit': 2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)) rollup: 4.28.1 - '@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0))': + '@sveltejs/kit@2.12.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)) + '@sveltejs/vite-plugin-svelte': 5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.1.1 @@ -1821,42 +1818,42 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.7.1 sirv: 3.0.0 - svelte: 5.14.2 + svelte: 5.14.3 tiny-glob: 0.2.9 vite: 6.0.3(sass@1.83.0) - '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0))': + '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0))': dependencies: - '@sveltejs/vite-plugin-svelte': 5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)) + '@sveltejs/vite-plugin-svelte': 5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)) debug: 4.4.0 - svelte: 5.14.2 + svelte: 5.14.3 vite: 6.0.3(sass@1.83.0) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0))': + '@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.2)(vite@6.0.3(sass@1.83.0)) + '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.0.2(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)))(svelte@5.14.3)(vite@6.0.3(sass@1.83.0)) debug: 4.4.0 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.17 - svelte: 5.14.2 + svelte: 5.14.3 vite: 6.0.3(sass@1.83.0) vitefu: 1.0.4(vite@6.0.3(sass@1.83.0)) transitivePeerDependencies: - supports-color - '@sveltekit-i18n/base@1.3.7(svelte@5.14.2)': + '@sveltekit-i18n/base@1.3.7(svelte@5.14.3)': dependencies: - svelte: 5.14.2 + svelte: 5.14.3 '@sveltekit-i18n/parser-default@1.1.1': {} - '@sveltestrap/sveltestrap@6.2.7(svelte@5.14.2)': + '@sveltestrap/sveltestrap@6.2.7(svelte@5.14.3)': dependencies: '@popperjs/core': 2.11.8 - svelte: 5.14.2 + svelte: 5.14.3 '@types/cookie@0.6.0': {} @@ -2115,7 +2112,7 @@ snapshots: dependencies: eslint: 9.17.0 - eslint-plugin-svelte@2.46.1(eslint@9.17.0)(svelte@5.14.2): + eslint-plugin-svelte@2.46.1(eslint@9.17.0)(svelte@5.14.3): dependencies: '@eslint-community/eslint-utils': 4.4.1(eslint@9.17.0) '@jridgewell/sourcemap-codec': 1.5.0 @@ -2128,9 +2125,9 @@ snapshots: postcss-safe-parser: 6.0.0(postcss@8.4.49) postcss-selector-parser: 6.1.2 semver: 7.6.3 - svelte-eslint-parser: 0.43.0(svelte@5.14.2) + svelte-eslint-parser: 0.43.0(svelte@5.14.3) optionalDependencies: - svelte: 5.14.2 + svelte: 5.14.3 transitivePeerDependencies: - ts-node @@ -2205,10 +2202,10 @@ snapshots: dependencies: estraverse: 5.3.0 - esrap@1.2.3: + esrap@1.3.1: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 - '@types/estree': 1.0.6 + '@typescript-eslint/types': 8.18.1 esrecurse@4.3.0: dependencies: @@ -2484,10 +2481,10 @@ snapshots: prelude-ls@1.2.1: {} - prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.14.2): + prettier-plugin-svelte@3.3.2(prettier@3.4.2)(svelte@5.14.3): dependencies: prettier: 3.4.2 - svelte: 5.14.2 + svelte: 5.14.3 prettier@3.4.2: {} @@ -2589,19 +2586,19 @@ snapshots: svelte-bootstrap-icons@3.1.1: {} - svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.14.2)(typescript@5.7.2): + svelte-check@4.1.1(picomatch@4.0.2)(svelte@5.14.3)(typescript@5.7.2): dependencies: '@jridgewell/trace-mapping': 0.3.25 chokidar: 4.0.2 fdir: 6.4.2(picomatch@4.0.2) picocolors: 1.1.1 sade: 1.8.1 - svelte: 5.14.2 + svelte: 5.14.3 typescript: 5.7.2 transitivePeerDependencies: - picomatch - svelte-eslint-parser@0.43.0(svelte@5.14.2): + svelte-eslint-parser@0.43.0(svelte@5.14.3): dependencies: eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 @@ -2609,13 +2606,13 @@ snapshots: postcss: 8.4.49 postcss-scss: 4.0.9(postcss@8.4.49) optionalDependencies: - svelte: 5.14.2 + svelte: 5.14.3 svelte-tippy@1.3.2: dependencies: tippy.js: 6.3.7 - svelte@5.14.2: + svelte@5.14.3: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.5.0 @@ -2625,17 +2622,17 @@ snapshots: aria-query: 5.3.2 axobject-query: 4.1.0 esm-env: 1.2.1 - esrap: 1.2.3 + esrap: 1.3.1 is-reference: 3.0.3 locate-character: 3.0.0 magic-string: 0.30.17 zimmerframe: 1.1.2 - sveltekit-i18n@2.4.2(svelte@5.14.2): + sveltekit-i18n@2.4.2(svelte@5.14.3): dependencies: - '@sveltekit-i18n/base': 1.3.7(svelte@5.14.2) + '@sveltekit-i18n/base': 1.3.7(svelte@5.14.3) '@sveltekit-i18n/parser-default': 1.1.1 - svelte: 5.14.2 + svelte: 5.14.3 tiny-glob@0.2.9: dependencies: