eslint-plugin-typeorm-security 1.1.0 → 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 +3 -2
- package/package.json +2 -2
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -71,7 +71,9 @@ npm install oxlint-plugin-typeorm-security --save-dev
|
|
|
71
71
|
// vite.config.ts
|
|
72
72
|
import { defineConfig } from 'vite-plus';
|
|
73
73
|
|
|
74
|
-
export default defineConfig({
|
|
74
|
+
export default defineConfig({
|
|
75
|
+
lint: { jsPlugins: ['oxlint-plugin-typeorm-security'] },
|
|
76
|
+
});
|
|
75
77
|
```
|
|
76
78
|
|
|
77
79
|
**ESLint:**
|
|
@@ -191,7 +193,6 @@ Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimize
|
|
|
191
193
|
|
|
192
194
|
| Plugin | Downloads | Description |
|
|
193
195
|
| :--- | :---: | :--- |
|
|
194
|
-
| [`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. |
|
|
195
196
|
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
196
197
|
| [`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. |
|
|
197
198
|
| [`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-typeorm-security",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "ESLint plugin for typeorm — detects SQL injection in raw queries 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",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@interlace/eslint-devkit": "^1.21.
|
|
82
|
+
"@interlace/eslint-devkit": "^1.21.3"
|
|
83
83
|
},
|
|
84
84
|
"funding": {
|
|
85
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-typeorm-security",exports.rules);exports.plugin={meta:{name:"eslint-plugin-typeorm-security",version:"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-typeorm-security",exports.rules);exports.plugin={meta:{name:"eslint-plugin-typeorm-security",version:"1.1.1"},rules:exports.rules};exports.configs={flagship:{plugins:{"typeorm-security":exports.plugin},rules:{"typeorm-security/no-unsafe-query":"error"}},recommended:{plugins:{"typeorm-security":exports.plugin},rules:{"typeorm-security/no-unsafe-query":"error"}},strict:{plugins:{"typeorm-security":exports.plugin},rules:Object.fromEntries(Object.keys(exports.rules).map(ruleName=>[`typeorm-security/${ruleName}`,"error"]))}};exports.default=exports.plugin;
|