oxlint-plugin-secure-coding 5.4.17 → 5.5.1
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 +219 -11
- package/index.d.ts +3 -0
- package/index.js +1 -1
- package/package.json +22 -11
package/README.md
CHANGED
|
@@ -1,22 +1,230 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-secure-coding?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding" 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://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>
|
|
5
|
+
</p>
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
7
|
+
<p align="center">
|
|
8
|
+
General secure coding practices and OWASP compliance for JavaScript/TypeScript.
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-secure-coding" target="_blank"><img src="https://img.shields.io/npm/v/oxlint-plugin-secure-coding.svg" alt="NPM Version" /></a>
|
|
13
|
+
<a href="https://www.npmjs.com/package/oxlint-plugin-secure-coding" target="_blank"><img src="https://img.shields.io/npm/dm/oxlint-plugin-secure-coding.svg" alt="NPM Downloads" /></a>
|
|
14
|
+
<a href="https://packagephobia.com/result?p=oxlint-plugin-secure-coding" target="_blank"><img src="https://badgen.net/packagephobia/install/oxlint-plugin-secure-coding" alt="Install Size" /></a>
|
|
15
|
+
<a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
|
|
16
|
+
<a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-plugin-secure-coding" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-secure-coding" alt="Codecov" /></a>
|
|
17
|
+
<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>
|
|
18
|
+
<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>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
> ⭐ 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.
|
|
22
|
+
|
|
23
|
+
## Description
|
|
24
|
+
|
|
25
|
+
`oxlint-plugin-secure-coding` is the [oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins) and [Vite+](https://viteplus.dev/guide/lint) name for [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding). It carries the same rules under the same IDs (`secure-coding/<rule>`), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
|
|
26
|
+
|
|
27
|
+
## Covered natively by oxlint
|
|
28
|
+
|
|
29
|
+
None of these 35 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.
|
|
30
|
+
|
|
31
|
+
- **Why** — a linter nobody reads protects nothing. We would rather miss a finding
|
|
32
|
+
than spend your attention on one that was never real.
|
|
33
|
+
- **How** — evidence, not names. A rule fires on what the code _does_, resolved
|
|
34
|
+
through the AST and ESLint's own scope analysis.
|
|
35
|
+
- **What** — every finding carries its fix, in prose for a human and as structured
|
|
36
|
+
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
|
|
37
|
+
|
|
38
|
+
That trade costs recall, and we measure it:
|
|
39
|
+
[methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
|
|
40
|
+
· [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md)
|
|
41
|
+
· [a false positive is a bug](https://github.com/ofri-peretz/eslint/issues).
|
|
42
|
+
|
|
43
|
+
## Getting Started
|
|
5
44
|
|
|
6
45
|
```bash
|
|
7
|
-
npm
|
|
46
|
+
npm install oxlint-plugin-secure-coding --save-dev
|
|
8
47
|
```
|
|
9
48
|
|
|
10
|
-
|
|
49
|
+
### Vite+
|
|
11
50
|
|
|
12
|
-
```
|
|
13
|
-
|
|
51
|
+
```ts
|
|
52
|
+
// vite.config.ts
|
|
53
|
+
import { defineConfig } from 'vite-plus';
|
|
54
|
+
|
|
55
|
+
export default defineConfig({
|
|
56
|
+
lint: {
|
|
57
|
+
jsPlugins: ['oxlint-plugin-secure-coding'],
|
|
58
|
+
rules: {
|
|
59
|
+
'secure-coding/no-fail-open-auth': 'error',
|
|
60
|
+
'secure-coding/no-hardcoded-credentials': 'error',
|
|
61
|
+
'secure-coding/no-homoglyph-identifiers': 'error',
|
|
62
|
+
'secure-coding/no-improper-sanitization': 'error',
|
|
63
|
+
'secure-coding/no-ldap-injection': 'error',
|
|
64
|
+
'secure-coding/no-log-injection': 'error',
|
|
65
|
+
'secure-coding/no-redos-vulnerable-regex': 'error',
|
|
66
|
+
'secure-coding/no-sql-injection': 'error',
|
|
67
|
+
'secure-coding/no-template-injection': 'error',
|
|
68
|
+
'secure-coding/no-unsafe-regex-construction': 'error',
|
|
69
|
+
'secure-coding/no-xpath-injection': 'error',
|
|
70
|
+
'secure-coding/no-xxe-injection': 'error',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
});
|
|
14
74
|
```
|
|
15
75
|
|
|
16
|
-
|
|
76
|
+
### oxlint
|
|
17
77
|
|
|
18
|
-
```
|
|
19
|
-
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"jsPlugins": ["oxlint-plugin-secure-coding"],
|
|
81
|
+
"rules": {
|
|
82
|
+
"secure-coding/no-fail-open-auth": "error",
|
|
83
|
+
"secure-coding/no-hardcoded-credentials": "error",
|
|
84
|
+
"secure-coding/no-homoglyph-identifiers": "error",
|
|
85
|
+
"secure-coding/no-improper-sanitization": "error",
|
|
86
|
+
"secure-coding/no-ldap-injection": "error",
|
|
87
|
+
"secure-coding/no-log-injection": "error",
|
|
88
|
+
"secure-coding/no-redos-vulnerable-regex": "error",
|
|
89
|
+
"secure-coding/no-sql-injection": "error",
|
|
90
|
+
"secure-coding/no-template-injection": "error",
|
|
91
|
+
"secure-coding/no-unsafe-regex-construction": "error",
|
|
92
|
+
"secure-coding/no-xpath-injection": "error",
|
|
93
|
+
"secure-coding/no-xxe-injection": "error"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
20
96
|
```
|
|
21
97
|
|
|
22
|
-
|
|
98
|
+
These are the rules the plugin recommends (💼 in the table below).
|
|
99
|
+
|
|
100
|
+
### ESLint
|
|
101
|
+
|
|
102
|
+
Install [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) instead. It has the same rules, plus presets for ESLint's flat config.
|
|
103
|
+
|
|
104
|
+
## 📦 Compatibility
|
|
105
|
+
|
|
106
|
+
| Package | Version |
|
|
107
|
+
| :------ | :--------------------------------------------------------------- |
|
|
108
|
+
| oxlint | verified on `1.90.0`: CI loads every rule ID through `jsPlugins` |
|
|
109
|
+
| Vite+ | `lint.jsPlugins` in `vite.config.ts` |
|
|
110
|
+
| Node.js | `>=18.0.0` |
|
|
111
|
+
|
|
112
|
+
## Rules
|
|
113
|
+
|
|
114
|
+
**Legend**
|
|
115
|
+
|
|
116
|
+
| Icon | Description |
|
|
117
|
+
| :--: | :------------------------------------------------------------------------ |
|
|
118
|
+
| 💼 | **Recommended**: Included in the recommended preset. |
|
|
119
|
+
| ⚠️ | **Warns**: Set to warn in recommended preset. |
|
|
120
|
+
| 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
|
|
121
|
+
| 💡 | **Suggestions**: Providing code suggestions in IDE. |
|
|
122
|
+
| 🚫 | **Deprecated**: This rule is deprecated. |
|
|
123
|
+
| 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
|
|
124
|
+
| 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
|
|
125
|
+
| 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
|
|
126
|
+
|
|
127
|
+
| Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
|
|
128
|
+
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------: | :------: | :--: | :----------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: |
|
|
129
|
+
| [detect-non-literal-regexp](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/detect-non-literal-regexp?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-400 | | | Detects RegExp(variable), which might allow an attacker to DOS your server with a long-running regular expr… | 🟢 | | | | | |
|
|
130
|
+
| [detect-object-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/detect-object-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-915 | | | Detects variable[key] as a left- or right-hand assignment operand (prototype pollution) | 🟡 | | | | | |
|
|
131
|
+
| [detect-weak-password-validation](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/detect-weak-password-validation?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-521 | A07:2021 | | Detects weak password length requirements (less than 8 characters) in validation code. | 🟢 | | | | | |
|
|
132
|
+
| [no-bidi-characters](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-bidi-characters?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-1007 | | | Disallows Unicode bidirectional control characters, which let source render differently than it compiles (T… | 🟢 | | | | | |
|
|
133
|
+
| [no-directive-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-directive-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-94 | | | Detects directive injection vulnerabilities in template systems | 🟢 | | | | | |
|
|
134
|
+
| [no-disabled-template-escaping](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-disabled-template-escaping?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-79 | A03:2021 | | Disallows assigning `false` to `escapeMarkup`, which disables template HTML auto-escaping (CWE-79) | 🟢 | | | | | |
|
|
135
|
+
| [no-electron-security-issues](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-electron-security-issues?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-16 | | | Detects Electron security vulnerabilities and insecure configurations | 🟢 | | | | | |
|
|
136
|
+
| [no-fail-open-auth](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-fail-open-auth?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-636 | A10:2025 | | Detects authentication and authorization checks whose catch block fails open | 🟢 | 💼 | | | | |
|
|
137
|
+
| [no-format-string-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-format-string-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-134 | | | Detects format string injection vulnerabilities | 🟢 | | | | | |
|
|
138
|
+
| [no-graphql-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-graphql-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-943 | | | Detects GraphQL injection vulnerabilities and DoS attacks | 🟢 | | ⚠️ | | | |
|
|
139
|
+
| [no-hardcoded-credentials](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-hardcoded-credentials?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-798 | | | Detects hardcoded passwords, API keys, tokens, and other sensitive credentials in source code | 🟢 | 💼 | | | | |
|
|
140
|
+
| [no-hardcoded-session-tokens](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-hardcoded-session-tokens?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-798 | | | This rule detects hardcoded JWT tokens (starting with eyJ), Bearer tokens, and session identifiers | 🟢 | | | | | |
|
|
141
|
+
| [no-homoglyph-identifiers](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-homoglyph-identifiers?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-1007 | A08:2021 | | Detects homoglyph identifiers and invisible characters that hide what the code actually does | 🟢 | 💼 | | | | |
|
|
142
|
+
| [no-improper-sanitization](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-improper-sanitization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-116 | | | Detects improper sanitization of user input | 🟢 | 💼 | | | | |
|
|
143
|
+
| [no-improper-type-validation](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-improper-type-validation?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-1287 | | | Detects improper type validation in user input handling | 🟢 | | | | | |
|
|
144
|
+
| [no-insecure-comparison](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-insecure-comparison?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-697 | | | Detects insecure comparison operators (==, !=) that can lead to type coercion vulnerabilities | 🟢 | | | | | |
|
|
145
|
+
| [no-invisible-characters](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-invisible-characters?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-1007 | A08:2021 | | Disallows invisible letters such as the Hangul fillers (U+3164, U+FFA0), which hide identifiers, values and… | 🟢 | | | | | |
|
|
146
|
+
| [no-ldap-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-ldap-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-90 | | | Detects LDAP injection vulnerabilities | 🟢 | 💼 | | | | |
|
|
147
|
+
| [no-log-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-log-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-117 | A09:2021 | | Detects request data concatenated into a log message, which lets an attacker forge log records | 🟢 | 💼 | | | | |
|
|
148
|
+
| [no-missing-authentication](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-missing-authentication?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-287 | | | CWE: [CWE-287](https://cwe.mitre.org/data/definitions/287.html) | 🟢 | | | | | |
|
|
149
|
+
| [no-pii-in-logs](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-pii-in-logs?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-359 | | | Prevent personally identifiable information (PII) — emails, SSNs, credit cards, phone numbers — from reachi… | 🟢 | | | | 💡 | |
|
|
150
|
+
| [no-privilege-escalation](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-privilege-escalation?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-269 | | | Detects potential privilege escalation vulnerabilities where user input is used to assign roles or permissi… | 🟢 | | ⚠️ | | | |
|
|
151
|
+
| [no-redos-vulnerable-regex](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-redos-vulnerable-regex?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-400 | | | ESLint Rule: no-redos-vulnerable-regex | 🟢 | 💼 | | | | |
|
|
152
|
+
| [no-sensitive-data-exposure](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-sensitive-data-exposure?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-532 | | | ESLint Rule: no-sensitive-data-exposure | 🟢 | | ⚠️ | | | |
|
|
153
|
+
| [no-sql-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-sql-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-89 | A03:2021 | | Detects SQL statements built from attacker-controlled input in files that import no SQL driver | 🟢 | 💼 | | | | |
|
|
154
|
+
| [no-template-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-template-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-94 | A03:2021 | | Disallow dynamic strings as template arguments to server-side template engines (CWE-94) | 🟢 | 💼 | | | | |
|
|
155
|
+
| [no-unchecked-loop-condition](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-unchecked-loop-condition?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-400 | | | Detects unchecked loop conditions that could cause DoS | 🟢 | | | | | |
|
|
156
|
+
| [no-unlimited-resource-allocation](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-unlimited-resource-allocation?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-770 | | | Detects unlimited resource allocation that could cause DoS | 🟢 | | ⚠️ | | | |
|
|
157
|
+
| [no-unsafe-deserialization](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-unsafe-deserialization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-502 | | | Detects unsafe deserialization of untrusted data | 🟢 | | ⚠️ | | | |
|
|
158
|
+
| [no-unsafe-regex-construction](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-unsafe-regex-construction?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-400 | | | ESLint Rule: no-unsafe-regex-construction with LLM-optimized suggestions and auto-fix capabilities | 🟢 | 💼 | | | | |
|
|
159
|
+
| [no-weak-password-recovery](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-weak-password-recovery?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-640 | | | ESLint Rule: no-weak-password-recovery with LLM-optimized suggestions and auto-fix capabilities | 🟢 | | ⚠️ | | | |
|
|
160
|
+
| [no-xpath-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-xpath-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-643 | | | Detects XPath injection vulnerabilities | 🟢 | 💼 | | | | |
|
|
161
|
+
| [no-xxe-injection](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/no-xxe-injection?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-611 | | | Detects XML External Entity (XXE) injection vulnerabilities | 🟢 | 💼 | | | | |
|
|
162
|
+
| [require-backend-authorization](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/require-backend-authorization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-602 | | | CWE: [CWE-602](https://cwe.mitre.org/data/definitions/602.html) | 🟢 | | | | | |
|
|
163
|
+
| [require-secure-defaults](https://eslint.interlace.tools/docs/security/plugin-secure-coding/rules/require-secure-defaults?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding) | CWE-1188 | | | CWE: [CWE-1188](https://cwe.mitre.org/data/definitions/1188.html) | 🟢 | | | | | |
|
|
164
|
+
|
|
165
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
|
|
166
|
+
|
|
167
|
+
## 🔗 Related ESLint Plugins
|
|
168
|
+
|
|
169
|
+
Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimized error messages:
|
|
170
|
+
|
|
171
|
+
**Security**
|
|
172
|
+
|
|
173
|
+
| Plugin | Downloads | Description |
|
|
174
|
+
| :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------- |
|
|
175
|
+
| [`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. |
|
|
176
|
+
| [`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. |
|
|
177
|
+
| [`eslint-plugin-drizzle-security`](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | [](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | Drizzle security. |
|
|
178
|
+
| [`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. |
|
|
179
|
+
| [`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. |
|
|
180
|
+
| [`eslint-plugin-jwt-security`](https://www.npmjs.com/package/eslint-plugin-jwt-security) | [](https://www.npmjs.com/package/eslint-plugin-jwt-security) | Token security. |
|
|
181
|
+
| [`eslint-plugin-knex-security`](https://www.npmjs.com/package/eslint-plugin-knex-security) | [](https://www.npmjs.com/package/eslint-plugin-knex-security) | Knex security. |
|
|
182
|
+
| [`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. |
|
|
183
|
+
| [`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. |
|
|
184
|
+
| [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | [](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | MongoDB injection. |
|
|
185
|
+
| [`eslint-plugin-mysql-security`](https://www.npmjs.com/package/eslint-plugin-mysql-security) | [](https://www.npmjs.com/package/eslint-plugin-mysql-security) | MySQL security. |
|
|
186
|
+
| [`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. |
|
|
187
|
+
| [`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. |
|
|
188
|
+
| [`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. |
|
|
189
|
+
| [`eslint-plugin-postgresql-security`](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | [](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | PostgreSQL security. |
|
|
190
|
+
| [`eslint-plugin-prisma-security`](https://www.npmjs.com/package/eslint-plugin-prisma-security) | [](https://www.npmjs.com/package/eslint-plugin-prisma-security) | Prisma security. |
|
|
191
|
+
| [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [](https://www.npmjs.com/package/eslint-plugin-secure-coding) | Injection prevention. |
|
|
192
|
+
| [`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. |
|
|
193
|
+
| [`eslint-plugin-sqlite-security`](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | [](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | SQLite security. |
|
|
194
|
+
| [`eslint-plugin-supabase-security`](https://www.npmjs.com/package/eslint-plugin-supabase-security) | [](https://www.npmjs.com/package/eslint-plugin-supabase-security) | Supabase security. |
|
|
195
|
+
| [`eslint-plugin-typeorm-security`](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | [](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | TypeORM security. |
|
|
196
|
+
| [`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. |
|
|
197
|
+
|
|
198
|
+
**Code quality**
|
|
199
|
+
|
|
200
|
+
| Plugin | Downloads | Description |
|
|
201
|
+
| :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------- |
|
|
202
|
+
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
203
|
+
| [`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. |
|
|
204
|
+
| [`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. |
|
|
205
|
+
| [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
|
|
206
|
+
| [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
|
|
207
|
+
| [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
|
|
208
|
+
| [`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. |
|
|
209
|
+
| [`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. |
|
|
210
|
+
| [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
|
|
211
|
+
|
|
212
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
|
|
213
|
+
|
|
214
|
+
## ⭐ Support & follow
|
|
215
|
+
|
|
216
|
+
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.
|
|
217
|
+
|
|
218
|
+
[](https://github.com/ofri-peretz/eslint)
|
|
219
|
+
|
|
220
|
+
## 📄 License
|
|
221
|
+
|
|
222
|
+
MIT © [Ofri Peretz](https://github.com/ofri-peretz)
|
|
223
|
+
|
|
224
|
+
<p align="center">
|
|
225
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-secure-coding?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding"><img src="https://eslint.interlace.tools/images/og-secure-coding.png" alt="ESLint Interlace Plugin" width="100%" /></a>
|
|
226
|
+
</p>
|
|
227
|
+
|
|
228
|
+
<p align="center">
|
|
229
|
+
<a href="https://eslint.interlace.tools/docs/security/plugin-secure-coding?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding" 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>
|
|
230
|
+
</p>
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports
|
|
1
|
+
module.exports=require("eslint-plugin-secure-coding/oxlint");
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-secure-coding",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "5.5.1",
|
|
4
|
+
"description": "The secure-coding rules for oxlint and Vite+. Same rules and rule IDs as eslint-plugin-secure-coding.",
|
|
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",
|
|
@@ -46,18 +47,28 @@
|
|
|
46
47
|
"typescript",
|
|
47
48
|
"auto-fix"
|
|
48
49
|
],
|
|
49
|
-
"
|
|
50
|
-
"eslint-plugin-secure-coding": "5.4.17"
|
|
51
|
-
},
|
|
52
|
-
"license": "MIT",
|
|
50
|
+
"homepage": "https://eslint.interlace.tools/docs/security/plugin-secure-coding?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-secure-coding",
|
|
53
51
|
"repository": {
|
|
54
52
|
"type": "git",
|
|
55
53
|
"url": "git+https://github.com/ofri-peretz/eslint.git",
|
|
56
54
|
"directory": "packages/oxlint-plugin-secure-coding"
|
|
57
55
|
},
|
|
58
|
-
"homepage": "https://eslint.interlace.tools/docs/security/plugin-secure-coding?utm_source=npm&utm_medium=referral&utm_campaign=eslint-plugin-secure-coding",
|
|
59
56
|
"bugs": {
|
|
60
57
|
"url": "https://github.com/ofri-peretz/eslint/issues"
|
|
61
58
|
},
|
|
62
|
-
"author": "Ofri Peretz <ofriperetzdev@gmail.com>"
|
|
59
|
+
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
60
|
+
"license": "MIT",
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=18.0.0"
|
|
63
|
+
},
|
|
64
|
+
"funding": {
|
|
65
|
+
"type": "github",
|
|
66
|
+
"url": "git+https://github.com/ofri-peretz/eslint.git"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"eslint-plugin-secure-coding": "5.5.1"
|
|
73
|
+
}
|
|
63
74
|
}
|