React Review Audit
| ❌ 40 errors, ⚠️ 139 warnings |
Copy as prompt
Fix the following React Review diagnostics in my codebase.
## Errors (40)
1. [error] effect-needs-cleanup — apps/website/components/budge-me-paper-preview.tsx:422
useEffect schedules `setTimeout(...)` but never returns a cleanup — leaks the registration on every re-run and on unmount. Return a cleanup function that calls clearTimeout(...)
2. [error] effect-needs-cleanup — apps/website/components/budge-me-paper-preview.tsx:716
useEffect schedules `setTimeout(...)` but never returns a cleanup — leaks the registration on every re-run and on unmount. Return a cleanup function that calls clearTimeout(...)
3. [error] rules-of-hooks — apps/website/public/budge.iife.js:82
React Hook "useEffect" is called in function "Anonymous" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use".
4. [error] no-nested-component-definition — apps/website/public/budge.iife.js:82
Component "C" defined inside "Zu" — creates new instance every render, destroying state
5. [error] rules-of-hooks — apps/website/app/__budge.tsx:342
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
6. [error] rules-of-hooks — apps/website/app/__budge.tsx:351
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
7. [error] rules-of-hooks — apps/website/app/__budge.tsx:352
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
8. [error] rules-of-hooks — apps/website/app/__budge.tsx:353
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
9. [error] rules-of-hooks — apps/website/app/__budge.tsx:354
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
10. [error] rules-of-hooks — apps/website/app/__budge.tsx:355
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
11. [error] rules-of-hooks — apps/website/app/__budge.tsx:356
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
12. [error] rules-of-hooks — apps/website/app/__budge.tsx:357
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
13. [error] rules-of-hooks — apps/website/app/__budge.tsx:358
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
14. [error] rules-of-hooks — apps/website/app/__budge.tsx:359
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
15. [error] rules-of-hooks — apps/website/app/__budge.tsx:360
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
16. [error] rules-of-hooks — apps/website/app/__budge.tsx:363
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
17. [error] rules-of-hooks — apps/website/app/__budge.tsx:364
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
18. [error] rules-of-hooks — apps/website/app/__budge.tsx:365
React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render.
19. [error] rules-of-hooks — apps/website/app/__budge.tsx:366
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
20. [error] rules-of-hooks — apps/website/app/__budge.tsx:367
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
21. [error] rules-of-hooks — apps/website/app/__budge.tsx:369
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
22. [error] rules-of-hooks — apps/website/app/__budge.tsx:370
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
23. [error] rules-of-hooks — apps/website/app/__budge.tsx:371
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
24. [error] rules-of-hooks — apps/website/app/__budge.tsx:372
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
25. [error] rules-of-hooks — apps/website/app/__budge.tsx:373
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
26. [error] rules-of-hooks — apps/website/app/__budge.tsx:374
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
27. [error] rules-of-hooks — apps/website/app/__budge.tsx:375
React Hook "useRef" is called conditionally. React Hooks must be called in the exact same order in every component render.
28. [error] rules-of-hooks — apps/website/app/__budge.tsx:377
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
29. [error] rules-of-hooks — apps/website/app/__budge.tsx:379
React Hook "useCallback" is called conditionally. React Hooks must be called in the exact same order in every component render.
30. [error] rules-of-hooks — apps/website/app/__budge.tsx:394
React Hook "useCallback" is called conditionally. React Hooks must be called in the exact same order in every component render.
31. [error] rules-of-hooks — apps/website/app/__budge.tsx:402
React Hook "useCallback" is called conditionally. React Hooks must be called in the exact same order in every component render.
32. [error] rules-of-hooks — apps/website/app/__budge.tsx:415
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
33. [error] rules-of-hooks — apps/website/app/__budge.tsx:420
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
34. [error] rules-of-hooks — apps/website/app/__budge.tsx:453
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
35. [error] rules-of-hooks — apps/website/app/__budge.tsx:460
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
36. [error] rules-of-hooks — apps/website/app/__budge.tsx:473
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
37. [error] rules-of-hooks — apps/website/app/__budge.tsx:507
React Hook "useCallback" is called conditionally. React Hooks must be called in the exact same order in every component render.
38. [error] rules-of-hooks — apps/website/app/__budge.tsx:521
React Hook "useCallback" is called conditionally. React Hooks must be called in the exact same order in every component render.
39. [error] rules-of-hooks — apps/website/app/__budge.tsx:533
React Hook "useEffect" is called conditionally. React Hooks must be called in the exact same order in every component render.
40. [error] require-reduced-motion — packages/budge/package.json:0
Project uses a motion library but has no prefers-reduced-motion handling — required for accessibility (WCAG 2.3.3)
## Warnings (139)
41. [warning] no-array-index-as-key — apps/website/app/claude-spinner.tsx:42
Array index "index" used as key — causes bugs when list is reordered or filtered
42. [warning] click-events-have-key-events — apps/website/components/budge-me-paper-preview.tsx:869
Enforce a clickable non-interactive element has at least one keyboard event listener.
43. [warning] no-static-element-interactions — apps/website/components/budge-me-paper-preview.tsx:869
Static HTML elements with event handlers require a role.
44. [warning] js-tosorted-immutable — apps/website/components/budge-me-paper-preview.tsx:67
[...array].sort() — use array.toSorted() for immutable sorting (ES2023)
45. [warning] no-giant-component — apps/website/components/budge-me-paper-preview.tsx:370
Component "BudgeMePaperPreview" is 945 lines — consider breaking it into smaller focused components
46. [warning] prefer-useReducer — apps/website/components/budge-me-paper-preview.tsx:370
Component "BudgeMePaperPreview" has 18 useState calls — consider useReducer for related state
47. [warning] no-cascading-set-state — apps/website/components/budge-me-paper-preview.tsx:422
6 setState calls in a single useEffect — consider using useReducer or deriving state
48. [warning] js-tosorted-immutable — apps/website/components/budge-me-paper-preview.tsx:531
[...array].sort() — use array.toSorted() for immutable sorting (ES2023)
49. [warning] no-cascading-set-state — apps/website/components/budge-me-paper-preview.tsx:622
25 setState calls in a single useEffect — consider using useReducer or deriving state
50. [warning] no-cascading-set-state — apps/website/components/budge-me-paper-preview.tsx:716
19 setState calls in a single useEffect — consider using useReducer or deriving state
51. [warning] async-defer-await — apps/website/components/budge-me-paper-preview.tsx:743
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
52. [warning] async-defer-await — apps/website/components/budge-me-paper-preview.tsx:746
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
53. [warning] async-defer-await — apps/website/components/budge-me-paper-preview.tsx:772
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
54. [warning] async-defer-await — apps/website/components/budge-me-paper-preview.tsx:791
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
55. [warning] async-defer-await — apps/website/components/budge-me-paper-preview.tsx:766
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
56. [warning] async-defer-await — apps/website/components/budge-me-paper-preview.tsx:785
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
57. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:827
9 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
58. [warning] no-layout-transition-inline — apps/website/components/budge-me-paper-preview.tsx:914
Transitioning layout property "padding" causes layout thrash every frame — use transform and opacity instead
59. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:927
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
60. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:955
14 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
61. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:978
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
62. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1003
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
63. [warning] no-inline-bounce-easing — apps/website/components/budge-me-paper-preview.tsx:1026
Bounce/elastic easing feels dated — real objects decelerate smoothly. Use ease-out or cubic-bezier(0.16, 1, 0.3, 1) instead
64. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1052
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
65. [warning] no-tiny-text — apps/website/components/budge-me-paper-preview.tsx:1069
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
66. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1075
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
67. [warning] no-tiny-text — apps/website/components/budge-me-paper-preview.tsx:1079
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
68. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1092
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
69. [warning] no-tiny-text — apps/website/components/budge-me-paper-preview.tsx:1109
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
70. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1115
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
71. [warning] no-tiny-text — apps/website/components/budge-me-paper-preview.tsx:1119
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
72. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1161
9 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
73. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1207
9 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
74. [warning] no-inline-exhaustive-style — apps/website/components/budge-me-paper-preview.tsx:1257
13 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
75. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:15
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
76. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:15
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
77. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:16
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
78. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:18
array.indexOf() in a loop is O(n) per call — convert to a Set for O(1) lookups
79. [warning] js-cache-property-access — apps/website/public/budge.iife.js:18
t.memoizedProps.revealOrder is read 4 times inside this loop — hoist into a const at the top of the loop body
80. [warning] js-cache-property-access — apps/website/public/budge.iife.js:19
n.style.display is read 3 times inside this loop — hoist into a const at the top of the loop body
81. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:22
array.indexOf() in a loop is O(n) per call — convert to a Set for O(1) lookups
82. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:25
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
83. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:25
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
84. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:25
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
85. [warning] js-combine-iterations — apps/website/public/budge.iife.js:28
.map().filter() iterates the array twice — combine into a single loop with .reduce() or for...of
86. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:46
array.indexOf() in a loop is O(n) per call — convert to a Set for O(1) lookups
87. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:63
array.indexOf() in a loop is O(n) per call — convert to a Set for O(1) lookups
88. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:82
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
89. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:82
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups
90. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:82
array.indexOf() in a loop is O(n) per call — convert to a Set for O(1) lookups
91. [warning] js-hoist-intl — apps/website/public/budge.iife.js:82
new Intl.Segmenter() inside a function — hoist to module scope or wrap in useMemo so it isn't recreated each call
92. [warning] js-flatmap-filter — apps/website/public/budge.iife.js:82
.map().filter(Boolean) iterates twice — use .flatMap() to transform and filter in a single pass
93. [warning] js-set-map-lookups — apps/website/public/budge.iife.js:83
array.indexOf() in a loop is O(n) per call — convert to a Set for O(1) lookups
94. [warning] js-flatmap-filter — apps/website/public/budge.iife.js:84
.map().filter(Boolean) iterates twice — use .flatMap() to transform and filter in a single pass
95. [warning] async-defer-await — apps/website/public/budge.iife.js:84
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
96. [warning] click-events-have-key-events — apps/website/components/replay/replay-viewer.tsx:1097
Enforce a clickable non-interactive element has at least one keyboard event listener.
97. [warning] no-static-element-interactions — apps/website/components/replay/replay-viewer.tsx:1097
Static HTML elements with event handlers require a role.
98. [warning] use-lazy-motion — apps/website/components/replay/replay-viewer.tsx:7
Import "m" with LazyMotion instead of "motion" — saves ~30kb in bundle size
99. [warning] no-giant-component — apps/website/components/replay/replay-viewer.tsx:339
Component "ReplayViewer" is 1002 lines — consider breaking it into smaller focused components
100. [warning] prefer-useReducer — apps/website/components/replay/replay-viewer.tsx:345
Component "ReplayViewer" has 5 useState calls — consider useReducer for related state
101. [warning] js-batch-dom-css — apps/website/components/replay/replay-viewer.tsx:600
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
102. [warning] js-batch-dom-css — apps/website/components/replay/replay-viewer.tsx:601
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
103. [warning] js-batch-dom-css — apps/website/components/replay/replay-viewer.tsx:602
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
104. [warning] js-batch-dom-css — apps/website/components/replay/replay-viewer.tsx:603
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
105. [warning] js-batch-dom-css — apps/website/components/replay/replay-viewer.tsx:604
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
106. [warning] js-batch-dom-css — apps/website/components/replay/replay-viewer.tsx:605
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
107. [warning] design-no-three-period-ellipsis — apps/website/components/replay/replay-viewer.tsx:1136
Three-period ellipsis ("...") in JSX text — use the actual ellipsis character "…" (or `…`)
108. [warning] design-no-three-period-ellipsis — apps/website/components/replay/replay-viewer.tsx:1155
Three-period ellipsis ("...") in JSX text — use the actual ellipsis character "…" (or `…`)
109. [warning] no-giant-component — apps/website/app/terms/page.tsx:8
Component "TermsPage" is 350 lines — consider breaking it into smaller focused components
110. [warning] prefer-use-effect-event — apps/website/components/budge-logo.tsx:85
"scheduleNext" is read only inside `setTimeout` — wrap it with useEffectEvent and remove it from the dep array so the effect doesn't re-synchronize on every parent render
111. [warning] no-cascading-set-state — apps/website/components/budge-logo.tsx:62
8 setState calls in a single useEffect — consider using useReducer or deriving state
112. [warning] nextjs-missing-metadata — apps/website/app/building-the-preview/page.tsx:1
Page without metadata or generateMetadata export — hurts SEO
113. [warning] nextjs-no-a-element — apps/website/app/building-the-preview/page.tsx:99
Use next/link instead of <a> for internal links — enables client-side navigation and prefetching
114. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:108
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
115. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:119
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
116. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:128
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
117. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:137
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
118. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:150
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
119. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:170
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
120. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:181
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
121. [warning] design-no-em-dash-in-jsx-text — apps/website/app/building-the-preview/page.tsx:191
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses
122. [warning] use-lazy-motion — apps/website/components/ui/accordion.tsx:5
Import "m" with LazyMotion instead of "motion" — saves ~30kb in bundle size
123. [warning] no-polymorphic-children — apps/website/components/ui/accordion.tsx:113
Polymorphic `typeof children === "string"` check — expose explicit subcomponents (e.g. `<Button.Text>`) instead of branching on what the consumer passed
124. [warning] no-react19-deprecated-apis — apps/website/components/ui/toggle-group.tsx:64
useContext is superseded by `use()` on React 19+ — `use()` reads context conditionally inside hooks, branches, and loops; switch to `import { use } from 'react'`
125. [warning] no-autofocus — apps/website/app/page.tsx:36
The `autoFocus` attribute is found here, which can cause usability issues for sighted and non-sighted users.
126. [warning] nextjs-missing-metadata — apps/website/app/page.tsx:6
Page without metadata or generateMetadata export — hurts SEO
127. [warning] no-giant-component — apps/website/app/__budge.tsx:339
Component "Budge" is 376 lines — consider breaking it into smaller focused components
128. [warning] prefer-useReducer — apps/website/app/__budge.tsx:339
Component "Budge" has 11 useState calls — consider useReducer for related state
129. [warning] rerender-state-only-in-handlers — apps/website/app/__budge.tsx:352
useState "targetEl" is updated but never read in the component's return — use useRef so updates don't trigger re-renders
130. [warning] rerender-state-only-in-handlers — apps/website/app/__budge.tsx:354
useState "dismissed" is updated but never read in the component's return — use useRef so updates don't trigger re-renders
131. [warning] rendering-hydration-no-flicker — apps/website/app/__budge.tsx:415
useEffect(setState, []) on mount causes a flash — consider useSyncExternalStore or suppressHydrationWarning
132. [warning] no-cascading-set-state — apps/website/app/__budge.tsx:420
5 setState calls in a single useEffect — consider using useReducer or deriving state
133. [warning] no-cascading-set-state — apps/website/app/__budge.tsx:460
6 setState calls in a single useEffect — consider using useReducer or deriving state
134. [warning] no-cascading-set-state — apps/website/app/__budge.tsx:473
3 setState calls in a single useEffect — consider using useReducer or deriving state
135. [warning] no-cascading-set-state — apps/website/app/__budge.tsx:533
18 setState calls in a single useEffect — consider using useReducer or deriving state
136. [warning] no-cascading-set-state — apps/website/app/__budge.tsx:759
3 setState calls in a single useEffect — consider using useReducer or deriving state
137. [warning] no-inline-exhaustive-style — apps/website/app/__budge.tsx:1034
17 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
138. [warning] no-z-index-9999 — apps/website/app/__budge.tsx:1040
z-index: 2147483647 is arbitrarily high — use a deliberate z-index scale (1–50). Extreme values signal a stacking context problem, not a fix
139. [warning] no-inline-exhaustive-style — apps/website/app/__budge.tsx:1059
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
140. [warning] no-inline-exhaustive-style — apps/website/app/__budge.tsx:1085
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
141. [warning] no-inline-bounce-easing — apps/website/app/__budge.tsx:1107
Bounce/elastic easing feels dated — real objects decelerate smoothly. Use ease-out or cubic-bezier(0.16, 1, 0.3, 1) instead
142. [warning] no-inline-exhaustive-style — apps/website/app/__budge.tsx:1132
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
143. [warning] no-tiny-text — apps/website/app/__budge.tsx:1150
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
144. [warning] no-inline-exhaustive-style — apps/website/app/__budge.tsx:1184
14 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
145. [warning] no-z-index-9999 — apps/website/app/__budge.tsx:1196
z-index: 2147483647 is arbitrarily high — use a deliberate z-index scale (1–50). Extreme values signal a stacking context problem, not a fix
146. [warning] nextjs-missing-metadata — apps/website/app/replay/page.tsx:1
Page without metadata or generateMetadata export — hurts SEO
147. [warning] react-compiler-destructure-method — apps/website/app/replay/page.tsx:82
Destructure for clarity: `const { get } = useSearchParams()` then call `get(...)` directly — easier for React Compiler to memoize and clearer about which methods this component depends on
148. [warning] react-compiler-destructure-method — apps/website/app/replay/page.tsx:83
Destructure for clarity: `const { get } = useSearchParams()` then call `get(...)` directly — easier for React Compiler to memoize and clearer about which methods this component depends on
149. [warning] nextjs-no-client-side-redirect — apps/website/app/replay/page.tsx:87
router.replace() in useEffect — use redirect() from next/navigation or handle navigation in an event handler
150. [warning] react-compiler-destructure-method — apps/website/app/replay/page.tsx:87
Destructure for clarity: `const { replace } = useRouter()` then call `replace(...)` directly — easier for React Compiler to memoize and clearer about which methods this component depends on
151. [warning] js-batch-dom-css — packages/budge/src/budge.tsx:240
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
152. [warning] js-batch-dom-css — packages/budge/src/budge.tsx:241
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
153. [warning] js-batch-dom-css — packages/budge/src/budge.tsx:242
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
154. [warning] js-batch-dom-css — packages/budge/src/budge.tsx:243
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
155. [warning] js-batch-dom-css — packages/budge/src/budge.tsx:244
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
156. [warning] js-batch-dom-css — packages/budge/src/budge.tsx:245
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows
157. [warning] js-flatmap-filter — packages/budge/src/budge.tsx:429
.map().filter(Boolean) iterates twice — use .flatMap() to transform and filter in a single pass
158. [warning] async-defer-await — packages/budge/src/budge.tsx:680
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast
159. [warning] js-flatmap-filter — packages/budge/src/widget.tsx:109
.map().filter(Boolean) iterates twice — use .flatMap() to transform and filter in a single pass
160. [warning] no-giant-component — packages/budge/src/widget.tsx:446
Component "Budge" is 800 lines — consider breaking it into smaller focused components
161. [warning] prefer-useReducer — packages/budge/src/widget.tsx:446
Component "Budge" has 19 useState calls — consider useReducer for related state
162. [warning] rerender-state-only-in-handlers — packages/budge/src/widget.tsx:457
useState "showPrompt" is updated but never read in the component's return — use useRef so updates don't trigger re-renders
163. [warning] rerender-state-only-in-handlers — packages/budge/src/widget.tsx:458
useState "pressedButton" is updated but never read in the component's return — use useRef so updates don't trigger re-renders
164. [warning] no-cascading-set-state — packages/budge/src/widget.tsx:529
8 setState calls in a single useEffect — consider using useReducer or deriving state
165. [warning] no-cascading-set-state — packages/budge/src/widget.tsx:870
27 setState calls in a single useEffect — consider using useReducer or deriving state
166. [warning] no-outline-none — packages/budge/src/widget.tsx:1032
outline: none removes keyboard focus visibility — use :focus-visible styling instead, or provide a box-shadow focus ring
167. [warning] no-z-index-9999 — packages/budge/src/widget.tsx:1032
z-index: 2147483646 is arbitrarily high — use a deliberate z-index scale (1–50). Extreme values signal a stacking context problem, not a fix
168. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1041
14 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
169. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1064
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
170. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1089
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
171. [warning] no-inline-bounce-easing — packages/budge/src/widget.tsx:1112
Bounce/elastic easing feels dated — real objects decelerate smoothly. Use ease-out or cubic-bezier(0.16, 1, 0.3, 1) instead
172. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1138
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
173. [warning] no-tiny-text — packages/budge/src/widget.tsx:1155
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
174. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1161
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
175. [warning] no-tiny-text — packages/budge/src/widget.tsx:1165
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
176. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1178
8 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
177. [warning] no-tiny-text — packages/budge/src/widget.tsx:1195
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
178. [warning] no-inline-exhaustive-style — packages/budge/src/widget.tsx:1201
10 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse
179. [warning] no-tiny-text — packages/budge/src/widget.tsx:1205
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal
❌ Errors (40)
React Hook "useEffect" is called in function "Anonymous" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use". · 36 in 2 files
rules-of-hooks
| File | Lines |
|---|---|
apps/website/app/__budge.tsx |
342, 351, 352, 353, 354, 355, 356, 357, +27 more |
apps/website/public/budge.iife.js |
82 |
useEffect schedules `setTimeout(...)` but never returns a cleanup — leaks the registration on every re-run and on unmount. Return a cleanup function that calls clearTimeout(...) · 2 in 1 file
effect-needs-cleanup
Return a cleanup function that releases the subscription / timer:
return () => target.removeEventListener(name, handler)for listeners,return () => clearInterval(id)/clearTimeout(id)for timers, orreturn unsubscribeif the subscribe call already returned one
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
422, 716 |
Component "C" defined inside "Zu" — creates new instance every render, destroying state · 1 in 1 file
no-nested-component-definition
Move to a separate file or to module scope above the parent component
| File | Lines |
|---|---|
apps/website/public/budge.iife.js |
82 |
Project uses a motion library but has no prefers-reduced-motion handling — required for accessibility (WCAG 2.3.3) · 1 in 1 file
require-reduced-motion
Add
useReducedMotion()from your animation library, or a@media (prefers-reduced-motion: reduce)CSS query
| File | Lines |
|---|---|
packages/budge/package.json |
0 |
⚠️ Warnings (139)
9 inline style properties — extract to a CSS class, CSS module, or styled component for maintainability and reuse · 24 in 3 files
no-inline-exhaustive-style
Move styles to a CSS class, CSS module, Tailwind utilities, or a styled component — inline objects with many properties hurt readability and create new references every render
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
827, 927, 955, 978, 1003, 1052, 1075, 1092, +4 more |
packages/budge/src/widget.tsx |
1041, 1064, 1089, 1138, 1161, 1178, 1201 |
apps/website/app/__budge.tsx |
1034, 1059, 1085, 1132, 1184 |
array.includes() in a loop is O(n) per call — convert to a Set for O(1) lookups · 14 in 1 file
js-set-map-lookups
Use a
SetorMapfor repeated membership tests / keyed lookups —Array.includes/findis O(n) per call
| File | Lines |
|---|---|
apps/website/public/budge.iife.js |
15, 15, 16, 18, 22, 25, 25, 25, +6 more |
Multiple sequential element.style assignments — batch with cssText or classList for fewer reflows · 12 in 2 files
js-batch-dom-css
Batch DOM/CSS reads and writes — interleaving them inside a loop causes layout thrashing. Read first, then write
| File | Lines |
|---|---|
apps/website/components/replay/replay-viewer.tsx |
600, 601, 602, 603, 604, 605 |
packages/budge/src/budge.tsx |
240, 241, 242, 243, 244, 245 |
6 setState calls in a single useEffect — consider using useReducer or deriving state · 11 in 4 files
no-cascading-set-state
Combine into useReducer:
const [state, dispatch] = useReducer(reducer, initialState)
| File | Lines |
|---|---|
apps/website/app/__budge.tsx |
420, 460, 473, 533, 759 |
apps/website/components/budge-me-paper-preview.tsx |
422, 622, 716 |
packages/budge/src/widget.tsx |
529, 870 |
apps/website/components/budge-logo.tsx |
62 |
Font size 11px is too small — body text should be at least 12px for readability, 16px is ideal · 9 in 3 files
no-tiny-text
Use at least 12px for body content, 16px is ideal. Small text is hard to read, especially on high-DPI mobile screens
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
1069, 1079, 1109, 1119 |
packages/budge/src/widget.tsx |
1155, 1165, 1195, 1205 |
apps/website/app/__budge.tsx |
1150 |
await blocks the function before an early-return that doesn't use the awaited value — move the await after the synchronous guard so the skip path stays fast · 8 in 3 files
async-defer-await
Move the
awaitafter the synchronous early-return guard so the skip path stays fast
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
743, 746, 766, 772, 785, 791 |
apps/website/public/budge.iife.js |
84 |
packages/budge/src/budge.tsx |
680 |
Em dash (—) in JSX text reads as model output — replace with comma, colon, semicolon, or parentheses · 8 in 1 file
design-no-em-dash-in-jsx-text
Replace em dashes in JSX prose with commas, colons, semicolons, or parentheses so UI copy reads less like generated text.
| File | Lines |
|---|---|
apps/website/app/building-the-preview/page.tsx |
108, 119, 128, 137, 150, 170, 181, 191 |
Component "BudgeMePaperPreview" is 945 lines — consider breaking it into smaller focused components · 5 in 5 files
no-giant-component
Extract logical sections into focused components:
<UserHeader />,<UserActions />, etc.
Component "BudgeMePaperPreview" has 18 useState calls — consider useReducer for related state · 4 in 4 files
prefer-useReducer
Group related state:
const [state, dispatch] = useReducer(reducer, { field1, field2, ... })
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
370 |
apps/website/components/replay/replay-viewer.tsx |
345 |
apps/website/app/__budge.tsx |
339 |
packages/budge/src/widget.tsx |
446 |
.map().filter(Boolean) iterates twice — use .flatMap() to transform and filter in a single pass · 4 in 3 files
js-flatmap-filter
Use
.flatMap(item => condition ? [value] : [])— transforms and filters in a single pass instead of creating an intermediate array
| File | Lines |
|---|---|
apps/website/public/budge.iife.js |
82, 84 |
packages/budge/src/budge.tsx |
429 |
packages/budge/src/widget.tsx |
109 |
useState "targetEl" is updated but never read in the component's return — use useRef so updates don't trigger re-renders · 4 in 2 files
rerender-state-only-in-handlers
Replace useState with useRef when the value is only mutated and never read in render —
ref.current = ...updates without re-rendering the component
| File | Lines |
|---|---|
apps/website/app/__budge.tsx |
352, 354 |
packages/budge/src/widget.tsx |
457, 458 |
Bounce/elastic easing feels dated — real objects decelerate smoothly. Use ease-out or cubic-bezier(0.16, 1, 0.3, 1) instead · 3 in 3 files
no-inline-bounce-easing
Use
cubic-bezier(0.16, 1, 0.3, 1)(ease-out-expo) for natural deceleration — objects in the real world don't bounce
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
1026 |
apps/website/app/__budge.tsx |
1107 |
packages/budge/src/widget.tsx |
1112 |
Page without metadata or generateMetadata export — hurts SEO · 3 in 3 files
nextjs-missing-metadata
Add
export const metadata = { title: '...', description: '...' }orexport async function generateMetadata()
| File | Lines |
|---|---|
apps/website/app/building-the-preview/page.tsx |
1 |
apps/website/app/page.tsx |
6 |
apps/website/app/replay/page.tsx |
1 |
z-index: 2147483647 is arbitrarily high — use a deliberate z-index scale (1–50). Extreme values signal a stacking context problem, not a fix · 3 in 2 files
no-z-index-9999
Define a z-index scale in your design tokens (e.g. dropdown: 10, modal: 20, toast: 30). Create a new stacking context with
isolation: isolateinstead of escalating values
| File | Lines |
|---|---|
apps/website/app/__budge.tsx |
1040, 1196 |
packages/budge/src/widget.tsx |
1032 |
Destructure for clarity: `const { get } = useSearchParams()` then call `get(...)` directly — easier for React Compiler to memoize and clearer about which methods this component depends on · 3 in 1 file
react-compiler-destructure-method
Destructure the method up front:
const { push } = useRouter()then callpush(...)directly — clearer dependency graph and easier for React Compiler to memoize
| File | Lines |
|---|---|
apps/website/app/replay/page.tsx |
82, 83, 87 |
Enforce a clickable non-interactive element has at least one keyboard event listener. · 2 in 2 files
click-events-have-key-events
Visible, non-interactive elements with click handlers must have one of
keyup,keydown, orkeypresslistener.
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
869 |
apps/website/components/replay/replay-viewer.tsx |
1097 |
Static HTML elements with event handlers require a role. · 2 in 2 files
no-static-element-interactions
Add a role attribute to this element, or use a semantic HTML element instead.
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
869 |
apps/website/components/replay/replay-viewer.tsx |
1097 |
[...array].sort() — use array.toSorted() for immutable sorting (ES2023) · 2 in 1 file
js-tosorted-immutable
Use
array.toSorted()(ES2023) instead of[...array].sort()for immutable sorting without the spread allocation
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
67, 531 |
t.memoizedProps.revealOrder is read 4 times inside this loop — hoist into a const at the top of the loop body · 2 in 1 file
js-cache-property-access
Hoist the deep member access into a const at the top of the loop body:
const { x, y } = obj.deeply.nested
| File | Lines |
|---|---|
apps/website/public/budge.iife.js |
18, 19 |
Import "m" with LazyMotion instead of "motion" — saves ~30kb in bundle size · 2 in 2 files
use-lazy-motion
Use
import { LazyMotion, m } from "framer-motion"withdomAnimationfeatures — saves ~30kb
| File | Lines |
|---|---|
apps/website/components/replay/replay-viewer.tsx |
7 |
apps/website/components/ui/accordion.tsx |
5 |
Three-period ellipsis ("...") in JSX text — use the actual ellipsis character "…" (or `…`) · 2 in 1 file
design-no-three-period-ellipsis
Use the typographic ellipsis "…" (or
…) instead of three periods — pairs with action-with-followup labels ("Rename…", "Loading…")
| File | Lines |
|---|---|
apps/website/components/replay/replay-viewer.tsx |
1136, 1155 |
Array index "index" used as key — causes bugs when list is reordered or filtered · 1 in 1 file
no-array-index-as-key
Use a stable unique identifier:
key={item.id}orkey={item.slug}— index keys break on reorder/filter
| File | Lines |
|---|---|
apps/website/app/claude-spinner.tsx |
42 |
Transitioning layout property "padding" causes layout thrash every frame — use transform and opacity instead · 1 in 1 file
no-layout-transition-inline
Use
transformandopacityfor transitions — they run on the compositor thread. For height animations, usegrid-template-rows: 0fr → 1fr
| File | Lines |
|---|---|
apps/website/components/budge-me-paper-preview.tsx |
914 |
.map().filter() iterates the array twice — combine into a single loop with .reduce() or for...of · 1 in 1 file
js-combine-iterations
Combine
.map().filter()(or similar chains) into a single pass with.reduce()or afor...ofloop to avoid iterating the array twice
| File | Lines |
|---|---|
apps/website/public/budge.iife.js |
28 |
new Intl.Segmenter() inside a function — hoist to module scope or wrap in useMemo so it isn't recreated each call · 1 in 1 file
js-hoist-intl
Hoist
new Intl.NumberFormat(...)to module scope or wrap inuseMemo— Intl constructors allocate dozens of objects per locale lookup
| File | Lines |
|---|---|
apps/website/public/budge.iife.js |
82 |
"scheduleNext" is read only inside `setTimeout` — wrap it with useEffectEvent and remove it from the dep array so the effect doesn't re-synchronize on every parent render · 1 in 1 file
prefer-use-effect-event
Wrap the callback with
useEffectEvent(callback)(React 19+) and call the resulting binding from inside the sub-handler. The Effect Event captures the latest props/state without being a reactive dep, so the effect doesn't re-subscribe on every parent render. See https://react.dev/reference/react/useEffectEvent
| File | Lines |
|---|---|
apps/website/components/budge-logo.tsx |
85 |
Use next/link instead of <a> for internal links — enables client-side navigation and prefetching · 1 in 1 file
nextjs-no-a-element
import Link from 'next/link'— enables client-side navigation, prefetching, and preserves scroll position
| File | Lines |
|---|---|
apps/website/app/building-the-preview/page.tsx |
99 |
Polymorphic `typeof children === "string"` check — expose explicit subcomponents (e.g. `<Button.Text>`) instead of branching on what the consumer passed · 1 in 1 file
no-polymorphic-children
Expose explicit subcomponents (
<Button.Text>,<Button.Icon>) so consumers don't need to switch ontypeof children
| File | Lines |
|---|---|
apps/website/components/ui/accordion.tsx |
113 |
useContext is superseded by `use()` on React 19+ — `use()` reads context conditionally inside hooks, branches, and loops; switch to `import { use } from 'react'` · 1 in 1 file
no-react19-deprecated-apis
Pass
refas a regular prop on function components —forwardRefis no longer needed in React 19+. ReplaceuseContext(X)withuse(X)for branch-aware context reads. Only enabled on projects detected as React 19+.
| File | Lines |
|---|---|
apps/website/components/ui/toggle-group.tsx |
64 |
The `autoFocus` attribute is found here, which can cause usability issues for sighted and non-sighted users. · 1 in 1 file
no-autofocus
Remove the
autoFocusattribute.
| File | Lines |
|---|---|
apps/website/app/page.tsx |
36 |
useEffect(setState, []) on mount causes a flash — consider useSyncExternalStore or suppressHydrationWarning · 1 in 1 file
rendering-hydration-no-flicker
Use
useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot)or addsuppressHydrationWarningto the element
| File | Lines |
|---|---|
apps/website/app/__budge.tsx |
415 |
router.replace() in useEffect — use redirect() from next/navigation or handle navigation in an event handler · 1 in 1 file
nextjs-no-client-side-redirect
Avoid redirects inside useEffect. Use an event handler, middleware, or server-side redirect (App Router: redirect() from next/navigation; Pages Router: getServerSideProps redirect)
| File | Lines |
|---|---|
apps/website/app/replay/page.tsx |
87 |
outline: none removes keyboard focus visibility — use :focus-visible styling instead, or provide a box-shadow focus ring · 1 in 1 file
no-outline-none
Use
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px }to show focus only for keyboard users while hiding it for mouse clicks
| File | Lines |
|---|---|
packages/budge/src/widget.tsx |
1032 |
Reviewed by reactreview for commit b05404f0a8f629962bac600b610070ff950f1c5a. Configure here.