eslint-plugin-mobx has 27,216 recorded weekly downloads on npm, a decrease of 46.5% over the past 30 days.
It ranks #686 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -42.0%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About eslint-plugin-mobx
eslint-plugin-mobx
Mobx specific linting rules for eslint.
Installation
Configuration
Legacy Config
Flat Config
Rules
mobx/exhaustive-make-observable
Makes sure that makeObservable annotates all fields defined on class or object literal. To exclude a field, annotate it using field: false. Does not support fields introduced by constructor (this.foo = 5). Does not warn about annotated non-existing fields (there is a runtime check, but the autofix removing the field could be handy...). Autofix adds field: true for each missing field by default. You can change this behaviour by specifying options in your eslint config:
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 --no-eslintrc --fix --rule='mobx/exhaustive-make-observable: [2, { "autofixAnnotation": false }]' .
mobx/missing-make-observable
_When using decorators (eg @observable foo = 5)_, makes sure that makeObservable(this) is called in a constructor. Autofix creates a constructor if necessary and adds makeObservable(this) at it's end.
mobx/unconditional-make-observable
Makes sure the make(Auto)Observable(this) is called unconditionally inside a constructor.
mobx/missing-observer
Makes sure every React component is wrapped with observer. A React component is considered to be any _class_ extending from Component or React.Component and any _function_ which name has the first letter capitalized (for anonymous functions the name is inferred from variable). These are all considered components:
Autofix wraps the component with observer and if necessary declares a constant of the same name: const Name = observer(function Name() {}). It's a bit opinionated and can lead to a lot of false positives depending on your conventions. You will probably want to combine this rule with overrides option, eg:
mobx/no-anonymous-observer (deprecated)
_Deprecated in favor of react/display-name + componentWrapperFunctions. Example of .eslintrc:_
Forbids anonymous functions or classes as observer components. Improves debugging experience and avoids problem with inability to customize displayName. Plays nice with eslint-plugin-react-hooks and mobx/missing-observer as both of these don't recognize anonymous function as component. Autofix infers the name from variable if possible.
Description from the npm listing.
- eslint
- eslint-plugin
- eslintplugin
- mobx
Where eslint-plugin-mobx sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (121)Similar npm ESLint plugins plugins
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-mobx. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.