Skip to content
PluginStats

eslint-plugin-diff weekly downloads statistics

By paleite · npm · ESLint plugins

Run ESLint on your changes only

View on npm Fresh · Dec 6, 2026

eslint-plugin-diff has 258,584 recorded weekly downloads on npm, a decrease of 10.3% over the past 30 days, ranking #488 of 3,247 tracked listings.

Weekly downloads
258,584
Official API · Dec 5, 2026
7-day growth
+6.2%
+15K weekly downloads
30-day growth
-10.3%
-29.6K weekly downloads
90-day growth
+14.7%
+33.2K weekly downloads
Rank
#488
▼ 5 in 7 days

About eslint-plugin-diff

eslint-plugin-diff

npm codecov

Lint what changed, not the entire codebase. eslint-plugin-diff keeps feedback focused by filtering ESLint output to changed lines.

Why this matters

  • Focused feedback: keep lint output tied to changed code.
  • Safer lint upgrades: avoid being blocked by legacy violations in untouched files.
  • Better developer flow: reduce noise while enforcing existing lint rules.

Quick start

Install
npm install --save-dev eslint eslint-plugin-diff
Flat config (ESLint 9+)
import diff from "eslint-plugin-diff";

export default [
  // ...your existing config
  ...diff.configs["flat/diff"],
];
Legacy config (.eslintrc.*)
{
  "extends": ["plugin:diff/diff"]
}

What it does and how it works

This plugin does not provide lint rules. It provides ESLint processors and preset configs.

Behavior:

  1. It computes changed files from git diff --name-only.
  2. It skips unchanged files in processor preprocess (performance optimization).
  3. It filters lint messages in postprocess to changed line ranges from diff hunks.
  4. Untracked files are treated as changed, so their messages are not filtered out.

Modes

ModeLegacy configFlat configTypical use
diffplugin:diff/diffconfigs["flat/diff"]Local dev against working tree changes
ciplugin:diff/ciconfigs["flat/ci"]PR CI diff-only in CI, full lint locally
stagedplugin:diff/stagedconfigs["flat/staged"]Pre-commit staged-only workflows

Important staged caveat: if a file has unstaged changes, the plugin emits a fatal message: <file> has unstaged changes. Please stage or remove the changes.

Environment variables and CI autodetection

ESLINT_PLUGIN_DIFF_COMMIT

Sets diff base commit-ish. Default: HEAD.

ESLINT_PLUGIN_DIFF_COMMIT="origin/main" npx eslint --max-warnings=0 .
CI

ci mode behavior:

  • CI set: active diff filtering.
  • CI not set: no-op processor (lint everything).

If CI is set and ESLINT_PLUGIN_DIFF_COMMIT is not set, the plugin attempts provider-based target branch detection and fetches from origin before diffing.

VSCODE_PID

When set, the plugin can refresh the initial diff snapshot once to avoid delayed diagnostics in editor workflows.

ESLINT_PLUGIN_DIFF_INCLUDE_FIXES

When set to true, the plugin keeps lint messages with available fixes even when those messages are outside changed diff hunks. This can make eslint --fix apply file-wide changes in modified files.

ESLINT_PLUGIN_DIFF_INCLUDE_FIXES=true npx eslint --fix .

Recipes

Local diff vs default base (HEAD)
npx eslint --max-warnings=0 .
Local diff vs main
ESLINT_PLUGIN_DIFF_COMMIT="origin/main" npx eslint --max-warnings=0 .
Pre-commit staged-only

Use plugin:diff/staged or configs["flat/staged"].

PR CI with autodetect (ci mode)

Use plugin:diff/ci or configs["flat/ci"] and run ESLint normally in CI.

PR CI with explicit base
git fetch --quiet origin main
ESLINT_PLUGIN_DIFF_COMMIT="main" npx eslint --max-warnings=0 .
Compose with another processor (for example Vue)

When a file type needs another processor, compose it with diff instead of overriding one processor with another.

import diffPlugin from "eslint-plugin-diff";
import vuePlugin from "eslint-plugin-vue";

const vueProcessor = vuePlugin.processors.vue ?? vuePlugin.processors[".vue"];

export default [
  ...vuePlugin.configs["flat/recommended"],
  ...diffPlugin.configs["flat/diff"].map((config) => ({
    ...config,
    ignores: ["**/*.vue"],
  })),
  {
    files: ["**/*.vue"],
    processor: diffPlugin.composeProcessor(vueProcessor, "diff"),
  },
];

Compatibility and trade-offs

  • ESLint allows one processor per file. If another integration requires a processor for the same files, compose processors (see recipe above) or scope one of them by file patterns.
  • Diff-only linting is a signal-over-completeness strategy. It can miss issues outside changed lines. Many teams run full lint in scheduled jobs or on protected branches.

Troubleshooting

“Too many CI providers found (...)”

Set ESLINT_PLUGIN_DIFF_COMMIT explicitly.

“<file> has unstaged changes. Please stage or remove the changes.”

This comes from staged mode with partially staged files.

Editor diagnostics appear late

VSCODE_PID enables a one-time diff refresh path intended to reduce this.

FAQ

Does this replace ESLint rules?

No. Your normal rules stay the same. This plugin changes which files/lines can surface diagnostics.

Does ci mode always filter diffs?

No. Outside CI it is intentionally a no-op so local linting stays complete.

License

MIT. See LICENSE.md.

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • diff

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

eslint-plugin-diff weekly downloads on npm, last 90 days: 258,584 weekly downloads as of Dec 5, 2026, +14.7% over 90 days.eslint-plugin-diffWeekly downloads on npm · Last 90 days258,584downloads / week+14.7% over 90 days050K100K150K200K250K300K350KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
eslint-plugin-diff weekly downloads on npm, last 90 days: 258,584 weekly downloads as of Dec 5, 2026, +14.7% over 90 days.

7/30/90-day growth

eslint-plugin-diff weekly downloads growth on npm: +6.2% over 7 days, -10.3% over 30 days, +14.7% over 90 days.eslint-plugin-diffWeekly downloads growth on npm258,584downloads / week now7-day growth+14,987 weekly downloads+6.2%30-day growth-29,598 weekly downloads-10.3%90-day growth+33,191 weekly downloads+14.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-diff weekly downloads growth on npm: +6.2% over 7 days, -10.3% over 30 days, +14.7% over 90 days.

Ranking history

eslint-plugin-diff npm ranking history: currently #488 (by weekly downloads).eslint-plugin-diffnpm ranking · by weekly downloads · Last 90 days#488current rank#150#200#250#300#350#400#450#500Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-diff npm ranking history: currently #488 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 25, #8 (overall #488)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 6, #8 (overall #108)
ESLint plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (591)
Recent weekly downloads observations for eslint-plugin-diff
Date (UTC)Weekly downloadsChange vs. previous
258,584+948
257,636+8.4K
249,250+10.5K
238,776+1.2K
237,591-3.9K
241,465-1.8K
243,229-368
243,597-1.9K
245,516-9.8K
255,337-12K
267,354-1.5K
268,812+4.3K
264,562+3K
261,605—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-diff alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/eslint-plugin-diff. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.