Skip to content
PluginStats

eslint-plugin-pinia weekly downloads statistics

By lisilinhart · npm · ESLint plugins

ESLint plugin for Pinia best practices

View on npm Outdated · Nov 28, 2026

eslint-plugin-pinia has 19,802 recorded weekly downloads on npm, an increase of 7.7% over the past 30 days, ranking #1040 of 3,247 tracked listings.

Weekly downloads
19,802
Official API · Dec 5, 2026
7-day growth
-20.3%
-5K weekly downloads
30-day growth
+7.7%
+1.4K weekly downloads
90-day growth
+8.5%
+1.6K weekly downloads
Rank
#1040
▼ 84 in 7 days

About eslint-plugin-pinia

eslint-plugin-pinia

npm test

Eslint plugin that enforces some best practices for writing pinia stores

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-pinia:

npm install eslint-plugin-pinia --save-dev

Usage

Add pinia to the plugins section of your .eslintrc or eslint.config.js configuration file. You can omit the eslint-plugin- prefix:

// .eslintrc [Legacy Config]
{
  "plugins": ["pinia"]
}
// eslint.config.js
import pinia from 'eslint-plugin-pinia'

export default [
  plugins: {
    pinia
  }
]
Rule Configuration

Then configure the rules you want to use under the rules section.

// .eslintrc [Legacy Config]
{
  "rules": {
    "pinia/require-export-define-store": [
      "warn"
    ]
  }
}
// eslint.config.js
import pinia from 'eslint-plugin-pinia'

export default [
  {
    plugin: {
      pinia
    },
    rules: {
      "pinia/require-export-define-store": ["warn"]
    }
  }
]
Recommended

To use the recommended configuration, extend it in your .eslintrc or eslint.config.js file:

// .eslintrc [Legacy Config]
{
  "extends": ["plugin:pinia/recommended"]
}
// eslint.config.js
import pinia from 'eslint-plugin-pinia'

export default [
  pinia.configs["recommended-flat"],
]

All recommend rules will be set to error by default. You can however disable some rules by setting turning them off in your configuration file or by setting them to warn in your configuration file.

all rules

To use the all configuration, extend it in your .eslintrc or eslint.config.js file:

// .eslintrc [Legacy Config]
{
  "extends": ["plugin:pinia/all"]
}
// eslint.config.js
import pinia from 'eslint-plugin-pinia'

export default [
  pinia.configs["all-flat"],
]

Rules

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

💼 Configurations enabled in.
⚠️ Configurations set to warn in.
🚫 Configurations disabled in.
🌐 Set in the all configuration.
🌐 Set in the all-flat configuration.
✅ Set in the recommended configuration.
✅ Set in the recommended-flat configuration.

Name                                 Description💼⚠️🚫
never-export-initialized-storeNever export an initialized named or default store.✅ ✅🌐 🌐
no-duplicate-store-idsDisallow duplicate store ids.✅ ✅🌐 🌐
no-return-global-propertiesDisallows returning globally provided properties from Pinia stores.✅ ✅🌐 🌐
no-store-to-refs-in-storeDisallow use of storeToRefs inside defineStore✅ ✅🌐 🌐
prefer-single-store-per-fileEncourages defining each store in a separate file.🌐 🌐
prefer-use-store-naming-conventionEnforces the convention of naming stores with the prefix use followed by the store name.🌐 🌐 ✅ ✅
require-setup-store-properties-exportIn setup stores all state properties must be exported.✅ ✅🌐 🌐
<!-- end auto-generated rules list -->

Credits

Licence

MIT Licence © 2024

Contributing

Please check the Contributing file.

This project exists thanks to all the people who contribute 😍!

<a href="https://github.com/lisilinhart/eslint-plugin-pinia/graphs/contributors"> <img src="https://contrib.rocks/image?repo=lisilinhart/eslint-plugin-pinia" /> </a>

Description from the npm listing.

  • eslint
  • eslint-plugin
  • eslint-config
  • vue
  • vuejs
  • pinia
  • piniajs
  • 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-pinia weekly downloads on npm, last 90 days: 19,802 weekly downloads as of Dec 5, 2026, +8.5% over 90 days.eslint-plugin-piniaWeekly downloads on npm · Last 90 days19,802downloads / week+8.5% over 90 days010K20K30K40K50KSep 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-pinia weekly downloads on npm, last 90 days: 19,802 weekly downloads as of Dec 5, 2026, +8.5% over 90 days.

7/30/90-day growth

eslint-plugin-pinia weekly downloads growth on npm: -20.3% over 7 days, +7.7% over 30 days, +8.5% over 90 days.eslint-plugin-piniaWeekly downloads growth on npm19,802downloads / week now7-day growth-5,045 weekly downloads-20.3%30-day growth+1,408 weekly downloads+7.7%90-day growth+1,559 weekly downloads+8.5%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-pinia weekly downloads growth on npm: -20.3% over 7 days, +7.7% over 30 days, +8.5% over 90 days.

Ranking history

eslint-plugin-pinia npm ranking history: currently #1040 (by weekly downloads).eslint-plugin-pinianpm ranking · by weekly downloads · Last 90 days#1040current rank#800#850#900#950#1000#1050#1100Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 27 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-pinia npm ranking history: currently #1040 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 14, #2 (overall #262)
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-pinia
Date (UTC)Weekly downloadsChange vs. previous
19,802-1.1K
20,924+1.3K
19,663+1.1K
18,536-1K
19,540-129
19,669-2.7K
22,342-2.5K
24,847-2.5K
27,341-4.7K
32,078-5.5K
37,537-3.5K
41,070-2.2K
43,223+843
42,380—

Similar npm ESLint plugins plugins

All 20 eslint-plugin-pinia 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-pinia. First seen Oct 16, 2026; last successful collection Nov 28, 2026. See the methodology.