Skip to content
PluginStats

eslint-plugin-valtio weekly downloads statistics

By pmndrs · npm · ESLint plugins

An eslint plugin for better valtio experience

View on npm Fresh · Dec 6, 2026

eslint-plugin-valtio has 32,732 recorded weekly downloads on npm, an increase of 25.4% over the past 30 days, ranking #903 of 3,247 tracked listings.

Weekly downloads
32,732
Official API · Dec 5, 2026
7-day growth
+6.7%
+2.1K weekly downloads
30-day growth
+25.4%
+6.6K weekly downloads
90-day growth
+36.1%
+8.7K weekly downloads
Rank
#903
▼ 15 in 7 days

About eslint-plugin-valtio

eslint-plugin-valtio

Valtio linting plugin for better development.

Installation

npm install eslint-plugin-valtio --save-dev

for yarn users:

yarn add -D eslint-plugin-valtio

Usage

eslint v9 / flat config
const valtio = require('eslint-plugin-valtio')

module.exports = [
  valtio.configs['flat/recommended'],
  {
    rules: {
      'valtio/state-snapshot-rule': ['warn'],
      'valtio/avoid-this-in-proxy': ['warn'],
    },
  },
]
eslint v8 and below

Add valtio to the extends section of your .eslintrc configuration file.

{
  "extends": ["plugin:valtio/recommended"]
}

Rules

Alternatively, you can enable rules in the plugin, selectively.

{
  "rules": {
    "valtio/state-snapshot-rule": "warn",
    "valtio/avoid-this-in-proxy": "warn"
  }
}

Why

This plugin helps you catch common mistakes that can occur in valtio. Here are some cases that this plugin catches.

Rules Breakdown

Snapshots in callbacks are not recommended

We shouldn't use snapshots in callbacks, because snapshots can be stale there.

const state = proxy({ count: 0 })

function App() {
  const snap = useSnapshot(state)
  const handleClick = () => {
    console.log(snap.count) // This is not recommended as it can be stale.
  }
  return (
    <div>
      {snap.count} <button onClick={handleClick}>click</button>
    </div>
  )
}
Proxies in render phase is not recommended

In render phase, it's better to use snapshots (as they're made to be compatible with react's reactivity) instead of states directly.

const state = proxy({ count: 0 })

function App() {
  return (
    <div>{state.count} // This is not recommended as it is not reactive.</div>
  )
}
Snapshots mutating is not possible

Snapshots are made to be used in the react render phase, and not mutable. So, we need to mutate proxy states directly.

const state = proxy({ count: 0 })

function App() {
  const snap = useSnapshot(state)
  const handleClick = () => {
    ++snap.count // This doesn't work. Use proxy state instead.
  }
  return <button onClick={handleClick}>mutate</button>
}
Computed declaration order

In the way valtio treats objects in proxyWithComputed, the order of fields matters; for example, quadrupled comes before doubled, but it depends on doubled, so the order is wrong! So we need to bring doubled first.

const state = proxyWithComputed(
  {
    count: 0,
  },
  {
    quadrupled: (snap) => snap.doubled * 2, // Not found, If a computed field deriving value is created from another computed, the computed source should be declared first.
    doubled: (snap) => snap.count * 2,
  }
)
Using this in proxy (valtio/avoid-this-in-proxy)

When working with proxy using this in it's context as long as taken care of will work as expected but since the implementation differs from a simple proxy to a snapshot version of the proxy, using this could get confusing. This rule is specifically for beginners that are adapting to the structure/differences in valtio.

const state = proxy({
  count: 0,
  inc() {
    ++state.count // works as the state is being modified
  },
})

const state = proxy({
  count: 0,
  inc() {
    ++this.count // works as the context belongs to proxy
  },
})

const state = snapshot(
  proxy({
    count: 0,
    inc() {
      ++this.count // won't work since the params are now frozen since you are in a snapshot.
    },
  })
)

Description from the npm listing.

  • eslint
  • eslintplugin
  • eslint-plugin

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-valtio weekly downloads on npm, last 90 days: 32,732 weekly downloads as of Dec 5, 2026, +36.1% over 90 days.eslint-plugin-valtioWeekly downloads on npm · Last 90 days32,732downloads / week+36.1% over 90 days05K10K15K20K25K30K35K40KSep 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-valtio weekly downloads on npm, last 90 days: 32,732 weekly downloads as of Dec 5, 2026, +36.1% over 90 days.

7/30/90-day growth

eslint-plugin-valtio weekly downloads growth on npm: +6.7% over 7 days, +25.4% over 30 days, +36.1% over 90 days.eslint-plugin-valtioWeekly downloads growth on npm32,732downloads / week now7-day growth+2,052 weekly downloads+6.7%30-day growth+6,625 weekly downloads+25.4%90-day growth+8,674 weekly downloads+36.1%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
eslint-plugin-valtio weekly downloads growth on npm: +6.7% over 7 days, +25.4% over 30 days, +36.1% over 90 days.

Ranking history

eslint-plugin-valtio npm ranking history: currently #903 (by weekly downloads).eslint-plugin-valtionpm ranking · by weekly downloads · Last 90 days#903current rank#820#840#860#880#900#920#940#960Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
eslint-plugin-valtio npm ranking history: currently #903 (by weekly downloads).

Listing placement

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

Listing placement

ESLint plugins290 listings · 15 pages · page 12, #11 (overall #231)
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-valtio
Date (UTC)Weekly downloadsChange vs. previous
32,732-45
32,777+2.1K
30,652+385
30,267+476
29,791+53
29,738-1K
30,784+104
30,680+526
30,154-1.7K
31,819-717
32,536+296
32,240+464
31,776-1.2K
32,951—

Similar npm ESLint plugins plugins

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