eslint-plugin-sdl-2 1.2.0 → 1.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/dist/plugin.cjs +58 -242
- package/dist/plugin.cjs.map +2 -2
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +28 -22
- package/dist/plugin.js.map +1 -1
- package/package.json +30 -220
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.2.
|
|
45
|
+
version: "1.2.2",
|
|
46
46
|
private: false,
|
|
47
47
|
description: "ESLint plugin providing SDL-focused security and platform hardening rules.",
|
|
48
48
|
keywords: [
|
|
@@ -119,7 +119,7 @@ var package_default = {
|
|
|
119
119
|
build: "tsc -p tsconfig.build.json && npm run build:types:cjs && npm run build:cjs",
|
|
120
120
|
"build:cjs": 'esbuild dist/plugin.js --bundle --format=cjs --platform=node --packages=external --sourcemap --outfile=dist/plugin.cjs --footer:js="module.exports = module.exports.default;"',
|
|
121
121
|
"build:clean": `node -e "require('node:fs').rmSync('dist',{recursive:true,force:true})"`,
|
|
122
|
-
"build:eslint-inspector": 'npx -y @eslint/config-inspector@
|
|
122
|
+
"build:eslint-inspector": 'npx -y @eslint/config-inspector@latest build --outDir "docs/docusaurus/static/eslint-inspector" --base "/eslint-plugin-SDL-2/eslint-inspector/"',
|
|
123
123
|
"build:eslint-inspector:local": "npx @eslint/config-inspector",
|
|
124
124
|
"build:stylelint-inspector": 'npx -y stylelint-config-inspector@latest build --outDir "docs/docusaurus/static/stylelint-inspector" --base "/eslint-plugin-SDL-2/stylelint-inspector/"',
|
|
125
125
|
"build:stylelint-inspector:local": "npx stylelint-config-inspector@latest",
|
|
@@ -203,7 +203,7 @@ var package_default = {
|
|
|
203
203
|
"lint:quiet": 'cross-env ESLINT_PROGRESS=nofile NODE_OPTIONS=--max_old_space_size=16384 eslint --cache --cache-strategy content --cache-location .cache/.eslintcache && echo "Eslint done!"',
|
|
204
204
|
"lint:remark": 'remark --rc-path .remarkrc.mjs --silently-ignore --ignore-path .remarkignore --frail "*.{md,mdx}" "docs/**/*.{md,mdx}" --quiet',
|
|
205
205
|
"lint:remark:fix": 'prettier --log-level warn --ignore-path prettierignore.remark --cache --cache-location=.cache/.prettier-cache --cache-strategy=content --no-error-on-unmatched-pattern --write "*.{md,mdx}" "docs/**/*.{md,mdx}" && npm run remark:fix',
|
|
206
|
-
"lint:secretlint": 'secretlint --secretlintrc .secretlintrc.
|
|
206
|
+
"lint:secretlint": 'secretlint --secretlintrc .secretlintrc.cjs --secretlintignore .secretlintignore "./*" ".vscode/**" "assets/**" "src/**" "electron/**" "shared/**" "config/**" "scripts/**" "playwright/**" "storybook/**" ".storybook" "tests/**" "benchmarks/**" ".devin/**" "public/**" ".github/**" "docs/Architecture/**" "docs/*" "docs/assets/**" "docs/Guides/**" "docs/Testing/**" "docs/TSDoc/**" "docs/docusaurus/src/**" "docs/docusaurus/static/**" "docs/docusaurus/blog/**" "docs/docusaurus/docs/**" "docs/docusaurus/docs/*"',
|
|
207
207
|
"lint:secrets": "detect-secrets scan",
|
|
208
208
|
"lint:unused": "npm run knip -- --include unlisted,unresolved,duplicates",
|
|
209
209
|
"lint:unused-deps": "depcheck --ignores='@types/*,@testing-library/*,@vitest/*'",
|
|
@@ -259,11 +259,11 @@ var package_default = {
|
|
|
259
259
|
},
|
|
260
260
|
dependencies: {
|
|
261
261
|
"@types/eslint-plugin-security": "^3.0.1",
|
|
262
|
-
"@typescript-eslint/eslint-plugin": "^8.59.
|
|
263
|
-
"@typescript-eslint/parser": "^8.59.
|
|
264
|
-
"@typescript-eslint/type-utils": "^8.59.
|
|
265
|
-
"@typescript-eslint/utils": "^8.59.
|
|
266
|
-
"eslint-plugin-n": "^
|
|
262
|
+
"@typescript-eslint/eslint-plugin": "^8.59.2",
|
|
263
|
+
"@typescript-eslint/parser": "^8.59.2",
|
|
264
|
+
"@typescript-eslint/type-utils": "^8.59.2",
|
|
265
|
+
"@typescript-eslint/utils": "^8.59.2",
|
|
266
|
+
"eslint-plugin-n": "^18.0.1",
|
|
267
267
|
"ts-extras": "^1.0.0",
|
|
268
268
|
"type-fest": "^5.6.0"
|
|
269
269
|
},
|
|
@@ -271,264 +271,74 @@ var package_default = {
|
|
|
271
271
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
272
272
|
"@csstools/stylelint-formatter-github": "^2.0.0",
|
|
273
273
|
"@double-great/remark-lint-alt-text": "^1.1.1",
|
|
274
|
-
"@
|
|
275
|
-
"@eslint/
|
|
276
|
-
"@eslint/config-inspector": "^2.0.0",
|
|
274
|
+
"@eslint/compat": "^2.1.0",
|
|
275
|
+
"@eslint/config-inspector": "^2.0.1",
|
|
277
276
|
"@microsoft/tsdoc-config": "^0.18.1",
|
|
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",
|
|
292
|
-
"@softonus/prettier-plugin-duplicate-remover": "^1.1.2",
|
|
293
277
|
"@stryker-ignorer/console-all": "^0.3.2",
|
|
294
278
|
"@stryker-mutator/core": "^9.6.1",
|
|
295
279
|
"@stryker-mutator/typescript-checker": "^9.6.1",
|
|
296
280
|
"@stryker-mutator/vitest-runner": "^9.6.1",
|
|
297
|
-
"@stylelint-types/stylelint-order": "^7.0.1",
|
|
298
|
-
"@stylelint-types/stylelint-stylistic": "^5.0.0",
|
|
299
|
-
"@stylistic/stylelint-plugin": "^5.1.0",
|
|
300
281
|
"@types/htmlhint": "^1.1.5",
|
|
301
282
|
"@types/madge": "^5.0.3",
|
|
302
|
-
"@types/node": "^25.6.
|
|
303
|
-
"@types/postcss-clamp": "^4.1.3",
|
|
304
|
-
"@types/postcss-flexbugs-fixes": "^5.0.3",
|
|
305
|
-
"@types/postcss-html": "^1.5.3",
|
|
306
|
-
"@types/postcss-import": "^14.0.3",
|
|
307
|
-
"@types/postcss-inline-svg": "^5.0.4",
|
|
308
|
-
"@types/postcss-normalize": "^9.0.4",
|
|
309
|
-
"@types/postcss-reporter": "^7.0.5",
|
|
283
|
+
"@types/node": "^25.6.2",
|
|
310
284
|
"@types/sloc": "^0.2.3",
|
|
311
|
-
"@typescript-eslint/rule-tester": "^8.59.
|
|
285
|
+
"@typescript-eslint/rule-tester": "^8.59.2",
|
|
312
286
|
"@vitest/coverage-v8": "^4.1.5",
|
|
313
287
|
"@vitest/ui": "^4.1.5",
|
|
314
288
|
actionlint: "^2.0.6",
|
|
315
289
|
"all-contributors-cli": "^6.26.1",
|
|
316
290
|
"cognitive-complexity-ts": "^0.8.1",
|
|
317
|
-
commitlint: "^
|
|
291
|
+
commitlint: "^21.0.0",
|
|
318
292
|
"commitlint-config-gitmoji": "^2.3.1",
|
|
319
293
|
"cross-env": "^10.1.0",
|
|
320
294
|
depcheck: "^1.4.7",
|
|
321
295
|
"detect-secrets": "^1.0.6",
|
|
322
|
-
eslint: "^10.
|
|
323
|
-
"eslint-config-nick2bad4u": "^1.0.
|
|
296
|
+
eslint: "^10.3.0",
|
|
297
|
+
"eslint-config-nick2bad4u": "^1.0.12",
|
|
324
298
|
"eslint-formatter-unix": "^9.0.1",
|
|
325
299
|
"eslint-rule-benchmark": "^0.8.0",
|
|
326
300
|
"fast-check": "^4.7.0",
|
|
327
301
|
"git-cliff": "^2.13.1",
|
|
328
302
|
"gitleaks-secret-scanner": "^2.1.1",
|
|
329
303
|
htmlhint: "^1.9.2",
|
|
330
|
-
jscpd: "^4.0
|
|
331
|
-
knip: "^6.
|
|
304
|
+
jscpd: "^4.1.0",
|
|
305
|
+
knip: "^6.12.2",
|
|
332
306
|
leasot: "^14.4.0",
|
|
333
307
|
madge: "^8.0.0",
|
|
334
308
|
"markdown-link-check": "^3.14.2",
|
|
335
|
-
"npm-check-updates": "^22.
|
|
336
|
-
"npm-package-json-lint": "^10.
|
|
309
|
+
"npm-check-updates": "^22.1.1",
|
|
310
|
+
"npm-package-json-lint": "^10.4.0",
|
|
337
311
|
picocolors: "^1.1.1",
|
|
338
|
-
postcss: "^8.5.13",
|
|
339
|
-
"postcss-assets": "^6.0.0",
|
|
340
|
-
"postcss-clamp": "^4.1.0",
|
|
341
|
-
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
342
|
-
"postcss-flexbugs-fixes": "^5.0.2",
|
|
343
|
-
"postcss-html": "^1.8.1",
|
|
344
|
-
"postcss-import": "^16.1.1",
|
|
345
|
-
"postcss-inline-svg": "^6.0.0",
|
|
346
|
-
"postcss-logical": "^9.0.0",
|
|
347
|
-
"postcss-normalize": "^13.0.1",
|
|
348
|
-
"postcss-reporter": "^7.1.0",
|
|
349
|
-
"postcss-round-subpixels": "^2.0.0",
|
|
350
|
-
"postcss-scss": "^4.0.9",
|
|
351
|
-
"postcss-sort-media-queries": "^6.5.0",
|
|
352
|
-
"postcss-styled-jsx": "^1.0.1",
|
|
353
|
-
"postcss-styled-syntax": "^0.7.1",
|
|
354
|
-
"postcss-viewport-height-correction": "^1.1.1",
|
|
355
312
|
prettier: "^3.8.3",
|
|
356
|
-
"prettier-
|
|
357
|
-
|
|
358
|
-
"prettier-plugin-jsdoc": "^1.8.0",
|
|
359
|
-
"prettier-plugin-jsdoc-type": "^0.2.0",
|
|
360
|
-
"prettier-plugin-merge": "^0.10.1",
|
|
361
|
-
"prettier-plugin-multiline-arrays": "^4.1.7",
|
|
362
|
-
"prettier-plugin-packagejson": "^3.0.2",
|
|
363
|
-
"prettier-plugin-properties": "^0.3.1",
|
|
364
|
-
"prettier-plugin-sort-json": "^4.2.0",
|
|
365
|
-
"prettier-plugin-toml": "^2.0.6",
|
|
366
|
-
publint: "^0.3.18",
|
|
313
|
+
"prettier-config-nick2bad4u": "^1.0.10",
|
|
314
|
+
publint: "^0.3.20",
|
|
367
315
|
"rehype-katex": "^7.0.1",
|
|
368
316
|
remark: "^15.0.1",
|
|
369
317
|
"remark-cli": "^12.0.1",
|
|
370
|
-
"remark-
|
|
371
|
-
"remark-frontmatter": "^5.0.0",
|
|
372
|
-
"remark-gfm": "^4.0.1",
|
|
373
|
-
"remark-ignore": "^3.0.0",
|
|
374
|
-
"remark-inline-links": "^7.0.0",
|
|
375
|
-
"remark-lint": "^10.0.1",
|
|
376
|
-
"remark-lint-blockquote-indentation": "^4.0.1",
|
|
377
|
-
"remark-lint-check-toc": "^1.0.0",
|
|
378
|
-
"remark-lint-checkbox-character-style": "^5.0.1",
|
|
379
|
-
"remark-lint-checkbox-content-indent": "^5.0.1",
|
|
380
|
-
"remark-lint-code-block-split-list": "^1.0.0",
|
|
381
|
-
"remark-lint-code-block-style": "^4.0.1",
|
|
382
|
-
"remark-lint-correct-media-syntax": "^1.0.1",
|
|
383
|
-
"remark-lint-definition-case": "^4.0.1",
|
|
384
|
-
"remark-lint-definition-sort": "^1.0.1",
|
|
385
|
-
"remark-lint-definition-spacing": "^4.0.1",
|
|
386
|
-
"remark-lint-directive-attribute-sort": "^1.0.1",
|
|
387
|
-
"remark-lint-directive-collapsed-attribute": "^1.0.1",
|
|
388
|
-
"remark-lint-directive-quote-style": "^1.0.1",
|
|
389
|
-
"remark-lint-directive-shortcut-attribute": "^1.0.1",
|
|
390
|
-
"remark-lint-directive-unique-attribute-name": "^1.0.1",
|
|
391
|
-
"remark-lint-emphasis-marker": "^4.0.1",
|
|
392
|
-
"remark-lint-fenced-code-flag": "^4.2.0",
|
|
393
|
-
"remark-lint-fenced-code-flag-case": "^3.0.0",
|
|
394
|
-
"remark-lint-fenced-code-marker": "^4.0.1",
|
|
395
|
-
"remark-lint-file-extension": "^3.0.1",
|
|
396
|
-
"remark-lint-final-definition": "^4.0.2",
|
|
397
|
-
"remark-lint-final-newline": "^3.0.1",
|
|
398
|
-
"remark-lint-first-heading-level": "^4.0.1",
|
|
399
|
-
"remark-lint-frontmatter-schema": "^3.15.4",
|
|
400
|
-
"remark-lint-hard-break-spaces": "^4.1.1",
|
|
401
|
-
"remark-lint-heading-capitalization": "^1.3.0",
|
|
402
|
-
"remark-lint-heading-increment": "^4.0.1",
|
|
403
|
-
"remark-lint-heading-style": "^4.0.1",
|
|
404
|
-
"remark-lint-heading-whitespace": "^1.0.0",
|
|
405
|
-
"remark-lint-linebreak-style": "^4.0.1",
|
|
406
|
-
"remark-lint-link-title-style": "^4.0.1",
|
|
407
|
-
"remark-lint-list-item-bullet-indent": "^5.0.1",
|
|
408
|
-
"remark-lint-list-item-content-indent": "^4.0.1",
|
|
409
|
-
"remark-lint-list-item-indent": "^4.0.1",
|
|
410
|
-
"remark-lint-list-item-spacing": "^5.0.1",
|
|
411
|
-
"remark-lint-maximum-heading-length": "^4.1.1",
|
|
412
|
-
"remark-lint-maximum-line-length": "^4.1.1",
|
|
413
|
-
"remark-lint-mdx-jsx-attribute-sort": "^1.0.1",
|
|
414
|
-
"remark-lint-mdx-jsx-no-void-children": "^1.0.1",
|
|
415
|
-
"remark-lint-mdx-jsx-quote-style": "^1.0.1",
|
|
416
|
-
"remark-lint-mdx-jsx-self-close": "^1.0.1",
|
|
417
|
-
"remark-lint-mdx-jsx-shorthand-attribute": "^1.0.1",
|
|
418
|
-
"remark-lint-mdx-jsx-unique-attribute-name": "^1.0.1",
|
|
419
|
-
"remark-lint-media-style": "^1.0.1",
|
|
420
|
-
"remark-lint-no-blockquote-without-marker": "^6.0.1",
|
|
421
|
-
"remark-lint-no-consecutive-blank-lines": "^5.0.1",
|
|
422
|
-
"remark-lint-no-dead-urls": "^2.0.1",
|
|
423
|
-
"remark-lint-no-duplicate-defined-urls": "^3.0.1",
|
|
424
|
-
"remark-lint-no-duplicate-definitions": "^4.0.1",
|
|
425
|
-
"remark-lint-no-duplicate-headings": "^4.0.1",
|
|
426
|
-
"remark-lint-no-duplicate-headings-in-section": "^4.0.1",
|
|
427
|
-
"remark-lint-no-emphasis-as-heading": "^4.0.1",
|
|
428
|
-
"remark-lint-no-empty-sections": "^4.0.0",
|
|
429
|
-
"remark-lint-no-empty-url": "^4.0.1",
|
|
430
|
-
"remark-lint-no-file-name-articles": "^3.0.1",
|
|
431
|
-
"remark-lint-no-file-name-consecutive-dashes": "^3.0.1",
|
|
432
|
-
"remark-lint-no-file-name-irregular-characters": "^3.0.1",
|
|
433
|
-
"remark-lint-no-file-name-mixed-case": "^3.0.1",
|
|
434
|
-
"remark-lint-no-file-name-outer-dashes": "^3.0.1",
|
|
435
|
-
"remark-lint-no-heading-content-indent": "^5.0.1",
|
|
436
|
-
"remark-lint-no-heading-indent": "^5.0.1",
|
|
437
|
-
"remark-lint-no-heading-like-paragraph": "^4.0.1",
|
|
438
|
-
"remark-lint-no-heading-punctuation": "^4.0.1",
|
|
439
|
-
"remark-lint-no-hidden-table-cell": "^1.0.1",
|
|
440
|
-
"remark-lint-no-html": "^4.0.1",
|
|
441
|
-
"remark-lint-no-literal-urls": "^4.0.1",
|
|
442
|
-
"remark-lint-no-missing-blank-lines": "^4.0.1",
|
|
443
|
-
"remark-lint-no-multiple-toplevel-headings": "^4.0.1",
|
|
444
|
-
"remark-lint-no-paragraph-content-indent": "^5.0.1",
|
|
445
|
-
"remark-lint-no-reference-like-url": "^4.0.1",
|
|
446
|
-
"remark-lint-no-shell-dollars": "^4.0.1",
|
|
447
|
-
"remark-lint-no-shortcut-reference-image": "^4.0.1",
|
|
448
|
-
"remark-lint-no-shortcut-reference-link": "^4.0.1",
|
|
449
|
-
"remark-lint-no-table-indentation": "^5.0.1",
|
|
450
|
-
"remark-lint-no-tabs": "^4.0.1",
|
|
451
|
-
"remark-lint-no-undefined-references": "^5.0.2",
|
|
452
|
-
"remark-lint-no-unneeded-full-reference-image": "^4.0.1",
|
|
453
|
-
"remark-lint-no-unneeded-full-reference-link": "^4.0.1",
|
|
454
|
-
"remark-lint-no-unused-definitions": "^4.0.2",
|
|
455
|
-
"remark-lint-ordered-list-marker-style": "^4.0.1",
|
|
456
|
-
"remark-lint-ordered-list-marker-value": "^4.0.1",
|
|
457
|
-
"remark-lint-rule-style": "^4.0.1",
|
|
458
|
-
"remark-lint-strikethrough-marker": "^3.0.1",
|
|
459
|
-
"remark-lint-strong-marker": "^4.0.1",
|
|
460
|
-
"remark-lint-table-cell-padding": "^5.1.1",
|
|
461
|
-
"remark-lint-table-pipe-alignment": "^4.1.1",
|
|
462
|
-
"remark-lint-table-pipes": "^5.0.1",
|
|
463
|
-
"remark-lint-unordered-list-marker-style": "^4.0.1",
|
|
464
|
-
"remark-lint-write-good": "^1.2.0",
|
|
465
|
-
"remark-math": "^6.0.0",
|
|
466
|
-
"remark-preset-lint-consistent": "^6.0.1",
|
|
467
|
-
"remark-preset-lint-markdown-style-guide": "^6.0.1",
|
|
468
|
-
"remark-preset-lint-recommended": "^7.0.1",
|
|
469
|
-
"remark-preset-prettier": "^2.0.2",
|
|
470
|
-
"remark-toc": "^9.0.0",
|
|
471
|
-
"remark-validate-links": "^13.1.0",
|
|
472
|
-
"remark-wiki-link": "^2.0.1",
|
|
318
|
+
"remark-config-nick2bad4u": "^1.0.1",
|
|
473
319
|
rimraf: "^6.1.3",
|
|
474
|
-
secretlint: "^
|
|
320
|
+
secretlint: "^13.0.0",
|
|
321
|
+
"secretlint-config-nick2bad4u": "^1.0.4",
|
|
475
322
|
sloc: "^0.3.2",
|
|
476
323
|
"sort-package-json": "^3.6.1",
|
|
477
|
-
stylelint: "^17.
|
|
478
|
-
"stylelint-
|
|
479
|
-
"stylelint-checkstyle-formatter": "^0.1.2",
|
|
480
|
-
"stylelint-codeframe-formatter": "^1.2.0",
|
|
481
|
-
"stylelint-config-alphabetical-order": "^2.0.0",
|
|
482
|
-
"stylelint-config-idiomatic-order": "^10.0.0",
|
|
483
|
-
"stylelint-config-inspector": "^2.1.2",
|
|
484
|
-
"stylelint-config-recess-order": "^7.7.0",
|
|
485
|
-
"stylelint-config-recommended": "^18.0.0",
|
|
486
|
-
"stylelint-config-sass-guidelines": "^13.0.0",
|
|
487
|
-
"stylelint-config-standard": "^40.0.0",
|
|
488
|
-
"stylelint-config-standard-scss": "^17.0.0",
|
|
489
|
-
"stylelint-config-tailwindcss": "^1.0.1",
|
|
490
|
-
"stylelint-declaration-block-no-ignored-properties": "^3.0.0",
|
|
491
|
-
"stylelint-declaration-strict-value": "^1.11.1",
|
|
492
|
-
"stylelint-define-config": "^17.9.0",
|
|
493
|
-
"stylelint-find-new-rules": "^6.0.0",
|
|
494
|
-
"stylelint-formatter-gitlab-code-quality-report": "^1.1.0",
|
|
495
|
-
"stylelint-formatter-pretty": "^4.0.1",
|
|
496
|
-
"stylelint-gamut": "^2.0.0",
|
|
497
|
-
"stylelint-group-selectors": "^1.0.10",
|
|
498
|
-
"stylelint-high-performance-animation": "^2.0.0",
|
|
499
|
-
"stylelint-media-use-custom-media": "^4.1.0",
|
|
500
|
-
"stylelint-no-browser-hacks": "^2.0.2",
|
|
501
|
-
"stylelint-no-indistinguishable-colors": "^2.3.1",
|
|
502
|
-
"stylelint-no-restricted-syntax": "^2.2.1",
|
|
503
|
-
"stylelint-no-unresolved-module": "^2.5.2",
|
|
504
|
-
"stylelint-no-unsupported-browser-features": "^8.1.1",
|
|
505
|
-
"stylelint-order": "^8.1.1",
|
|
506
|
-
"stylelint-plugin-defensive-css": "^2.9.1",
|
|
507
|
-
"stylelint-plugin-docusaurus": "^1.0.3",
|
|
508
|
-
"stylelint-plugin-logical-css": "^2.1.0",
|
|
509
|
-
"stylelint-plugin-use-baseline": "^1.4.1",
|
|
510
|
-
"stylelint-prettier": "^5.0.3",
|
|
511
|
-
"stylelint-react-native": "^2.7.0",
|
|
512
|
-
"stylelint-scales": "^5.0.0",
|
|
513
|
-
"stylelint-selector-bem-pattern": "^4.0.1",
|
|
514
|
-
"stylelint-use-nesting": "^6.0.2",
|
|
515
|
-
"stylelint-value-no-unknown-custom-properties": "^6.1.1",
|
|
324
|
+
stylelint: "^17.11.0",
|
|
325
|
+
"stylelint-config-nick2bad4u": "^1.0.10",
|
|
516
326
|
"ts-unused-exports": "^11.0.1",
|
|
517
327
|
typedoc: "^0.28.19",
|
|
518
328
|
typescript: "^6.0.3",
|
|
519
|
-
"typescript-eslint": "^8.59.
|
|
329
|
+
"typescript-eslint": "^8.59.2",
|
|
520
330
|
typesync: "^0.14.3",
|
|
521
331
|
vfile: "^6.0.3",
|
|
522
|
-
vite: "^8.0.
|
|
332
|
+
vite: "^8.0.11",
|
|
523
333
|
"vite-tsconfig-paths": "^6.1.1",
|
|
524
334
|
vitest: "^4.1.5",
|
|
525
335
|
"yamllint-js": "^0.2.4"
|
|
526
336
|
},
|
|
527
337
|
peerDependencies: {
|
|
528
|
-
eslint: "^9.0.0 || ^10.
|
|
338
|
+
eslint: "^9.0.0 || ^10.3.0",
|
|
529
339
|
typescript: ">=5.0.0"
|
|
530
340
|
},
|
|
531
|
-
packageManager: "npm@11.
|
|
341
|
+
packageManager: "npm@11.14.1",
|
|
532
342
|
engines: {
|
|
533
343
|
node: ">=20.19.0"
|
|
534
344
|
},
|
|
@@ -5667,8 +5477,12 @@ var typeScriptEslintPlugin = import_eslint_plugin.default;
|
|
|
5667
5477
|
var nodeEslintPlugin = import_eslint_plugin_n.default;
|
|
5668
5478
|
var securityEslintPlugin = import_eslint_plugin_security.default;
|
|
5669
5479
|
var typeScriptFiles = ["**/*.{ts,tsx,mts,cts}"];
|
|
5480
|
+
var createNamedConfig = (name, config = {}) => ({
|
|
5481
|
+
...config,
|
|
5482
|
+
name
|
|
5483
|
+
});
|
|
5670
5484
|
var createAngularConfig = (plugin) => [
|
|
5671
|
-
{
|
|
5485
|
+
createNamedConfig("SDL Angular Security", {
|
|
5672
5486
|
plugins: {
|
|
5673
5487
|
sdl: plugin
|
|
5674
5488
|
},
|
|
@@ -5678,10 +5492,10 @@ var createAngularConfig = (plugin) => [
|
|
|
5678
5492
|
"sdl/no-angular-innerhtml-binding": "error",
|
|
5679
5493
|
"sdl/no-angular-sanitization-trusted-urls": "error"
|
|
5680
5494
|
}
|
|
5681
|
-
}
|
|
5495
|
+
})
|
|
5682
5496
|
];
|
|
5683
5497
|
var createAngularJsConfig = (plugin) => [
|
|
5684
|
-
{
|
|
5498
|
+
createNamedConfig("SDL AngularJS Security", {
|
|
5685
5499
|
plugins: {
|
|
5686
5500
|
sdl: plugin
|
|
5687
5501
|
},
|
|
@@ -5692,10 +5506,10 @@ var createAngularJsConfig = (plugin) => [
|
|
|
5692
5506
|
"sdl/no-angularjs-sanitization-whitelist": "error",
|
|
5693
5507
|
"sdl/no-angularjs-sce-resource-url-wildcard": "error"
|
|
5694
5508
|
}
|
|
5695
|
-
}
|
|
5509
|
+
})
|
|
5696
5510
|
];
|
|
5697
5511
|
var createCommonConfig = (plugin) => [
|
|
5698
|
-
{
|
|
5512
|
+
createNamedConfig("SDL Common Web Security", {
|
|
5699
5513
|
plugins: {
|
|
5700
5514
|
sdl: plugin
|
|
5701
5515
|
},
|
|
@@ -5733,10 +5547,10 @@ var createCommonConfig = (plugin) => [
|
|
|
5733
5547
|
"sdl/no-worker-blob-url": "error",
|
|
5734
5548
|
"sdl/no-worker-data-url": "error"
|
|
5735
5549
|
}
|
|
5736
|
-
}
|
|
5550
|
+
})
|
|
5737
5551
|
];
|
|
5738
5552
|
var createElectronConfig = (plugin) => [
|
|
5739
|
-
{
|
|
5553
|
+
createNamedConfig("SDL Electron Security", {
|
|
5740
5554
|
plugins: {
|
|
5741
5555
|
sdl: plugin
|
|
5742
5556
|
},
|
|
@@ -5762,18 +5576,18 @@ var createElectronConfig = (plugin) => [
|
|
|
5762
5576
|
"sdl/no-electron-webview-insecure-webpreferences": "error",
|
|
5763
5577
|
"sdl/no-electron-webview-node-integration": "error"
|
|
5764
5578
|
}
|
|
5765
|
-
}
|
|
5579
|
+
})
|
|
5766
5580
|
];
|
|
5767
5581
|
var createNodeConfig = (plugin) => [
|
|
5768
|
-
{
|
|
5582
|
+
createNamedConfig("SDL Node.js Runtime Safety", {
|
|
5769
5583
|
plugins: {
|
|
5770
5584
|
n: nodeEslintPlugin
|
|
5771
5585
|
},
|
|
5772
5586
|
rules: {
|
|
5773
5587
|
"n/no-deprecated-api": "error"
|
|
5774
5588
|
}
|
|
5775
|
-
},
|
|
5776
|
-
{
|
|
5589
|
+
}),
|
|
5590
|
+
createNamedConfig("SDL Node.js Security", {
|
|
5777
5591
|
plugins: {
|
|
5778
5592
|
sdl: plugin
|
|
5779
5593
|
},
|
|
@@ -5791,10 +5605,10 @@ var createNodeConfig = (plugin) => [
|
|
|
5791
5605
|
"sdl/no-node-worker-threads-eval": "error",
|
|
5792
5606
|
"sdl/no-unsafe-alloc": "error"
|
|
5793
5607
|
}
|
|
5794
|
-
}
|
|
5608
|
+
})
|
|
5795
5609
|
];
|
|
5796
5610
|
var createReactConfig = (plugin) => [
|
|
5797
|
-
{
|
|
5611
|
+
createNamedConfig("SDL React JSX Support", {
|
|
5798
5612
|
languageOptions: {
|
|
5799
5613
|
parserOptions: {
|
|
5800
5614
|
ecmaFeatures: {
|
|
@@ -5802,23 +5616,23 @@ var createReactConfig = (plugin) => [
|
|
|
5802
5616
|
}
|
|
5803
5617
|
}
|
|
5804
5618
|
}
|
|
5805
|
-
},
|
|
5806
|
-
{
|
|
5619
|
+
}),
|
|
5620
|
+
createNamedConfig("SDL React Security", {
|
|
5807
5621
|
plugins: {
|
|
5808
5622
|
sdl: plugin
|
|
5809
5623
|
}
|
|
5810
|
-
}
|
|
5624
|
+
})
|
|
5811
5625
|
];
|
|
5812
5626
|
var createTypeScriptConfig = (plugin) => [
|
|
5813
|
-
{
|
|
5627
|
+
createNamedConfig("SDL TypeScript Parser Support", {
|
|
5814
5628
|
languageOptions: {
|
|
5815
5629
|
parserOptions: {
|
|
5816
5630
|
ecmaVersion: "latest",
|
|
5817
5631
|
sourceType: "module"
|
|
5818
5632
|
}
|
|
5819
5633
|
}
|
|
5820
|
-
},
|
|
5821
|
-
{
|
|
5634
|
+
}),
|
|
5635
|
+
createNamedConfig("SDL TypeScript Security", {
|
|
5822
5636
|
files: [...typeScriptFiles],
|
|
5823
5637
|
languageOptions: {
|
|
5824
5638
|
parser: import_parser.default,
|
|
@@ -5841,9 +5655,10 @@ var createTypeScriptConfig = (plugin) => [
|
|
|
5841
5655
|
"sdl/no-trusted-types-policy-pass-through": "error",
|
|
5842
5656
|
"sdl/no-unsafe-cast-to-trusted-types": "error"
|
|
5843
5657
|
}
|
|
5844
|
-
}
|
|
5658
|
+
})
|
|
5845
5659
|
];
|
|
5846
5660
|
var createRequiredConfig = (configs2) => [
|
|
5661
|
+
createNamedConfig("SDL Required Security Baseline"),
|
|
5847
5662
|
...configs2.angular,
|
|
5848
5663
|
...configs2.angularjs,
|
|
5849
5664
|
...configs2.common,
|
|
@@ -5852,13 +5667,14 @@ var createRequiredConfig = (configs2) => [
|
|
|
5852
5667
|
...configs2.react
|
|
5853
5668
|
];
|
|
5854
5669
|
var createRecommendedConfig = (configs2) => [
|
|
5670
|
+
createNamedConfig("SDL Recommended Security Baseline"),
|
|
5855
5671
|
...configs2.required,
|
|
5856
5672
|
...configs2.typescript,
|
|
5857
|
-
{
|
|
5673
|
+
createNamedConfig("SDL Recommended Security Plugins", {
|
|
5858
5674
|
plugins: {
|
|
5859
5675
|
security: securityEslintPlugin
|
|
5860
5676
|
}
|
|
5861
|
-
}
|
|
5677
|
+
})
|
|
5862
5678
|
];
|
|
5863
5679
|
var packageJsonVersion = typeof package_default.version === "string" && package_default.version.length > 0 ? package_default.version : "0.0.0";
|
|
5864
5680
|
var pluginCore = {
|