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 CHANGED
@@ -42,7 +42,7 @@ var import_eslint_plugin_security = __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.1.0",
45
+ version: "1.2.0",
46
46
  private: false,
47
47
  description: "ESLint plugin providing SDL-focused security and platform hardening rules.",
48
48
  keywords: [
@@ -150,7 +150,6 @@ var package_default = {
150
150
  "contrib:generate": "all-contributors generate",
151
151
  coverage: "vitest run --coverage",
152
152
  "docs:api": "npm run --workspace docs/docusaurus docs:api",
153
- "docs:api:local": "npm run --workspace docs/docusaurus docs:api:local",
154
153
  "docs:build": "npm run --workspace docs/docusaurus build",
155
154
  "docs:build:local": "npm run --workspace docs/docusaurus build:local",
156
155
  "docs:check-links": "npm run docs:api && node ./scripts/check-doc-links.mjs",
@@ -159,7 +158,6 @@ var package_default = {
159
158
  "docs:toc": "remark docs --use remark-toc --output",
160
159
  "docs:typecheck": "npm run --workspace docs/docusaurus typecheck",
161
160
  "docs:typedoc": "npm run --workspace docs/docusaurus docs:api",
162
- "docs:typedoc:local": "npm run --workspace docs/docusaurus docs:api:local",
163
161
  "docs:validate-links": "remark docs --use remark-validate-links --frail",
164
162
  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",
165
163
  lint: "cross-env NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache",
@@ -226,6 +224,8 @@ var package_default = {
226
224
  "sync:readme-rules-table": "node scripts/sync-readme-rules-table.mjs",
227
225
  "sync:readme-rules-table:update": "npm run build && npm run sync:readme-rules-table:write",
228
226
  "sync:readme-rules-table:write": "node scripts/sync-readme-rules-table.mjs --write",
227
+ "sync:rules:check": "npm run sync:readme-rules-table && npm run sync:presets-rules-matrix",
228
+ "sync:rules:write": "npm run sync:readme-rules-table:write && npm run sync:presets-rules-matrix",
229
229
  pretest: "npm run build",
230
230
  test: "vitest run",
231
231
  "test:autofix:fixtures": "cross-env SDL_AUTOFIX_SMOKE=1 vitest run test/rules-sdl.test.ts",
@@ -251,52 +251,44 @@ var package_default = {
251
251
  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",
252
252
  "typecheck:all": "npm run typecheck",
253
253
  "types:update": "typesync",
254
- "update-deps": "npx ncu -i --install never && npm run sync:peer-eslint-range && npm install --force",
254
+ "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",
255
255
  "verify:readme-rules-table": "npm run build && npm run sync:readme-rules-table"
256
256
  },
257
257
  overrides: {
258
258
  "jsonc-eslint-parser": "$jsonc-eslint-parser"
259
259
  },
260
260
  dependencies: {
261
- "@typescript-eslint/parser": "^8.59.0",
262
- "@typescript-eslint/type-utils": "^8.59.0",
263
- "@typescript-eslint/utils": "^8.59.0",
261
+ "@types/eslint-plugin-security": "^3.0.1",
262
+ "@typescript-eslint/eslint-plugin": "^8.59.1",
263
+ "@typescript-eslint/parser": "^8.59.1",
264
+ "@typescript-eslint/type-utils": "^8.59.1",
265
+ "@typescript-eslint/utils": "^8.59.1",
266
+ "eslint-plugin-n": "^17.24.0",
264
267
  "ts-extras": "^1.0.0",
265
268
  "type-fest": "^5.6.0"
266
269
  },
267
270
  devDependencies: {
268
271
  "@arethetypeswrong/cli": "^0.18.2",
269
272
  "@csstools/stylelint-formatter-github": "^2.0.0",
270
- "@docusaurus/eslint-plugin": "^3.10.0",
271
273
  "@double-great/remark-lint-alt-text": "^1.1.1",
272
274
  "@double-great/stylelint-a11y": "^3.4.10",
273
- "@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
274
- "@eslint-react/eslint-plugin": "^4.2.3",
275
275
  "@eslint/compat": "^2.0.5",
276
- "@eslint/config-helpers": "^0.5.5",
277
276
  "@eslint/config-inspector": "^2.0.0",
278
- "@eslint/css": "^1.1.0",
279
- "@eslint/js": "^10.0.1",
280
- "@eslint/json": "^1.2.0",
281
- "@eslint/markdown": "^8.0.1",
282
- "@html-eslint/eslint-plugin": "^0.59.0",
283
- "@html-eslint/parser": "^0.59.0",
284
- "@microsoft/eslint-plugin-sdl": "^1.1.0",
285
277
  "@microsoft/tsdoc-config": "^0.18.1",
286
- "@secretlint/secretlint-rule-anthropic": "^12.2.0",
287
- "@secretlint/secretlint-rule-aws": "^12.2.0",
288
- "@secretlint/secretlint-rule-database-connection-string": "^12.2.0",
289
- "@secretlint/secretlint-rule-gcp": "^12.2.0",
290
- "@secretlint/secretlint-rule-github": "^12.2.0",
291
- "@secretlint/secretlint-rule-no-dotenv": "^12.2.0",
292
- "@secretlint/secretlint-rule-no-homedir": "^12.2.0",
293
- "@secretlint/secretlint-rule-npm": "^12.2.0",
294
- "@secretlint/secretlint-rule-openai": "^12.2.0",
295
- "@secretlint/secretlint-rule-pattern": "^12.2.0",
296
- "@secretlint/secretlint-rule-preset-recommend": "^12.2.0",
297
- "@secretlint/secretlint-rule-privatekey": "^12.2.0",
298
- "@secretlint/secretlint-rule-secp256k1-privatekey": "^12.2.0",
299
- "@secretlint/types": "^12.2.0",
278
+ "@secretlint/secretlint-rule-anthropic": "^12.3.1",
279
+ "@secretlint/secretlint-rule-aws": "^12.3.1",
280
+ "@secretlint/secretlint-rule-database-connection-string": "^12.3.1",
281
+ "@secretlint/secretlint-rule-gcp": "^12.3.1",
282
+ "@secretlint/secretlint-rule-github": "^12.3.1",
283
+ "@secretlint/secretlint-rule-no-dotenv": "^12.3.1",
284
+ "@secretlint/secretlint-rule-no-homedir": "^12.3.1",
285
+ "@secretlint/secretlint-rule-npm": "^12.3.1",
286
+ "@secretlint/secretlint-rule-openai": "^12.3.1",
287
+ "@secretlint/secretlint-rule-pattern": "^12.3.1",
288
+ "@secretlint/secretlint-rule-preset-recommend": "^12.3.1",
289
+ "@secretlint/secretlint-rule-privatekey": "^12.3.1",
290
+ "@secretlint/secretlint-rule-secp256k1-privatekey": "^12.3.1",
291
+ "@secretlint/types": "^12.3.1",
300
292
  "@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
301
293
  "@stryker-ignorer/console-all": "^0.3.2",
302
294
  "@stryker-mutator/core": "^9.6.1",
@@ -304,10 +296,7 @@ var package_default = {
304
296
  "@stryker-mutator/vitest-runner": "^9.6.1",
305
297
  "@stylelint-types/stylelint-order": "^7.0.1",
306
298
  "@stylelint-types/stylelint-stylistic": "^5.0.0",
307
- "@stylistic/eslint-plugin": "^5.10.0",
308
299
  "@stylistic/stylelint-plugin": "^5.1.0",
309
- "@types/eslint-plugin-jsx-a11y": "^6.10.1",
310
- "@types/eslint-plugin-security": "^3.0.1",
311
300
  "@types/htmlhint": "^1.1.5",
312
301
  "@types/madge": "^5.0.3",
313
302
  "@types/node": "^25.6.0",
@@ -319,101 +308,34 @@ var package_default = {
319
308
  "@types/postcss-normalize": "^9.0.4",
320
309
  "@types/postcss-reporter": "^7.0.5",
321
310
  "@types/sloc": "^0.2.3",
322
- "@typescript-eslint/eslint-plugin": "^8.59.0",
323
- "@typescript-eslint/rule-tester": "^8.59.0",
324
- "@typpi/eslint-plugin-vite": "^1.0.13",
311
+ "@typescript-eslint/rule-tester": "^8.59.1",
325
312
  "@vitest/coverage-v8": "^4.1.5",
326
- "@vitest/eslint-plugin": "^1.6.16",
327
313
  "@vitest/ui": "^4.1.5",
328
314
  actionlint: "^2.0.6",
329
315
  "all-contributors-cli": "^6.26.1",
330
316
  "cognitive-complexity-ts": "^0.8.1",
331
- commitlint: "^20.5.0",
317
+ commitlint: "^20.5.3",
332
318
  "commitlint-config-gitmoji": "^2.3.1",
333
319
  "cross-env": "^10.1.0",
334
320
  depcheck: "^1.4.7",
335
321
  "detect-secrets": "^1.0.6",
336
322
  eslint: "^10.2.1",
337
- "eslint-config-flat-gitignore": "^2.3.0",
338
- "eslint-config-prettier": "^10.1.8",
323
+ "eslint-config-nick2bad4u": "^1.0.4",
339
324
  "eslint-formatter-unix": "^9.0.1",
340
- "eslint-import-resolver-typescript": "^4.4.4",
341
- "eslint-plugin-array-func": "^5.1.1",
342
- "eslint-plugin-canonical": "^5.1.3",
343
- "eslint-plugin-case-police": "^2.2.1",
344
- "eslint-plugin-comment-length": "^2.3.1",
345
- "eslint-plugin-copilot": "^1.0.8",
346
- "eslint-plugin-css-modules": "^2.12.0",
347
- "eslint-plugin-de-morgan": "^2.1.1",
348
- "eslint-plugin-depend": "^1.5.0",
349
- "eslint-plugin-docusaurus-2": "^0.2.0",
350
- "eslint-plugin-eslint-plugin": "^7.3.2",
351
- "eslint-plugin-etc": "^2.0.3",
352
- "eslint-plugin-etc-misc": "^1.0.8",
353
- "eslint-plugin-file-progress-2": "^5.0.1",
354
- "eslint-plugin-github-actions-2": "^1.1.0",
355
- "eslint-plugin-html": "^8.1.4",
356
- "eslint-plugin-immutable-2": "^1.0.10",
357
- "eslint-plugin-import-x": "^4.16.2",
358
- "eslint-plugin-jsdoc": "^62.9.0",
359
- "eslint-plugin-jsonc": "^3.1.2",
360
- "eslint-plugin-jsx-a11y": "^6.10.2",
361
- "eslint-plugin-listeners": "^1.5.1",
362
- "eslint-plugin-loadable-imports": "^1.0.1",
363
- "eslint-plugin-math": "^0.13.1",
364
- "eslint-plugin-module-interop": "^0.3.1",
365
- "eslint-plugin-n": "^17.24.0",
366
- "eslint-plugin-nitpick": "^0.12.0",
367
- "eslint-plugin-no-barrel-files": "^1.3.1",
368
- "eslint-plugin-no-explicit-type-exports": "^0.12.1",
369
- "eslint-plugin-no-function-declare-after-return": "^1.1.0",
370
- "eslint-plugin-no-lookahead-lookbehind-regexp": "^0.4.0",
371
- "eslint-plugin-no-only-tests": "^3.3.0",
372
- "eslint-plugin-no-secrets": "^2.3.3",
373
- "eslint-plugin-no-unsanitized": "^4.1.5",
374
- "eslint-plugin-no-use-extend-native": "^0.7.2",
375
- "eslint-plugin-node-dependencies": "^2.2.0",
376
- "eslint-plugin-package-json": "^0.91.1",
377
- "eslint-plugin-perfectionist": "^5.9.0",
378
- "eslint-plugin-prefer-arrow": "^1.2.3",
379
- "eslint-plugin-prettier": "^5.5.5",
380
- "eslint-plugin-promise": "^7.2.1",
381
- "eslint-plugin-redos": "^4.5.0",
382
- "eslint-plugin-regexp": "^3.1.0",
383
- "eslint-plugin-require-jsdoc": "^1.0.4",
384
- "eslint-plugin-security": "^4.0.0",
385
- "eslint-plugin-sonarjs": "^4.0.3",
386
- "eslint-plugin-sort-class-members": "^1.22.1",
387
- "eslint-plugin-stylelint-2": "^1.1.0",
388
- "eslint-plugin-testing-library": "^7.16.2",
389
- "eslint-plugin-toml": "^1.3.1",
390
- "eslint-plugin-total-functions": "^7.1.0",
391
- "eslint-plugin-tsdoc": "^0.5.2",
392
- "eslint-plugin-tsdoc-require-2": "^1.1.0",
393
- "eslint-plugin-typedoc": "^1.2.0",
394
- "eslint-plugin-typefest": "^1.2.4",
395
- "eslint-plugin-undefined-css-classes": "^0.1.5",
396
- "eslint-plugin-unicorn": "^64.0.0",
397
- "eslint-plugin-unused-imports": "^4.4.1",
398
- "eslint-plugin-write-good-comments": "^0.2.0",
399
- "eslint-plugin-write-good-comments-2": "^1.0.6",
400
- "eslint-plugin-yml": "^3.3.1",
401
325
  "eslint-rule-benchmark": "^0.8.0",
402
326
  "fast-check": "^4.7.0",
403
- "git-cliff": "^2.12.0",
327
+ "git-cliff": "^2.13.1",
404
328
  "gitleaks-secret-scanner": "^2.1.1",
405
- globals: "^17.5.0",
406
329
  htmlhint: "^1.9.2",
407
330
  jscpd: "^4.0.9",
408
- "jsonc-eslint-parser": "^3.1.0",
409
- knip: "^6.6.1",
331
+ knip: "^6.9.0",
410
332
  leasot: "^14.4.0",
411
333
  madge: "^8.0.0",
412
334
  "markdown-link-check": "^3.14.2",
413
- "npm-check-updates": "^21.0.3",
414
- "npm-package-json-lint": "^10.2.1",
335
+ "npm-check-updates": "^22.0.1",
336
+ "npm-package-json-lint": "^10.3.0",
415
337
  picocolors: "^1.1.1",
416
- postcss: "^8.5.10",
338
+ postcss: "^8.5.13",
417
339
  "postcss-assets": "^6.0.0",
418
340
  "postcss-clamp": "^4.1.0",
419
341
  "postcss-combine-duplicated-selectors": "^10.0.3",
@@ -442,7 +364,6 @@ var package_default = {
442
364
  "prettier-plugin-sort-json": "^4.2.0",
443
365
  "prettier-plugin-toml": "^2.0.6",
444
366
  publint: "^0.3.18",
445
- "recheck-jar": "^4.5.0",
446
367
  "rehype-katex": "^7.0.1",
447
368
  remark: "^15.0.1",
448
369
  "remark-cli": "^12.0.1",
@@ -550,10 +471,10 @@ var package_default = {
550
471
  "remark-validate-links": "^13.1.0",
551
472
  "remark-wiki-link": "^2.0.1",
552
473
  rimraf: "^6.1.3",
553
- secretlint: "^12.2.0",
474
+ secretlint: "^12.3.1",
554
475
  sloc: "^0.3.2",
555
476
  "sort-package-json": "^3.6.1",
556
- stylelint: "^17.8.0",
477
+ stylelint: "^17.9.1",
557
478
  "stylelint-actions-formatters": "^16.3.1",
558
479
  "stylelint-checkstyle-formatter": "^0.1.2",
559
480
  "stylelint-codeframe-formatter": "^1.2.0",
@@ -568,7 +489,7 @@ var package_default = {
568
489
  "stylelint-config-tailwindcss": "^1.0.1",
569
490
  "stylelint-declaration-block-no-ignored-properties": "^3.0.0",
570
491
  "stylelint-declaration-strict-value": "^1.11.1",
571
- "stylelint-define-config": "^17.8.0",
492
+ "stylelint-define-config": "^17.9.0",
572
493
  "stylelint-find-new-rules": "^6.0.0",
573
494
  "stylelint-formatter-gitlab-code-quality-report": "^1.1.0",
574
495
  "stylelint-formatter-pretty": "^4.0.1",
@@ -576,7 +497,7 @@ var package_default = {
576
497
  "stylelint-group-selectors": "^1.0.10",
577
498
  "stylelint-high-performance-animation": "^2.0.0",
578
499
  "stylelint-media-use-custom-media": "^4.1.0",
579
- "stylelint-no-browser-hacks": "^2.0.0",
500
+ "stylelint-no-browser-hacks": "^2.0.2",
580
501
  "stylelint-no-indistinguishable-colors": "^2.3.1",
581
502
  "stylelint-no-restricted-syntax": "^2.2.1",
582
503
  "stylelint-no-unresolved-module": "^2.5.2",
@@ -592,17 +513,15 @@ var package_default = {
592
513
  "stylelint-selector-bem-pattern": "^4.0.1",
593
514
  "stylelint-use-nesting": "^6.0.2",
594
515
  "stylelint-value-no-unknown-custom-properties": "^6.1.1",
595
- "toml-eslint-parser": "^1.0.3",
596
516
  "ts-unused-exports": "^11.0.1",
597
517
  typedoc: "^0.28.19",
598
518
  typescript: "^6.0.3",
599
- "typescript-eslint": "^8.59.0",
519
+ "typescript-eslint": "^8.59.1",
600
520
  typesync: "^0.14.3",
601
521
  vfile: "^6.0.3",
602
- vite: "^8.0.9",
522
+ vite: "^8.0.10",
603
523
  "vite-tsconfig-paths": "^6.1.1",
604
524
  vitest: "^4.1.5",
605
- "yaml-eslint-parser": "^2.0.0",
606
525
  "yamllint-js": "^0.2.4"
607
526
  },
608
527
  peerDependencies: {