Skip to content

Commit f086efa

Browse files
committedSep 21, 2024
chore: update biome
1 parent fdd313a commit f086efa

File tree

7 files changed

+45
-52
lines changed

7 files changed

+45
-52
lines changed
 

‎biome.json

+1-12
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,9 @@
1616
"correctness": {
1717
"noUnusedImports": "error",
1818
"noUnusedVariables": "error",
19-
"useHookAtTopLevel": "error"
20-
},
21-
"nursery": {
19+
"useHookAtTopLevel": "error",
2220
"useImportExtensions": "error"
2321
}
2422
}
25-
},
26-
"css": {
27-
"formatter": {
28-
"enabled": true,
29-
"indentStyle": "space"
30-
},
31-
"linter": {
32-
"enabled": true
33-
}
3423
}
3524
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"zod": "^3.23.8"
2626
},
2727
"devDependencies": {
28-
"@biomejs/biome": "^1.8.1",
28+
"@biomejs/biome": "^1.9.2",
2929
"@lezer/generator": "^1.7.0",
3030
"@types/fs-extra": "^11.0.4",
3131
"@types/js-yaml": "^4.0.9",

‎pnpm-lock.yaml

+39-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/scripts/block-dialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const BlockDialogContent: React.FC<BlockDialogContentProps> = ({
7373
state.disabled = false;
7474
state.unblock = patch.unblock;
7575
state.host = punycode.toUnicode(
76-
blockWholeSite ? tldts.getDomain(url.host) ?? url.host : url.host,
76+
blockWholeSite ? (tldts.getDomain(url.host) ?? url.host) : url.host,
7777
);
7878
state.detailsOpen = false;
7979
state.pathDepth = enablePathDepth ? new PathDepth(url) : null;

‎src/scripts/components/color-picker.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const ColorPicker = React.forwardRef<
119119
<div
120120
className={popoverClassName}
121121
ref={popoverRef}
122+
// biome-ignore lint/a11y/useSemanticElements: to be replaced in the future
122123
role="dialog"
123124
tabIndex={-1}
124125
onKeyDown={(e) => {

‎src/scripts/components/menu.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const Menu = React.forwardRef<HTMLButtonElement, MenuProps>(
9696
<div
9797
className={bodyClassName}
9898
ref={bodyRef}
99+
// biome-ignore lint/a11y/useSemanticElements: to be replaced in the future
99100
role="menu"
100101
tabIndex={-1}
101102
onClick={(e) => {

‎src/scripts/content-script.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const Button: React.FC<{ children: React.ReactNode; onClick: () => void }> = ({
4141
return (
4242
<span
4343
className={`ub-button ${className}`}
44+
// biome-ignore lint/a11y/useSemanticElements: to be replaced in the future
4445
role="button"
4546
tabIndex={0}
4647
onClick={(e) => {

0 commit comments

Comments
 (0)
Please sign in to comment.