From 0c041d55305a4d3d9589a573bcd7feb967f94ef9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 29 Nov 2025 11:03:50 +0000 Subject: [PATCH 1/3] chore(deps): bump the eslint group across 1 directory with 4 updates Bumps the eslint group with 4 updates in the /tools/code-style directory: [eslint-config-love](https://github.com/mightyiam/eslint-config-love), [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc), [eslint-plugin-tsdoc](https://github.com/microsoft/tsdoc/tree/HEAD/eslint-plugin) and [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint). Updates `eslint-config-love` from 133.0.0 to 134.0.0 - [Release notes](https://github.com/mightyiam/eslint-config-love/releases) - [Changelog](https://github.com/mightyiam/eslint-config-love/blob/main/CHANGELOG.md) - [Commits](https://github.com/mightyiam/eslint-config-love/compare/v133.0.0...v134.0.0) Updates `eslint-plugin-jsdoc` from 61.1.12 to 61.4.0 - [Release notes](https://github.com/gajus/eslint-plugin-jsdoc/releases) - [Changelog](https://github.com/gajus/eslint-plugin-jsdoc/blob/main/.releaserc) - [Commits](https://github.com/gajus/eslint-plugin-jsdoc/compare/v61.1.12...v61.4.0) Updates `eslint-plugin-tsdoc` from 0.4.0 to 0.5.0 - [Changelog](https://github.com/microsoft/tsdoc/blob/main/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/microsoft/tsdoc/commits/eslint-plugin-tsdoc_v0.5.0/eslint-plugin) Updates `typescript-eslint` from 8.46.3 to 8.47.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.47.0/packages/typescript-eslint) --- updated-dependencies: - dependency-name: eslint-config-love dependency-version: 134.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: eslint - dependency-name: eslint-plugin-jsdoc dependency-version: 61.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: eslint - dependency-name: eslint-plugin-tsdoc dependency-version: 0.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: eslint - dependency-name: typescript-eslint dependency-version: 8.47.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: eslint ... Signed-off-by: dependabot[bot] --- tools/code-style/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/code-style/package.json b/tools/code-style/package.json index cb90d24ee..c79b7df53 100644 --- a/tools/code-style/package.json +++ b/tools/code-style/package.json @@ -8,17 +8,17 @@ "dependencies": { "@eslint/js": "9.39.1", "eslint": "9.35.0", - "eslint-config-love": "133.0.0", + "eslint-config-love": "134.0.0", "eslint-plugin-import": "2.32.0", - "eslint-plugin-jsdoc": "61.1.12", + "eslint-plugin-jsdoc": "61.4.1", "eslint-plugin-license-header": "0.8.0", "eslint-plugin-n": "17.23.1", "eslint-plugin-promise": "7.2.1", "eslint-plugin-simple-import-sort": "12.1.1", - "eslint-plugin-tsdoc": "0.4.0", + "eslint-plugin-tsdoc": "0.5.0", "globals": "^16.0.0", "neostandard": "0.12.2", - "typescript-eslint": "8.46.3" + "typescript-eslint": "8.48.0" }, "scripts": { "cs-fix": "npm exec -- eslint --fix ." From a7efa0d52dbbcb8292ec94ba5624b3ce1ec6669a Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 1 Dec 2025 13:37:30 +0100 Subject: [PATCH 2/3] refactor: apply codestandard Signed-off-by: Jan Kowalleck --- .github/dependabot.yml | 4 ++++ HISTORY.md | 5 +++++ src/factories/fromNodePackageJson.node.ts | 8 ++++---- tools/docs-gen/package.json | 4 ++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index fee621786..7933b4d4d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -24,6 +24,10 @@ updates: - dependency-name: "@types/node" # version is like `ts.X.Y` -- need to maintain manually groups: eslint: + typedoc: + - 'typedoc' + - 'typedoc-*' + - '*-tsdoc' patterns: - 'eslint' - '@eslint/*' diff --git a/HISTORY.md b/HISTORY.md index 1d19e79f1..94d24fc0f 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -6,6 +6,11 @@ All notable changes to this project will be documented in this file. +* Refactor: + * Applied latest code style (via [#1341]) + +[#1341]: https://github.com/CycloneDX/cyclonedx-javascript-library/pull/1341 + ## 9.2.0 -- 2025-10-22 * Added diff --git a/src/factories/fromNodePackageJson.node.ts b/src/factories/fromNodePackageJson.node.ts index f782f1872..110378877 100644 --- a/src/factories/fromNodePackageJson.node.ts +++ b/src/factories/fromNodePackageJson.node.ts @@ -58,8 +58,8 @@ export class ExternalReferenceFactory { makeVcs (data: NodePackageJson): ExternalReference | undefined { /* see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#repositoryc */ const repository = data.repository - let url = undefined - let comment: string | undefined = undefined + let url // eslint-disable-line @typescript-eslint/init-declarations -- ack + let comment// eslint-disable-line @typescript-eslint/init-declarations -- ack if (typeof repository === 'object') { url = tryCanonicalizeGitUrl(repository.url) comment = 'as detected from PackageJson property "repository.url"' @@ -91,8 +91,8 @@ export class ExternalReferenceFactory { makeIssueTracker (data: NodePackageJson): ExternalReference | undefined { /* see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#bugs */ const bugs = data.bugs - let url = undefined - let comment: string | undefined = undefined + let url // eslint-disable-line @typescript-eslint/init-declarations -- ack + let comment // eslint-disable-line @typescript-eslint/init-declarations -- ack if (typeof bugs === 'object') { url = bugs.url comment = 'as detected from PackageJson property "bugs.url"' diff --git a/tools/docs-gen/package.json b/tools/docs-gen/package.json index c78eaee76..dfc873da9 100644 --- a/tools/docs-gen/package.json +++ b/tools/docs-gen/package.json @@ -6,8 +6,8 @@ "node": ">=20.18" }, "dependencies": { - "typedoc": "^0.28.1", - "typedoc-plugin-missing-exports": "^4.0.0" + "typedoc": "^0.28.15", + "typedoc-plugin-missing-exports": "^4.1.2" }, "scripts": { "cs-fix": "npm --prefix ../code-style exec -- eslint --fix ." From 469ad605d52acec6b86038411a58f3d67acc5156 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 1 Dec 2025 13:40:49 +0100 Subject: [PATCH 3/3] refactor: apply codestandard Signed-off-by: Jan Kowalleck --- src/factories/fromNodePackageJson.node.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/factories/fromNodePackageJson.node.ts b/src/factories/fromNodePackageJson.node.ts index 110378877..580a2722d 100644 --- a/src/factories/fromNodePackageJson.node.ts +++ b/src/factories/fromNodePackageJson.node.ts @@ -58,8 +58,8 @@ export class ExternalReferenceFactory { makeVcs (data: NodePackageJson): ExternalReference | undefined { /* see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#repositoryc */ const repository = data.repository - let url // eslint-disable-line @typescript-eslint/init-declarations -- ack - let comment// eslint-disable-line @typescript-eslint/init-declarations -- ack + let url // eslint-disable-line @typescript-eslint/init-declarations -- ack + let comment // eslint-disable-line @typescript-eslint/init-declarations -- ack if (typeof repository === 'object') { url = tryCanonicalizeGitUrl(repository.url) comment = 'as detected from PackageJson property "repository.url"' @@ -91,8 +91,8 @@ export class ExternalReferenceFactory { makeIssueTracker (data: NodePackageJson): ExternalReference | undefined { /* see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#bugs */ const bugs = data.bugs - let url // eslint-disable-line @typescript-eslint/init-declarations -- ack - let comment // eslint-disable-line @typescript-eslint/init-declarations -- ack + let url // eslint-disable-line @typescript-eslint/init-declarations -- ack + let comment // eslint-disable-line @typescript-eslint/init-declarations -- ack if (typeof bugs === 'object') { url = bugs.url comment = 'as detected from PackageJson property "bugs.url"'