Skip to content

chore(web): give the remaining eslint directives a reason - #2593

Merged
Quick104 merged 1 commit into
mainfrom
fix/web-describe-eslint-directives
Oct 16, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/web-describe-eslint-directives

Conversation

@Quick104

@Quick104 Quick104 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

21 eslint-disable and eslint-enable comments in the web app give no reason, which eslint-comments/require-description has required since #2522. They pass only because web/eslint-suppressions.json records 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:prune removed the matching suppression entries and nothing else. No code changes.

Validation

  • pnpm run lint reports no errors and no unused suppressions.
  • Prettier check passes on the changed files.

Evidence

Evidence: none, no user-visible change

Risks

None identified.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code, run inside T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated, human verified
  • Adversarial review: n/a

🤖 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-enable directives across onboarding, settings, home, watch-together, and player files. No suppressions are added or removed, and runtime behavior is unchanged. Removes the per-file eslint-comments/require-description allowances from eslint-suppressions.json, so all listed files must now satisfy the description rule directly.

Macroscope summarized d138fc6.

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-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Oct 16, 2026
@silo-kody

silo-kody Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Oct 16, 2026
@coderabbitai

coderabbitai Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4b7ce2a2-da47-48b7-be63-a820885690b5
📥 Commits

Reviewing files that changed from the base of the PR and between c414af7 and d138fc6.

📒 Files selected for processing: 20
  • web/eslint-suppressions.json
  • web/src/components/onboarding/OnboardingGate.tsx
  • web/src/components/onboarding/TourHost.tsx
  • web/src/hooks/queries/admin/settings.ts
  • web/src/hooks/queries/onboarding.ts
  • web/src/lib/homeRows/rowLinks.ts
  • web/src/pages/AdminRecommendations.tsx
  • web/src/pages/Home.tsx
  • web/src/pages/LibraryPage.tsx
  • web/src/pages/admin-settings/RequestServers.tsx
  • web/src/pages/admin-settings/useStagedDraft.ts
  • web/src/pages/admin-users/detail/preferences/ProfileHomeSections.tsx
  • web/src/pages/settings/LibrarySettings.tsx
  • web/src/pages/watchtogether/hooks/useActivityFeed.ts
  • web/src/pages/watchtogether/room/picker/usePickerData.ts
  • web/src/player/hooks/useASSSubtitles.ts
  • web/src/player/hooks/useBrowserEngine.ts
  • web/src/player/hooks/useIntroSkipPrompt.ts
  • web/src/player/hooks/useNextEpisode.ts
  • web/src/player/hooks/useSubtitleTracks.ts
💤 Files with no reviewable changes: 1
  • web/eslint-suppressions.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

📝 Walkthrough

This change clarifies existing ESLint suppression comments across the web application and removes matching eslint-comments/require-description entries from the suppression registry. It does not change executable behavior.

Changes: ESLint Suppression Updates

Layer / File(s) Summary
Clarify inline suppression rationale
web/src/components/onboarding/*, web/src/hooks/queries/*, web/src/lib/homeRows/rowLinks.ts, web/src/pages/*, web/src/player/hooks/*
Updated ESLint suppression explanations. The affected directives, dependency lists, and executable behavior remain unchanged.
Remove description-rule suppression entries
web/eslint-suppressions.json
Removed eslint-comments/require-description entries for the updated files. The LibraryRecommended.tsx entry and the listed React Hooks suppressions remain.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to d138f

This PR updates lint-suppression explanations and registry entries, with no supported user-facing behavior change or remaining actionable merge risk.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 55.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 20 functions across 19 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: adding reasons to the remaining ESLint directives in the web app.
Description check Passed The description directly explains the ESLint directive updates, suppression cleanup, validation results, and absence of runtime or user-visible changes.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Quick104 Quick104 added the evidence-not-needed A maintainer waived the Evidence check, for example for an automated dependency update label Oct 16, 2026
@Quick104
Quick104 merged commit 166f832 into main Oct 16, 2026
20 checks passed
@Quick104
Quick104 deleted the fix/web-describe-eslint-directives branch October 16, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

evidence-not-needed A maintainer waived the Evidence check, for example for an automated dependency update javascript Pull requests that update javascript code priority: P2 Limited scope, workaround exists, or polish size/M 50–199 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant