eslint-plugin-pnpm weekly downloads statistics
By antfu (15 listings) · npm · ESLint plugins
ESLint Plugin for pnpm
eslint-plugin-pnpm has 776,664 recorded weekly downloads on npm, an increase of 4.5% over the past 30 days, ranking #319 of 3,247 tracked listings.
About eslint-plugin-pnpm
eslint-plugin-pnpm
ESLint plugin to enforce and auto-fix pnpm catalogs.
This plugin consists of two set of rules that applies to package.json and pnpm-workspace.yaml respectively.
json-rules applies topackage.jsonand requiresjsonc-eslint-parserto be used as parser.- The
json-rules also work whenpackage.jsonis linted with thejson/jsonlanguage from@eslint/jsoninstead (e.g. when combined with other JSON-linting plugins), viaeslint-json-compat-utils.
- The
yaml-rules applies topnpm-workspace.yamland requiresyaml-eslint-parserto be used as parser.- YAML support is still experimental as it might have race conditions with other plugins.
Setup
pnpm add -D eslint-plugin-pnpm
Basic Usage
// eslint.config.mjs
import { configs } from 'eslint-plugin-pnpm'
export default [
{
ignores: ['**/node_modules/**', '**/dist/**'],
},
...configs.json,
...configs.yaml,
]
Manual Configuration
// eslint.config.mjs
import pluginPnpm from 'eslint-plugin-pnpm'
import * as jsoncParser from 'jsonc-eslint-parser'
import * as yamlParser from 'yaml-eslint-parser'
export default [
{
ignores: ['**/node_modules/**', '**/dist/**'],
},
{
name: 'pnpm/package.json',
files: [
'package.json',
'**/package.json',
],
languageOptions: {
parser: jsoncParser,
},
plugins: {
pnpm: pluginPnpm,
},
rules: {
'pnpm/json-enforce-catalog': 'error',
'pnpm/json-valid-catalog': 'error',
'pnpm/json-prefer-workspace-settings': 'error',
},
},
{
name: 'pnpm/pnpm-workspace-yaml',
files: ['pnpm-workspace.yaml'],
languageOptions: {
parser: yamlParser,
},
plugins: {
pnpm: pluginPnpm,
},
rules: {
'pnpm/yaml-no-unused-catalog-item': 'error',
'pnpm/yaml-no-duplicate-catalog-item': 'error',
'pnpm/yaml-valid-packages': 'error',
'pnpm/yaml-no-anonymous-catalog': 'error',
'pnpm/yaml-blank-lines': 'error',
},
},
]
Rules
JSON Rules (package.json)
json-enforce-catalog- Enforce catalog usage for dependenciesjson-valid-catalog- Validate catalog references in dependenciesjson-prefer-workspace-settings- Prefer workspace protocol for local dependencies
YAML Rules (pnpm-workspace.yaml)
yaml-no-unused-catalog-item- Disallow unused catalog itemsyaml-no-duplicate-catalog-item- Disallow duplicate catalog itemsyaml-no-anonymous-catalog- Disallow the anonymouscatalog:in favor of named catalogs (opt-in)yaml-valid-packages- Ensure package patterns match directories with package.jsonyaml-enforce-settings- Enforce settings inpnpm-workspace.yamlyaml-blank-lines- Require blank lines around multi-line top-level entries, and disallow them between single-line entries (opt-in)
Settings
| Name | Description | Type | Default |
|---|---|---|---|
ensureWorkspaceFile | Whether to create pnpm-workspace.yaml if it doesn't exist | boolean | false |
Sponsors
<p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt="antfu's sponsors"/> </a> </p>License
MIT License © Anthony Fu
<!-- Badges -->Description from the npm listing.
- eslint-plugin
- pnpm
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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)Similar npm ESLint plugins plugins
All 20 eslint-plugin-pnpm alternativesData 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-pnpm. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.