Skip to content

Commit d3dbd3e

Browse files
authored
build(deps-dev): bump @biomejs/biome from 1.9.4 to 2.0.6 in /frontend (#4730)
2 parents 82a083e + 4ebe568 commit d3dbd3e

33 files changed

+217
-202
lines changed

biome.json

Lines changed: 30 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
64
"vcs": {
75
"enabled": true,
86
"clientKind": "git",
97
"useIgnoreFile": true
108
},
119
"files": {
12-
"ignore": [
13-
".devcontainer/**",
14-
"docs/**",
15-
"translations/**",
16-
"policies/**",
17-
"crates/**",
18-
"frontend/package.json",
19-
"frontend/src/gql/**",
20-
"frontend/src/routeTree.gen.ts",
21-
"frontend/.storybook/locales.ts",
22-
"frontend/.storybook/public/mockServiceWorker.js",
23-
"frontend/locales/*.json",
24-
"**/coverage/**",
25-
"**/dist/**"
10+
"includes": [
11+
"**",
12+
"!**/.devcontainer/**",
13+
"!**/docs/**",
14+
"!**/translations/**",
15+
"!**/policies/**",
16+
"!**/crates/**",
17+
"!**/frontend/package.json",
18+
"!**/frontend/src/gql/**",
19+
"!**/frontend/src/routeTree.gen.ts",
20+
"!**/frontend/.storybook/locales.ts",
21+
"!**/frontend/.storybook/public/mockServiceWorker.js",
22+
"!**/frontend/locales/**/*.json",
23+
"!**/coverage/**",
24+
"!**/dist/**"
2625
]
2726
},
2827
"formatter": {
@@ -36,6 +35,19 @@
3635
"correctness": {
3736
"noUnusedImports": "warn",
3837
"noUnusedVariables": "warn"
38+
},
39+
"style": {
40+
"noParameterAssign": "error",
41+
"useAsConstAssertion": "error",
42+
"useDefaultParameterLast": "error",
43+
"useEnumInitializers": "error",
44+
"useSelfClosingElements": "error",
45+
"useSingleVarDeclarator": "error",
46+
"noUnusedTemplateLiteral": "error",
47+
"useNumberNamespace": "error",
48+
"noInferrableTypes": "error",
49+
"noUselessElse": "error",
50+
"noDescendingSpecificity": "off"
3951
}
4052
}
4153
}

frontend/package-lock.json

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

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"vaul": "^1.1.2"
4040
},
4141
"devDependencies": {
42-
"@biomejs/biome": "^1.9.4",
42+
"@biomejs/biome": "^2.0.6",
4343
"@browser-logos/chrome": "^2.0.0",
4444
"@browser-logos/firefox": "^3.0.10",
4545
"@browser-logos/safari": "^2.1.0",

frontend/src/components/AccountDeleteButton.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ const AccountDeleteButton: React.FC<Props> = (props) => {
7070
mutationFn: ({
7171
password,
7272
hsErase,
73-
}: { password: string | null; hsErase: boolean }) =>
73+
}: {
74+
password: string | null;
75+
hsErase: boolean;
76+
}) =>
7477
graphqlRequest({
7578
query: MUTATION,
7679
variables: { password, hsErase },

frontend/src/components/ButtonLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import { createLink } from "@tanstack/react-router";
88
import { Button } from "@vector-im/compound-web";
99
import cx from "classnames";
10-
import { type PropsWithChildren, forwardRef } from "react";
10+
import { forwardRef, type PropsWithChildren } from "react";
1111
import styles from "./ButtonLink.module.css";
1212

1313
type Props = {

frontend/src/components/Dialog/Dialog.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595

9696
/* Cap the block size */
9797
max-block-size: calc(100vh - var(--cpd-space-4x));
98+
/* biome-ignore lint/suspicious/noDuplicateProperties: this isn't a real duplicate */
9899
max-block-size: calc(100svh - var(--cpd-space-4x));
99100

100101
/* Drawer comes in the Android style by default */

frontend/src/components/Dialog/Dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ export const Title: React.FC<PropsWithChildren> = ({ children }) => (
102102
<DialogTitle className={styles.title}>{children}</DialogTitle>
103103
);
104104

105-
export { Description, Close } from "@radix-ui/react-dialog";
105+
export { Close, Description } from "@radix-ui/react-dialog";

frontend/src/components/Dialog/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
55
// Please see LICENSE files in the repository root for full details.
66

7-
export { Close, Dialog, Title, Description } from "./Dialog";
7+
export { Close, Description, Dialog, Title } from "./Dialog";

frontend/src/components/Layout/Layout.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
/* Fallback for browsers that do not support 100svh */
1818
min-height: 100vh;
19+
/* biome-ignore lint/suspicious/noDuplicateProperties: this isn't a real duplicate */
1920
min-height: 100svh;
2021

2122
margin: 0 auto;

frontend/src/components/LoadingScreen/LoadingScreen.module.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
/* Fallback for browsers that do not support 100svh */
1212
min-height: 100vh;
13+
/* biome-ignore lint/suspicious/noDuplicateProperties: this isn't a real duplicate */
1314
min-height: 100svh;
1415

1516
justify-content: center;

0 commit comments

Comments
 (0)