eslint-plugin-sequelize-security 0.3.3 → 0.3.4

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 CHANGED
@@ -18,6 +18,7 @@
18
18
  <a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
19
19
  <a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-plugin-sequelize-security" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-sequelize-security" alt="Codecov" /></a>
20
20
  <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>
21
+ <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
22
  </p>
22
23
 
23
24
  > ⭐ 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.
@@ -36,6 +37,45 @@ Being Sequelize-specific is what makes the rule precise. It knows the safe conve
36
37
 
37
38
  **Interlace** fosters **strength through integration**. Instead of stacking isolated rules, we **interlace** security directly into your workflow to create a resilient fabric of code. We believe tools should **guide rather than gatekeep**, providing educational feedback that strengthens the developer with every interaction.
38
39
 
40
+ <!-- AUTO-GENERATED:DOCTRINE:START - Do not edit manually -->
41
+
42
+ ## Why these rules are quiet
43
+
44
+ **Noise creates apathy, and apathy is not a security posture.** A linter that reports
45
+ a thousand things a week gets switched off in a month, and the real finding goes with
46
+ it. So every rule here is built to be worth reading: we would rather miss a finding
47
+ than spend your attention on one that was never real.
48
+
49
+ That is a trade, and it is made deliberately. It costs recall, and we measure what it
50
+ costs rather than assuming it is free.
51
+
52
+ ## How the rules decide
53
+
54
+ **Evidence, not names.** A rule fires on what the code *does*, resolved through the
55
+ AST and ESLint's own scope analysis — not on an identifier that happens to contain
56
+ `query`, a method called `setItem`, or a file whose path contains `key`. Every one of
57
+ those was a real false positive in this ecosystem, found by reading our own output on
58
+ open-source projects and fixed with a test that fails on the unfixed rule.
59
+
60
+ Where a rule has known false-positive shapes, its page carries a **Not a finding**
61
+ section: what it deliberately stays quiet on, and what to check first when it fires
62
+ and you disagree.
63
+
64
+ ## What you get
65
+
66
+ The rules below. Security rules carry a CWE mapping and, where one is assigned, a
67
+ CVSS score; every rule carries a fix on its message — in prose for a human and as
68
+ structured JSON for an agent. Install it, enable
69
+ `recommended`, and read the findings. If one of them is wrong,
70
+ [open an issue](https://github.com/ofri-peretz/eslint/issues) — a false positive is a
71
+ bug here, not a tuning exercise for you.
72
+
73
+ How that is measured, on which projects, and where it falls short:
74
+ [benchmark methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
75
+ and [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md).
76
+
77
+ <!-- AUTO-GENERATED:DOCTRINE:END -->
78
+
39
79
  ## Getting Started
40
80
 
41
81
  - 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). 📚
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-sequelize-security",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
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",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "dependencies": {
79
- "@interlace/eslint-devkit": "^1.12.0"
79
+ "@interlace/eslint-devkit": "^1.17.2"
80
80
  },
81
81
  "funding": {
82
82
  "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;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}};exports.plugin={meta:{name:"eslint-plugin-sequelize-security",version:"0.3.3"},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;
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:"0.3.4"},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;