{"id":26953,"library":"eslint-config-mongodb-js","title":"eslint-config-mongodb-js","description":"ESLint shareable configurations for mongodb-js projects, version 5.0.3, last updated ~2019. Provides multiple presets (compass-plugin, react, node, browser, shell) based on eslint-config-airbnb. Differentiates by offering project-specific configs for MongoDB ecosystem. Limited updates; consider using eslint-config-mongodb-js-legacy or maintaining your own.","status":"maintenance","version":"5.0.3","language":"javascript","source_language":"en","source_url":"git://github.com/mongodb-js/eslint-config","tags":["javascript","eslint","eslintconfig","mongodb-js"],"install":[{"cmd":"npm install eslint-config-mongodb-js","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-mongodb-js","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-mongodb-js","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for any config to work","package":"eslint","optional":false},{"reason":"Base config; must be installed alongside","package":"eslint-config-airbnb","optional":false}],"imports":[{"note":"Uses ESLint's extends feature, not a JS import. Common mistake: trying to import directly.","wrong":"const config = require('eslint-config-mongodb-js')","symbol":"eslint-config-mongodb-js","correct":"// In .eslintrc: { \"extends\": \"mongodb-js/node\" }"},{"note":"Must specify the full sub-config name; the root package alone does nothing.","wrong":"{ \"extends\": \"mongodb-js\" }","symbol":"compass-plugin","correct":"{ \"extends\": \"mongodb-js/compass-plugin\" }"},{"note":"Same as above: use the config name after the prefix.","wrong":"{ \"extends\": \"mongodb-js\" }","symbol":"react","correct":"{ \"extends\": \"mongodb-js/react\" }"}],"quickstart":{"code":"// 1. Install dependencies\nnpm install --save-dev eslint eslint-config-mongodb-js eslint-config-airbnb\n\n// 2. Create .eslintrc.json:\n{\n  \"extends\": \"mongodb-js/node\",\n  \"rules\": {\n    // Your overrides\n  }\n}\n\n// 3. Run ESLint:\nnpx eslint .","lang":"javascript","description":"Install peer deps and apply a mongodb-js ESLint config for Node.js projects."},"warnings":[{"fix":"Install eslint-config-airbnb and its peer deps (eslint-plugin-import, eslint-plugin-jsx-a11y, eslint-plugin-react, etc.).","message":"Requires eslint-config-airbnb as a peer dependency, which itself has many transitive peer deps. Missing any will fail silently.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use eslint@5+ or downgrade to eslint-config-mongodb-js@4.x for eslint@4.","message":"Upgraded to eslint@5 in v5.0.0. If using ESLint 4, pin to v4.0.0 or earlier.","severity":"breaking","affected_versions":"5.0.0 - 5.0.3"},{"fix":"Consider using eslint-config-mongodb-js-legacy or switch to airbnb's default config.","message":"No new releases since 2019; the package is unmaintained. Newer ESLint versions (>=6) may cause rule incompatibilities.","severity":"deprecated","affected_versions":">=5.0.3"},{"fix":"Use 'mongodb-js/node' instead of '@mongodb-js/node'.","message":"The package name prefix is 'mongodb-js/' not '@mongodb-js/'. Using scoped name will not work.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint-config-airbnb","cause":"Missing peer dependency eslint-config-airbnb.","error":"Cannot find module 'eslint-config-airbnb'"},{"fix":"Update all peer dependencies to latest compatible versions, e.g., npm install --save-dev eslint-plugin-import@latest","cause":"Outdated peer dependencies, especially eslint-plugin-import versions.","error":"Configuration for rule 'import/no-extraneous-dependencies' is invalid"},{"fix":"Use \"extends\": \"mongodb-js/node\" or another valid sub-config.","cause":"Incorrect extends value; missing the sub-config name.","error":"ESLint couldn't find the config \"mongodb-js\". Please make sure that your ESLint configuration is correct."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}