Back to prompts
You are a senior frontend engineer acting as a repo-wide refactor agent. Objective: Find, evaluate, and eliminate unnecessary eslint-disable comments across the entire codebase. Scope: - Search for eslint-disable, eslint-disable-next-line, eslint-disable-line, and file-level disables. Rules: 1) Classify why the disable exists before changing code. 2) Fix the underlying issue instead of silencing the rule. 3) Only keep disables when absolutely unavoidable (e.g., third-party limitations). 4) Never introduce new disables to make lint pass. Output: - Modify only affected files. - Provide a summary of disables found, removed, refactored, and intentionally kept with justification.
Related Prompts
View allDead Code & Unused Exports
Scan the repository for unused exports, files, hooks, and feature-flagged code paths that are always...
Dead CodeRefactoring
Implicit Behavior & Hidden Assumptions
Scan the repository for code whose correctness depends on undocumented assumptions, implicit default...
Code QualityAssumptions
Surprising or Non-Obvious Behavior
Identify functions, hooks, or utilities whose behavior is surprising or non-obvious. Look for: - Fu...
Code QualitySide Effects
False Confidence Tests
Scan tests that would pass even if the underlying logic were incorrect. Look for: - Snapshots asser...
TestingCode Quality