diff --git a/apps/portfolio/src/components/pages/index/About.astro b/apps/portfolio/src/components/pages/index/About.astro index 49144a0..668047b 100644 --- a/apps/portfolio/src/components/pages/index/About.astro +++ b/apps/portfolio/src/components/pages/index/About.astro @@ -11,11 +11,13 @@ interface Props { const { class: className } = Astro.props; interface Contact { - icon: (_props: IconProps) => any; + icon: (_props: IconProps) => unknown; name: string; href: string; } +// Why disable: https://github.com/ota-meshi/eslint-plugin-astro/issues/348 +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ const contacts: Contact[] = [ { icon: GitHubIcon, @@ -34,6 +36,7 @@ const contacts: Contact[] = [ // href: 'https://blog.yeongwoo.dev', // }, ]; +/* eslint-enable @typescript-eslint/no-unsafe-assignment */ ---
diff --git a/packages/fetch-pretendard/src/lib/download-file.js b/packages/fetch-pretendard/src/lib/download-file.js index 55a61c9..5ac9d03 100644 --- a/packages/fetch-pretendard/src/lib/download-file.js +++ b/packages/fetch-pretendard/src/lib/download-file.js @@ -6,6 +6,7 @@ import * as fs from 'node:fs/promises'; * @param {string} outputPath */ export default async function downloadFile(fileUrl, outputPath) { + /** @type {import('axios').AxiosResponse} */ const response = await axios.get(fileUrl, { responseType: 'stream', }); diff --git a/packages/fetch-pretendard/src/main.js b/packages/fetch-pretendard/src/main.js index 6e0b72e..471339b 100755 --- a/packages/fetch-pretendard/src/main.js +++ b/packages/fetch-pretendard/src/main.js @@ -21,7 +21,9 @@ try { async function main() { const { cssUrl, fontOutputDir, cssOutputPath } = parseArgs(); - const css = /** @type {string} */ ((await axios.get(cssUrl)).data); + const css = /** @type {import('axios').AxiosResponse} */ ( + await axios.get(cssUrl) + ).data; if (!isValidCSS(css)) { throw new Error(`"${cssUrl}" is a invalid CSS.`);