
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
eslint-config-mongodb-js
Advanced tools
Shareable configs are designed to work with the extends feature
of .eslintrc files. This allows us to easily extend from a base
configuration to provide the right rules for all of the extensive
range of environments we build modules for:
mongodb-js/compass-pluginmongodb-js/reactmongodb-js/nodemongodb-js/browsermongodb-js/shellYou can learn more about Shareable Configs on the official ESLint website.
Our eslint-config is based on eslint-config-airbnb.
We make a best effort to explicitly call out any rules we differ from
eslint-config-airbnb will include a JSDoc
comment of @differ #{dang good reason}.
To use the mongodb-js shareable config, first run:
npm install --save-dev eslint-config-mongodb-js
NOTE You do not need to add multiple
extends: []in your.eslintrc! The inheritance of themongodb-js/*configs inherits bottom up. For example,mongodb-js/compass-pluginalready includesmongodb-js/react.
compass-pluginIf you're building a MongoDB Compass Plugin, your ./.eslintrc should be:
{"extends": "mongodb-js/compass-plugin"}
reactFor react modules, your ./.eslintrc should be:
{"extends": "mongodb-js/react"}
nodeFor vanilla node.js projects, your ./.eslintrc should be:
{"extends": "mongodb-js/node"}
browserIf you're working on a UI project that uses browserify, your ./.eslintrc should be:
{"extends": "mongodb-js/browser"}
eslint@5 #49mongodb-js/compass-plugin config #48Make sure your editor is using the correct version of eslint. If you're using Visual Studio Code, npm i -g eslint@latest will resolve this problem.
Apache 2.0
FAQs
eslint sharable configs for mongodb-js.
The npm package eslint-config-mongodb-js receives a total of 1,876 weekly downloads. As such, eslint-config-mongodb-js popularity was classified as popular.
We found that eslint-config-mongodb-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 38 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.