Skip to content

Commit b327936

Browse files
authored
chore: fix some tolerated eslint warnings (#571)
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent ff571d2 commit b327936

File tree

6 files changed

+22
-0
lines changed

6 files changed

+22
-0
lines changed

Diff for: .eslintrc.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20+
/* eslint-disable jsdoc/valid-types */
21+
2022
/**
2123
* @type {import('eslint').Linter.Config}
2224
* @see {@link https://eslint.org/}

Diff for: libs/universal-node-xml/stringifiers/helpers.js

+4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20+
/* eslint-disable jsdoc/valid-types */
21+
2022
/**
2123
* @typedef {import('../../../src/serialize/xml/types').SimpleXml.Element} Element
2224
*/
2325

26+
/* eslint-enable jsdoc/valid-types */
27+
2428
/**
2529
* @param {Element} element
2630
* @return {string|string|null}

Diff for: libs/universal-node-xml/stringifiers/xmlbuilder2.js

+4
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module.exports = typeof create === 'function'
2424
? stringify
2525
: undefined
2626

27+
/* eslint-disable jsdoc/valid-types */
28+
2729
/**
2830
* @typedef {import('xmlbuilder2/lib/interfaces').XMLBuilder} XMLBuilder
2931
*/
@@ -32,6 +34,8 @@ module.exports = typeof create === 'function'
3234
* @typedef {import('../../../src/serialize/xml/types').SimpleXml.Element} Element
3335
*/
3436

37+
/* eslint-enable jsdoc/valid-types */
38+
3539
/**
3640
* @param {Element} element
3741
* @param {string|number|undefined} [space]

Diff for: tests/_data/models.js

+4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ const { PackageURL } = require('packageurl-js')
2121

2222
const { Enums, Models } = require('../../')
2323

24+
/* eslint-disable jsdoc/valid-types */
25+
2426
/**
2527
* @typedef {import('../../src/models/bom').Bom} Bom
2628
*/
2729

30+
/* eslint-enable jsdoc/valid-types */
31+
2832
/**
2933
* @returns {Bom}
3034
*/

Diff for: tests/_data/normalize.js

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2020
const fs = require('fs')
2121
const path = require('path')
2222

23+
/* eslint-disable jsdoc/valid-types */
24+
2325
/**
2426
* @typedef {import('../../src/spec').Version} Version
2527
*/
@@ -28,6 +30,8 @@ const path = require('path')
2830
* @typedef {import('@types/node').BufferEncoding} BufferEncoding
2931
*/
3032

33+
/* eslint-enable jsdoc/valid-types */
34+
3135
/**
3236
* @param {string} purpose
3337
* @param {Version} spec

Diff for: tests/_data/serialize.js

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2020
const fs = require('fs')
2121
const path = require('path')
2222

23+
/* eslint-disable jsdoc/valid-types */
24+
2325
/**
2426
* @typedef {import('../../src/spec').Version} Version
2527
*/
@@ -28,6 +30,8 @@ const path = require('path')
2830
* @typedef {import('@types/node').BufferEncoding} BufferEncoding
2931
*/
3032

33+
/* eslint-enable jsdoc/valid-types */
34+
3135
/**
3236
* @param {string} purpose
3337
* @param {Version} spec

0 commit comments

Comments
 (0)