Skip to content
PluginStats

eslint-plugin-ban weekly downloads statistics

By remithomas · npm · ESLint plugins

Allows you to bannish some methods or functions.

View on npm Fresh · Dec 6, 2026

eslint-plugin-ban has 194,042 recorded weekly downloads on npm, an increase of 8.2% over the past 30 days, ranking #526 of 3,247 tracked listings.

Weekly downloads
194,042
Official API · Dec 5, 2026
7-day growth
+6.6%
+12K weekly downloads
30-day growth
+8.2%
+14.6K weekly downloads
90-day growth
+6.7%
+12.3K weekly downloads
Rank
#526
▲ 3 in 7 days

About eslint-plugin-ban

eslint-plugin-ban Build Status npm version

Allows you to bannish some methods or functions. Inspired by tslint ban rule

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-ban:

$ npm install eslint-plugin-ban --save-dev

Note 1: Works with ESLint >= 9. For ESLint < 9, prefer using eslint-plugin-ban 1.x (compatibility of newer versions not guaranteed).

Note 2: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-ban globally.

Usage

Flat config

Import ban plugin in your eslint.config.js configuration file.

import pluginBan from 'eslint-plugin-ban';

Then use plugin and configure the rules you want to use.

export default [
  // ...

  {
    plugins: { ban: pluginBan },
    rules: {
      'ban/ban': [
        2,
        { name: 'functionName', 'message': 'Prefer use functionName2' },
      ],
    },
  },
];
Legacy config

Add ban to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["ban"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "ban/ban": [
      2,
      { "name": "functionName", "message": "Prefer use functionName2" }
    ]
  }
}

Some examples

An error

{
  "rules": {
    "ban/ban": [
      2,
      {
        "name": ["*", "push"],
        "message": "Prefer use es6 spread like [...items, newItem]"
      }
    ]
  }
}

A simple warning

{
  "rules": {
    "ban/ban": [
      1,
      {
        "name": "api",
        "message": "This function is deprecated, please use api.call()"
      }
    ]
  }
}

Multiple errors

{
  "rules": {
    "ban/ban": [
      "error",
      {
        "name": "api",
        "message": "This function is deprecated, please use api.call()"
      },
      {
        "name": ["*", "push"],
        "message": "Prefer use es6 spread like [...items, newItem]"
      },
      { "name": "functionName", "message": "Prefer use functionName2" }
    ]
  }
}

Widcard

{
  "rules": {
    "ban/ban": [
      2,
      { "name": ["console", "*"], "message": "Please use our logger" }
    ]
  }
}

Todo

  • Possibility to add errorand warning at same time

Contributing

Please feel free to submit, comment anything on this repo :)

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • ban
  • function
  • method

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-ban weekly downloads on npm, last 90 days: 194,042 weekly downloads as of Dec 5, 2026, +6.7% over 90 days.eslint-plugin-banWeekly downloads on npm · Last 90 days194,042downloads / week+6.7% over 90 days050K100K150K200K250KSep 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-ban weekly downloads on npm, last 90 days: 194,042 weekly downloads as of Dec 5, 2026, +6.7% over 90 days.

7/30/90-day growth

eslint-plugin-ban weekly downloads growth on npm: +6.6% over 7 days, +8.2% over 30 days, +6.7% over 90 days.eslint-plugin-banWeekly downloads growth on npm194,042downloads / week now7-day growth+12,045 weekly downloads+6.6%30-day growth+14,635 weekly downloads+8.2%90-day growth+12,262 weekly downloads+6.7%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-ban weekly downloads growth on npm: +6.6% over 7 days, +8.2% over 30 days, +6.7% over 90 days.

Ranking history

eslint-plugin-ban npm ranking history: currently #526 (by weekly downloads).eslint-plugin-bannpm ranking · by weekly downloads · Last 90 days#526current rank#460#470#480#490#500#510#520#530#540Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-ban npm ranking history: currently #526 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 27, #6 (overall #526)
All npm: every listing in weekly downloads order

Listing placement

ESLint plugins290 listings · 15 pages · page 7, #2 (overall #122)
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 (170)
Recent weekly downloads observations for eslint-plugin-ban
Date (UTC)Weekly downloadsChange vs. previous
194,042+628
193,414+7.4K
185,983+7.7K
178,258+1.5K
176,720-5.1K
181,790-2K
183,808+1.8K
181,997-3.3K
185,337-5.3K
190,639-10.5K
201,135-6.8K
207,894+4.1K
203,791+8.2K
195,566—

Similar npm ESLint plugins plugins

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