eslint-plugin-sdl-2 1.1.0 → 1.2.0
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/dist/plugin.cjs +38 -119
- package/dist/plugin.cjs.map +2 -2
- package/package.json +38 -119
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "eslint-plugin-sdl-2",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "ESLint plugin providing SDL-focused security and platform hardening rules.",
|
|
7
7
|
"keywords": [
|
|
@@ -109,7 +109,6 @@
|
|
|
109
109
|
"contrib:generate": "all-contributors generate",
|
|
110
110
|
"coverage": "vitest run --coverage",
|
|
111
111
|
"docs:api": "npm run --workspace docs/docusaurus docs:api",
|
|
112
|
-
"docs:api:local": "npm run --workspace docs/docusaurus docs:api:local",
|
|
113
112
|
"docs:build": "npm run --workspace docs/docusaurus build",
|
|
114
113
|
"docs:build:local": "npm run --workspace docs/docusaurus build:local",
|
|
115
114
|
"docs:check-links": "npm run docs:api && node ./scripts/check-doc-links.mjs",
|
|
@@ -118,7 +117,6 @@
|
|
|
118
117
|
"docs:toc": "remark docs --use remark-toc --output",
|
|
119
118
|
"docs:typecheck": "npm run --workspace docs/docusaurus typecheck",
|
|
120
119
|
"docs:typedoc": "npm run --workspace docs/docusaurus docs:api",
|
|
121
|
-
"docs:typedoc:local": "npm run --workspace docs/docusaurus docs:api:local",
|
|
122
120
|
"docs:validate-links": "remark docs --use remark-validate-links --frail",
|
|
123
121
|
"knip": "cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_NO_WARNINGS=1 npx knip -c knip.config.ts --include-libs --cache --cache-location .cache/knip --tsConfig tsconfig.json",
|
|
124
122
|
"lint": "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache",
|
|
@@ -185,6 +183,8 @@
|
|
|
185
183
|
"sync:readme-rules-table": "node scripts/sync-readme-rules-table.mjs",
|
|
186
184
|
"sync:readme-rules-table:update": "npm run build && npm run sync:readme-rules-table:write",
|
|
187
185
|
"sync:readme-rules-table:write": "node scripts/sync-readme-rules-table.mjs --write",
|
|
186
|
+
"sync:rules:check": "npm run sync:readme-rules-table && npm run sync:presets-rules-matrix",
|
|
187
|
+
"sync:rules:write": "npm run sync:readme-rules-table:write && npm run sync:presets-rules-matrix",
|
|
188
188
|
"pretest": "npm run build",
|
|
189
189
|
"test": "vitest run",
|
|
190
190
|
"test:autofix:fixtures": "cross-env SDL_AUTOFIX_SMOKE=1 vitest run test/rules-sdl.test.ts",
|
|
@@ -210,52 +210,44 @@
|
|
|
210
210
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.build.json --noEmit && tsc -p tsconfig.eslint.json --noEmit && tsc -p tsconfig.js.json --noEmit && npm run --workspace docs/docusaurus typecheck",
|
|
211
211
|
"typecheck:all": "npm run typecheck",
|
|
212
212
|
"types:update": "typesync",
|
|
213
|
-
"update-deps": "npx ncu -i --install never && npm run sync:peer-eslint-range && npm
|
|
213
|
+
"update-deps": "npx ncu -i --install never && npm update --workspaces --force && npm install --force && npm run sync:peer-eslint-range && npm run sync:node-version-files && npm run sync:rules:write",
|
|
214
214
|
"verify:readme-rules-table": "npm run build && npm run sync:readme-rules-table"
|
|
215
215
|
},
|
|
216
216
|
"overrides": {
|
|
217
217
|
"jsonc-eslint-parser": "$jsonc-eslint-parser"
|
|
218
218
|
},
|
|
219
219
|
"dependencies": {
|
|
220
|
-
"@
|
|
221
|
-
"@typescript-eslint/
|
|
222
|
-
"@typescript-eslint/
|
|
220
|
+
"@types/eslint-plugin-security": "^3.0.1",
|
|
221
|
+
"@typescript-eslint/eslint-plugin": "^8.59.1",
|
|
222
|
+
"@typescript-eslint/parser": "^8.59.1",
|
|
223
|
+
"@typescript-eslint/type-utils": "^8.59.1",
|
|
224
|
+
"@typescript-eslint/utils": "^8.59.1",
|
|
225
|
+
"eslint-plugin-n": "^17.24.0",
|
|
223
226
|
"ts-extras": "^1.0.0",
|
|
224
227
|
"type-fest": "^5.6.0"
|
|
225
228
|
},
|
|
226
229
|
"devDependencies": {
|
|
227
230
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
228
231
|
"@csstools/stylelint-formatter-github": "^2.0.0",
|
|
229
|
-
"@docusaurus/eslint-plugin": "^3.10.0",
|
|
230
232
|
"@double-great/remark-lint-alt-text": "^1.1.1",
|
|
231
233
|
"@double-great/stylelint-a11y": "^3.4.10",
|
|
232
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
233
|
-
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
234
234
|
"@eslint/compat": "^2.0.5",
|
|
235
|
-
"@eslint/config-helpers": "^0.5.5",
|
|
236
235
|
"@eslint/config-inspector": "^2.0.0",
|
|
237
|
-
"@eslint/css": "^1.1.0",
|
|
238
|
-
"@eslint/js": "^10.0.1",
|
|
239
|
-
"@eslint/json": "^1.2.0",
|
|
240
|
-
"@eslint/markdown": "^8.0.1",
|
|
241
|
-
"@html-eslint/eslint-plugin": "^0.59.0",
|
|
242
|
-
"@html-eslint/parser": "^0.59.0",
|
|
243
|
-
"@microsoft/eslint-plugin-sdl": "^1.1.0",
|
|
244
236
|
"@microsoft/tsdoc-config": "^0.18.1",
|
|
245
|
-
"@secretlint/secretlint-rule-anthropic": "^12.
|
|
246
|
-
"@secretlint/secretlint-rule-aws": "^12.
|
|
247
|
-
"@secretlint/secretlint-rule-database-connection-string": "^12.
|
|
248
|
-
"@secretlint/secretlint-rule-gcp": "^12.
|
|
249
|
-
"@secretlint/secretlint-rule-github": "^12.
|
|
250
|
-
"@secretlint/secretlint-rule-no-dotenv": "^12.
|
|
251
|
-
"@secretlint/secretlint-rule-no-homedir": "^12.
|
|
252
|
-
"@secretlint/secretlint-rule-npm": "^12.
|
|
253
|
-
"@secretlint/secretlint-rule-openai": "^12.
|
|
254
|
-
"@secretlint/secretlint-rule-pattern": "^12.
|
|
255
|
-
"@secretlint/secretlint-rule-preset-recommend": "^12.
|
|
256
|
-
"@secretlint/secretlint-rule-privatekey": "^12.
|
|
257
|
-
"@secretlint/secretlint-rule-secp256k1-privatekey": "^12.
|
|
258
|
-
"@secretlint/types": "^12.
|
|
237
|
+
"@secretlint/secretlint-rule-anthropic": "^12.3.1",
|
|
238
|
+
"@secretlint/secretlint-rule-aws": "^12.3.1",
|
|
239
|
+
"@secretlint/secretlint-rule-database-connection-string": "^12.3.1",
|
|
240
|
+
"@secretlint/secretlint-rule-gcp": "^12.3.1",
|
|
241
|
+
"@secretlint/secretlint-rule-github": "^12.3.1",
|
|
242
|
+
"@secretlint/secretlint-rule-no-dotenv": "^12.3.1",
|
|
243
|
+
"@secretlint/secretlint-rule-no-homedir": "^12.3.1",
|
|
244
|
+
"@secretlint/secretlint-rule-npm": "^12.3.1",
|
|
245
|
+
"@secretlint/secretlint-rule-openai": "^12.3.1",
|
|
246
|
+
"@secretlint/secretlint-rule-pattern": "^12.3.1",
|
|
247
|
+
"@secretlint/secretlint-rule-preset-recommend": "^12.3.1",
|
|
248
|
+
"@secretlint/secretlint-rule-privatekey": "^12.3.1",
|
|
249
|
+
"@secretlint/secretlint-rule-secp256k1-privatekey": "^12.3.1",
|
|
250
|
+
"@secretlint/types": "^12.3.1",
|
|
259
251
|
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
|
|
260
252
|
"@stryker-ignorer/console-all": "^0.3.2",
|
|
261
253
|
"@stryker-mutator/core": "^9.6.1",
|
|
@@ -263,10 +255,7 @@
|
|
|
263
255
|
"@stryker-mutator/vitest-runner": "^9.6.1",
|
|
264
256
|
"@stylelint-types/stylelint-order": "^7.0.1",
|
|
265
257
|
"@stylelint-types/stylelint-stylistic": "^5.0.0",
|
|
266
|
-
"@stylistic/eslint-plugin": "^5.10.0",
|
|
267
258
|
"@stylistic/stylelint-plugin": "^5.1.0",
|
|
268
|
-
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
269
|
-
"@types/eslint-plugin-security": "^3.0.1",
|
|
270
259
|
"@types/htmlhint": "^1.1.5",
|
|
271
260
|
"@types/madge": "^5.0.3",
|
|
272
261
|
"@types/node": "^25.6.0",
|
|
@@ -278,101 +267,34 @@
|
|
|
278
267
|
"@types/postcss-normalize": "^9.0.4",
|
|
279
268
|
"@types/postcss-reporter": "^7.0.5",
|
|
280
269
|
"@types/sloc": "^0.2.3",
|
|
281
|
-
"@typescript-eslint/
|
|
282
|
-
"@typescript-eslint/rule-tester": "^8.59.0",
|
|
283
|
-
"@typpi/eslint-plugin-vite": "^1.0.13",
|
|
270
|
+
"@typescript-eslint/rule-tester": "^8.59.1",
|
|
284
271
|
"@vitest/coverage-v8": "^4.1.5",
|
|
285
|
-
"@vitest/eslint-plugin": "^1.6.16",
|
|
286
272
|
"@vitest/ui": "^4.1.5",
|
|
287
273
|
"actionlint": "^2.0.6",
|
|
288
274
|
"all-contributors-cli": "^6.26.1",
|
|
289
275
|
"cognitive-complexity-ts": "^0.8.1",
|
|
290
|
-
"commitlint": "^20.5.
|
|
276
|
+
"commitlint": "^20.5.3",
|
|
291
277
|
"commitlint-config-gitmoji": "^2.3.1",
|
|
292
278
|
"cross-env": "^10.1.0",
|
|
293
279
|
"depcheck": "^1.4.7",
|
|
294
280
|
"detect-secrets": "^1.0.6",
|
|
295
281
|
"eslint": "^10.2.1",
|
|
296
|
-
"eslint-config-
|
|
297
|
-
"eslint-config-prettier": "^10.1.8",
|
|
282
|
+
"eslint-config-nick2bad4u": "^1.0.4",
|
|
298
283
|
"eslint-formatter-unix": "^9.0.1",
|
|
299
|
-
"eslint-import-resolver-typescript": "^4.4.4",
|
|
300
|
-
"eslint-plugin-array-func": "^5.1.1",
|
|
301
|
-
"eslint-plugin-canonical": "^5.1.3",
|
|
302
|
-
"eslint-plugin-case-police": "^2.2.1",
|
|
303
|
-
"eslint-plugin-comment-length": "^2.3.1",
|
|
304
|
-
"eslint-plugin-copilot": "^1.0.8",
|
|
305
|
-
"eslint-plugin-css-modules": "^2.12.0",
|
|
306
|
-
"eslint-plugin-de-morgan": "^2.1.1",
|
|
307
|
-
"eslint-plugin-depend": "^1.5.0",
|
|
308
|
-
"eslint-plugin-docusaurus-2": "^0.2.0",
|
|
309
|
-
"eslint-plugin-eslint-plugin": "^7.3.2",
|
|
310
|
-
"eslint-plugin-etc": "^2.0.3",
|
|
311
|
-
"eslint-plugin-etc-misc": "^1.0.8",
|
|
312
|
-
"eslint-plugin-file-progress-2": "^5.0.1",
|
|
313
|
-
"eslint-plugin-github-actions-2": "^1.1.0",
|
|
314
|
-
"eslint-plugin-html": "^8.1.4",
|
|
315
|
-
"eslint-plugin-immutable-2": "^1.0.10",
|
|
316
|
-
"eslint-plugin-import-x": "^4.16.2",
|
|
317
|
-
"eslint-plugin-jsdoc": "^62.9.0",
|
|
318
|
-
"eslint-plugin-jsonc": "^3.1.2",
|
|
319
|
-
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
320
|
-
"eslint-plugin-listeners": "^1.5.1",
|
|
321
|
-
"eslint-plugin-loadable-imports": "^1.0.1",
|
|
322
|
-
"eslint-plugin-math": "^0.13.1",
|
|
323
|
-
"eslint-plugin-module-interop": "^0.3.1",
|
|
324
|
-
"eslint-plugin-n": "^17.24.0",
|
|
325
|
-
"eslint-plugin-nitpick": "^0.12.0",
|
|
326
|
-
"eslint-plugin-no-barrel-files": "^1.3.1",
|
|
327
|
-
"eslint-plugin-no-explicit-type-exports": "^0.12.1",
|
|
328
|
-
"eslint-plugin-no-function-declare-after-return": "^1.1.0",
|
|
329
|
-
"eslint-plugin-no-lookahead-lookbehind-regexp": "^0.4.0",
|
|
330
|
-
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
331
|
-
"eslint-plugin-no-secrets": "^2.3.3",
|
|
332
|
-
"eslint-plugin-no-unsanitized": "^4.1.5",
|
|
333
|
-
"eslint-plugin-no-use-extend-native": "^0.7.2",
|
|
334
|
-
"eslint-plugin-node-dependencies": "^2.2.0",
|
|
335
|
-
"eslint-plugin-package-json": "^0.91.1",
|
|
336
|
-
"eslint-plugin-perfectionist": "^5.9.0",
|
|
337
|
-
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
338
|
-
"eslint-plugin-prettier": "^5.5.5",
|
|
339
|
-
"eslint-plugin-promise": "^7.2.1",
|
|
340
|
-
"eslint-plugin-redos": "^4.5.0",
|
|
341
|
-
"eslint-plugin-regexp": "^3.1.0",
|
|
342
|
-
"eslint-plugin-require-jsdoc": "^1.0.4",
|
|
343
|
-
"eslint-plugin-security": "^4.0.0",
|
|
344
|
-
"eslint-plugin-sonarjs": "^4.0.3",
|
|
345
|
-
"eslint-plugin-sort-class-members": "^1.22.1",
|
|
346
|
-
"eslint-plugin-stylelint-2": "^1.1.0",
|
|
347
|
-
"eslint-plugin-testing-library": "^7.16.2",
|
|
348
|
-
"eslint-plugin-toml": "^1.3.1",
|
|
349
|
-
"eslint-plugin-total-functions": "^7.1.0",
|
|
350
|
-
"eslint-plugin-tsdoc": "^0.5.2",
|
|
351
|
-
"eslint-plugin-tsdoc-require-2": "^1.1.0",
|
|
352
|
-
"eslint-plugin-typedoc": "^1.2.0",
|
|
353
|
-
"eslint-plugin-typefest": "^1.2.4",
|
|
354
|
-
"eslint-plugin-undefined-css-classes": "^0.1.5",
|
|
355
|
-
"eslint-plugin-unicorn": "^64.0.0",
|
|
356
|
-
"eslint-plugin-unused-imports": "^4.4.1",
|
|
357
|
-
"eslint-plugin-write-good-comments": "^0.2.0",
|
|
358
|
-
"eslint-plugin-write-good-comments-2": "^1.0.6",
|
|
359
|
-
"eslint-plugin-yml": "^3.3.1",
|
|
360
284
|
"eslint-rule-benchmark": "^0.8.0",
|
|
361
285
|
"fast-check": "^4.7.0",
|
|
362
|
-
"git-cliff": "^2.
|
|
286
|
+
"git-cliff": "^2.13.1",
|
|
363
287
|
"gitleaks-secret-scanner": "^2.1.1",
|
|
364
|
-
"globals": "^17.5.0",
|
|
365
288
|
"htmlhint": "^1.9.2",
|
|
366
289
|
"jscpd": "^4.0.9",
|
|
367
|
-
"
|
|
368
|
-
"knip": "^6.6.1",
|
|
290
|
+
"knip": "^6.9.0",
|
|
369
291
|
"leasot": "^14.4.0",
|
|
370
292
|
"madge": "^8.0.0",
|
|
371
293
|
"markdown-link-check": "^3.14.2",
|
|
372
|
-
"npm-check-updates": "^
|
|
373
|
-
"npm-package-json-lint": "^10.
|
|
294
|
+
"npm-check-updates": "^22.0.1",
|
|
295
|
+
"npm-package-json-lint": "^10.3.0",
|
|
374
296
|
"picocolors": "^1.1.1",
|
|
375
|
-
"postcss": "^8.5.
|
|
297
|
+
"postcss": "^8.5.13",
|
|
376
298
|
"postcss-assets": "^6.0.0",
|
|
377
299
|
"postcss-clamp": "^4.1.0",
|
|
378
300
|
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
@@ -401,7 +323,6 @@
|
|
|
401
323
|
"prettier-plugin-sort-json": "^4.2.0",
|
|
402
324
|
"prettier-plugin-toml": "^2.0.6",
|
|
403
325
|
"publint": "^0.3.18",
|
|
404
|
-
"recheck-jar": "^4.5.0",
|
|
405
326
|
"rehype-katex": "^7.0.1",
|
|
406
327
|
"remark": "^15.0.1",
|
|
407
328
|
"remark-cli": "^12.0.1",
|
|
@@ -509,10 +430,10 @@
|
|
|
509
430
|
"remark-validate-links": "^13.1.0",
|
|
510
431
|
"remark-wiki-link": "^2.0.1",
|
|
511
432
|
"rimraf": "^6.1.3",
|
|
512
|
-
"secretlint": "^12.
|
|
433
|
+
"secretlint": "^12.3.1",
|
|
513
434
|
"sloc": "^0.3.2",
|
|
514
435
|
"sort-package-json": "^3.6.1",
|
|
515
|
-
"stylelint": "^17.
|
|
436
|
+
"stylelint": "^17.9.1",
|
|
516
437
|
"stylelint-actions-formatters": "^16.3.1",
|
|
517
438
|
"stylelint-checkstyle-formatter": "^0.1.2",
|
|
518
439
|
"stylelint-codeframe-formatter": "^1.2.0",
|
|
@@ -527,7 +448,7 @@
|
|
|
527
448
|
"stylelint-config-tailwindcss": "^1.0.1",
|
|
528
449
|
"stylelint-declaration-block-no-ignored-properties": "^3.0.0",
|
|
529
450
|
"stylelint-declaration-strict-value": "^1.11.1",
|
|
530
|
-
"stylelint-define-config": "^17.
|
|
451
|
+
"stylelint-define-config": "^17.9.0",
|
|
531
452
|
"stylelint-find-new-rules": "^6.0.0",
|
|
532
453
|
"stylelint-formatter-gitlab-code-quality-report": "^1.1.0",
|
|
533
454
|
"stylelint-formatter-pretty": "^4.0.1",
|
|
@@ -535,7 +456,7 @@
|
|
|
535
456
|
"stylelint-group-selectors": "^1.0.10",
|
|
536
457
|
"stylelint-high-performance-animation": "^2.0.0",
|
|
537
458
|
"stylelint-media-use-custom-media": "^4.1.0",
|
|
538
|
-
"stylelint-no-browser-hacks": "^2.0.
|
|
459
|
+
"stylelint-no-browser-hacks": "^2.0.2",
|
|
539
460
|
"stylelint-no-indistinguishable-colors": "^2.3.1",
|
|
540
461
|
"stylelint-no-restricted-syntax": "^2.2.1",
|
|
541
462
|
"stylelint-no-unresolved-module": "^2.5.2",
|
|
@@ -551,17 +472,15 @@
|
|
|
551
472
|
"stylelint-selector-bem-pattern": "^4.0.1",
|
|
552
473
|
"stylelint-use-nesting": "^6.0.2",
|
|
553
474
|
"stylelint-value-no-unknown-custom-properties": "^6.1.1",
|
|
554
|
-
"toml-eslint-parser": "^1.0.3",
|
|
555
475
|
"ts-unused-exports": "^11.0.1",
|
|
556
476
|
"typedoc": "^0.28.19",
|
|
557
477
|
"typescript": "^6.0.3",
|
|
558
|
-
"typescript-eslint": "^8.59.
|
|
478
|
+
"typescript-eslint": "^8.59.1",
|
|
559
479
|
"typesync": "^0.14.3",
|
|
560
480
|
"vfile": "^6.0.3",
|
|
561
|
-
"vite": "^8.0.
|
|
481
|
+
"vite": "^8.0.10",
|
|
562
482
|
"vite-tsconfig-paths": "^6.1.1",
|
|
563
483
|
"vitest": "^4.1.5",
|
|
564
|
-
"yaml-eslint-parser": "^2.0.0",
|
|
565
484
|
"yamllint-js": "^0.2.4"
|
|
566
485
|
},
|
|
567
486
|
"peerDependencies": {
|