Repository navigation
chore(web): give the remaining eslint directives a reason - #2593
Conversation
21 eslint-disable and eslint-enable comments had no description and were recorded as bulk suppressions of eslint-comments/require-description. Each now states its reason; a one-line explanation directly above a directive moves into it. The matching entries are pruned from eslint-suppressions.json. No code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Problem
Related issue: N/A
Validation tasks: none
21
eslint-disableandeslint-enablecomments in the web app give no reason, whicheslint-comments/require-descriptionhas required since #2522. They pass only becauseweb/eslint-suppressions.jsonrecords them as existing debt. Each now states its reason, and their suppression entries are gone, so the file shrinks from 71 entries to 52.Approach
Where a one-line explanation sat directly above a directive, it moves into the directive's
--description unchanged. Elsewhere the description is a short reason taken from the surrounding code or from the comment block above, which stays.pnpm run lint:pruneremoved the matching suppression entries and nothing else. No code changes.Validation
pnpm run lintreports no errors and no unused suppressions.Evidence
Evidence: none, no user-visible change
Risks
None identified.
Checklist
AI Disclosure
claude-opus-5-5🤖 Generated with Claude Code
Note
Add inline descriptions to remaining ESLint suppression directives in web
Replaces separate explanatory comments with inline descriptions on
eslint-disable/eslint-enabledirectives across onboarding, settings, home, watch-together, and player files. No suppressions are added or removed, and runtime behavior is unchanged. Removes the per-fileeslint-comments/require-descriptionallowances from eslint-suppressions.json, so all listed files must now satisfy the description rule directly.Macroscope summarized d138fc6.