Skip to content

Commit dac9d97

Browse files
committed
chore(lint): fix noExtraBooleanCast rule and remove from config
1 parent 8a6d54d commit dac9d97

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

biome.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"complexity": {
3232
"noForEach": "off",
3333
"noBannedTypes": "warn",
34-
"noExtraBooleanCast": "warn",
3534
"useOptionalChain": "warn"
3635
},
3736
"performance": {

packages/open-next/src/core/routingHandler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ export interface MiddlewareOutputEvent {
2727
}
2828

2929
// Add the locale prefix to the regex so we correctly match the rawPath
30-
const optionalLocalePrefixRegex = !!RoutesManifest.locales.length
30+
const optionalLocalePrefixRegex = RoutesManifest.locales.length
3131
? `^/(?:${RoutesManifest.locales.map((locale) => `${locale}/?`).join("|")})?`
3232
: "^/";
3333

3434
// Add the basepath prefix to the regex so we correctly match the rawPath
35-
const optionalBasepathPrefixRegex = !!RoutesManifest.basePath
35+
const optionalBasepathPrefixRegex = RoutesManifest.basePath
3636
? `^${RoutesManifest.basePath}/?`
3737
: "^/";
3838

3939
// Add the basePath prefix to the api routes
40-
const apiPrefix = !!RoutesManifest.basePath
40+
const apiPrefix = RoutesManifest.basePath
4141
? `${RoutesManifest.basePath}/api`
4242
: "/api";
4343

0 commit comments

Comments
 (0)