From 74a700ff87b2504c3d394cddd9935c56c3c7a00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elisi=C3=A1rio=20Couto?= Date: Mon, 15 Sep 2025 01:47:50 +0100 Subject: [PATCH] fix(frontend): Add ignore rules for eslint on shadcn components. --- frontend/.claude/settings.local.json | 7 +++++++ frontend/eslint.config.js | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 frontend/.claude/settings.local.json diff --git a/frontend/.claude/settings.local.json b/frontend/.claude/settings.local.json new file mode 100644 index 0000000..bf15e98 --- /dev/null +++ b/frontend/.claude/settings.local.json @@ -0,0 +1,7 @@ +{ + "permissions": { + "allow": ["Bash(find:*)"], + "deny": [], + "ask": [] + } +} diff --git a/frontend/eslint.config.js b/frontend/eslint.config.js index f461674..dba0190 100644 --- a/frontend/eslint.config.js +++ b/frontend/eslint.config.js @@ -19,5 +19,17 @@ export default tseslint.config([ ecmaVersion: 2020, globals: globals.browser, }, + rules: { + "react-refresh/only-export-components": [ + "warn", + { allowConstantExport: true }, + ], + }, + }, + { + files: ["src/components/**/*.{ts,tsx}", "src/contexts/**/*.{ts,tsx}"], + rules: { + "react-refresh/only-export-components": "off", + }, }, ]);