diff --git a/backend/prisma/dev.db.backup b/backend/prisma/dev.db.backup deleted file mode 100644 index 9f71e00..0000000 Binary files a/backend/prisma/dev.db.backup and /dev/null differ diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js new file mode 100644 index 0000000..1a98bf9 --- /dev/null +++ b/frontend/eslint.config.js @@ -0,0 +1,38 @@ +import js from "@eslint/js"; +import globals from "globals"; +import reactHooks from "eslint-plugin-react-hooks"; +import reactRefresh from "eslint-plugin-react-refresh"; +import tseslint from "typescript-eslint"; + +export default [ + { + ignores: ["dist", "coverage", "node_modules"], + }, + js.configs.recommended, + ...tseslint.configs.recommended, + { + files: ["**/*.{ts,tsx}"], + languageOptions: { + ecmaVersion: "latest", + sourceType: "module", + globals: { + ...globals.browser, + }, + }, + plugins: { + "react-hooks": reactHooks, + "react-refresh": reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + "react-refresh/only-export-components": "off", + "react-hooks/exhaustive-deps": "off", + "react-hooks/set-state-in-effect": "off", + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }, + ], + }, + }, +]; diff --git a/frontend/src/components/DrawingCard.tsx b/frontend/src/components/DrawingCard.tsx index fe0f641..1ab0f15 100644 --- a/frontend/src/components/DrawingCard.tsx +++ b/frontend/src/components/DrawingCard.tsx @@ -141,8 +141,7 @@ export const DrawingCard: React.FC = ({ return () => { cancelled = true; }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, [drawing.id, drawing.preview, onPreviewGenerated]); // ensureFullData has stable identity via refs + }, [drawing.id, drawing.preview, onPreviewGenerated, ensureFullData]); const handleExport = useCallback(async () => { try {