Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export default [
},
{
files: ['**/*.js'],
languageOptions: { sourceType: 'commonjs' }
languageOptions: { sourceType: 'commonjs' },
rules: {
'jsdoc/reject-any-type': 'off'
}
},
{
files: [
Expand Down
4 changes: 2 additions & 2 deletions src/_helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function getPackageDescription(path: string): PackageDescription | undefi
if (nextPath === path || isNodeModulesFolder(nextPath)) {
return undefined
}
path = nextPath
path = nextPath /* eslint-disable-line no-param-reassign -- ack */
}
return undefined
}
Expand Down Expand Up @@ -134,7 +134,7 @@ export function normalizePackageManifest (data: any, warn?: normalizePackageData

if (isString(oVersion)) {
// normalizer might have stripped version or sanitized it to SemVer -- we want the original
/* eslint-disable-next-line @typescript-eslint/no-unsafe-member-access -- ack */
/* eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-param-reassign -- ack */
data.version = oVersion.trim()
}
}
4 changes: 3 additions & 1 deletion src/extractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class Extractor {
/* eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- ach */
const _packageJson = structuredClonePolyfill(pkg.packageJson)
normalizePackageManifest(_packageJson)
pkg.packageJson = _packageJson
pkg.packageJson = _packageJson /* eslint-disable-line no-param-reassign -- intended */
} catch (e) {
logger?.warn('normalizePackageJson from PkgPath', pkg.path, 'failed:', e)
}
Expand All @@ -111,7 +111,9 @@ export class Extractor {
}

component.licenses.forEach(l => {
/* eslint-disable no-param-reassign -- intended */
l.acknowledgement = CDX.Enums.LicenseAcknowledgement.Declared
/* eslint-enable no-param-reassign -- intended */
})

if (collectEvidence) {
Expand Down
2 changes: 2 additions & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ export class CycloneDxWebpackPlugin {
cdxPurlFactory: CDX.Factories.FromNodePackageJson.PackageUrlFactory,
logger: WebpackLogger
): void {
/* eslint-disable no-param-reassign -- intended */
bom.serialNumber = this.reproducibleResults
? undefined
: CDX.Utils.BomUtility.randomSerialNumber()
Expand All @@ -423,6 +424,7 @@ export class CycloneDxWebpackPlugin {
bom.metadata.component.purl = cdxPurlFactory.makeFromComponent(bom.metadata.component)
bom.metadata.component.bomRef.value = bom.metadata.component.purl?.toString()
}
/* eslint-enable no-param-reassign */
}

* #makeToolCs (builder: CDX.Builders.FromNodePackageJson.ComponentBuilder, logger: WebpackLogger): Generator<CDX.Models.Component> {
Expand Down
6 changes: 3 additions & 3 deletions tools/code-style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
"dependencies": {
"@eslint/js": "9.36.0",
"eslint": "9.36.0",
"eslint-config-love": "125.0.0",
"eslint-config-love": "130.0.0",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsdoc": "60.0.0",
"eslint-plugin-jsdoc": "60.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",
"globals": "^16.0.0",
"neostandard": "0.12.2",
"typescript-eslint": "8.44.0"
"typescript-eslint": "8.44.1"
},
"scripts": {
"cs-fix": "npm exec -- eslint --fix ."
Expand Down