Skip to content

Commit f3b9282

Browse files
authored
chore(deps): update biome to v2.4.11 (#1351)
1 parent f204f1a commit f3b9282

7 files changed

Lines changed: 46 additions & 44 deletions

File tree

biome.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.4.6/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.4.11/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -12,6 +12,7 @@
1212
"useEditorconfig": true,
1313
"indentStyle": "space",
1414
"indentWidth": 2,
15+
"lineEnding": "auto",
1516
"lineWidth": 80
1617
},
1718
"assist": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"wouter": "^3.9.0"
4747
},
4848
"devDependencies": {
49-
"@biomejs/biome": "2.4.6",
49+
"@biomejs/biome": "2.4.11",
5050
"@jgoz/esbuild-plugin-typecheck": "^4.0.4",
5151
"@jgoz/jest-esbuild": "^1.0.10",
5252
"@octokit/openapi-webhooks-types": "^12.1.0",

pnpm-lock.yaml

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

src/background/services/monetization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export class MonetizationService {
294294

295295
async pay({ amount }: PayWebsitePayload): Promise<PayWebsiteResponse> {
296296
const tab = await this.windowState.getCurrentTab();
297-
if (!tab || !tab.id) {
297+
if (!tab?.id) {
298298
throw new Error('Unexpected error: could not find active tab.');
299299
}
300300

src/content/polyfill.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ import type { MonetizationEventPayload } from '@/shared/messages';
123123
const { attribute } = event.detail;
124124
// @ts-expect-error: we're defining this now
125125
event.target.onmonetization = attribute
126-
? new Function(attribute).bind(event.target)
126+
? // biome-ignore lint/nursery/noImpliedEval: that's the way here
127+
new Function(attribute).bind(event.target)
127128
: null;
128129
},
129130
{ capture: true },

src/pages/popup/components/ConnectWalletForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ const ManualKeyPairNeeded: React.FC<{
564564
publicKey: string;
565565
}> = ({ error, hideError, text, learnMoreText, publicKey, retry }) => {
566566
const ErrorDetails = () => {
567-
if (!error || !error.details) return null;
567+
if (!error?.details) return null;
568568
return (
569569
<details className="group inline-block">
570570
<summary className="cursor-pointer list-none underline decoration-dotted group-open:sr-only">

tests/e2e/fixtures/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export async function loadKeysToExtension(
307307
'publicKey',
308308
'keyId',
309309
]);
310-
if (!res || !res.keyId || !res.privateKey || !res.publicKey) {
310+
if (!res?.keyId || !res.privateKey || !res.publicKey) {
311311
throw new Error('Could not load keys to extension');
312312
}
313313
}

0 commit comments

Comments
 (0)