Description
oxlint-plugin-openai-security is the oxlint and Vite+ name for eslint-plugin-openai-security. It carries the same rules under the same IDs (openai-security/<rule>), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
Covered natively by oxlint
None of these 3 rules has an oxlint built-in equivalent. Every rule here is new to oxlint.
- Why — a linter nobody reads protects nothing. We would rather miss a finding
than spend your attention on one that was never real.
- How — evidence, not names. A rule fires on what the code does, resolved
through the AST and ESLint's own scope analysis.
- What — every finding carries its fix, in prose for a human and as structured
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
That trade costs recall, and we measure it:
methodology
· results
· a false positive is a bug.
Getting Started
npm install oxlint-plugin-openai-security --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';
export default defineConfig({
lint: {
jsPlugins: ['oxlint-plugin-openai-security'],
rules: {
'openai-security/no-browser-api-key-exposure': 'error',
},
},
});
oxlint
{
"jsPlugins": ["oxlint-plugin-openai-security"],
"rules": {
"openai-security/no-browser-api-key-exposure": "error"
}
}
That enables one rule as an example; add the ones you want from the table below.
ESLint
Install eslint-plugin-openai-security instead. It has the same rules, plus presets for ESLint's flat config.
📦 Compatibility
| Package |
Version |
| oxlint |
verified on 1.94.0: CI loads every rule ID through jsPlugins |
| Vite+ |
lint.jsPlugins in vite.config.ts |
| Node.js |
>=22.13.0 |
Rules
Legend
| Icon |
Description |
| 💼 |
Recommended: Included in the recommended preset. |
| ⚠️ |
Warns: Set to warn in recommended preset. |
| 🔧 |
Auto-fixable: Automatically fixable by the --fix CLI option. |
| 💡 |
Suggestions: Providing code suggestions in IDE. |
| 🚫 |
Deprecated: This rule is deprecated. |
| 🟢 |
Type-unaware: AST-only, runs in oxlint JS-plugin tier. |
| 🟡 |
Type-aware (refining): pure-AST primary path; types refine precision. |
| 🟠 |
Type-aware (graceful): requires TS program; silent without it. |
🔗 Related ESLint Plugins
Part of the Interlace ESLint ecosystem — AI-native rules with LLM-optimized error messages:
Security
Code quality
Support