From 0e84f7ebe500ab3f75ff41f26d5265885bb1587c Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Sun, 21 Dec 2025 00:07:56 +0100 Subject: [PATCH] fix: Add eslint ignore for shadcn component utility exports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added eslint-disable-next-line for react-refresh/only-export-components - Badge and Button components export utility functions (badgeVariants, buttonVariants) - These utilities are required by shadcn pattern for variant composition - Suppressing warning is appropriate since this is intentional design 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/components/ui/badge.tsx | 1 + src/components/ui/button.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx index 55f8352..eb789b2 100644 --- a/src/components/ui/badge.tsx +++ b/src/components/ui/badge.tsx @@ -43,4 +43,5 @@ function Badge({ ); } +// eslint-disable-next-line react-refresh/only-export-components export { Badge, badgeVariants }; diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 51bc4ae..1640f77 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -59,4 +59,5 @@ function Button({ ); } +// eslint-disable-next-line react-refresh/only-export-components export { Button, buttonVariants };