Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion apps/frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,24 @@ export default tseslint.config(
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
// React Hooks v4 rules (kept as-is)
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// New v7 rules — disabled until code is migrated to comply
"react-hooks/static-components": "off",
"react-hooks/use-memo": "off",
"react-hooks/preserve-manual-memoization": "off",
"react-hooks/incompatible-library": "off",
"react-hooks/immutability": "off",
"react-hooks/globals": "off",
"react-hooks/refs": "off",
"react-hooks/set-state-in-effect": "off",
"react-hooks/error-boundaries": "off",
"react-hooks/purity": "off",
"react-hooks/set-state-in-render": "off",
"react-hooks/unsupported-syntax": "off",
"react-hooks/config": "off",
"react-hooks/gating": "off",
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
// Warn on unused vars/imports; prefix with _ to intentionally suppress (e.g. _unused)
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
Expand Down
32 changes: 16 additions & 16 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"zustand": "^5.0.13"
},
"devDependencies": {
"@axe-core/playwright": "^4.11.2",
"@axe-core/playwright": "^4.11.3",
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.59.1",
"@stryker-mutator/core": "^9.6.1",
Expand All @@ -99,27 +99,27 @@
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/jest-axe": "^3.5.9",
"@types/node": "^22.19.15",
"@types/node": "^25.6.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react-swc": "^4.3.0",
"@vitest/coverage-v8": "^4.1.4",
"@vitest/ui": "^4.1.4",
"@vitest/coverage-v8": "^4.1.5",
"@vitest/ui": "^4.1.5",
"@tailwindcss/postcss": "^4.2.4",
"autoprefixer": "^10.4.27",
"eslint": "^9.39.4",
"eslint-plugin-react-hooks": "^5.2.0",
"autoprefixer": "^10.5.0",
"eslint": "^10.3.0",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
"fast-check": "^4.6.0",
"globals": "^17.5.0",
"fast-check": "^4.7.0",
"globals": "^17.6.0",
"jest-axe": "^10.0.0",
"jsdom": "^29.0.2",
"msw": "^2.13.6",
"postcss": "^8.5.12",
"jsdom": "^29.1.1",
"msw": "^2.14.4",
"postcss": "^8.5.14",
"tailwindcss": "^4.2.4",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.0",
"vite": "^8.0.8",
"vitest": "^4.1.4"
"typescript": "^6.0.3",
"typescript-eslint": "^8.59.2",
"vite": "^8.0.11",
"vitest": "^4.1.5"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe("AddCategoryDialog (edit mode)", () => {
/>,
);
await screen.findByRole("dialog");
await user.click(screen.getByRole("button", { name: /^save$/i }));
await user.click(await screen.findByRole("button", { name: /^save$/i }));
await waitFor(() =>
expect(onSave).toHaveBeenCalledWith({
general: "FOOD",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ describe("TransactionInfoDialog", () => {

await screen.findByRole("dialog");

const editButtons = screen.getAllByRole("button", { name: /^edit$/i });
const editButtons = await screen.findAllByRole("button", { name: /^edit$/i });
await user.click(editButtons[1]); // memo
expect(screen.getByRole("textbox")).toBeInTheDocument();

// common.cancel = "Cancel"
await user.click(screen.getByRole("button", { name: /^cancel$/i }));
await user.click(await screen.findByRole("button", { name: /^cancel$/i }));

expect(screen.queryByRole("textbox")).not.toBeInTheDocument();
});
Expand All @@ -197,15 +197,15 @@ describe("TransactionInfoDialog", () => {

await screen.findByRole("dialog");

const editButtons = screen.getAllByRole("button", { name: /^edit$/i });
const editButtons = await screen.findAllByRole("button", { name: /^edit$/i });
await user.click(editButtons[1]); // memo

const input = screen.getByRole("textbox");
await user.clear(input);
await user.type(input, "New memo");

// common.save = "Save"
await user.click(screen.getByRole("button", { name: /^save$/i }));
await user.click(await screen.findByRole("button", { name: /^save$/i }));

await waitFor(() => expect(patchCalled).toBe(true));
await waitFor(() =>
Expand Down
1 change: 1 addition & 0 deletions apps/frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true,
/* Path mapping */
"ignoreDeprecations": "6.0",
"baseUrl": ".",
"paths": {
"@/*": [
Expand Down
8 changes: 4 additions & 4 deletions apps/node-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@vitest/coverage-v8": "^4.1.4",
"eslint": "^10.2.1",
"globals": "^17.5.0",
"vitest": "^4.1.4"
"@vitest/coverage-v8": "^4.1.5",
"eslint": "^10.3.0",
"globals": "^17.6.0",
"vitest": "^4.1.5"
},
"dependencies": {
"@vision/types": "workspace:*",
Expand Down
Loading
Loading