Skip to content

Commit 3e74439

Browse files
committed
chore(lint): ignore linter warnings
1 parent 923c418 commit 3e74439

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

packages/open-next/src/build/helper.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@ export function getNextVersion(appPath: string): string {
271271
export function compareSemver(v1: string, v2: string): number {
272272
if (v1 === "latest") return 1;
273273
if (/^[^\d]/.test(v1)) {
274+
// biome-ignore lint/style/noParameterAssign: <explanation>
274275
v1 = v1.substring(1);
275276
}
276277
if (/^[^\d]/.test(v2)) {
278+
// biome-ignore lint/style/noParameterAssign: <explanation>
277279
v2 = v2.substring(1);
278280
}
279281
const [major1, minor1, patch1] = v1.split(".").map(Number);

packages/open-next/src/build/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import os from "node:os";
33
import logger from "../logger.js";
44

55
export function printHeader(header: string) {
6+
// biome-ignore lint/style/noParameterAssign: <explanation>
67
header = `OpenNext — ${header}`;
78
logger.info(
89
[

packages/open-next/src/core/require-hooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ export function applyOverride() {
142142
const hookResolved = isApp()
143143
? requestMapApp.get(request)
144144
: requestMapPage.get(request);
145+
//! biome-ignore lint/style/noParameterAssign: <explanation> <-- doesn't work
145146
if (hookResolved) request = hookResolved;
146147
return originalResolveFilename.call(mod, request, parent, isMain, options);
147148

packages/open-next/src/core/routing/i18n/accept-header.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function parse(
2929
lowers.set(lower, { orig: preference, pos: pos++ });
3030
if (options.prefixMatch) {
3131
const parts = lower.split("-");
32+
// biome-ignore lint/style/noCommaOperator: <explanation>
3233
while ((parts.pop(), parts.length > 0)) {
3334
const joined = parts.join("-");
3435
if (!lowers.has(joined)) {

packages/open-next/src/core/routing/util.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ function cyrb128(str: string) {
435435
h2 = Math.imul(h4 ^ (h2 >>> 22), 2869860233);
436436
h3 = Math.imul(h1 ^ (h3 >>> 17), 951274213);
437437
h4 = Math.imul(h2 ^ (h4 >>> 19), 2716044179);
438+
// biome-ignore lint/style/noCommaOperator: <explanation>
438439
(h1 ^= h2 ^ h3 ^ h4), (h2 ^= h1), (h3 ^= h1), (h4 ^= h1);
439440
return h1 >>> 0;
440441
}

0 commit comments

Comments
 (0)