Skip to content
PluginStats

@eslint/compat weekly downloads statistics

By eslint (7 listings) · npm · ESLint plugins

Compatibility utilities for ESLint

View on npm Fresh · Dec 6, 2026

@eslint/compat has 11,340,357 recorded weekly downloads on npm, an increase of 13.3% over the past 30 days, ranking #135 of 3,247 tracked listings.

Weekly downloads
11,340,357
Official API · Dec 5, 2026
7-day growth
+17.2%
+1.7M weekly downloads
30-day growth
+13.3%
+1.3M weekly downloads
90-day growth
+75.7%
+4.9M weekly downloads
Rank
#135
Among tracked npm listings

About @eslint/compat

ESLint Compatibility Utilities

Overview

This package contains functions that allow you to wrap existing ESLint rules, plugins, and configurations that were intended for use with ESLint v8.x or v9.x to allow them to work as-is in ESLint v9.x and v10.x.

Note: All plugins are not guaranteed to work in ESLint v9.x or v10.x. This package fixes the most common issues but can't fix everything.

Installation

For Node.js and compatible runtimes:

npm install @eslint/compat -D
# or
yarn add @eslint/compat -D
# or
pnpm install @eslint/compat -D
# or
bun add @eslint/compat -D

For Deno:

deno add @eslint/compat

Usage

This package exports the following functions in both ESM and CommonJS format:

  • fixupRule(rule) - wraps the given rule in a compatibility layer and returns the result
  • fixupPluginRules(plugin) - wraps each rule in the given plugin using fixupRule() and returns a new object that represents the plugin with the fixed-up rules
  • fixupConfigRules(configs) - wraps all plugins found in an array of config objects using fixupPluginRules()
  • includeIgnoreFile(path) (deprecated) - reads an ignore file (like .gitignore) and converts the patterns into the correct format for the config file
Fixing Rules

If you have a rule that you'd like to make compatible with ESLint v9.x or v10.x, you can do so using the fixupRule() function:

// ESM example
import { fixupRule } from "@eslint/compat";

// Step 1: Import your rule
import myRule from "./local-rule.js";

// Step 2: Create backwards-compatible rule
const compatRule = fixupRule(myRule);

// Step 3 (optional): Export fixed rule
export default compatRule;

Or in CommonJS:

// CommonJS example
const { fixupRule } = require("@eslint/compat");

// Step 1: Import your rule
const myRule = require("./local-rule.js");

// Step 2: Create backwards-compatible rule
const compatRule = fixupRule(myRule);

// Step 3 (optional): Export fixed rule
module.exports = compatRule;
Fixing Plugins

If you are using a plugin in your eslint.config.js that is not yet compatible with ESLint v9.x or v10.x, you can wrap it using the fixupPluginRules() function:

// eslint.config.js - ESM example
import { defineConfig } from "eslint/config";
import { fixupPluginRules } from "@eslint/compat";
import somePlugin from "eslint-plugin-some-plugin";

export default defineConfig([
	{
		plugins: {
			// insert the fixed plugin instead of the original
			somePlugin: fixupPluginRules(somePlugin),
		},
		rules: {
			"somePlugin/rule-name": "error",
		},
	},
]);

Or in CommonJS:

// eslint.config.js - CommonJS example
const { defineConfig } = require("eslint/config");
const { fixupPluginRules } = require("@eslint/compat");
const somePlugin = require("eslint-plugin-some-plugin");

module.exports = defineConfig([
	{
		plugins: {
			// insert the fixed plugin instead of the original
			somePlugin: fixupPluginRules(somePlugin),
		},
		rules: {
			"somePlugin/rule-name": "error",
		},
	},
]);
Fixing Configs

If you are importing other configs into your eslint.config.js that use plugins that are not yet compatible with ESLint v9.x or v10.x, you can wrap the entire array or a single object using the fixupConfigRules() function:

// eslint.config.js - ESM example
import { defineConfig } from "eslint/config";
import { fixupConfigRules } from "@eslint/compat";
import someConfig from "eslint-config-some-config";

