eslint-plugin-sdl-2 1.2.6 → 1.2.7
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 +2 -0
- package/dist/plugin.cjs +4 -3
- package/dist/plugin.cjs.map +2 -2
- package/dist/rules/no-electron-insecure-certificate-verify-proc.d.ts.map +1 -1
- package/dist/rules/no-electron-insecure-certificate-verify-proc.js.map +1 -1
- package/dist/rules/no-electron-insecure-permission-request-handler.d.ts.map +1 -1
- package/dist/rules/no-electron-insecure-permission-request-handler.js.map +1 -1
- package/dist/rules/no-electron-permission-check-handler-allow-all.d.ts.map +1 -1
- package/dist/rules/no-electron-permission-check-handler-allow-all.js.map +1 -1
- package/dist/rules/no-electron-unchecked-ipc-sender.d.ts.map +1 -1
- package/dist/rules/no-electron-unchecked-ipc-sender.js.map +1 -1
- package/dist/rules/no-electron-unrestricted-navigation.d.ts.map +1 -1
- package/dist/rules/no-electron-unrestricted-navigation.js.map +1 -1
- package/dist/rules/no-message-event-without-origin-check.d.ts.map +1 -1
- package/dist/rules/no-message-event-without-origin-check.js.map +1 -1
- package/dist/rules/no-node-tls-check-server-identity-bypass.d.ts.map +1 -1
- package/dist/rules/no-node-tls-check-server-identity-bypass.js.map +1 -1
- package/dist/rules/no-node-vm-run-in-context.d.ts.map +1 -1
- package/dist/rules/no-node-vm-run-in-context.js.map +1 -1
- package/dist/rules/no-trusted-types-policy-pass-through.d.ts.map +1 -1
- package/dist/rules/no-trusted-types-policy-pass-through.js.map +1 -1
- package/docs/rules/presets/angular.md +2 -0
- package/docs/rules/presets/angularjs.md +2 -0
- package/docs/rules/presets/common.md +2 -0
- package/docs/rules/presets/electron.md +2 -0
- package/docs/rules/presets/node.md +2 -0
- package/docs/rules/presets/react.md +2 -0
- package/docs/rules/presets/recommended.md +2 -0
- package/docs/rules/presets/required.md +2 -0
- package/docs/rules/presets/typescript.md +2 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -48,6 +48,7 @@ export default [...sdl.configs.recommended];
|
|
|
48
48
|
- [⭐](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/recommended) — [`sdl.configs.recommended`](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/recommended)
|
|
49
49
|
- `⚛️ React` provides JSX parser context and intentionally has no SDL rule rows in this matrix.
|
|
50
50
|
|
|
51
|
+
<!-- prettier-ignore-start -->
|
|
51
52
|
| Rule | Fix | Preset key |
|
|
52
53
|
| --- | :-: | :-- |
|
|
53
54
|
| [`no-angular-bypass-sanitizer`](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/no-angular-bypass-sanitizer) | — | [🅰️](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/angular) [✅](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/required) [⭐](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/recommended) |
|
|
@@ -121,6 +122,7 @@ export default [...sdl.configs.recommended];
|
|
|
121
122
|
| [`no-winjs-html-unsafe`](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/no-winjs-html-unsafe) | — | [🟢](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/common) [✅](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/required) [⭐](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/recommended) |
|
|
122
123
|
| [`no-worker-blob-url`](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/no-worker-blob-url) | — | [🟢](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/common) [✅](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/required) [⭐](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/recommended) |
|
|
123
124
|
| [`no-worker-data-url`](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/no-worker-data-url) | — | [🟢](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/common) [✅](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/required) [⭐](https://nick2bad4u.github.io/eslint-plugin-SDL-2/docs/rules/presets/recommended) |
|
|
125
|
+
<!-- prettier-ignore-end -->
|
|
124
126
|
|
|
125
127
|
## Development
|
|
126
128
|
|
package/dist/plugin.cjs
CHANGED
|
@@ -42,7 +42,7 @@ var securityPluginModule = __toESM(require("eslint-plugin-security"), 1);
|
|
|
42
42
|
var package_default = {
|
|
43
43
|
$schema: "https://www.schemastore.org/package.json",
|
|
44
44
|
name: "eslint-plugin-sdl-2",
|
|
45
|
-
version: "1.2.
|
|
45
|
+
version: "1.2.7",
|
|
46
46
|
private: false,
|
|
47
47
|
description: "ESLint plugin providing SDL-focused security and platform hardening rules.",
|
|
48
48
|
keywords: [
|
|
@@ -297,7 +297,7 @@ var package_default = {
|
|
|
297
297
|
"cross-env": "^10.1.0",
|
|
298
298
|
"detect-secrets": "^1.0.6",
|
|
299
299
|
eslint: "^10.5.0",
|
|
300
|
-
"eslint-config-nick2bad4u": "^2.0.
|
|
300
|
+
"eslint-config-nick2bad4u": "^2.0.4",
|
|
301
301
|
"eslint-formatter-unix": "^9.0.1",
|
|
302
302
|
"eslint-rule-benchmark": "^0.8.0",
|
|
303
303
|
"fast-check": "^4.8.0",
|
|
@@ -325,6 +325,7 @@ var package_default = {
|
|
|
325
325
|
"secretlint-config-nick2bad4u": "^1.1.0",
|
|
326
326
|
sloc: "^0.3.2",
|
|
327
327
|
"sort-package-json": "^4.0.0",
|
|
328
|
+
storybook: "^10.4.6",
|
|
328
329
|
stylelint: "^17.13.0",
|
|
329
330
|
"stylelint-config-nick2bad4u": "^1.0.19",
|
|
330
331
|
"ts-unused-exports": "^11.0.1",
|
|
@@ -345,7 +346,7 @@ var package_default = {
|
|
|
345
346
|
eslint: "^9.0.0 || ^10.5.0",
|
|
346
347
|
typescript: ">=5.0.0"
|
|
347
348
|
},
|
|
348
|
-
packageManager: "npm@11.
|
|
349
|
+
packageManager: "npm@11.18.0",
|
|
349
350
|
engines: {
|
|
350
351
|
node: ">=20.19.0"
|
|
351
352
|
},
|