Skip to content

Commit 0181677

Browse files
committed
chore: lint
1 parent 9d1833b commit 0181677

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

src/punycode.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ export function toASCII(o) {
7373
t >= f && t < o && (o = t);
7474
}
7575
const a = p + 1;
76-
o - f > e((2147483647 - i) / a) && s("overflow"),
76+
(o - f > e((2147483647 - i) / a) && s("overflow"),
7777
(i += (o - f) * a),
78-
(f = o);
78+
(f = o));
7979
for (const o of n) {
8080
if ((o < f && ++i > 2147483647 && s("overflow"), o == f)) {
8181
let n = i;
@@ -86,12 +86,12 @@ export function toASCII(o) {
8686
}
8787
const u = n - s;
8888
const f = 36 - s;
89-
t.push(r(c(s + (u % f), 0))), (n = e(u / f));
89+
(t.push(r(c(s + (u % f), 0))), (n = e(u / f)));
9090
}
91-
t.push(r(c(n, 0))), (l = u(i, a, p == h)), (i = 0), ++p;
91+
(t.push(r(c(n, 0))), (l = u(i, a, p == h)), (i = 0), ++p);
9292
}
9393
}
94-
++i, ++f;
94+
(++i, ++f);
9595
}
9696
return t.join("");
9797
})(t)

test/query.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ describe("withQuery", () => {
1818
out: "/?foo=true&bar=false",
1919
},
2020
{ input: "/?foo=1", query: { foo: undefined }, out: "/" },
21-
// eslint-disable-next-line unicorn/no-null
2221
{ input: "/?foo=1", query: { foo: null }, out: "/?foo" },
2322
{
2423
input: "/",

test/resolve.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ describe("resolveURL", () => {
1717
});
1818

1919
test("invalid URL (null)", () => {
20-
// eslint-disable-next-line unicorn/no-null
2120
expect(() => resolveURL(null as any)).toThrow(
2221
"URL input should be string received object (null)",
2322
);

test/url.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ describe("$URL", () => {
5454
describe("constructor errors", () => {
5555
const tests = [
5656
{
57-
// eslint-disable-next-line unicorn/no-null
5857
input: null,
5958
out: "URL input should be string received object (null)",
6059
},

0 commit comments

Comments
 (0)