ESLint errors in UI components (react-refresh/only-export-components, react-hooks/purity) #2
Labels
No labels
blocked:needs-decision
bug
feature-request
quickfix
security/high
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/tas-multi-dimensional-spec#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Running
npm run lintproduces 8 errors across UI components:Errors (7 × react-refresh/only-export-components)
Files that export both components and non-component values (variants, constants):
badge.tsx(line 46)button-group.tsx(line 82)button.tsx(line 62)form.tsx(line 159)navigation-menu.tsx(line 167)sidebar.tsx(line 725)toggle.tsx(line 45)Error (1 × react-hooks/purity)
sidebar.tsx(line 611):Math.random()called insideuseMemoduring render — impure function in render path.Suggested Fix
Math.random()in the sidebar Skeleton component with a stable seed or deterministic approach