diff --git a/src/lib/getCrumb.ts b/src/lib/getCrumb.ts index cedf8a23..f30e8ca5 100644 --- a/src/lib/getCrumb.ts +++ b/src/lib/getCrumb.ts @@ -1,7 +1,5 @@ import type { ExtendedCookieJar } from "./cookieJar"; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: we have to ignore this for csm output. -import pkg from "../../package.json" assert { type: "json" }; +import pkg from "../../package.json"; import { Logger } from "./options.js"; import { Cookie } from "tough-cookie"; import { showNotice } from "./notices.js"; diff --git a/src/lib/validateAndCoerceTypes.ts b/src/lib/validateAndCoerceTypes.ts index c960d1ea..60060e12 100644 --- a/src/lib/validateAndCoerceTypes.ts +++ b/src/lib/validateAndCoerceTypes.ts @@ -1,6 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: we have to ignore this for csm output. -import pkg from "../../package.json" assert { type: "json" }; +import pkg from "../../package.json"; import { FailedYahooValidationError, InvalidOptionsError } from "./errors.js"; import { StaticDecode, type TSchema } from "@sinclair/typebox"; import { diff --git a/src/lib/yahooFinanceFetch.ts b/src/lib/yahooFinanceFetch.ts index 83b611c6..616ff04d 100644 --- a/src/lib/yahooFinanceFetch.ts +++ b/src/lib/yahooFinanceFetch.ts @@ -4,9 +4,7 @@ import type { YahooFinanceOptions } from "./options.js"; import type { QueueOptions } from "./queue.js"; import errors from "./errors.js"; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: we have to ignore this for csm output.assert -import pkg from "../../package.json" assert { type: "json" }; +import pkg from "../../package.json"; import getCrumb from "./getCrumb.js"; const userAgent = `${pkg.name}/${pkg.version} (+${pkg.repository})`; diff --git a/src/modules/fundamentalsTimeSeries.ts b/src/modules/fundamentalsTimeSeries.ts index f90b7390..5b920c99 100644 --- a/src/modules/fundamentalsTimeSeries.ts +++ b/src/modules/fundamentalsTimeSeries.ts @@ -5,9 +5,7 @@ import type { ModuleOptionsWithValidateFalse, ModuleThis, } from "../lib/moduleCommon.js"; -// eslint-disable-next-line @typescript-eslint/ban-ts-comment -// @ts-ignore: we have to ignore this for csm output. -import Timeseries_Keys from "../lib/timeseries.json" assert { type: "json" }; +import Timeseries_Keys from "../lib/timeseries.json"; import { YahooFinanceDate, YahooNumber } from "../lib/yahooFinanceTypes.js"; const FundamentalsTimeSeries_Types = ["quarterly", "annual", "trailing"];