Skip to content

Commit 16941fc

Browse files
committed
chore: update eslint config
1 parent b518578 commit 16941fc

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import unjs from "eslint-config-unjs";
2+
3+
// https://github.com/unjs/eslint-config
4+
export default unjs({
5+
ignores: [],
6+
rules: {
7+
"unicorn/prefer-module": 0
8+
},
9+
});

src/_utils.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export async function download(
1818
const info: { etag?: string } = JSON.parse(
1919
await readFile(infoPath, "utf8").catch(() => "{}"),
2020
);
21-
// eslint-disable-next-line unicorn/no-useless-undefined
2221
const headResponse = await sendFetch(url, {
2322
method: "HEAD",
2423
headers: options.headers,
@@ -63,7 +62,6 @@ export function debug(...args: unknown[]) {
6362
}
6463
}
6564

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

0 commit comments

Comments
 (0)