Skip to content

Commit b5b3ec7

Browse files
committed
Upgrade Biome to 2.3.5
1 parent 7d5732f commit b5b3ec7

9 files changed

Lines changed: 41 additions & 56 deletions

File tree

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.3.2/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
33
"assist": {
44
"actions": {
55
"source": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"zod": "^4.1.12"
6565
},
6666
"devDependencies": {
67-
"@biomejs/biome": "^2.3.2",
67+
"@biomejs/biome": "^2.3.5",
6868
"@dotenvx/dotenvx": "^1.48.4",
6969
"@reporters/github": "^1.11.0",
7070
"@types/fluent-ffmpeg": "^2.1.28",

pnpm-lock.yaml

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/AccountList.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,11 @@ function AccountItem({ accountOwner: { account } }: AccountItemProps) {
3333
<header>
3434
<hgroup>
3535
<h2>
36-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected */}
3736
<a dangerouslySetInnerHTML={{ __html: nameHtml }} href={href} />
3837
</h2>
3938
<p style="user-select: all;">{account.handle}</p>
4039
</hgroup>
4140
</header>
42-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected */}
4341
<div dangerouslySetInnerHTML={{ __html: bioHtml }} />
4442
<p>
4543
{account.published ? (

src/components/Post.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export function Post({ post, shared, pinned, quoted }: PostProps) {
6060
const authorNameHtml = renderCustomEmojis(account.name, account.emojis);
6161
const authorUrl = account.url ?? account.iri;
6262
const authorName = (
63-
// biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected
6463
<a dangerouslySetInnerHTML={{ __html: authorNameHtml }} href={authorUrl} />
6564
);
6665
return (
@@ -229,7 +228,6 @@ function PostContent({ post }: PostContentProps) {
229228
<>
230229
{post.contentHtml && (
231230
<div
232-
// biome-ignore lint/security/noDangerouslySetInnerHtml: xss
233231
dangerouslySetInnerHTML={{ __html: contentHtml ?? "" }}
234232
lang={post.language ?? undefined}
235233
/>

src/components/Profile.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export function Profile({ accountOwner }: ProfileProps) {
3131
/>
3232
)}
3333
<h1>
34-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected */}
3534
<a dangerouslySetInnerHTML={{ __html: nameHtml }} href={url} />
3635
</h1>
3736
<p>
@@ -49,7 +48,6 @@ export function Profile({ accountOwner }: ProfileProps) {
4948
: `${account.followersCount} followers`}
5049
</p>
5150
</hgroup>
52-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: no xss */}
5351
<div dangerouslySetInnerHTML={{ __html: bioHtml }} />
5452
{account.fieldHtmls && (
5553
<div class="overflow-auto">
@@ -64,10 +62,7 @@ export function Profile({ accountOwner }: ProfileProps) {
6462
<tbody>
6563
<tr>
6664
{Object.values(account.fieldHtmls).map((value) => (
67-
<td
68-
// biome-ignore lint/security/noDangerouslySetInnerHtml: no xss
69-
dangerouslySetInnerHTML={{ __html: value }}
70-
/>
65+
<td dangerouslySetInnerHTML={{ __html: value }} />
7166
))}
7267
</tr>
7368
</tbody>

src/pages/home/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,11 @@ homePage.get("/", async (c) => {
5555
</a>
5656
)}
5757
<h3>
58-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected */}
5958
<a dangerouslySetInnerHTML={{ __html: nameHtml }} href={url} />
6059
</h3>
6160
<p style="user-select: all;">{owner.account.handle}</p>
6261
</hgroup>
63-
<div
64-
// biome-ignore lint/security/noDangerouslySetInnerHtml: safely escaped
65-
dangerouslySetInnerHTML={{ __html: bioHtml }}
66-
/>
62+
<div dangerouslySetInnerHTML={{ __html: bioHtml }} />
6763
</article>
6864
);
6965
})}

src/pages/oauth/authorization.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export function AuthorizationPage(props: AuthorizationPageProps) {
4343
value={accountOwner.id}
4444
checked={i === 0}
4545
/>
46-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected */}
4746
<strong dangerouslySetInnerHTML={{ __html: accountName }} />
4847
<p style="margin-left: 1.75em; margin-top: 0.25em;">
4948
<small>{accountOwner.account.handle}</small>

src/pages/profile/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ profile.get("/atom.xml", async (c) => {
361361
return (
362362
<entry>
363363
<id>urn:uuid:{post.id}</id>
364-
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: xss protected */}
365364
<title dangerouslySetInnerHTML={{ __html: title }} />
366365
<link
367366
rel="alternate"

0 commit comments

Comments
 (0)