Skip to content

Commit c89f1fb

Browse files
committed
chore(lint): fix useOptionalChain rule and remove from config
1 parent dac9d97 commit c89f1fb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

biome.jsonc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
},
3131
"complexity": {
3232
"noForEach": "off",
33-
"noBannedTypes": "warn",
34-
"useOptionalChain": "warn"
33+
"noBannedTypes": "warn"
3534
},
3635
"performance": {
3736
"noDelete": "warn",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export function handleFallbackFalse(
380380
});
381381
const locales = NextConfig.i18n?.locales;
382382
const routesAlreadyHaveLocale =
383-
(locales !== undefined && locales.includes(rawPath.split("/")[1])) ||
383+
locales?.includes(rawPath.split("/")[1]) ||
384384
// If we don't use locales, we don't need to add the default locale
385385
locales === undefined;
386386
const localizedPath = routesAlreadyHaveLocale

0 commit comments

Comments
 (0)