Skip to content

Commit

Permalink
chore: update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 27, 2024
1 parent b518578 commit 16941fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

6 changes: 0 additions & 6 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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
},
});
2 changes: 0 additions & 2 deletions src/_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -63,7 +62,6 @@ export function debug(...args: unknown[]) {
}
}

// eslint-disable-next-line no-undef
interface InternalFetchOptions extends Omit<RequestInit, "headers"> {
headers?: Record<string, string | undefined>;
agent?: Agent;
Expand Down

0 comments on commit 16941fc

Please sign in to comment.