Skip to content

Commit b4a9b1b

Browse files
committed
chore: fix lint issues
1 parent dbd4bb6 commit b4a9b1b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.eslintrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ extends: "@jsdevtools"
77
env:
88
node: true
99
browser: true
10+
rules:
11+
"@typescript-eslint/no-explicit-any": ["off"]

lib/resolvers/http.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
"use strict";
22

3-
const http = require("http");
4-
const https = require("https");
53
const { ono } = require("@jsdevtools/ono");
64
const url = require("../util/url");
75
const { ResolverError } = require("../util/errors");
@@ -145,9 +143,9 @@ function get (u, httpOptions) {
145143
}
146144

147145
return fetch(u, {
148-
method: 'GET',
146+
method: "GET",
149147
headers: httpOptions.headers || {},
150-
credentials: httpOptions.withCredentials ? 'include' : 'same-origin',
148+
credentials: httpOptions.withCredentials ? "include" : "same-origin",
151149
signal: controller ? controller.signal : null,
152150
}).then(response => {
153151
if (timeoutId) {

lib/util/url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let urlDecodePatterns = [
2222
/\%40/g, "@"
2323
];
2424

25-
exports.parse = (url) => new URL(url);
25+
exports.parse = (u) => new URL(u);
2626

2727
/**
2828
* Returns resolved target URL relative to a base URL in a manner similar to that of a Web browser resolving an anchor tag HREF.

0 commit comments

Comments
 (0)