oxlint-plugin-mongodb-security 9.1.6 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +195 -11
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/package.json +22 -11
package/README.md
CHANGED
|
@@ -1,22 +1,206 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-mongodb-security?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="90" /></picture></a>
|
|
3
|
+
|
|
4
|
+
<a href="https://www.mongodb.com" target="_blank"><img src="https://eslint.interlace.tools/logos/mongodb.svg" alt="MongoDB" height="90" /></a>
|
|
5
|
+
|
|
6
|
+
<a href="https://oxc.rs" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/oxlint-dark.svg"><img src="https://eslint.interlace.tools/logos/oxlint-light.svg" alt="oxlint" height="90" /></picture></a>
|
|
7
|
+
</p>
|
|
2
8
|
|
|
3
|
-
|
|
4
|
-
|
|
9
|
+
<p align="center">
|
|
10
|
+
Security rules for MongoDB queries and interactions (NoSQL injection).
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<p align="center">
|
|
14
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-mongodb-security" target="_blank"><img src="https://img.shields.io/npm/v/oxlint-plugin-mongodb-security.svg" alt="NPM Version" /></a>
|
|
15
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-mongodb-security" target="_blank"><img src="https://img.shields.io/npm/dm/oxlint-plugin-mongodb-security.svg" alt="NPM Downloads" /></a>
|
|
16
|
+
<a href="https://packagephobia.com/result?p=oxlint-plugin-mongodb-security" target="_blank"><img src="https://badgen.net/packagephobia/install/oxlint-plugin-mongodb-security" alt="Install Size" /></a>
|
|
17
|
+
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
|
|
18
|
+
<a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-plugin-mongodb-security" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-mongodb-security" alt="Codecov" /></a>
|
|
19
|
+
<a href="https://github.com/ofri-peretz/eslint" target="_blank"><img src="https://img.shields.io/badge/Since-Dec_2025-blue?logo=rocket&logoColor=white" alt="Since Dec 2025" /></a>
|
|
20
|
+
<a href="https://scorecard.dev/viewer/?uri=github.com/ofri-peretz/eslint" target="_blank"><img src="https://api.securityscorecards.dev/projects/github.com/ofri-peretz/eslint/badge" alt="OpenSSF Scorecard" /></a>
|
|
21
|
+
</p>
|
|
22
|
+
|
|
23
|
+
> ⭐ If this plugin caught a real bug for you, [**star the repo**](https://github.com/ofri-peretz/eslint) — it's the signal that keeps these rules maintained.
|
|
24
|
+
|
|
25
|
+
## Description
|
|
26
|
+
|
|
27
|
+
`oxlint-plugin-mongodb-security` is the [oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins) and [Vite+](https://viteplus.dev/guide/lint) name for [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security). It carries the same rules under the same IDs (`mongodb-security/<rule>`), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
|
|
28
|
+
|
|
29
|
+
## Covered natively by oxlint
|
|
30
|
+
|
|
31
|
+
None of these 16 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.
|
|
32
|
+
|
|
33
|
+
- **Why** — a linter nobody reads protects nothing. We would rather miss a finding
|
|
34
|
+
than spend your attention on one that was never real.
|
|
35
|
+
- **How** — evidence, not names. A rule fires on what the code _does_, resolved
|
|
36
|
+
through the AST and ESLint's own scope analysis.
|
|
37
|
+
- **What** — every finding carries its fix, in prose for a human and as structured
|
|
38
|
+
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
|
|
39
|
+
|
|
40
|
+
That trade costs recall, and we measure it:
|
|
41
|
+
[methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
|
|
42
|
+
· [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md)
|
|
43
|
+
· [a false positive is a bug](https://github.com/ofri-peretz/eslint/issues).
|
|
44
|
+
|
|
45
|
+
## Getting Started
|
|
5
46
|
|
|
6
47
|
```bash
|
|
7
|
-
npm
|
|
48
|
+
npm install oxlint-plugin-mongodb-security --save-dev
|
|
8
49
|
```
|
|
9
50
|
|
|
10
|
-
|
|
51
|
+
### Vite+
|
|
11
52
|
|
|
12
|
-
```
|
|
13
|
-
|
|
53
|
+
```ts
|
|
54
|
+
// vite.config.ts
|
|
55
|
+
import { defineConfig } from 'vite-plus';
|
|
56
|
+
|
|
57
|
+
export default defineConfig({
|
|
58
|
+
lint: {
|
|
59
|
+
jsPlugins: ['oxlint-plugin-mongodb-security'],
|
|
60
|
+
rules: {
|
|
61
|
+
'mongodb-security/no-debug-mode-production': 'error',
|
|
62
|
+
'mongodb-security/no-hardcoded-connection-string': 'error',
|
|
63
|
+
'mongodb-security/no-hardcoded-credentials': 'error',
|
|
64
|
+
'mongodb-security/no-operator-injection': 'error',
|
|
65
|
+
'mongodb-security/no-unsafe-populate': 'error',
|
|
66
|
+
'mongodb-security/no-unsafe-query': 'error',
|
|
67
|
+
'mongodb-security/no-unsafe-regex-query': 'error',
|
|
68
|
+
'mongodb-security/no-unsafe-where': 'error',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
});
|
|
14
72
|
```
|
|
15
73
|
|
|
16
|
-
|
|
74
|
+
### oxlint
|
|
17
75
|
|
|
18
|
-
```
|
|
19
|
-
|
|
76
|
+
```json
|
|
77
|
+
{
|
|
78
|
+
"jsPlugins": ["oxlint-plugin-mongodb-security"],
|
|
79
|
+
"rules": {
|
|
80
|
+
"mongodb-security/no-debug-mode-production": "error",
|
|
81
|
+
"mongodb-security/no-hardcoded-connection-string": "error",
|
|
82
|
+
"mongodb-security/no-hardcoded-credentials": "error",
|
|
83
|
+
"mongodb-security/no-operator-injection": "error",
|
|
84
|
+
"mongodb-security/no-unsafe-populate": "error",
|
|
85
|
+
"mongodb-security/no-unsafe-query": "error",
|
|
86
|
+
"mongodb-security/no-unsafe-regex-query": "error",
|
|
87
|
+
"mongodb-security/no-unsafe-where": "error"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
20
90
|
```
|
|
21
91
|
|
|
22
|
-
|
|
92
|
+
These are the rules the plugin recommends (💼 in the table below).
|
|
93
|
+
|
|
94
|
+
### ESLint
|
|
95
|
+
|
|
96
|
+
Install [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) instead. It has the same rules, plus presets for ESLint's flat config.
|
|
97
|
+
|
|
98
|
+
## 📦 Compatibility
|
|
99
|
+
|
|
100
|
+
| Package | Version |
|
|
101
|
+
| :------ | :--------------------------------------------------------------- |
|
|
102
|
+
| oxlint | verified on `1.88.0`: CI loads every rule ID through `jsPlugins` |
|
|
103
|
+
| Vite+ | `lint.jsPlugins` in `vite.config.ts` |
|
|
104
|
+
| Node.js | `>=18.0.0` |
|
|
105
|
+
|
|
106
|
+
## Rules
|
|
107
|
+
|
|
108
|
+
**Legend**
|
|
109
|
+
|
|
110
|
+
| Icon | Description |
|
|
111
|
+
| :--: | :------------------------------------------------------------------------ |
|
|
112
|
+
| 💼 | **Recommended**: Included in the recommended preset. |
|
|
113
|
+
| ⚠️ | **Warns**: Set to warn in recommended preset. |
|
|
114
|
+
| 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
|
|
115
|
+
| 💡 | **Suggestions**: Providing code suggestions in IDE. |
|
|
116
|
+
| 🚫 | **Deprecated**: This rule is deprecated. |
|
|
117
|
+
| 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
|
|
118
|
+
| 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
|
|
119
|
+
| 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
|
|
120
|
+
|
|
121
|
+
| Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
|
|
122
|
+
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-----: | :------: | :--: | :----------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: |
|
|
123
|
+
| [no-bypass-middleware](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-bypass-middleware?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-284 | A01:2021 | | Detects Mongoose operations that bypass middleware hooks (pre/post hooks). | 🟢 | | ⚠️ | | | |
|
|
124
|
+
| [no-debug-mode-production](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-debug-mode-production?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-489 | A05:2021 | | Detects Mongoose debug mode that could expose sensitive query information in production. | 🟢 | 💼 | | | 💡 | |
|
|
125
|
+
| [no-hardcoded-connection-string](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-hardcoded-connection-string?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-798 | A07:2021 | | Detects hardcoded MongoDB connection strings containing credentials in source code. | 🟢 | 💼 | | | | |
|
|
126
|
+
| [no-hardcoded-credentials](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-hardcoded-credentials?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-798 | A07:2021 | | Detects hardcoded MongoDB authentication credentials in connection options. | 🟢 | 💼 | | | | |
|
|
127
|
+
| [no-operator-injection](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-operator-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-943 | A03:2021 | | Detects MongoDB operator injection attacks where user input is passed directly as query values, allowing at… | 🟢 | 💼 | | | | |
|
|
128
|
+
| [no-select-sensitive-fields](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-select-sensitive-fields?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-200 | A01:2021 | | Detects queries that may return sensitive fields like passwords, tokens, or API keys. | 🟢 | | ⚠️ | | | |
|
|
129
|
+
| [no-unbounded-find](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-unbounded-find?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-400 | A04:2021 | | Requires limit() on find queries to prevent resource exhaustion from unbounded result sets. | 🟢 | | ⚠️ | | 💡 | |
|
|
130
|
+
| [no-unsafe-populate](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-unsafe-populate?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-943 | A03:2021 | | Detects user-controlled populate() paths that could lead to data exposure or injection. | 🟢 | 💼 | | | | |
|
|
131
|
+
| [no-unsafe-query](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-unsafe-query?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-943 | A03:2021 | | Prevents NoSQL injection by detecting direct use of user input in MongoDB query objects. | 🟢 | 💼 | | | 💡 | |
|
|
132
|
+
| [no-unsafe-regex-query](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-unsafe-regex-query?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-400 | A03:2021 | | Detects user input in MongoDB $regex operators that could cause ReDoS (Regular Expression Denial of Service… | 🟢 | 💼 | | | | |
|
|
133
|
+
| [no-unsafe-where](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/no-unsafe-where?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-943 | A01:2021 | | Prevents use of the dangerous $where operator which executes JavaScript on the MongoDB server, enabling Rem… | 🟢 | 💼 | | | | |
|
|
134
|
+
| [require-auth-mechanism](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/require-auth-mechanism?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-287 | A07:2021 | | Requires explicit authentication mechanism specification for MongoDB connections. | 🟢 | | ⚠️ | | | |
|
|
135
|
+
| [require-lean-queries](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/require-lean-queries?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-400 | A04:2021 | | Suggests using .lean() for read-only Mongoose queries to reduce memory usage. | 🟢 | | | | 💡 | |
|
|
136
|
+
| [require-projection](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/require-projection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-200 | A01:2021 | | Requires field projection on queries to minimize data exposure. | 🟢 | | | | | |
|
|
137
|
+
| [require-schema-validation](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/require-schema-validation?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-20 | A04:2021 | | Requires validation options on Mongoose schema fields to prevent invalid or malicious data. | 🟢 | | ⚠️ | | | |
|
|
138
|
+
| [require-tls-connection](https://eslint.interlace.tools/docs/security/plugin-mongodb-security/rules/require-tls-connection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security) | CWE-295 | A02:2021 | | Requires TLS/SSL encryption for MongoDB connections in production environments. | 🟢 | | ⚠️ | | 💡 | |
|
|
139
|
+
|
|
140
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
|
|
141
|
+
|
|
142
|
+
## 🔗 Related ESLint Plugins
|
|
143
|
+
|
|
144
|
+
Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimized error messages:
|
|
145
|
+
|
|
146
|
+
**Security**
|
|
147
|
+
|
|
148
|
+
| Plugin | Downloads | Description |
|
|
149
|
+
| :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------- |
|
|
150
|
+
| [`eslint-plugin-anthropic-security`](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | [](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | Anthropic SDK security. |
|
|
151
|
+
| [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | [](https://www.npmjs.com/package/eslint-plugin-browser-security) | XSS, DOM security. |
|
|
152
|
+
| [`eslint-plugin-drizzle-security`](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | [](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | Drizzle security. |
|
|
153
|
+
| [`eslint-plugin-express-security`](https://www.npmjs.com/package/eslint-plugin-express-security) | [](https://www.npmjs.com/package/eslint-plugin-express-security) | Express middleware hardening. |
|
|
154
|
+
| [`eslint-plugin-gemini-security`](https://www.npmjs.com/package/eslint-plugin-gemini-security) | [](https://www.npmjs.com/package/eslint-plugin-gemini-security) | Google Gemini SDK security. |
|
|
155
|
+
| [`eslint-plugin-jwt-security`](https://www.npmjs.com/package/eslint-plugin-jwt-security) | [](https://www.npmjs.com/package/eslint-plugin-jwt-security) | Token security. |
|
|
156
|
+
| [`eslint-plugin-knex-security`](https://www.npmjs.com/package/eslint-plugin-knex-security) | [](https://www.npmjs.com/package/eslint-plugin-knex-security) | Knex security. |
|
|
157
|
+
| [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | [](https://www.npmjs.com/package/eslint-plugin-lambda-security) | AWS Lambda hardening. |
|
|
158
|
+
| [`eslint-plugin-mcp-sdk-security`](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | [](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | MCP SDK security. |
|
|
159
|
+
| [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | [](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | MongoDB injection. |
|
|
160
|
+
| [`eslint-plugin-mysql-security`](https://www.npmjs.com/package/eslint-plugin-mysql-security) | [](https://www.npmjs.com/package/eslint-plugin-mysql-security) | MySQL security. |
|
|
161
|
+
| [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | [](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | NestJS framework hardening. |
|
|
162
|
+
| [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) | [](https://www.npmjs.com/package/eslint-plugin-node-security) | Server-side patterns. |
|
|
163
|
+
| [`eslint-plugin-openai-security`](https://www.npmjs.com/package/eslint-plugin-openai-security) | [](https://www.npmjs.com/package/eslint-plugin-openai-security) | OpenAI SDK security. |
|
|
164
|
+
| [`eslint-plugin-postgresql-security`](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | [](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | PostgreSQL security. |
|
|
165
|
+
| [`eslint-plugin-prisma-security`](https://www.npmjs.com/package/eslint-plugin-prisma-security) | [](https://www.npmjs.com/package/eslint-plugin-prisma-security) | Prisma security. |
|
|
166
|
+
| [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [](https://www.npmjs.com/package/eslint-plugin-secure-coding) | Injection prevention. |
|
|
167
|
+
| [`eslint-plugin-sequelize-security`](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | [](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | Sequelize ORM security. |
|
|
168
|
+
| [`eslint-plugin-sqlite-security`](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | [](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | SQLite security. |
|
|
169
|
+
| [`eslint-plugin-supabase-security`](https://www.npmjs.com/package/eslint-plugin-supabase-security) | [](https://www.npmjs.com/package/eslint-plugin-supabase-security) | Supabase security. |
|
|
170
|
+
| [`eslint-plugin-typeorm-security`](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | [](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | TypeORM security. |
|
|
171
|
+
| [`eslint-plugin-vercel-ai-security`](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | [](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | AI SDK security. |
|
|
172
|
+
|
|
173
|
+
**Code quality**
|
|
174
|
+
|
|
175
|
+
| Plugin | Downloads | Description |
|
|
176
|
+
| :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------- |
|
|
177
|
+
| [`eslint-plugin-cli-floor`](https://www.npmjs.com/package/eslint-plugin-cli-floor) | [](https://www.npmjs.com/package/eslint-plugin-cli-floor) | CLI floor for commander, yargs and burgee. |
|
|
178
|
+
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
179
|
+
| [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [](https://www.npmjs.com/package/eslint-plugin-import-next) | Fast cycle + import-graph analysis. |
|
|
180
|
+
| [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | [](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive load and clean-code patterns. |
|
|
181
|
+
| [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
|
|
182
|
+
| [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
|
|
183
|
+
| [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
|
|
184
|
+
| [`eslint-plugin-react-a11y`](https://www.npmjs.com/package/eslint-plugin-react-a11y) | [](https://www.npmjs.com/package/eslint-plugin-react-a11y) | React accessibility / WCAG. |
|
|
185
|
+
| [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) | [](https://www.npmjs.com/package/eslint-plugin-react-features) | React best practices and optimization. |
|
|
186
|
+
| [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
|
|
187
|
+
|
|
188
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
|
|
189
|
+
|
|
190
|
+
## ⭐ Support & follow
|
|
191
|
+
|
|
192
|
+
If this plugin caught a real bug for you, **[star the repo](https://github.com/ofri-peretz/eslint)** — stars are the signal that keeps the Interlace ESLint ecosystem maintained — and **[follow the writeups on Dev.to](https://dev.to/ofri-peretz)** for the benchmarks and security research behind these rules.
|
|
193
|
+
|
|
194
|
+
[](https://github.com/ofri-peretz/eslint)
|
|
195
|
+
|
|
196
|
+
## 📄 License
|
|
197
|
+
|
|
198
|
+
MIT © [Ofri Peretz](https://github.com/ofri-peretz)
|
|
199
|
+
|
|
200
|
+
<p align="center">
|
|
201
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-mongodb-security?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security"><img src="https://eslint.interlace.tools/images/og-mongodb-security.png" alt="ESLint Interlace Plugin" width="100%" /></a>
|
|
202
|
+
</p>
|
|
203
|
+
|
|
204
|
+
<p align="center">
|
|
205
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-mongodb-security?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="70" /></picture></a>
|
|
206
|
+
</p>
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports
|
|
1
|
+
module.exports=require("eslint-plugin-mongodb-security/oxlint");
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-mongodb-security",
|
|
3
|
-
"version": "9.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "9.2.0",
|
|
4
|
+
"description": "The mongodb-security rules for oxlint and Vite+. Same rules and rule IDs as eslint-plugin-mongodb-security.",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"types": "./index.d.ts",
|
|
7
8
|
"files": [
|
|
8
9
|
"index.js",
|
|
9
10
|
"index.d.ts",
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
"oxlint",
|
|
15
16
|
"oxlint-plugin",
|
|
16
17
|
"vite-plus",
|
|
17
|
-
"
|
|
18
|
+
"eslint",
|
|
18
19
|
"static-analysis",
|
|
19
20
|
"linting",
|
|
20
21
|
"code-quality",
|
|
@@ -47,18 +48,28 @@
|
|
|
47
48
|
"cursor-ai",
|
|
48
49
|
"claude-ai"
|
|
49
50
|
],
|
|
50
|
-
"
|
|
51
|
-
"eslint-plugin-mongodb-security": "9.1.6"
|
|
52
|
-
},
|
|
53
|
-
"license": "MIT",
|
|
51
|
+
"homepage": "https://eslint.interlace.tools/docs/security/plugin-mongodb-security?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-mongodb-security",
|
|
54
52
|
"repository": {
|
|
55
53
|
"type": "git",
|
|
56
54
|
"url": "git+https://github.com/ofri-peretz/eslint.git",
|
|
57
55
|
"directory": "packages/oxlint-plugin-mongodb-security"
|
|
58
56
|
},
|
|
59
|
-
"homepage": "https://eslint.interlace.tools/docs/security/plugin-mongodb-security?utm_source=npm&utm_medium=referral&utm_campaign=eslint-plugin-mongodb-security",
|
|
60
57
|
"bugs": {
|
|
61
58
|
"url": "https://github.com/ofri-peretz/eslint/issues"
|
|
62
59
|
},
|
|
63
|
-
"author": "Ofri Peretz <ofriperetzdev@gmail.com>"
|
|
60
|
+
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=18.0.0"
|
|
64
|
+
},
|
|
65
|
+
"funding": {
|
|
66
|
+
"type": "github",
|
|
67
|
+
"url": "git+https://github.com/ofri-peretz/eslint.git"
|
|
68
|
+
},
|
|
69
|
+
"publishConfig": {
|
|
70
|
+
"access": "public"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"eslint-plugin-mongodb-security": "9.2.0"
|
|
74
|
+
}
|
|
64
75
|
}
|