Skip to content

ESLint Rule Suppressions in Production Code #915

Description

@csxark

Description

13 eslint-disable-next-line comments suppress legitimate warnings:

  • react-hooks/exhaustive-deps in ChallengeMode.tsx (potential stale closures)
  • react-hooks/set-state-in-effect in context.tsx, DailyQuiz.tsx
  • @typescript-eslint/no-require-imports in profiler.ts, reporter.ts, baseline.ts (6 instances)

Affected Files

  • components/challenge/ChallengeMode.tsx
  • lib/i18n/context.tsx
  • components/challenge/DailyQuiz.tsx
  • lib/performance/profiler.ts
  • lib/performance/reporter.ts
  • lib/performance/baseline.ts

Proposed Solution

  1. For exhaustive-deps: add missing deps or use ref-based patterns
  2. For set-state-in-effect: restructure to avoid state setting in effects
  3. For no-require-imports: migrate require() calls to dynamic import()
  4. Document any suppressions that truly cannot be resolved

Acceptance Criteria

  • Each suppression reviewed and either resolved or documented with justification
  • exhaustive-deps suppressions eliminated
  • Total suppression count reduced by ≥50%

Metadata

Metadata

Assignees

Labels

ECSoC26Elite Coders Summer of Code 2026

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions