Repository navigation
build(deps-dev): bump @duckduckgo/eslint-config to v0.4.0 and fix new lint errors - #3263
Open
jonathanKingston wants to merge 1 commit into
Open
jonathanKingston wants to merge 1 commit into
jonathanKingston wants to merge 1 commit into
Conversation
… lint errors v0.3.0 moves the shared config to ESLint 10 and drops eslint-plugin-import, which turns on no-useless-assignment, no-unassigned-vars, preserve-caught-error and n/no-callback-literal. Fix what they flag: - Drop initial values that every path overwrites. - Keep `let mock = null` where the following `$INTEGRATION:` statement is removed from non-integration builds by esbuild dropLabels, with an inline disable explaining why; onboarding has no label, so return directly. - Remove an unused timer in useSearchCommitForRange and a dead errorId lookup in the special-error mock transport. - Turn off n/no-callback-literal: our `cb` arguments are subscription listeners, not Node-style error-first callbacks. - Disable preserve-caught-error on one throw, as the tsconfig lib has no ErrorOptions and the message already includes the cause. Supersedes #3155. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Jw5UTfNU9VJhBhrJXHaKN
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
[Beta] Generated file diffTime updated: Sat, 28 Nov 2026 08:56:38 GMT Android
File has changed Apple
File has changed Chrome-mv3File has changed FirefoxFile has changed Integration
File has changed Windows
File has changed |
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/bold-thompson-167uk9-eslint-config")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/claude/bold-thompson-167uk9-eslint-config
git -C submodules/content-scope-scripts checkout origin/pr-releases/claude/bold-thompson-167uk9-eslint-configPin to exact commitnpm (Android / Extension): Swift Package Manager (Apple): .package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "cfad6736ff92ad1f895d5c0eb6f78a647fd3daff")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/claude/bold-thompson-167uk9-eslint-config
git -C submodules/content-scope-scripts checkout cfad6736ff92ad1f895d5c0eb6f78a647fd3daff |
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: Supersedes #3155
Description
Dependabot's bump of
@duckduckgo/eslint-configfrom v0.2.1 to v0.4.0 failsunit (ubuntu-latest)with 20 lint errors. v0.3.0 moves the shared config to ESLint 10 and dropseslint-plugin-import, which enablesno-useless-assignment,no-unassigned-vars,preserve-caught-errorandn/no-callback-literal. This PR applies the same bump on currentmainand fixes what the new rules flag. No behaviour changes intended.config-feature.js,click.js,duckplayer/util.js,selection.js,tracker-protection.js,utils.js,diff-directories.js).let mock = nullin the special-page entry points: the$INTEGRATION:statement after it is removed from non-integration builds by esbuilddropLabels(special-pages/opts.mjs), so the initial value is what those builds return. Each gets an inline disable saying so. Onboarding has no label, so it now returnsmockTransport()directly.timerinuseSearchCommitForRangeand a deaderrorIdlookup in the special-error mock transport (theinitialSetupcase already reads it).n/no-callback-literal: ourcbarguments are subscription listeners that take data objects, not Node-style error-first callbacks.preserve-caught-erroron one throw intranslations.mjs: the tsconfiglibhas noErrorOptions, and the message already includes the original error.The lockfile change is mostly removals (
eslint-plugin-importand itses-abstractdependency chain).Points for the reviewer: whether turning off
n/no-callback-literalrepo-wide is acceptable, and whether to go straight to v0.4.1 (adds an npm cooldown to the config repo itself).Testing Steps
npm run build && npm run lint && npm run test-unit(all pass locally)Checklist
Please tick all that apply:
🤖 Generated with Claude Code
https://claude.ai/code/session_018Jw5UTfNU9VJhBhrJXHaKN