fix: resolve 25 error-level lint issues (P1-3)
Fix no-require-imports, no-explicit-any, no-html-link-for-pages, set-state-in-effect, purity, static-components, and refs rules across 15 files. 0 errors remain (52 warnings unchanged). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
e86f0cfd8f
commit
9b166be8d6
12 files changed
+39
-59
No files matched your search
@@ -47,9 +47,10 @@ interface StreamingMessageProps {
|
||||
|
||||
function ElapsedTimer() {
|
||||
const [elapsed, setElapsed] = useState(0);
|
||||
const startRef = useRef(Date.now());
|
||||
const startRef = useRef(0);
|
||||
|
||||
useEffect(() => {
|
||||
startRef.current = Date.now();
|
||||
const interval = setInterval(() => {
|
||||
setElapsed(Math.floor((Date.now() - startRef.current) / 1000));
|
||||
}, 1000);
|
||||
|
||||
Reference in new issue
Block a user