Skip to content

Commit e95160e

Browse files
[autofix.ci] apply automated fixes
1 parent 1ffb1a6 commit e95160e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/composables/usePackageComparison.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ export function computeHealthScore(data: PackageComparisonData): number {
367367
if (data.analysis) {
368368
if (data.analysis.types?.kind === 'included' || data.analysis.types?.kind === '@types')
369369
quality += 40
370-
if (data.analysis.moduleFormat === 'esm' || data.analysis.moduleFormat === 'dual')
371-
quality += 30
370+
if (data.analysis.moduleFormat === 'esm' || data.analysis.moduleFormat === 'dual') quality += 30
372371
if (data.metadata?.license) quality += 20
373372
if (data.package.description) quality += 10
374373
}

test/nuxt/composables/use-package-comparison.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ describe('usePackageComparison', () => {
138138
}
139139

140140
it('returns score 0 for deprecated packages', () => {
141-
const score = computeHealthScore(
142-
makeData({ metadata: { deprecated: 'Use something else' } }),
143-
)
141+
const score = computeHealthScore(makeData({ metadata: { deprecated: 'Use something else' } }))
144142
expect(score).toBe(0)
145143
})
146144

0 commit comments

Comments
 (0)