Skip to content

Convert prebid analytics adapter typescript #3635

Convert prebid analytics adapter typescript

Convert prebid analytics adapter typescript #3635

Triggered via pull request March 28, 2025 10:36
Status Failure
Total duration 1m 5s
Artifacts 1

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors
Type check: src/lib/header-bidding/prebid/analytics.ts#L21
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
Type check: src/lib/header-bidding/prebid/analytics.ts#L22
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
Type check: src/lib/header-bidding/prebid/analytics.ts#L25
Binding element 'eventType' implicitly has an 'any' type.
Type check: src/lib/header-bidding/prebid/analytics.ts#L25
Binding element 'args' implicitly has an 'any' type.
Type check: src/lib/header-bidding/prebid/analytics.ts#L62
Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.
Type check: src/lib/header-bidding/prebid/analytics.ts#L69
Parameter 'args' implicitly has an 'any' type.
Type check: src/lib/header-bidding/prebid/analytics.ts#L102
Parameter 'options' implicitly has an 'any' type.
Type check: src/lib/header-bidding/prebid/analytics.ts#L110
'analyticsAdapter.context' is possibly 'undefined'.
Type check: src/lib/header-bidding/prebid/analytics.ts#L110
'analyticsAdapter.context.queue' is possibly 'undefined'.
Type check: src/lib/header-bidding/prebid/analytics.ts#L112
'analyticsAdapter.context' is possibly 'undefined'.
Lint: src/lib/header-bidding/prebid/analytics.ts#L6
There should be no empty line between import groups
Lint: src/lib/header-bidding/prebid/analytics.ts#L6
`prebid.js/src/ajax.js` import should occur before import of `prebid.js/src/constants.js`
Lint: src/lib/header-bidding/prebid/analytics.ts#L8
Unexpected undescribed directive comment. Include descriptions to explain why the comment is necessary
Lint: src/lib/header-bidding/prebid/analytics.ts#L8
Definition for rule 'prebid/validate-imports' was not found
Lint: src/lib/header-bidding/prebid/analytics.ts#L9
`@guardian/libs` import should occur before import of `prebid.js/libraries/analyticsAdapter/AnalyticsAdapter.js`
Lint: src/lib/header-bidding/prebid/analytics.ts#L24
'analyticsAdapter' is never reassigned. Use 'const' instead
Lint: src/lib/header-bidding/prebid/analytics.ts#L35
'trackAuctionInit' was used before it was defined
Lint: src/lib/header-bidding/prebid/analytics.ts#L38
'trackBidRequest' was used before it was defined
Lint: src/lib/header-bidding/prebid/analytics.ts#L41
'trackBidResponse' was used before it was defined
Lint: src/lib/header-bidding/prebid/analytics.ts#L44
'trackNoBid' was used before it was defined
Test
Process completed with exit code 1.

Artifacts

Produced during runtime
Name Size Digest
dist
2.74 MB
sha256:5c5bb266dcbe753f1093367e6d89044b16494c850d17b25bf9e17fc90bed3b74