eslint-plugin-mobx has 95,821 recorded weekly downloads on npm, an increase of 23.8% over the past 30 days, ranking #644 of 3,247 tracked listings.
About eslint-plugin-mobx
eslint-plugin-mobx
Mobx specific linting rules for eslint.
Installation
npm install --save-dev eslint @typescript-eslint/parser eslint-plugin-mobx
Requires ESLint 9.10+ or 10. For ESLint 8 or older, use eslint-plugin-mobx 0.2.x.
Configuration
// eslint.config.js
import pluginMobx from "eslint-plugin-mobx"
export default [
// ...
// Either extend our recommended configuration:
pluginMobx.configs.recommended,
// ...or specify and customize individual rules:
{
plugins: { mobx: pluginMobx },
rules: {
// these values are the same as recommended
"mobx/exhaustive-make-observable": "warn",
"mobx/unconditional-make-observable": "error"
}
}
]
Rules
mobx/exhaustive-make-observable
Makes sure that makeObservable annotates all fields defined on class or object literal.<br>
To exclude a field, annotate it using field: false.<br>
Members with MobX decorators are skipped, they are already annotated.<br>
Also reports makeObservable called without annotations, which throws in MobX 7.<br>
Does not support fields introduced by constructor (this.foo = 5).<br>
Does not warn about annotated non-existing fields (there is a runtime check, but the autofix removing the field could be handy...).<br>
Autofix adds field: true for each missing field by default. You can change this behaviour by specifying options in your eslint config:
{
"rules": {
"mobx/exhaustive-make-observable": ["error", { "autofixAnnotation": false }]
}
}
This is a boolean value that controls if the field is annotated with true or false.
If you are migrating an existing project using makeObservable and do not want this rule to override
your current usage (even if it may be wrong), you should run the autofix with the annotation set to false to maintain existing behaviour: eslint --fix --rule='mobx/exhaustive-make-observable: [2, { "autofixAnnotation": false }]' .
mobx/unconditional-make-observable
Makes sure the make(Auto)Observable(this) is called unconditionally inside a constructor.
Description from the npm listing.
- eslint
- eslint-plugin
- eslintplugin
- mobx
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-mobx 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-mobx. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.