eslint-plugin-sequelize-security 1.0.1 → 1.1.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 +26 -1
- package/package.json +5 -2
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -54,10 +54,36 @@ That trade costs recall, and we measure it:
|
|
|
54
54
|
|
|
55
55
|
- To check out the [guide](https://eslint.interlace.tools/docs/security/plugin-sequelize-security?utm_source=github&utm_medium=referral&utm_campaign=eslint-plugin-sequelize-security), visit [eslint.interlace.tools](https://eslint.interlace.tools/?utm_source=github&utm_medium=referral&utm_campaign=eslint-plugin-sequelize-security). 📚
|
|
56
56
|
|
|
57
|
+
<!-- AUTO-GENERATED:INSTALL:START - Do not edit manually -->
|
|
58
|
+
|
|
59
|
+
**oxlint / Vite+** — the same rules under the same `sequelize-security/<rule>` IDs, without ESLint:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install oxlint-plugin-sequelize-security --save-dev
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```jsonc
|
|
66
|
+
// .oxlintrc.json
|
|
67
|
+
{ "jsPlugins": ["oxlint-plugin-sequelize-security"] }
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
// vite.config.ts
|
|
72
|
+
import { defineConfig } from 'vite-plus';
|
|
73
|
+
|
|
74
|
+
export default defineConfig({
|
|
75
|
+
lint: { jsPlugins: ['oxlint-plugin-sequelize-security'] },
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**ESLint:**
|
|
80
|
+
|
|
57
81
|
```bash
|
|
58
82
|
npm install eslint-plugin-sequelize-security --save-dev
|
|
59
83
|
```
|
|
60
84
|
|
|
85
|
+
<!-- AUTO-GENERATED:INSTALL:END -->
|
|
86
|
+
|
|
61
87
|
## ⚙️ Configuration Presets
|
|
62
88
|
| Preset | Description |
|
|
63
89
|
| :------------ | :------------------------------------------------------- |
|
|
@@ -169,7 +195,6 @@ Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimize
|
|
|
169
195
|
|
|
170
196
|
| Plugin | Downloads | Description |
|
|
171
197
|
| :--- | :---: | :--- |
|
|
172
|
-
| [`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. |
|
|
173
198
|
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
174
199
|
| [`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. |
|
|
175
200
|
| [`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. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-sequelize-security",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "ESLint plugin for the Sequelize ORM — detects SQL injection in raw sequelize.query() and Sequelize.literal() calls built with string concatenation or template literals, connection configuration that disables TLS or certificate validation, and hardcoded database credentials.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -71,12 +71,15 @@
|
|
|
71
71
|
"sequelize": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
72
72
|
},
|
|
73
73
|
"peerDependenciesMeta": {
|
|
74
|
+
"eslint": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
74
77
|
"sequelize": {
|
|
75
78
|
"optional": true
|
|
76
79
|
}
|
|
77
80
|
},
|
|
78
81
|
"dependencies": {
|
|
79
|
-
"@interlace/eslint-devkit": "^1.
|
|
82
|
+
"@interlace/eslint-devkit": "^1.21.3"
|
|
80
83
|
},
|
|
81
84
|
"funding": {
|
|
82
85
|
"type": "github",
|
package/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.configs=exports.plugin=exports.rules=void 0;const eslint_devkit_1=require("@interlace/eslint-devkit");exports.rules={get"no-hardcoded-credentials"(){return require("./rules/no-hardcoded-credentials").noHardcodedCredentials},get"no-mass-assignment"(){return require("./rules/no-mass-assignment").noMassAssignment},get"no-unsafe-query"(){return require("./rules/no-unsafe-query").noUnsafeQuery},get"require-tls"(){return require("./rules/require-tls").requireTls}};(0,eslint_devkit_1.withCanonicalDocsUrls)("plugin-sequelize-security",exports.rules);exports.plugin={meta:{name:"eslint-plugin-sequelize-security",version:"1.
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.configs=exports.plugin=exports.rules=void 0;const eslint_devkit_1=require("@interlace/eslint-devkit");exports.rules={get"no-hardcoded-credentials"(){return require("./rules/no-hardcoded-credentials").noHardcodedCredentials},get"no-mass-assignment"(){return require("./rules/no-mass-assignment").noMassAssignment},get"no-unsafe-query"(){return require("./rules/no-unsafe-query").noUnsafeQuery},get"require-tls"(){return require("./rules/require-tls").requireTls}};(0,eslint_devkit_1.withCanonicalDocsUrls)("plugin-sequelize-security",exports.rules);exports.plugin={meta:{name:"eslint-plugin-sequelize-security",version:"1.1.1"},rules:exports.rules};exports.configs={flagship:{plugins:{"sequelize-security":exports.plugin},rules:{"sequelize-security/no-unsafe-query":"error"}},recommended:{plugins:{"sequelize-security":exports.plugin},rules:{"sequelize-security/no-unsafe-query":"error"}},strict:{plugins:{"sequelize-security":exports.plugin},rules:Object.fromEntries(Object.keys(exports.rules).map(ruleName=>[`sequelize-security/${ruleName}`,"error"]))}};exports.default=exports.plugin;
|