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 · Oct 17, 2026

eslint-plugin-diff has 80,316 recorded weekly downloads on npm, a decrease of 63.2% over the past 30 days.

It ranks #477 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -65.3%.

PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.

Weekly downloads
80,316
Official API · Oct 17, 2026
7-day growth
-46.0%
-68.4K weekly downloads
30-day growth
-63.2%
-138.2K weekly downloads
90-day growth
-65.3%
-151.1K weekly downloads
Rank
#477
Among tracked npm listings

About eslint-plugin-diff

eslint-plugin-diff

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

Flat config (ESLint 9+)

Legacy config (.eslintrc.*)

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

| Mode | Legacy config | Flat config | Typical use |

| diff | plugin:diff/diff | configs["flat/diff"] | Local dev against working tree changes | | ci | plugin:diff/ci | configs["flat/ci"] | PR CI diff-only in CI, full lint locally | | staged | plugin:diff/staged | configs["flat/staged"] | Pre-commit staged-only workflows |

Important staged caveat: if a file has unstaged changes, the plugin emits a fatal message: 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.

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.

Recipes

Local diff vs default base (HEAD)

Local diff vs main

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

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.

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.

“ 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

Where eslint-plugin-diff sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 24, #17 (overall #477)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins252 listings · 13 pages · page 6, #6 (overall #106)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

eslint-plugin-diff weekly downloads on npm, last 90 days: 80,316 weekly downloads as of Oct 17, 2026, -65.3% over 90 days.eslint-plugin-diffWeekly downloads on npm · Last 90 days80,316downloads / week-65.3% over 90 days050K100K150K200K250K300KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
eslint-plugin-diff weekly downloads on npm, last 90 days: 80,316 weekly downloads as of Oct 17, 2026, -65.3% over 90 days.
PNG SVG

7/30/90-day growth

eslint-plugin-diff weekly downloads growth on npm: -46.0% over 7 days, -63.2% over 30 days, -65.3% over 90 days.eslint-plugin-diffWeekly downloads growth on npm80,316downloads / week now7-day growth-68,356 weekly downloads-46.0%30-day growth-138,187 weekly downloads-63.2%90-day growth-151,133 weekly downloads-65.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
eslint-plugin-diff weekly downloads growth on npm: -46.0% over 7 days, -63.2% over 30 days, -65.3% over 90 days.
PNG SVG

Ranking history

eslint-plugin-diff npm ranking history: currently #477 (by weekly downloads).eslint-plugin-diffnpm ranking · by weekly downloads · Last 90 days#477current rank#150#200#250#300#350#400#450#500Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
eslint-plugin-diff npm ranking history: currently #477 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (542)
Recent weekly downloads observations for eslint-plugin-diff
Date (UTC)Weekly downloadsChange vs. previous
80,316-9K
89,340-669
90,009-47.9K
137,917-47.1K
185,0060
185,006+34.8K
150,212+1.5K
148,672-1.5K
150,136+634
149,502-6K
155,500-5.1K
160,575-55.6K
216,190-45.2K
261,404—

Similar npm ESLint plugins plugins

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 Oct 18, 2026. See the methodology.