eslint-plugin-sequelize-security 2.0.3 → 2.0.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.
Files changed (3) hide show
  1. package/README.md +24 -38
  2. package/package.json +1 -1
  3. package/src/index.js +1 -1
package/README.md CHANGED
@@ -22,7 +22,28 @@
22
22
  <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>
23
23
  </p>
24
24
 
25
- > ⭐ 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.
25
+ ## Getting Started
26
+
27
+ - 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). 📚
28
+
29
+ <!-- AUTO-GENERATED:INSTALL:START - Do not edit manually -->
30
+
31
+ ```bash
32
+ npm install --save-dev eslint eslint-plugin-sequelize-security
33
+ ```
34
+
35
+ ```js
36
+ // eslint.config.mjs
37
+ import { configs } from 'eslint-plugin-sequelize-security';
38
+
39
+ export default [configs.recommended];
40
+ ```
41
+
42
+ `recommended` is the preset to start with. The others are listed under Configuration Presets below.
43
+
44
+ Using oxlint or Vite+? Install `oxlint-plugin-sequelize-security`: the same rules under the same `sequelize-security/<rule>` IDs, without ESLint. Its [page](https://www.npmjs.com/package/oxlint-plugin-sequelize-security) has the setup.
45
+
46
+ <!-- AUTO-GENERATED:INSTALL:END -->
26
47
 
27
48
  ## Description
28
49
 
@@ -50,40 +71,6 @@ That trade costs recall, and we measure it:
50
71
 
51
72
  <!-- AUTO-GENERATED:DOCTRINE:END -->
52
73
 
53
- ## Getting Started
54
-
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
-
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
-
81
- ```bash
82
- npm install eslint-plugin-sequelize-security --save-dev
83
- ```
84
-
85
- <!-- AUTO-GENERATED:INSTALL:END -->
86
-
87
74
  ## ⚙️ Configuration Presets
88
75
  | Preset | Description |
89
76
  | :------------ | :------------------------------------------------------- |
@@ -208,11 +195,10 @@ Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimize
208
195
  <!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
209
196
 
210
197
  <!-- INTERLACE:STAR_CTA:START -->
211
- ## ⭐ Support & follow
212
198
 
213
- 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.
199
+ ## Support
214
200
 
215
- [![GitHub stars](https://img.shields.io/github/stars/ofri-peretz/eslint?style=social)](https://github.com/ofri-peretz/eslint)
201
+ Found a false positive? [Open an issue](https://github.com/ofri-peretz/eslint/issues): that is a bug. If the plugin helped, a star on [ofri-peretz/eslint](https://github.com/ofri-peretz/eslint) helps others find it.
216
202
 
217
203
  <!-- INTERLACE:STAR_CTA:END -->
218
204
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-sequelize-security",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "ESLint Sequelize security rules — 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
  "sideEffects": false,
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:"2.0.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:"2.0.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;