Skip to content

Commit 083aa30

Browse files
committed
chore: update API type, add consistent type imports rule
1 parent 761c01d commit 083aa30

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.oxlintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"plugins": ["typescript", "unicorn", "oxc", "node", "promise"]
2+
"plugins": ["typescript", "unicorn", "oxc", "node", "promise"],
3+
"rules": {
4+
"typescript/consistent-type-imports": "error"
5+
}
36
}

src/bom/validation.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function parseBomOrString(bomOrString: string | object): SupportedBom | null {
55
if (typeof bomOrString === 'string') {
66
try {
77
return JSON.parse(bomOrString);
8-
} catch (e) {
8+
} catch {
99
return null;
1010
}
1111
}

src/types/eol-scan.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ export interface EolScanComponentMetadata {
1414
}
1515

1616
export interface NesRemediation {
17-
purls: { nes: string; oss: string };
18-
urls: { main: string };
17+
remediations: {
18+
purls: { nes: string; oss: string };
19+
urls: { main: string };
20+
}[];
1921
}
2022

2123
export interface EolScanComponent {

0 commit comments

Comments
 (0)