export default defineConfig([
	...fixupConfigRules(someConfig),
	{
		// your overrides
	},
]);

Or in CommonJS:

// eslint.config.js - CommonJS example
const { defineConfig } = require("eslint/config");
const { fixupConfigRules } = require("@eslint/compat");
const someConfig = require("eslint-config-some-config");

module.exports = defineConfig([
	...fixupConfigRules(someConfig),
	{
		// your overrides
	},
]);
Including Ignore Files

Deprecated: The includeIgnoreFile() exported by this package has been deprecated (eslint/rewrite#329). Use the includeIgnoreFile() function exported by @eslint/config-helpers instead (also available at eslint/config). This section is only preserved for historical reference.

If you were using an alternate ignore file in ESLint v8.x, such as using --ignore-path .gitignore on the command line, you can include those patterns programmatically in your config file using the includeIgnoreFile() function.

The includeIgnoreFile() function also accepts a second optional name parameter that allows you to set a custom name for this configuration object. If not specified, it defaults to "Imported .gitignore patterns". For example:

// eslint.config.js - ESM example
import { defineConfig } from "eslint/config";
import { includeIgnoreFile } from "@eslint/compat";
import path from "node:path";

const gitignorePath = path.resolve(import.meta.dirname, ".gitignore");

export default defineConfig([
	includeIgnoreFile(gitignorePath, "Imported .gitignore patterns"), // second argument is optional.
	{
		// your overrides
	},
]);

Or in CommonJS:

// eslint.config.js - CommonJS example
const { defineConfig } = require("eslint/config");
const { includeIgnoreFile } = require("@eslint/compat");
const path = require("node:path");
const gitignorePath = path.resolve(__dirname, ".gitignore");

module.exports = defineConfig([
	includeIgnoreFile(gitignorePath, "Imported .gitignore patterns"), // second argument is optional.
	{
		// your overrides
	},
]);

Limitation: This works without modification when the ignore file is in the same directory as your config file. If the ignore file is in a different directory, you may need to modify the patterns manually.

License

Apache 2.0

<!-- NOTE: This section is autogenerated. Do not manually edit.--> <!--sponsorsstart-->

Sponsors…

Description from the npm listing.

  • eslint
  • compatibility
  • eslintplugin
  • eslint-plugin

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/compat weekly downloads on npm, last 90 days: 11,340,357 weekly downloads as of Dec 5, 2026, +75.7% over 90 days.@eslint/compatWeekly downloads on npm · Last 90 days11,340,357downloads / week+75.7% over 90 days02M4M6M8M10M12MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@eslint/compat weekly downloads on npm, last 90 days: 11,340,357 weekly downloads as of Dec 5, 2026, +75.7% over 90 days.

7/30/90-day growth

@eslint/compat weekly downloads growth on npm: +17.2% over 7 days, +13.3% over 30 days, +75.7% over 90 days.@eslint/compatWeekly downloads growth on npm11,340,357downloads / week now7-day growth+1,665,064 weekly downlo…+17.2%30-day growth+1,330,877 weekly downlo…+13.3%90-day growth+4,885,866 weekly downlo…+75.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@eslint/compat weekly downloads growth on npm: +17.2% over 7 days, +13.3% over 30 days, +75.7% over 90 days.

Ranking history

@eslint/compat npm ranking history: currently #135 (by weekly downloads).@eslint/compatnpm ranking · by weekly downloads · Last 90 days#135current rank#40#60#80#100#120#140Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@eslint/compat npm ranking history: currently #135 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 1, #15 (overall #15)
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/compat
Date (UTC)Weekly downloadsChange vs. previous
11,340,357+132.4K
11,207,923+448.9K
10,759,068+441.7K
10,317,370+254.4K
10,062,972+259.7K
9,803,253+128.2K
9,675,056-237
9,675,293-47.5K
9,722,796-194.3K
9,917,069-319.8K
10,236,826-276.4K
10,513,230-89.4K
10,602,656-195K
10,797,703—

Similar npm ESLint plugins plugins

All 20 @eslint/compat 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/compat. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.