Repository navigation
Conversation
oxlint's prefer-await-to-then also flags top-level calls and constructors, and its unused-member rules miss `#brand in value`.
The config keeps the ESLint rule set, scopes and globals. A local plugin replaces the no-restricted-syntax ban on private methods. Linting takes about 4 s instead of 35 s.
mgurgel
requested review from
a team,
GuiltyDolphin,
daxtheduck and
jdorweiler
as code owners
November 25, 2026 13:46
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/mgurgel/oxlint")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/mgurgel/oxlint
git -C submodules/content-scope-scripts checkout origin/pr-releases/mgurgel/oxlintPin to exact commitnpm (Android / Extension): Swift Package Manager (Apple): .package(url: "https://github.com/duckduckgo/content-scope-scripts.git", revision: "9dce590800555ff59e9e5456971f7a209f96b791")git submodule (Windows): git -C submodules/content-scope-scripts fetch origin pr-releases/mgurgel/oxlint
git -C submodules/content-scope-scripts checkout 9dce590800555ff59e9e5456971f7a209f96b791 |
# Conflicts: # package-lock.json # package.json
Contributor
[Beta] Generated file diffTime updated: Wed, 25 Nov 2026 18:01:10 GMT Android
File has changed Apple
File has changed Chrome-mv3File has changed FirefoxFile has changed Integration
File has changed Windows
File has changed |
Scripts, examples and history listeners now await instead of chaining. Special-page entry files are IIFE bundles without top-level await, so the rule is off for them in config.
mgurgel
force-pushed
the
mgurgel/oxlint
branch
from
November 25, 2026 14:02
87539e3 to
3d8cfcf
Compare
oxlint only runs ban-ts-comment on TypeScript files, so the local plugin now checks all files. Re-enables no-unreachable-loop, returns the messaging examples to .then, and removes disable comments that no longer suppress anything.
no-undef runs on all JS files again, with Node globals set in config because oxlint ignores /* global */ comments. The local plugin adds no-this-alias for JS and catches return promise.then(), which oxlint's rule skips.
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:
Description
This PR replaces ESLint with oxlint. A plugin file migrates eslint rules not covered by oxlint. Remaining differences are listed below.
Differences from ESLint
no-redeclareconst Set.prefer-await-to-then.then()and.catch()at the top level of a file, which is why the rule is off for the special page entry files and the messaging examples.no-unused-private-class-members#field in objectas a use.no-unused-vars<>as a use ofFragment.no-implicit-globalsinlint-no-output-globalseslint-disablecomments, so a comment incontentScope.jscould hide a global. The file has no such comment.camelcase,spaced-comment,no-tabs,no-undef-init,n/no-callback-literal,n/no-deprecated-apiandn/process-exit-as-throwhave no oxlint equivalent.Testing Steps
npm run lint. It passes.injected/srcand runnpx oxlint: a promise call withoutawait,// @ts-ignore,const self = thisorprocess.cwd(). oxlint reports each one.Checklist
Please tick all that apply: