Skip to content

Commit 3e10570

Browse files
committed
chore(root): Update biome to beta.5 (#2264)
1 parent d08576f commit 3e10570

File tree

21 files changed

+67
-77
lines changed

21 files changed

+67
-77
lines changed

apps/web/src/components/template.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use client';
22

33
import classNames from 'classnames';
4-
import Image from 'next/image';
54
import type { ImageLoader } from 'next/image';
5+
import Image from 'next/image';
66
import Link from 'next/link';
77
import * as React from 'react';
88
import { Heading } from './heading';

apps/web/src/utils/spam-assassin/parse-pointing-table-rows.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const parsePointingTableRows = (response: string) => {
2727
const responseFromTableStart = response.slice(
2828
tableStartMatch.index + tableStartMatch[0].length,
2929
);
30-
let currentRow: Row | undefined = undefined;
30+
let currentRow: Row | undefined;
3131
for (const line of responseFromTableStart.split(/\r\n|\n|\r/)) {
3232
if (line.trim().length === 0) break;
3333

biome.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.5/schema.json",
33
"assist": {
44
"actions": {
55
"source": {
@@ -31,7 +31,6 @@
3131
"noCommaOperator": "error",
3232
"useNodejsImportProtocol": "error",
3333
"useAsConstAssertion": "error",
34-
"useNumericLiterals": "error",
3534
"useEnumInitializers": "error",
3635
"useSelfClosingElements": "error",
3736
"useConst": "error",
@@ -54,6 +53,7 @@
5453
"noDelete": "off"
5554
},
5655
"a11y": {
56+
"noStaticElementInteractions": "off",
5757
"noSvgWithoutTitle": "off",
5858
"noAutofocus": "off"
5959
},
@@ -67,6 +67,7 @@
6767
"useSortedClasses": "off"
6868
},
6969
"complexity": {
70+
"useNumericLiterals": "error",
7071
"noUselessFragments": "off",
7172
"noForEach": "off"
7273
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test:watch": "turbo run test:watch"
1616
},
1717
"devDependencies": {
18-
"@biomejs/biome": "2.0.0-beta.1",
18+
"@biomejs/biome": "2.0.0-beta.5",
1919
"@changesets/cli": "2.29.2",
2020
"@types/node": "22.14.1",
2121
"@types/react": "19.0.1",

packages/preview-server/src/actions/email-validation/check-images.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const checkImages = async (code: string, base: string) => {
103103
});
104104
}
105105

106-
let res: IncomingMessage | undefined = undefined;
106+
let res: IncomingMessage | undefined;
107107
try {
108108
res = await quickFetch(url);
109109
const hasSucceeded =
@@ -132,7 +132,7 @@ export const checkImages = async (code: string, base: string) => {
132132
if (responseSizeBytes > 1_048_576 && result.status !== 'error') {
133133
result.status = 'warning';
134134
}
135-
} catch (exception) {
135+
} catch (_exception) {
136136
result.checks.push({
137137
type: 'fetch_attempt',
138138
passed: false,
@@ -142,7 +142,7 @@ export const checkImages = async (code: string, base: string) => {
142142
});
143143
result.status = 'error';
144144
}
145-
} catch (exception) {
145+
} catch (_exception) {
146146
result.checks.push({
147147
passed: false,
148148
type: 'syntax',

packages/preview-server/src/actions/email-validation/check-links.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export const checkLinks = async (code: string) => {
6868
});
6969
}
7070

71-
let res: IncomingMessage | undefined = undefined;
71+
let res: IncomingMessage | undefined;
7272
try {
7373
res = await quickFetch(url);
7474
const hasSucceeded =
@@ -85,7 +85,7 @@ export const checkLinks = async (code: string) => {
8585
? 'warning'
8686
: 'error';
8787
}
88-
} catch (exception) {
88+
} catch (_exception) {
8989
result.checks.push({
9090
type: 'fetch_attempt',
9191
passed: false,
@@ -95,7 +95,7 @@ export const checkLinks = async (code: string) => {
9595
});
9696
result.status = 'error';
9797
}
98-
} catch (exception) {
98+
} catch (_exception) {
9999
result.checks.push({
100100
passed: false,
101101
type: 'syntax',

packages/preview-server/src/actions/email-validation/quick-fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import http from 'node:http';
21
import type { IncomingMessage } from 'node:http';
2+
import http from 'node:http';
33
import https from 'node:https';
44

55
export const quickFetch = (url: URL) => {

packages/preview-server/src/app/preview/[...slug]/page.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ This is most likely not an issue with the preview server. Maybe there was a typo
6060

6161
const serverEmailRenderingResult = await renderEmailByPath(emailPath);
6262

63-
let spamCheckingResult: SpamCheckingResult | undefined = undefined;
64-
let lintingRows: LintingRow[] | undefined = undefined;
65-
let compatibilityCheckingResults: CompatibilityCheckingResult[] | undefined =
66-
undefined;
63+
let spamCheckingResult: SpamCheckingResult | undefined;
64+
let lintingRows: LintingRow[] | undefined;
65+
let compatibilityCheckingResults: CompatibilityCheckingResult[] | undefined;
6766

6867
if (isBuilding) {
6968
if ('error' in serverEmailRenderingResult) {

packages/preview-server/src/components/send.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const Send = ({ markup }: { markup: string }) => {
3131
}
3232

3333
toast.success('Email sent! Check your inbox.');
34-
} catch (exception) {
34+
} catch (_exception) {
3535
toast.error('Something went wrong. Please try again.');
3636
} finally {
3737
setIsSending(false);

packages/preview-server/src/components/toolbar/code-preview-line-link.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ interface CodePreviewLineLinkProps {
1010

1111
export const CodePreviewLineLink = ({
1212
line,
13-
column,
1413
type,
1514
}: CodePreviewLineLinkProps) => {
1615
const searchParams = useSearchParams();

0 commit comments

Comments
 (0)