Repository navigation
Bump @duckduckgo/eslint-config to v0.4.0 and fix new lint errors - #3222
Open
jonathanKingston wants to merge 2 commits into
Open
jonathanKingston wants to merge 2 commits into
jonathanKingston wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
Build Branch
Static preview entry points
QR codes (mobile preview)
Integration commandsnpm (Android / Extension): Swift Package Manager (Apple): .package(url: "https://github.com/duckduckgo/content-scope-scripts.git", branch: "pr-releases/claude/epic-brown-7qn3n8")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/claude/epic-brown-7qn3n8
git -C submodules/content-scope-scripts checkout origin/pr-releases/claude/epic-brown-7qn3n8Pin to exact commitnpm (Android / Extension): Swift Package Manager (Apple): .package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "1e2d8e5ac100ed9f26c0f264c407b7d13c425b87")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/claude/epic-brown-7qn3n8
git -C submodules/content-scope-scripts checkout 1e2d8e5ac100ed9f26c0f264c407b7d13c425b87 |
Contributor
[Beta] Generated file diffTime updated: Wed, 25 Nov 2026 09:01:23 GMT Android
File has changed Apple
File has changed Chrome-mv3File has changed FirefoxFile has changed Integration
File has changed Windows
File has changed |
Bumps [@duckduckgo/eslint-config](https://github.com/duckduckgo/eslint-config) from v0.2.1 to v0.4.0. - [Release notes](https://github.com/duckduckgo/eslint-config/releases) - [Changelog](https://github.com/duckduckgo/eslint-config/blob/main/CHANGELOG.md) - [Commits](duckduckgo/eslint-config@1a2a3f0...2d9b6a5) --- updated-dependencies: - dependency-name: "@duckduckgo/eslint-config" dependency-version: 2d9b6a5a3ae32caf9d0ab9b952979cc7c2ddf74b dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
The config enables no-useless-assignment, no-unassigned-vars, n/no-callback-literal and preserve-caught-error. Fix what they report without changing behaviour: - Drop initial values that every path overwrites. - Drop the never-assigned history search timer and a shadowed, never-read errorId in the special-error mock. - Keep `let mock = null` where the $INTEGRATION label is stripped from other builds, with a scoped disable explaining why. - Rename or hoist data callbacks so the rule doesn't read their argument as a node-style error. - Scoped disable for preserve-caught-error in translations.mjs: the tsconfig lib has no Error cause option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Jw5UTZZEfZbGeqRoVezPT
daxtheduck
force-pushed
the
claude/epic-brown-7qn3n8
branch
from
November 25, 2026 08:59
be4d5cf to
2fa2d76
Compare
This branch has not been deployed
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.


Asana Task/Github Issue: none. This is a follow-up to dependabot PR #3155.
Description
This supersedes #3155. That PR bumps
@duckduckgo/eslint-configfrom v0.2.1 to v0.4.0, butnpm run lintthen fails with 20 errors from newly enabled rules. This PR includes dependabot's commit unchanged and adds one commit that fixes the errors without changing behaviour:no-useless-assignment: removes initial values that every path overwrites before reading (config-feature.js, broker-protectionclick.js, duckplayerutil.js, selection-toolsselection.js,tracker-protection.js,utils.js,.github/scripts/diff-directories.js).let mock = nullin the special-page entry points (history, new-tab, release-notes, special-error): the null is still needed. The$INTEGRATION:label is stripped outside integration builds, so these lines get a scoped disable that explains why. Onboarding has no label, so it now just returnsmockTransport().no-unassigned-vars: removes the never-assignedtimerin the historyuseSearchCommitForRangehook.errorId. TheinitialSetupcase shadowed it.n/no-callback-literal: renames or hoists NTP data callbacks so the rule stops treating their object argument as a node-style error.preserve-caught-error: adds a scoped disable inspecial-pages/translations.mjs, because the tsconfig lib does not type the Errorcauseoption.Testing Steps
npm run build && npm run lintpasses. This runs eslint, tsc, tsc-strict-core, surrogate checks and prettier.npm run test-unitpasses (1682 specs and 160 tests, 0 failures).Checklist
Please tick all that apply:
🤖 Generated with Claude Code
https://claude.ai/code/session_018Jw5UTZZEfZbGeqRoVezPT