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 · Dec 6, 2026

eslint-plugin-typescript-enum has 60,101 recorded weekly downloads on npm, a decrease of 47.4% over the past 30 days, ranking #736 of 3,247 tracked listings.

Weekly downloads
60,101
Official API · Dec 5, 2026
7-day growth
-3.3%
-2.1K weekly downloads
30-day growth
-47.4%
-54.2K weekly downloads
90-day growth
+34.9%
+15.5K weekly downloads
Rank
#736
▼ 19 in 7 days

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:

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:

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:

npm install --save-dev eslint typescript @typescript-eslint/parser

Next, install this package:

npm install --save-dev eslint-plugin-typescript-enum

Usage

Recommended Config

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

module.exports = {
  parser: "@typescript-eslint/parser",
  plugins: ["typescript-enum"],
  extends: ["plugin:typescript-enum/recommended"],
};
Babel Config (Not Recommended)

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

module.exports = {
  parser: "@typescript-eslint/parser",
  plugins: ["typescript-enum"],
  extends: ["plugin:typescript-enum/babel"],
};

Rules

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

NameDescription:heavy_check_mark::wrench::thought_balloon:
typescript-enum/no-const-enumDisallow TypeScript const enums
typescript-enum/no-enumDisallow 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

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-typescript-enum weekly downloads on npm, last 90 days: 60,101 weekly downloads as of Dec 5, 2026, +34.9% over 90 days.eslint-plugin-typescript-enumWeekly downloads on npm · Last 90 days60,101downloads / week+34.9% over 90 days020K40K60K80K100K120K140K160KSep 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-typescript-enum weekly downloads on npm, last 90 days: 60,101 weekly downloads as of Dec 5, 2026, +34.9% over 90 days.

7/30/90-day growth

eslint-plugin-typescript-enum weekly downloads growth on npm: -3.3% over 7 days, -47.4% over 30 days, +34.9% over 90 days.eslint-plugin-typescript-enumWeekly downloads growth on npm60,101downloads / week now7-day growth-2,059 weekly downloads-3.3%30-day growth-54,206 weekly downloads-47.4%90-day growth+15,544 weekly downloads+34.9%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-typescript-enum weekly downloads growth on npm: -3.3% over 7 days, -47.4% over 30 days, +34.9% over 90 days.

Ranking history

eslint-plugin-typescript-enum npm ranking history: currently #736 (by weekly downloads).eslint-plugin-typescript-enumnpm ranking · by weekly downloads · Last 90 days#736current rank#550#600#650#700#750#800Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-typescript-enum npm ranking history: currently #736 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 10, #2 (overall #182)
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 (157)
Recent weekly downloads observations for eslint-plugin-typescript-enum
Date (UTC)Weekly downloadsChange vs. previous
60,101-633
60,734+1.3K
59,388+6.7K
52,680+2.7K
49,985-4.8K
54,779-5.7K
60,441-1.7K
62,160-1.2K
63,364-9.8K
73,195-5.9K
79,067-14.3K
93,383+57
93,326-6.6K
99,922—

Similar npm ESLint plugins plugins

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