diff --git a/app/package.json b/app/package.json index ae0656a..2460f4f 100644 --- a/app/package.json +++ b/app/package.json @@ -78,7 +78,7 @@ "eslint-plugin-import": "^2.28.0", "eslint-plugin-jest-dom": "^5.4.0", "eslint-plugin-jsx-a11y": "^6.7.1", - "eslint-plugin-perfectionist": "^2.1.0", + "eslint-plugin-perfectionist": "^4.6.0", "eslint-plugin-prettier": "^5.0.0", "eslint-plugin-react": "^7.33.1", "eslint-plugin-react-hooks": "^4.6.0", diff --git a/app/src/features/authentication/public/__tests__/LoginView.test.tsx b/app/src/features/authentication/public/__tests__/LoginView.test.tsx index 5686258..f2e002e 100644 --- a/app/src/features/authentication/public/__tests__/LoginView.test.tsx +++ b/app/src/features/authentication/public/__tests__/LoginView.test.tsx @@ -84,7 +84,7 @@ describe('LoginView', () => { }); await waitFor(() => { - expect(passwordInput).toHaveAttribute('type', 'text'); + return expect(passwordInput).toHaveAttribute('type', 'text'); }); await act(async () => { @@ -92,7 +92,7 @@ describe('LoginView', () => { }); await waitFor(() => { - expect(passwordInput).toHaveAttribute('type', 'password'); + return expect(passwordInput).toHaveAttribute('type', 'password'); }); }); @@ -160,7 +160,7 @@ describe('LoginView', () => { // Should show light mode icon in dark mode await waitFor(() => { - expect(screen.getByTestId('Brightness7Icon')).toBeInTheDocument(); + return expect(screen.getByTestId('Brightness7Icon')).toBeInTheDocument(); }); // Click again to toggle back to light mode @@ -170,7 +170,7 @@ describe('LoginView', () => { // Should show dark mode icon again await waitFor(() => { - expect(screen.getByTestId('Brightness4Icon')).toBeInTheDocument(); + return expect(screen.getByTestId('Brightness4Icon')).toBeInTheDocument(); }); }); @@ -192,7 +192,7 @@ describe('LoginView', () => { await user.click(forgotPasswordLink); await waitFor(async () => { - expect(screen.getByText(/Reset Password/i)).toBeInTheDocument(); + return expect(screen.getByText(/Reset Password/i)).toBeInTheDocument(); }); }); }); diff --git a/package.json b/package.json index 984066e..d858aad 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,10 @@ "devDependencies": { "@vitest/browser": "^2.1.2", "playwright": "^1.48.0", - "prettier": "3.0.2", + "prettier": "3.4.2", "rollup-plugin-visualizer": "^5.12.0", "vite-plugin-node-polyfills": "^0.22.0", - "vitest": "^2.1.2" + "vitest": "^2.1.8" }, "volta": { "node": "22.12.0", diff --git a/yarn.lock b/yarn.lock index d671a22..e569a53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5979,13 +5979,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/scope-manager@npm:7.18.0" +"@typescript-eslint/scope-manager@npm:8.19.1": + version: 8.19.1 + resolution: "@typescript-eslint/scope-manager@npm:8.19.1" dependencies: - "@typescript-eslint/types": "npm:7.18.0" - "@typescript-eslint/visitor-keys": "npm:7.18.0" - checksum: 10/9eb2ae5d69d9f723e706c16b2b97744fc016996a5473bed596035ac4d12429b3d24e7340a8235d704efa57f8f52e1b3b37925ff7c2e3384859d28b23a99b8bcc + "@typescript-eslint/types": "npm:8.19.1" + "@typescript-eslint/visitor-keys": "npm:8.19.1" + checksum: 10/6ffc78b15367f211eb6650459ca2bb6bfe4c1fa95a3474adc08ee9a20c250b2e0e02fd99be36bd3dad74967ecd9349e792b5d818d85735cba40f1b5c236074d1 languageName: node linkType: hard @@ -6020,10 +6020,10 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/types@npm:7.18.0" - checksum: 10/0e30c73a3cc3c67dd06360a5a12fd12cee831e4092750eec3d6c031bdc4feafcb0ab1d882910a73e66b451a4f6e1dd015e9e2c4d45bf6bf716a474e5d123ddf0 +"@typescript-eslint/types@npm:8.19.1, @typescript-eslint/types@npm:^8.19.0": + version: 8.19.1 + resolution: "@typescript-eslint/types@npm:8.19.1" + checksum: 10/5833a5f8fdac4a490dd3906a0243a0713fbf138fabb451870c70b0b089c539a9624b467b0913ddc0a225a8284342e7fd31cd506dec53c1a6d8f3c8c8902b9cae languageName: node linkType: hard @@ -6064,22 +6064,21 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/typescript-estree@npm:7.18.0" +"@typescript-eslint/typescript-estree@npm:8.19.1": + version: 8.19.1 + resolution: "@typescript-eslint/typescript-estree@npm:8.19.1" dependencies: - "@typescript-eslint/types": "npm:7.18.0" - "@typescript-eslint/visitor-keys": "npm:7.18.0" + "@typescript-eslint/types": "npm:8.19.1" + "@typescript-eslint/visitor-keys": "npm:8.19.1" debug: "npm:^4.3.4" - globby: "npm:^11.1.0" + fast-glob: "npm:^3.3.2" is-glob: "npm:^4.0.3" minimatch: "npm:^9.0.4" semver: "npm:^7.6.0" - ts-api-utils: "npm:^1.3.0" - peerDependenciesMeta: - typescript: - optional: true - checksum: 10/b01e66235a91aa4439d02081d4a5f8b4a7cf9cb24f26b334812f657e3c603493e5f41e5c1e89cf4efae7d64509fa1f73affc16afc5e15cb7f83f724577c82036 + ts-api-utils: "npm:^2.0.0" + peerDependencies: + typescript: ">=4.8.4 <5.8.0" + checksum: 10/5de467452d5ef1a380d441b06cd0134652a0c98cdb4ce31b93eb589f7dc75ef60364d03fd80ca0a48d0c8b268f7258d4f6528b16fe1b89442d60a4bc960fe5f5 languageName: node linkType: hard @@ -6118,17 +6117,18 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:^6.13.0 || ^7.0.0": - version: 7.18.0 - resolution: "@typescript-eslint/utils@npm:7.18.0" +"@typescript-eslint/utils@npm:^8.19.0": + version: 8.19.1 + resolution: "@typescript-eslint/utils@npm:8.19.1" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" - "@typescript-eslint/scope-manager": "npm:7.18.0" - "@typescript-eslint/types": "npm:7.18.0" - "@typescript-eslint/typescript-estree": "npm:7.18.0" + "@typescript-eslint/scope-manager": "npm:8.19.1" + "@typescript-eslint/types": "npm:8.19.1" + "@typescript-eslint/typescript-estree": "npm:8.19.1" peerDependencies: - eslint: ^8.56.0 - checksum: 10/f43fedb4f4d2e3836bdf137889449063a55c0ece74fdb283929cd376197b992313be8ef4df920c1c801b5c3076b92964c84c6c3b9b749d263b648d0011f5926e + eslint: ^8.57.0 || ^9.0.0 + typescript: ">=4.8.4 <5.8.0" + checksum: 10/bb92116a53fe143ee87e830941afb21d4222a64ca3f2b6dac5c2d9984f981408e60e52b04c32d95208896075ac222fb4ee631c5b0c4826b87d4bd8091c421ab1 languageName: node linkType: hard @@ -6152,13 +6152,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:7.18.0": - version: 7.18.0 - resolution: "@typescript-eslint/visitor-keys@npm:7.18.0" +"@typescript-eslint/visitor-keys@npm:8.19.1": + version: 8.19.1 + resolution: "@typescript-eslint/visitor-keys@npm:8.19.1" dependencies: - "@typescript-eslint/types": "npm:7.18.0" - eslint-visitor-keys: "npm:^3.4.3" - checksum: 10/b7cfe6fdeae86c507357ac6b2357813c64fb2fbf1aaf844393ba82f73a16e2599b41981b34200d9fc7765d70bc3a8181d76b503051e53f04bcb7c9afef637eab + "@typescript-eslint/types": "npm:8.19.1" + eslint-visitor-keys: "npm:^4.2.0" + checksum: 10/510eb196e7b7d59d3981d672a75454615159e931fe78e2a64b09607c3cfa45110709b0eb5ac3dd271d757a0d98cf4868ad2f45bf9193f96e9efec3efa92a19c1 languageName: node linkType: hard @@ -6934,7 +6934,7 @@ __metadata: eslint-plugin-import: "npm:^2.28.0" eslint-plugin-jest-dom: "npm:^5.4.0" eslint-plugin-jsx-a11y: "npm:^6.7.1" - eslint-plugin-perfectionist: "npm:^2.1.0" + eslint-plugin-perfectionist: "npm:^4.6.0" eslint-plugin-prettier: "npm:^5.0.0" eslint-plugin-react: "npm:^7.33.1" eslint-plugin-react-hooks: "npm:^4.6.0" @@ -10578,29 +10578,16 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-perfectionist@npm:^2.1.0": - version: 2.11.0 - resolution: "eslint-plugin-perfectionist@npm:2.11.0" +"eslint-plugin-perfectionist@npm:^4.6.0": + version: 4.6.0 + resolution: "eslint-plugin-perfectionist@npm:4.6.0" dependencies: - "@typescript-eslint/utils": "npm:^6.13.0 || ^7.0.0" - minimatch: "npm:^9.0.3" - natural-compare-lite: "npm:^1.4.0" + "@typescript-eslint/types": "npm:^8.19.0" + "@typescript-eslint/utils": "npm:^8.19.0" + natural-orderby: "npm:^5.0.0" peerDependencies: - astro-eslint-parser: ^1.0.2 eslint: ">=8.0.0" - svelte: ">=3.0.0" - svelte-eslint-parser: ^0.37.0 - vue-eslint-parser: ">=9.0.0" - peerDependenciesMeta: - astro-eslint-parser: - optional: true - svelte: - optional: true - svelte-eslint-parser: - optional: true - vue-eslint-parser: - optional: true - checksum: 10/f158e1b48068f7c7378da692d3e1fbe6c18ccf21f2fc22b3a9f0717123e6877824fffe6ff89770150f9561a3b69fbed366a28307c7d4fd7e1d2c61131d6cb5a1 + checksum: 10/8ea5a773cc74fe7003b67de21e9484498f7cedb957c1bc0298d60e44a88b5ef0515f5ed42871154e33dc54583ecdac50174d805dd153156c23c8f8f751ca1be1 languageName: node linkType: hard @@ -10708,6 +10695,13 @@ __metadata: languageName: node linkType: hard +"eslint-visitor-keys@npm:^4.2.0": + version: 4.2.0 + resolution: "eslint-visitor-keys@npm:4.2.0" + checksum: 10/9651b3356b01760e586b4c631c5268c0e1a85236e3292bf754f0472f465bf9a856c0ddc261fceace155334118c0151778effafbab981413dbf9288349343fa25 + languageName: node + linkType: hard + "eslint@npm:^8.47.0": version: 8.57.1 resolution: "eslint@npm:8.57.1" @@ -11015,7 +11009,7 @@ __metadata: languageName: node linkType: hard -"fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0": +"fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.9, fast-glob@npm:^3.3.0, fast-glob@npm:^3.3.2": version: 3.3.3 resolution: "fast-glob@npm:3.3.3" dependencies: @@ -14614,7 +14608,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^9.0.3, minimatch@npm:^9.0.4, minimatch@npm:^9.0.5": +"minimatch@npm:^9.0.4, minimatch@npm:^9.0.5": version: 9.0.5 resolution: "minimatch@npm:9.0.5" dependencies: @@ -14814,13 +14808,6 @@ __metadata: languageName: node linkType: hard -"natural-compare-lite@npm:^1.4.0": - version: 1.4.0 - resolution: "natural-compare-lite@npm:1.4.0" - checksum: 10/5222ac3986a2b78dd6069ac62cbb52a7bf8ffc90d972ab76dfe7b01892485d229530ed20d0c62e79a6b363a663b273db3bde195a1358ce9e5f779d4453887225 - languageName: node - linkType: hard - "natural-compare@npm:^1.4.0": version: 1.4.0 resolution: "natural-compare@npm:1.4.0" @@ -14828,6 +14815,13 @@ __metadata: languageName: node linkType: hard +"natural-orderby@npm:^5.0.0": + version: 5.0.0 + resolution: "natural-orderby@npm:5.0.0" + checksum: 10/7620051a2d79af81ac6bce96f6bdec45c291d4acc1d709d62d7a6648b01cda4e751415d63bc71060ce8ab223dbf3ce013f229ee683ea651868f36ea4008d0dbe + languageName: node + linkType: hard + "negotiator@npm:0.6.3": version: 0.6.3 resolution: "negotiator@npm:0.6.3" @@ -16373,6 +16367,15 @@ __metadata: languageName: node linkType: hard +"prettier@npm:3.4.2": + version: 3.4.2 + resolution: "prettier@npm:3.4.2" + bin: + prettier: bin/prettier.cjs + checksum: 10/a3e806fb0b635818964d472d35d27e21a4e17150c679047f5501e1f23bd4aa806adf660f0c0d35214a210d5d440da6896c2e86156da55f221a57938278dc326e + languageName: node + linkType: hard + "pretty-error@npm:^4.0.0": version: 4.0.0 resolution: "pretty-error@npm:4.0.0" @@ -19364,7 +19367,7 @@ __metadata: languageName: node linkType: hard -"ts-api-utils@npm:^1.0.1, ts-api-utils@npm:^1.3.0": +"ts-api-utils@npm:^1.0.1": version: 1.4.3 resolution: "ts-api-utils@npm:1.4.3" peerDependencies: @@ -19373,6 +19376,15 @@ __metadata: languageName: node linkType: hard +"ts-api-utils@npm:^2.0.0": + version: 2.0.0 + resolution: "ts-api-utils@npm:2.0.0" + peerDependencies: + typescript: ">=4.8.4" + checksum: 10/485bdf8bbba98d58712243d958f4fd44742bbe49e559cd77882fb426d866eec6dd05c67ef91935dc4f8a3c776f235859735e1f05be399e4dc9e7ffd580120974 + languageName: node + linkType: hard + "ts-invariant@npm:^0.10.3": version: 0.10.3 resolution: "ts-invariant@npm:0.10.3" @@ -20357,7 +20369,7 @@ __metadata: languageName: node linkType: hard -"vitest@npm:^2.1.2": +"vitest@npm:^2.1.2, vitest@npm:^2.1.8": version: 2.1.8 resolution: "vitest@npm:2.1.8" dependencies: @@ -21227,9 +21239,9 @@ __metadata: dependencies: "@vitest/browser": "npm:^2.1.2" playwright: "npm:^1.48.0" - prettier: "npm:3.0.2" + prettier: "npm:3.4.2" rollup-plugin-visualizer: "npm:^5.12.0" vite-plugin-node-polyfills: "npm:^0.22.0" - vitest: "npm:^2.1.2" + vitest: "npm:^2.1.8" languageName: unknown linkType: soft