Skip to content

Commit 7c9c7c3

Browse files
committed
update to latest pre-release
1 parent 5132885 commit 7c9c7c3

File tree

15 files changed

+450
-175
lines changed

15 files changed

+450
-175
lines changed

app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default async function handleRequest(
6464
},
6565
onError(error: unknown) {
6666
didError = true
67-
67+
// biome-ignore lint/suspicious/noConsole: We console log the error
6868
console.error(error)
6969
},
7070
}

app/env.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const initEnv = () => {
1616
const envData = envSchema.safeParse(process.env)
1717

1818
if (!envData.success) {
19+
// biome-ignore lint/suspicious/noConsole: We want this to be logged
1920
console.error("❌ Invalid environment variables:", envData.error.flatten().fieldErrors)
2021
throw new Error("Invalid environment variables")
2122
}
@@ -24,6 +25,7 @@ export const initEnv = () => {
2425

2526
// Do not log the message when running tests
2627
if (env.NODE_ENV !== "test") {
28+
// biome-ignore lint/suspicious/noConsole: We want this to be logged
2729
console.log("✅ Environment variables loaded successfully")
2830
}
2931
return envData.data

app/library/icon/icons/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// This file is generated by icon spritesheet generator
22

3-
export const iconNames = ["ShoppingCart"] as const
3+
export const iconNames = [
4+
"ShoppingCart",
5+
] as const
46

5-
export type IconName = (typeof iconNames)[number]
7+
export type IconName = typeof iconNames[number]

app/root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useTranslation } from "react-i18next"
22
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from "react-router"
33
import type { LinksFunction } from "react-router"
44
import { useChangeLanguage } from "remix-i18next/react"
5-
import type * as Route from "./+types.root"
5+
import type { Route } from "./+types/root"
66
import { LanguageSwitcher } from "./library/language-switcher"
77
import tailwindcss from "./tailwind.css?url"
88

app/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { flatRoutes } from "@react-router/fs-routes"
22

3-
export const routes = flatRoutes()
3+
export default flatRoutes()

app/routes/resource.locales.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { cacheHeader } from "pretty-cache-header"
22
import { data } from "react-router"
33
import { z } from "zod"
44
import { resources } from "~/localization/resource"
5-
import type * as Route from "./+types.resource.locales"
5+
import type { Route } from "./+types/resource.locales"
66

77
export async function loader({ request }: Route.LoaderArgs) {
88
const url = new URL(request.url)

app/routes/robots[.]txt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { generateRobotsTxt } from "@forge42/seo-tools/robots"
22

33
import { createDomain } from "~/utils/http"
4-
import type * as Route from "./+types.robots[.]txt"
4+
import type { Route } from "./+types/robots[.]txt"
55

66
export async function loader({ request }: Route.LoaderArgs) {
77
const isProductionDeployment = process.env.DEPLOYMENT_ENV === "production"

app/routes/sitemap-index[.]xml.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { generateSitemapIndex } from "@forge42/seo-tools/sitemap"
2-
32
import { createDomain } from "~/utils/http"
4-
import type * as Route from "./+types.sitemap-index[.]xml"
3+
import type { Route } from "./+types/sitemap-index[.]xml"
54

65
export const loader = async ({ request }: Route.LoaderArgs) => {
76
const domain = createDomain(request)

app/routes/sitemap.$lang[.]xml.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { generateRemixSitemap } from "@forge42/seo-tools/remix/sitemap"
22
import type { LoaderFunctionArgs } from "react-router"
33
import { createDomain } from "~/utils/http"
4-
import type * as Route from "./+types.sitemap.$lang[.]xml"
54

65
export const loader = async ({ request, params }: LoaderFunctionArgs) => {
76
const domain = createDomain(request)

biome.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"rules": {
2222
"recommended": true,
2323
"suspicious": {
24-
"recommended": true
24+
"recommended": true,
25+
"noConsole": "error"
2526
},
2627
"style": {
2728
"recommended": true
@@ -36,7 +37,11 @@
3637
"recommended": true
3738
},
3839
"correctness": {
39-
"recommended": true
40+
"recommended": true,
41+
"noUnusedImports": "error",
42+
"noUnusedVariables": "error",
43+
"noUnusedLabels": "error",
44+
"noUnusedFunctionParameters": "error"
4045
},
4146
"a11y": {
4247
"recommended": true

0 commit comments

Comments
 (0)