Skip to content
PluginStats

eslint-package-json weekly downloads statistics

By sindresorhus (6 listings) · npm · ESLint plugins

Powerful ESLint rules for package.json

View on npm Fresh · Dec 6, 2026

eslint-package-json has 50,067 recorded weekly downloads on npm, an increase of 7.7% over the past 30 days, ranking #784 of 3,247 tracked listings.

Weekly downloads
50,067
Official API · Dec 5, 2026
7-day growth
+33.0%
+12.4K weekly downloads
30-day growth
+7.7%
+3.6K weekly downloads
90-day growth
+139%
+29.1K weekly downloads
Rank
#784
▲ 46 in 7 days

About eslint-package-json

eslint-package-json

Powerful ESLint rules for package.json

Lint and autofix your package.json files with ESLint, powered by @eslint/json.

This plugin catches real package.json mistakes (invalid names, bad version ranges, broken exports, misplaced @types/*, redundant files entries, and more) and fixes many of them automatically.

Install

npm install --save-dev eslint eslint-package-json

Requires ESLint >=10.4, flat config, and ESM.

Usage

Add the recommended config to your eslint.config.js:

import {defineConfig} from 'eslint/config';
import packageJson from 'eslint-package-json';

export default defineConfig({
	files: ['**/package.json'],
	plugins: {
		'package-json': packageJson
	},
	extends: [
		'package-json/recommended'
	]
});

This lints every package.json in your project. To tweak individual rules, add them to the same config object:

import {defineConfig} from 'eslint/config';
import packageJson from 'eslint-package-json';

export default defineConfig({
	files: ['**/package.json'],
	plugins: {
		'package-json': packageJson
	},
	extends: [
		'package-json/recommended'
	],
	rules: {
		'package-json/dependency-version-range': [
			'error',
			{
				range: 'caret'
			}
		]
	}
});

If you prefer to wire it up manually instead of using a preset:

import json from '@eslint/json';
import {defineConfig} from 'eslint/config';
import packageJson from 'eslint-package-json';

export default defineConfig({
	files: ['**/package.json'],
	language: 'json/json',
	plugins: {
		json,
		'package-json': packageJson
	},
	rules: {
		'package-json/valid-fields': 'error'
	}
});

Configs

  • recommended — Enables the rules that catch real, uncontroversial mistakes.
  • all — Enables every rule. Useful for discovering rules; not recommended for everyday use.

Rules

<!-- begin auto-generated rules list -->

💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.

Name                                      Description💼🔧💡
consistent-name-casingEnforce kebab-case for keys in scripts and bin objects.
consistent-path-prefixEnforce consistent ./ prefix on local path fields.✅🔧💡
dependency-version-rangeEnforce a consistent version range style for dependencies.✅💡
description-formatEnforce formatting of the description field.🔧
no-absolute-pathsDisallow absolute paths in path fields.✅💡
no-absolute-paths-in-scriptsDisallow absolute paths in scripts.✅
no-backslash-pathsEnforce forward slashes in path fields.✅🔧💡
no-core-module-dependenciesDisallow dependencies that shadow Node.js built-in modules.✅💡
no-deprecated-fieldsDisallow fields and scripts that npm has deprecated.✅
no-dist-tag-dependenciesDisallow dist-tags as dependency specifiers.✅
no-duplicate-dependenciesDisallow a dependency listed in multiple dependency groups.✅🔧💡
no-empty-fieldsDisallow empty fields.✅💡
no-exact-peer-dependenciesDisallow exact versions for peer dependencies.💡
no-exports-trailing-slashDisallow trailing-slash folder mappings in exports/imports.✅💡
…

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin
  • package.json
  • package-json
  • npm
  • manifest
  • linter
  • lint
  • json

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-package-json weekly downloads on npm, last 90 days: 50,067 weekly downloads as of Dec 5, 2026, +139% over 90 days.eslint-package-jsonWeekly downloads on npm · Last 90 days50,067downloads / week+139% over 90 days010K20K30K40K50K60KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
eslint-package-json weekly downloads on npm, last 90 days: 50,067 weekly downloads as of Dec 5, 2026, +139% over 90 days.

7/30/90-day growth

eslint-package-json weekly downloads growth on npm: +33.0% over 7 days, +7.7% over 30 days, +139% over 90 days.eslint-package-jsonWeekly downloads growth on npm50,067downloads / week now7-day growth+12,417 weekly downloads+33.0%30-day growth+3,563 weekly downloads+7.7%90-day growth+29,129 weekly downloads+139%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-package-json weekly downloads growth on npm: +33.0% over 7 days, +7.7% over 30 days, +139% over 90 days.

Ranking history

eslint-package-json npm ranking history: currently #784 (by weekly downloads).eslint-package-jsonnpm ranking · by weekly downloads · Last 90 days#784current rank#740#760#780#800#820#840Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-package-json npm ranking history: currently #784 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 10, #15 (overall #195)
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-package-json
Date (UTC)Weekly downloadsChange vs. previous
50,067+1.8K
48,249+914
47,335+2.9K
44,408+2.8K
41,614+1.7K
39,914+1.6K
38,323+673
37,650-92
37,742+80
37,662-850
38,512-161
38,673-531
39,204-1.7K
40,925—

Similar npm ESLint plugins plugins

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