ESLint plugin providing environments for MongoDB server-side scripts (mapReduce, eval, $where) and MongoDB shell scripts. Version 1.0.5 is the latest and only release. It defines global variables specific to MongoDB contexts to prevent false positives in ESLint. Limited to environment definitions; does not include custom rules. Requires ESLint as a peer dependency. Last updated in 2018; no active development.
npm install eslint-plugin-mongoVerified import paths — ran on the pinned version, not inferred.
Quick setup to enable MongoDB shell environment in ESLint: install packages and configure plugin and environment.
Consider using eslint-plugin-mongodb or writing custom globals.
Combine with other plugins or define custom rules.
Manually add globals in ESLint config.
Run 'npm install eslint-plugin-mongo --save-dev' and ensure node_modules is accessible.
Enable the 'mongo/shell' environment in your ESLint config.
Check plugin documentation; only environments are provided.