Skip to content
PluginStats

eslint-plugin-typescript-enum weekly downloads statistics

By shian15810 · npm · ESLint plugins

ESLint rules for TypeScript enums.

View on npm Fresh · Oct 16, 2026

eslint-plugin-typescript-enum has 49,972 recorded weekly downloads on npm.

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

PluginStats has 2 daily observations since Oct 12, 2026; the latest is from Oct 16, 2026.

Weekly downloads
49,972
Official API · Oct 16, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#563
Among tracked npm listings

About eslint-plugin-typescript-enum

eslint-plugin-typescript-enum

ESLint rules for TypeScript enums.

Motivations

From TypeScript Handbook on Enums:

Enums are one of the few features TypeScript has which is not a type-level extension of JavaScript.

In other words, TypeScript enums have their corresponsing runtime representations, they are not erased from your emitted JavaScript files after being compiled. This conflicts with one of the TypeScript Design Non-goals:

Provide additional runtime functionality or libraries. Instead, use TypeScript to describe existing libraries.

Having this TypeScript feature extending into your compiled JavaScript also conflicts with the TypeScript slogan of being a typed superset of JavaScript, which further introduces vendor lock-in.

Orta Therox from Typescript team mentioned in one of his YouTube videos that the TypeScript team actually regrets some of the changes it made in the beginning, including introducing enums which basically add features to JavaScript.

Moreover, using enums in TypeScript has a lot of caveats and edge cases to keep in mind. Some aspects of it are even considered not type safe!!! Head over to these wonderful articles for more details on these issues:

• https://maxheiber.medium.com/alternatives-to-typescript-enums-50e4c16600b1 • https://stackoverflow.com/questions/40275832/typescript-has-unions-so-are-enums-redundant/60041791#60041791

Additionally, if you have been using @babel/plugin-transform-typescript, you might have already noticed that one of the important caveats is to avoid using const enums, as those require type information to compile.

Nonetheless, TypeScript is undoubtedly a very fantastic programming language with an extremely powerful type system. Enums may have been a very good feature to have back in the early days (2011) when good alternatives did not yet exist.

We now already have much better alternatives than enums, such as const assertions, string unions, discriminated union, etc. Which is why I created this ESLint plugin to provide you with some handy configs and rules to disallow the use of TypeScript enums.

This article provides a very in-depth exploration on the alternatives to TypeScript enums:

• https://2ality.com/2020/02/enum-alternatives-typescript.html

Last but not least, as stated in Objects vs Enums section of TypeScript Handbook on Enums:

In modern TypeScript, you may not need an enum when an object with as const could suffice.

The biggest argument in favour of this format over TypeScript’s enum is that it keeps your codebase aligned with the state of JavaScript, and when/if enums are added to JavaScript then you can move to the additional syntax.

Installation

First, install the peer dependencies:

Next, install this package:

Usage

Recommended Config

Configure this plugin in your ESLint configuration file (.eslintrc.js), this will disallow the use of enums altogether:

Babel Config (Not Recommended)

If you are using @babel/plugin-transform-typescript and want to allow the general use of enums except const enums:

Rules

Key: :heavy_check_mark: = recommended, :wrench: = fixable, :thought_balloon: = requires type information

| Name | Description | :heavy_check_mark: | :wrench: | :thought_balloon: |

| typescript-enum/no-const-enum | Disallow TypeScript const enums | | | | | typescript-enum/no-enum | Disallow all types of TypeScript enums | :heavy_check_mark: | | |

Contributing

Feel free to suggest new configs and rules, PRs are also welcomed!

Description from the npm listing.

  • typescript
  • eslint
  • typescript-eslint
  • enum
  • typescript-enum
  • plugin
  • eslint-plugin
  • rules
  • eslint-rules

Where eslint-plugin-typescript-enum 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 29, #3 (overall #563)
All npm: every listing in weekly downloads order
PNG SVG
ESLint plugins252 listings · 13 pages · page 7, #16 (overall #136)
ESLint plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

eslint-plugin-typescript-enum weekly downloads on npm, last 90 days: 49,972 weekly downloads as of Oct 16, 2026.eslint-plugin-typescript-enumWeekly downloads on npm · Last 90 days49,972downloads / week40K60K80K100K120K140KJul 18Aug 2Aug 17Sep 1Sep 16Oct 1Oct 16downloads / weekobservedarchived (Internet Archive)no observationsOct 12, 2026 – Oct 16, 2026 · 2 observations · Updated Oct…pluginstats.com
eslint-plugin-typescript-enum weekly downloads on npm, last 90 days: 49,972 weekly downloads as of Oct 16, 2026.
PNG SVG

7/30/90-day growth

eslint-plugin-typescript-enum weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.eslint-plugin-typescript-enumWeekly downloads growth on npm49,972downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 16, 2026pluginstats.com
eslint-plugin-typescript-enum weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.
PNG SVG

Ranking history

eslint-plugin-typescript-enum npm ranking history: currently #563 (by weekly downloads).eslint-plugin-typescript-enumnpm ranking · by weekly downloads · Last 90 days#563current rank#561#562#563#564#565Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 16, 2026pluginstats.com
eslint-plugin-typescript-enum npm ranking history: currently #563 (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 (2)
Recent weekly downloads observations for eslint-plugin-typescript-enum
Date (UTC)Weekly downloadsChange vs. previous
49,972-83.9K
133,836—

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-typescript-enum. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.