Skip to content

Refactor: Convert CommonJS to ECMAScript Modules (ESM) #3608

Refactor: Convert CommonJS to ECMAScript Modules (ESM)

Refactor: Convert CommonJS to ECMAScript Modules (ESM) #3608

Triggered via pull request February 7, 2025 06:35
Status Failure
Total duration 2m 20s
Artifacts

node.js.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
test
Process completed with exit code 1.
lint: packages/notification/channel/instatus/index.ts#L143
Caution: `axios` also has a named export `AxiosError`. Check if you meant to write `import {AxiosError} from 'axios'` instead
lint: packages/notification/channel/instatus/index.ts#L143
Caution: `axios` also has a named export `AxiosError`. Check if you meant to write `import {AxiosError} from 'axios'` instead
lint: packages/notification/channel/instatus/index.ts#L196
Caution: `axios` also has a named export `AxiosError`. Check if you meant to write `import {AxiosError} from 'axios'` instead
lint: packages/notification/channel/instatus/index.ts#L196
Caution: `axios` also has a named export `AxiosError`. Check if you meant to write `import {AxiosError} from 'axios'` instead
lint: packages/notification/channel/mailgun.ts#L59
Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'
lint: src/components/logger/history.ts#L37
Caution: `SQLite3` also has a named export `verbose`. Check if you meant to write `import {verbose} from 'sqlite3'` instead
lint: src/components/notification/schedule-notification.ts#L8
Caution: `cron` also has a named export `schedule`. Check if you meant to write `import {schedule} from 'node-cron'` instead
lint: src/components/probe/index.test.ts#L42
Caution: `pg` also has a named export `Pool`. Check if you meant to write `import {Pool} from 'pg'` instead
lint: src/components/probe/index.test.ts#L57
Unexpected any. Specify a different type
lint: src/components/probe/prober/http/index.test.ts#L54
Unexpected any. Specify a different type