Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
eslint-plugin-mongodb
Advanced tools
Eslint rules for MongoDB best practices.
eslint
as a dev-dependency:npm install --save-dev eslint
eslint-plugin-mongodb
as a dev-dependency:npm install --save-dev eslint-plugin-mongodb
.eslintrc
:plugins:
- mongodb
You can also configure these rules in your .eslintrc
. All rules defined in
this plugin have to be prefixed by 'mongodb/'
plugins:
- mongodb
rules:
- mongodb/no-replace: 0
Default: 'no_replace': 1
Check update queries to ensure no raw replace is done.
Default: 'check-numeric-updates': 2
Check update queries to ensure numeric operators like $mul and $inc contain numeric values.
Default: 'check-rename-updates': 2
Check ``$rename` update operator usage.
Avoid wasting your time and follow those steps to suggest a new rule:
Feel free to push your code if you agree with publishing under the MIT license.
FAQs
Lint your MongoDB queries.
The npm package eslint-plugin-mongodb receives a total of 268 weekly downloads. As such, eslint-plugin-mongodb popularity was classified as not popular.
We found that eslint-plugin-mongodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.