fix(lint): תיקון 10 שגיאות ESLint + ניקוי directives מיותרים
10 שגיאות (כולן קיימות-מראש, לא מהפיצ'רים האחרונים): - react/no-unescaped-entities (3): legal-arguments-panel, precedent-edit-sheet — escaping של מרכאות ב-JSX (“/") - react-hooks/set-state-in-effect (6): documents-panel, chair-editor, content-checklists, discussion-rules, golden-ratios, documents.ts — disable-comment לדפוסי sync/reset לגיטימיים (false-positive ידוע) - React Compiler reassign (1): subject-donut — refactor לחישוב prefix-sums ללא mutable accumulator ניקוי: הסרת 5 eslint-disable directives מיותרים (halacha-review-panel, precedent-upload-sheet). תוצאה: 0 errors (היה 10), 24→ warnings (היה 29). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -217,6 +217,7 @@ export function useProgress(taskId: string | null, caseNumber?: string) {
|
||||
|
||||
useEffect(() => {
|
||||
if (!taskId) return;
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect -- reset on taskId change
|
||||
setEvent(null);
|
||||
|
||||
/* Self-heal fallback: if no SSE message arrives within 10s — usually
|
||||
|
||||
Reference in New Issue
Block a user