diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index de4d1f0..0000000 --- a/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -dist -node_modules diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 15948b7..0000000 --- a/.eslintrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": ["eslint-config-unjs"], - "rules": { - "unicorn/prefer-module": 0 - } -} diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..e80a988 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,9 @@ +import unjs from "eslint-config-unjs"; + +// https://github.com/unjs/eslint-config +export default unjs({ + ignores: [], + rules: { + "unicorn/prefer-module": 0 +}, +}); \ No newline at end of file diff --git a/src/_utils.ts b/src/_utils.ts index f6d56db..019f1ef 100644 --- a/src/_utils.ts +++ b/src/_utils.ts @@ -18,7 +18,6 @@ export async function download( const info: { etag?: string } = JSON.parse( await readFile(infoPath, "utf8").catch(() => "{}"), ); - // eslint-disable-next-line unicorn/no-useless-undefined const headResponse = await sendFetch(url, { method: "HEAD", headers: options.headers, @@ -63,7 +62,6 @@ export function debug(...args: unknown[]) { } } -// eslint-disable-next-line no-undef interface InternalFetchOptions extends Omit { headers?: Record; agent?: Agent;