Skip to content

Commit 91ad1d5

Browse files
committed
style
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent e45b424 commit 91ad1d5

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export default [
4141
},
4242
{
4343
files: ['**/*.js'],
44-
languageOptions: { sourceType: 'commonjs' }
44+
languageOptions: { sourceType: 'commonjs' },
45+
rules: {
46+
'jsdoc/reject-any-type': 'off'
47+
}
4548
},
4649
{
4750
files: ['{src,tests}/**/*!(.{node,web}).{js,mjs,cjs.ts}'],

src/_helpers/sortable.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ export abstract class SortableSet<TItem> extends Set<TItem> implements SortableI
6262
}
6363

6464
// it was asserted, that both lists have equal length -> zip-like compare
65+
/* eslint-disable-next-line no-plusplus -- ack */
6566
for (let i = sortedSelf.length - 1; i >= 0; --i) {
6667
const iCompared = this[compareObjectsSymbol](sortedSelf[i], sortedOther[i])
6768
if (iCompared !== 0) {

src/_helpers/uri.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function escapeUri<T extends (string | undefined)> (value: T): T {
4747
}
4848
for (const [s, r] of _ESCAPES) {
4949
/* @ts-expect-error -- TS does not properly detect that value is to be forced as string, here */
50-
value = value.replace(s, r)
50+
value = value.replace(s, r) /* eslint-disable-line no-param-reassign -- ack */
5151
}
5252
return value
5353
}

src/factories/fromNodePackageJson.node.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ export class PackageUrlFactory extends PlainPackageUrlFactory<'npm'> {
158158
* - "checksum" is stripped, unless a "download_url" or "vcs_url" is given.
159159
*/
160160
#finalizeQualifiers(purl: PackageURL): PackageURL {
161+
/* eslint-disable no-param-reassign -- intended */
161162
const qualifiers = new Map(Object.entries(purl.qualifiers ?? {}))
162163

163164
const downloadUrl = qualifiers.get(PurlQualifierNames.DownloadUrl)
@@ -180,5 +181,6 @@ export class PackageUrlFactory extends PlainPackageUrlFactory<'npm'> {
180181
}
181182

182183
return purl
184+
/* eslint-enable no-param-reassign */
183185
}
184186
}

src/serialize/xmlSerializer.web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class XmlSerializer extends XmlBaseSerializer {
7878
}
7979

8080
if (typeof children === 'string' || typeof children === 'number') {
81-
node.textContent = children.toString()
81+
node.textContent = children.toString() /* eslint-disable-line no-param-reassign -- ack */
8282
return
8383
}
8484

0 commit comments

Comments
 (0)