eslint-plugin-drizzle-security 0.2.0 → 0.2.2
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 +6 -2
- package/package.json +2 -3
- package/src/index.js +4 -5
package/README.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://eslint.interlace.tools/?utm_source=github&utm_medium=referral&utm_campaign=eslint-plugin-drizzle-security" target="blank"><img src="https://eslint.interlace.tools/
|
|
2
|
+
<a href="https://eslint.interlace.tools/?utm_source=github&utm_medium=referral&utm_campaign=eslint-plugin-drizzle-security" target="blank"><img src="https://eslint.interlace.tools/logos/interlace.svg" alt="Interlace" height="90" /></a>
|
|
3
3
|
|
|
4
|
-
<a href="https://
|
|
4
|
+
<a href="https://orm.drizzle.team" target="_blank"><img src="https://eslint.interlace.tools/logos/drizzle.svg" alt="Drizzle ORM" height="90" /></a>
|
|
5
|
+
|
|
6
|
+
<a href="https://oxc.rs" target="_blank"><img src="https://eslint.interlace.tools/logos/oxlint.svg" alt="oxlint" height="90" /></a>
|
|
7
|
+
|
|
8
|
+
<a href="https://eslint.org" target="_blank"><img src="https://eslint.interlace.tools/logos/eslint.svg" alt="ESLint" height="90" /></a>
|
|
5
9
|
</p>
|
|
6
10
|
|
|
7
11
|
<p align="center">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-drizzle-security",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "ESLint plugin for drizzle-orm — detects SQL injection in raw queries built with string concatenation or template literals.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -76,8 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"
|
|
80
|
-
"@interlace/eslint-devkit": "^1.7.0"
|
|
79
|
+
"@interlace/eslint-devkit": "^1.8.0"
|
|
81
80
|
},
|
|
82
81
|
"funding": {
|
|
83
82
|
"type": "github",
|
package/src/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configs = exports.plugin = exports.rules = void 0;
|
|
4
|
-
const no_unsafe_query_1 = require("./rules/no-unsafe-query");
|
|
5
|
-
const no_unscoped_mutation_1 = require("./rules/no-unscoped-mutation");
|
|
6
4
|
exports.rules = {
|
|
7
|
-
'no-unsafe-query'
|
|
8
|
-
'no-unscoped-mutation'
|
|
5
|
+
get 'no-unsafe-query'() { return require("./rules/no-unsafe-query").noUnsafeQuery; },
|
|
6
|
+
get 'no-unscoped-mutation'() { return require("./rules/no-unscoped-mutation").noUnscopedMutation; },
|
|
7
|
+
|
|
9
8
|
};
|
|
10
9
|
exports.plugin = {
|
|
11
10
|
meta: {
|
|
12
11
|
name: 'eslint-plugin-drizzle-security',
|
|
13
|
-
version: '0.2.
|
|
12
|
+
version: '0.2.2',
|
|
14
13
|
},
|
|
15
14
|
rules: exports.rules,
|
|
16
15
|
};
|