Skip to content
PluginStats

eslint-plugin-baseline-js weekly downloads statistics

By 3ru · npm · ESLint plugins

Enforce JavaScript Baseline (widely/newly/year) browser compatibility with a single ESLint rule. Prevent runtime errors by catching unsupported JavaScript features during development.

View on npm Fresh · Dec 6, 2026

eslint-plugin-baseline-js has 69,972 recorded weekly downloads on npm, a decrease of 13.2% over the past 30 days, ranking #705 of 3,247 tracked listings.

Weekly downloads
69,972
Official API · Dec 5, 2026
7-day growth
-6.0%
-4.5K weekly downloads
30-day growth
-13.2%
-10.6K weekly downloads
90-day growth
+34.5%
+17.9K weekly downloads
Rank
#705
▼ 28 in 7 days

About eslint-plugin-baseline-js

<div align="center">

eslint-plugin-baseline-js

baseline

Enforce the JavaScript Baseline (widely / newly / year) with a single ESLint rule powered by web‑features. This plugin delegates detection to eslint-plugin-es-x and ESLint core (plus a few small gap‑filling rules) and reports with one consistent Baseline message.

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![JSDocs][jsdocs-src]][jsdocs-href] [![License][license-src]][license-href] CI

</div>

[!NOTE] This project hasn’t reached a major release yet, so behavior and options may change. Please feel free to report false negatives/positives and any rough edges as issues.

Install

  • npm: npm i -D eslint-plugin-baseline-js
  • pnpm: pnpm add -D eslint-plugin-baseline-js
  • yarn: yarn add -D eslint-plugin-baseline-js

Recommended

  • ESLint >= 9.29.0 and < 11 (Flat Config)

Quick Start (Flat Config)

// eslint.config.js
import baselineJs from "eslint-plugin-baseline-js";

export default [
  {
    files: ["**/*.{js,ts,jsx,tsx}"],
    plugins: { "baseline-js": baselineJs },
    rules: {
      // Allow only "widely available" Baseline features
      "baseline-js/use-baseline": ["error", { available: "widely" }],
    },
  },
];

Preset Configs

This plugin ships Flat Config presets you can call from configs:

import baselineJs from "eslint-plugin-baseline-js";

export default [
  // Register the plugin once (required for Flat Config)
  { plugins: { "baseline-js": baselineJs } },

  // Recommended: enables Web APIs & JS builtins detection with `preset: 'auto'`.
  // Level defaults to 'error'; pass level to change severity
  baselineJs.configs.recommended({ available: "widely", level: "warn" }),

  // TypeScript-aware: requires type info for instance-member checks (`preset: 'type-aware'`).
  // Works best with @typescript-eslint/parser and a proper tsconfig.
  // baselineJs.configs["recommended-ts"]({ available: "widely", level: "error" }),
];

Note on plugin key

  • Presets assume the plugin is registered under the key "baseline-js".

See more real-world configs in examples/

Common Configurations

// Newly available (more permissive)
'baseline-js/use-baseline': ['warn', { available: 'newly' }];

// Year-based – allow features that became Baseline in or before 2020
'baseline-js/use-baseline': ['error', { available: 2020 }];

// Ignore knobs for pragmatic adoption
'baseline-js/use-baseline': [
  'error',
  {
    available: 2018,
    // Skip specific web-features by ID (or regex as '/.../')
    ignoreFeatures: ['nullish-coalescing', '/^optional-/'],
    // Skip reports produced on certain ESTree node types
    ignoreNodeTypes: ['WithStatement', '/Expression$/'],
  },
];

// Turn off in tests or generated folders (ESLint standard overrides)
export default [
  { /* project defaults ... */ },
  {
    files: ['**/*.test.*', 'coverage/**'],
    rules: { 'baseline-js/use-baseline': 'off' },
  },
];

What Gets Reported?

Features from web‑features (group: "javascript") that exceed your configured Baseline.

Baseline settingReports when...
"widely"the feature is not in Baseline “high”
"newly"the feature is marked as limited (false)
year (number)the feature’s Baseline year is greater than year
Demo

For type-level checks too, pair it with typescript-baseline-lib, which gives TypeScript a built-in lib selected by Baseline data. Try the demo to check JavaScript APIs with TypeScript and ESLint in your editor and CI. Its example PR changes one line to use Set.prototype.difference() and intentionally fails both checks.

<img width="963" height="192" alt="getYear is deprecated" src="https://github.com/user-attachments/assets/e04e4a5c-c104-4945-96d6-889a47b7bcde" />

How It Works

  1. Data → scripts/data/build-features.mjs
    • Extracts the minimal JavaScript subset from web‑features into src/baseline/data/features.javascript.ts.
  2. Mapping → src/baseline/mapping/syntax.ts
    • Maps web‑features IDs to underlying rules (prefer eslint-plugin-es-x / ESLint core; custom rules only when necessary).
  3. Resolution → src/baseline/resolve.ts
    • Classifies “beyond baseline” by bucket (high/low/false → widely/newly/limited) or year.
    • Web API and JS builtin checks use the matched API member's own Baseline status from web‑features status.by_compat_key when it differs from the feature's, so URL.parse() is newer than the url feature.

Coverage

We publish a generated coverage report that lists all JavaScript features from web‑features and shows which ones are currently mapped by this plugin.

  • Report: docs/coverage.md
  • Regenerate locally: pnpm gen:coverage
    • Generator: scripts/coverage/generate-coverage.mjs

Options (rule)…

Description from the npm listing.

  • eslint
  • eslint-plugin
  • baseline
  • browser-compatibility
  • web-features
  • javascript
  • typescript
  • linting

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-baseline-js weekly downloads on npm, last 90 days: 69,972 weekly downloads as of Dec 5, 2026, +34.5% over 90 days.eslint-plugin-baseline-jsWeekly downloads on npm · Last 90 days69,972downloads / week+34.5% over 90 days20K30K40K50K60K70K80K90KSep 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-baseline-js weekly downloads on npm, last 90 days: 69,972 weekly downloads as of Dec 5, 2026, +34.5% over 90 days.

7/30/90-day growth

eslint-plugin-baseline-js weekly downloads growth on npm: -6.0% over 7 days, -13.2% over 30 days, +34.5% over 90 days.eslint-plugin-baseline-jsWeekly downloads growth on npm69,972downloads / week now7-day growth-4,481 weekly downloads-6.0%30-day growth-10,636 weekly downloads-13.2%90-day growth+17,949 weekly downloads+34.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-baseline-js weekly downloads growth on npm: -6.0% over 7 days, -13.2% over 30 days, +34.5% over 90 days.

Ranking history

eslint-plugin-baseline-js npm ranking history: currently #705 (by weekly downloads).eslint-plugin-baseline-jsnpm ranking · by weekly downloads · Last 90 days#705current rank#630#640#650#660#670#680#690#700#710Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-baseline-js npm ranking history: currently #705 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 9, #12 (overall #172)
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-baseline-js
Date (UTC)Weekly downloadsChange vs. previous
69,972-9.9K
79,916-2.5K
82,412+1.3K
81,087-220
81,307+1.4K
79,873+2.3K
77,539+3.1K
74,453+2.1K
72,320-1.3K
73,602+993
72,609+2.3K
70,301-624
70,925-2K
72,914—

Similar npm ESLint plugins plugins

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