Clear the pre-existing lint backlog in index.jsx, main.js, and preload.js - #114
Merged
Merged
Conversation
…d.js The repo had no linter until #112, so eslint . reports pre-existing findings across files nobody had touched since. These three files kept blocking PR #111's lint check on lines it never modified. Clears them so CI can eventually move eslint from changed-files-only to the full repo. Mechanical fixes (unused vars/imports, nested ternaries, no-unused-expressions, no-shadow, eqeqeq, prefer-const, JSDoc) preserve behavior exactly. Judgment calls, documented inline: console.* -> the existing logEvent/logError helpers in the SMTP handler; alert()/confirm() left in place with justified eslint-disable comments (replacing the app's whole alert-based UX convention is a separate, larger change); two dead zip-download-era functions (downloadFile, WORDPRESS_ZIP_URL) and their now-unused imports removed; a few genuine a11y gaps fixed (keyboard handler on the email list row, anchor-as-button converted to a real button). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Findings: 0 🔴 · 0 🟡 · 0 🔵 — no findings across the five dimensions. This is the first automated review pass on this PR (no prior summary to reconcile). Verified against
Also checked by hand, since these are exactly the kind of thing a mechanical lint pass can get wrong silently:
Style / process notes (non-blocking)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
eslint .reports pre-existing findings across files nobody had touched since — 57 of them concentrated insrc/renderer/index.jsx,src/main.js, andsrc/preload.js. These three kept blocking Add an update path so sites can move to the latest trunk #111's lint check on lines that PR never modified.lint.ymlstill only lints changed files, but once eslint eventually moves to the full repo, these three won't be part of the remaining work.no-unused-expressions,no-shadow,eqeqeq,prefer-const, JSDoc@param) preserve behavior exactly.console.*in the SMTP handler → the existinglogEvent/logErrorhelpers from./logging, matching the rest of the main process.alert()/confirm()are left in place with justifiedeslint-disablecomments — replacing this file's whole alert-based UX convention is a separate, larger change than a lint cleanup should make.downloadFile()andWORDPRESS_ZIP_URL(and their now-unusedhttps/extract-zipimports) — the app clones via git now, nothing calls either.<button>.Test plan
npx eslint --max-warnings=0 --no-warn-ignored src/renderer/index.jsx src/main.js src/preload.js— cleannpm test— 113/113 passingnpx eslint .— remaining findings are all outside these three files (untouched by this PR)🤖 Generated with Claude Code