chore(deps): update dependency @biomejs/biome to v1.5.0
chore(fe): resolve linter+typecheck feedback
This commit is contained in:
parent
1ba89b492d
commit
cdaae6d4c1
6 changed files with 63 additions and 40 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/1.5.0/schema.json",
|
||||
"files": {
|
||||
"ignore": [
|
||||
"**/dist/**"
|
||||
|
|
|
@ -29,7 +29,7 @@ function LoginView() {
|
|||
inputType="email"
|
||||
/>
|
||||
),
|
||||
[emailAddress, setEmailAddress],
|
||||
[emailAddress],
|
||||
)
|
||||
|
||||
const passwordField = React.useMemo(
|
||||
|
@ -42,7 +42,7 @@ function LoginView() {
|
|||
inputType="password"
|
||||
/>
|
||||
),
|
||||
[setPassword, password],
|
||||
[password],
|
||||
)
|
||||
|
||||
const isFormValid = React.useMemo(() => {
|
||||
|
|
|
@ -44,7 +44,7 @@ describe("NavigationBar", () => {
|
|||
it("Clicking the upload button and selecting a file POSTs the file", async () => {
|
||||
const axiosMock = getAxiosMockAdapter()
|
||||
axiosMock.onGet("/auth/user/").reply(200)
|
||||
const expectedUrlPattern = new RegExp("/files/$")
|
||||
const expectedUrlPattern = /files\/$/
|
||||
axiosMock.onPost(expectedUrlPattern).reply(200, {
|
||||
id: "b61bf93d-a9db-473e-822e-a65003b1b7e3",
|
||||
filename: "test.txt",
|
||||
|
|
|
@ -44,7 +44,7 @@ function RegisterView() {
|
|||
value={emailAddress}
|
||||
/>
|
||||
),
|
||||
[emailAddress, setEmailAddress],
|
||||
[emailAddress],
|
||||
)
|
||||
|
||||
const passwordField = React.useMemo(
|
||||
|
@ -59,7 +59,7 @@ function RegisterView() {
|
|||
value={password}
|
||||
/>
|
||||
),
|
||||
[setPassword, password],
|
||||
[password],
|
||||
)
|
||||
|
||||
const isFormValid = React.useMemo(() => {
|
||||
|
|
|
@ -98,11 +98,14 @@ export function LocationContext({
|
|||
label,
|
||||
pattern.split("/").filter((pattern) => Boolean(pattern)),
|
||||
])
|
||||
.reduce((splitUrlMap, current) => {
|
||||
const [label, pattern] = current
|
||||
splitUrlMap[label] = pattern
|
||||
return splitUrlMap
|
||||
}, {} as { [key: string]: Array<string> })
|
||||
.reduce(
|
||||
(splitUrlMap, current) => {
|
||||
const [label, pattern] = current
|
||||
splitUrlMap[label] = pattern
|
||||
return splitUrlMap
|
||||
},
|
||||
{} as { [key: string]: Array<string> },
|
||||
)
|
||||
}, [routes])
|
||||
|
||||
const [location, setLocation] = useState<Location>(
|
||||
|
|
|
@ -1339,15 +1339,17 @@ __metadata:
|
|||
linkType: hard
|
||||
|
||||
"@biomejs/biome@npm:^1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/biome@npm:1.4.1"
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/biome@npm:1.5.0"
|
||||
dependencies:
|
||||
"@biomejs/cli-darwin-arm64": "npm:1.4.1"
|
||||
"@biomejs/cli-darwin-x64": "npm:1.4.1"
|
||||
"@biomejs/cli-linux-arm64": "npm:1.4.1"
|
||||
"@biomejs/cli-linux-x64": "npm:1.4.1"
|
||||
"@biomejs/cli-win32-arm64": "npm:1.4.1"
|
||||
"@biomejs/cli-win32-x64": "npm:1.4.1"
|
||||
"@biomejs/cli-darwin-arm64": "npm:1.5.0"
|
||||
"@biomejs/cli-darwin-x64": "npm:1.5.0"
|
||||
"@biomejs/cli-linux-arm64": "npm:1.5.0"
|
||||
"@biomejs/cli-linux-arm64-musl": "npm:1.5.0"
|
||||
"@biomejs/cli-linux-x64": "npm:1.5.0"
|
||||
"@biomejs/cli-linux-x64-musl": "npm:1.5.0"
|
||||
"@biomejs/cli-win32-arm64": "npm:1.5.0"
|
||||
"@biomejs/cli-win32-x64": "npm:1.5.0"
|
||||
dependenciesMeta:
|
||||
"@biomejs/cli-darwin-arm64":
|
||||
optional: true
|
||||
|
@ -1355,56 +1357,74 @@ __metadata:
|
|||
optional: true
|
||||
"@biomejs/cli-linux-arm64":
|
||||
optional: true
|
||||
"@biomejs/cli-linux-arm64-musl":
|
||||
optional: true
|
||||
"@biomejs/cli-linux-x64":
|
||||
optional: true
|
||||
"@biomejs/cli-linux-x64-musl":
|
||||
optional: true
|
||||
"@biomejs/cli-win32-arm64":
|
||||
optional: true
|
||||
"@biomejs/cli-win32-x64":
|
||||
optional: true
|
||||
bin:
|
||||
biome: bin/biome
|
||||
checksum: fad12f5fdca7fe51f5ebf0cd559cd6ab67a6ffdb6c4b834cbd3221c1e0ca86c5ea80a565cb3bcdba0901f1055a9050db0a399c43e8c3d469cfd8bc31b95a5aca
|
||||
checksum: db7e9635fe1fb844df887326d901be8b7adf49c719a056c7c3176b042e46d0d8923729870e6aa61c432fd398bc52791288e49e84062d2736efdfb51faf1e3469
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-darwin-arm64@npm:1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/cli-darwin-arm64@npm:1.4.1"
|
||||
"@biomejs/cli-darwin-arm64@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-darwin-arm64@npm:1.5.0"
|
||||
conditions: os=darwin & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-darwin-x64@npm:1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/cli-darwin-x64@npm:1.4.1"
|
||||
"@biomejs/cli-darwin-x64@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-darwin-x64@npm:1.5.0"
|
||||
conditions: os=darwin & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-linux-arm64@npm:1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/cli-linux-arm64@npm:1.4.1"
|
||||
conditions: os=linux & cpu=arm64
|
||||
"@biomejs/cli-linux-arm64-musl@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.5.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-linux-x64@npm:1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/cli-linux-x64@npm:1.4.1"
|
||||
conditions: os=linux & cpu=x64
|
||||
"@biomejs/cli-linux-arm64@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-linux-arm64@npm:1.5.0"
|
||||
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-win32-arm64@npm:1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/cli-win32-arm64@npm:1.4.1"
|
||||
"@biomejs/cli-linux-x64-musl@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-linux-x64-musl@npm:1.5.0"
|
||||
conditions: os=linux & cpu=x64 & libc=musl
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-linux-x64@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-linux-x64@npm:1.5.0"
|
||||
conditions: os=linux & cpu=x64 & libc=glibc
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-win32-arm64@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-win32-arm64@npm:1.5.0"
|
||||
conditions: os=win32 & cpu=arm64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@biomejs/cli-win32-x64@npm:1.4.1":
|
||||
version: 1.4.1
|
||||
resolution: "@biomejs/cli-win32-x64@npm:1.4.1"
|
||||
"@biomejs/cli-win32-x64@npm:1.5.0":
|
||||
version: 1.5.0
|
||||
resolution: "@biomejs/cli-win32-x64@npm:1.5.0"
|
||||
conditions: os=win32 & cpu=x64
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
|
Reference in a new issue