npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@yunarch/eslint-oxlint-diff

v0.2.1

Published

CLI tool to compare ESLint and OxLint rules, showing coverage gaps and overlap.

Downloads

384

Readme

NPM version

CLI tool to compare ESLint and OxLint rules, showing coverage gaps and overlap.

Why?

Thinking about adopting Oxlint? This tool rapidly answers:

  • How much of my ESLint config does Oxlint already cover? See a coverage percentage at a glance.
  • Which rules are missing? Get a list of ESLint rules not covered by your Oxlint config, grouped by plugin.
  • Which new Oxlint rules will I get? Spot extra rules Oxlint enables that your ESLint config doesn't have.

[!NOTE] If you just want to migrate from ESLint to OxLint, you should check out Oxlint migration guide.

Usage

Usage: @yunarch/eslint-oxlint-diff [options]

A CLI tool to compare ESLint and OxLint rules, showing coverage gaps and
overlap.

Requires ESLint config in flat config format.

Options:
  --eslint-config <path>         Path to the ESLint configuration file. Defaults
                                 to eslint.config file in the current directory.
  --oxlint-config <path>         Path to the oxlint configuration file. If
                                 omitted, infers the config from the ESLint
                                 configuration.
  --with-infer-type-aware        Include type-aware rules when inferring the
                                 oxlint config. Only relevant without
                                 --oxlint-config. (default: true)
  --with-infer-js-plugins        Include ESLint JS plugins when inferring the
                                 oxlint config. Only relevant without
                                 --oxlint-config. (default: false)
  --with-infer-nursery           Include nursery rules when inferring the oxlint
                                 config. Only relevant without --oxlint-config.
                                 (default: false)
  --save-inferred-oxlint <path>  Save the inferred OxLint config to a file. Only
                                 relevant without --oxlint-config.
  -h, --help                     display help for command

Quick start:
$ npx @yunarch/eslint-oxlint-diff

With explicit config paths:
$ npx @yunarch/eslint-oxlint-diff --eslint-config path/to/eslint.config --oxlint-config path/to/.oxlintrc

Example output

──────────────────────────────────────────────────────────────────────
  ESLint rules NOT yet covered by OxLint
──────────────────────────────────────────────────────────────────────

  📦 @typescript-eslint (2 rules)
     ├─ @typescript-eslint/consistent-type-imports
     └─ @typescript-eslint/no-import-type-side-effects

  📦 eslint-core (1 rule)
     └─ no-console

──────────────────────────────────────────────────────────────────────
  ESLint ↔ OxLint Rule Comparison
──────────────────────────────────────────────────────────────────────

  Total active ESLint rules:            10
  Total active OxLint rules:             7
  Covered by OxLint:                     7
  ESLint-only (not in OxLint):           3
  OxLint-only (not in ESLint):           0

  OxLint coverage of ESLint rules: 70.00%

Key concepts

  • Inference mode (default): When --oxlint-config is not provided, the tool uses @oxlint/migrate to automatically generate an equivalent OxLint configuration from your ESLint flat config.
  • --save-inferred-oxlint: Exports the inferred OxLint config to a JSON file, useful as a starting point for your own .oxlintrc.json.

Programmatic API

The package also exports the core functions for use in other tools:

import { diff, printDiffResult } from '@yunarch/eslint-oxlint-diff';

const result = diff(eslintFlatConfigs, oxlintConfig);

// result.eslintOnly      — rules active in ESLint but not OxLint
// result.coveredByOxlint — rules active in both
// result.oxlintOnly      — rules active in OxLint but not ESLint

printDiffResult(result); // prints formatted output to console

📜 License

MIT License © 2026-Present @yunarch