Skip to content

Commit 2e2f88d

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent f149680 commit 2e2f88d

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/factories/fromNodePackageJson.node.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ const npmDefaultRepositoryMatcher = /^https?:\/\/registry\.npmjs\.org(:?\/|$)/
113113
* @see {@link https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#npm}
114114
*/
115115
export class PackageUrlFactory extends PlainPackageUrlFactory<'npm'> {
116-
override makeFromComponent (component: Component, sort = false): PackageURL | undefined {
116+
/* eslint-disable-next-line @typescript-eslint/no-inferrable-types -- docs */
117+
override makeFromComponent (component: Component, sort: boolean = false): PackageURL | undefined {
117118
const purl = super.makeFromComponent(component, sort)
118119
return purl === undefined
119120
? undefined

src/utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ limitations under the License.
1616
SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
19+
1920
export * as BomUtility from './bomUtility'

tools/code-style/eslint.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { fileURLToPath } from 'node:url'
2323
import plugin_js from '@eslint/js'
2424
import config_love from 'eslint-config-love'
2525
import plugin_editorconfig from 'eslint-plugin-editorconfig'
26-
import plugin_header from 'eslint-plugin-header'
26+
import plugin_header from 'eslint-plugin-license-header'
2727
import plugin_jsdoc from 'eslint-plugin-jsdoc'
2828
import plugin_simpleImportSort from 'eslint-plugin-simple-import-sort'
2929
import plugin_tsdoc from 'eslint-plugin-tsdoc'
@@ -46,7 +46,7 @@ export default [
4646
name: 'general',
4747
plugins: {
4848
'simple-import-sort': plugin_simpleImportSort,
49-
// 'header': plugin_header,
49+
'license-header': plugin_header,
5050
'editorconfig': plugin_editorconfig,
5151
},
5252
rules: {
@@ -55,7 +55,7 @@ export default [
5555
'sort-imports': 'off',
5656
'simple-import-sort/imports': 'error',
5757
'simple-import-sort/exports': 'error',
58-
// 'header/header': ['error', licenseHeaderFile],
58+
'license-header/header': ['error', licenseHeaderFile],
5959
'editorconfig/indent': 'off',
6060
},
6161
},

tools/code-style/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"eslint": "9.14.0",
1313
"eslint-config-love": "98.0.2",
1414
"eslint-plugin-editorconfig": "4.0.3",
15-
"eslint-plugin-header": "3.1.1",
15+
"eslint-plugin-license-header": "0.6.1",
1616
"eslint-plugin-import": "2.31.0",
1717
"eslint-plugin-jsdoc": "50.5.0",
1818
"eslint-plugin-n": "17.13.1",

0 commit comments

Comments
 (0)