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": {
|
"files": {
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/dist/**"
|
"**/dist/**"
|
||||||
|
|
|
@ -29,7 +29,7 @@ function LoginView() {
|
||||||
inputType="email"
|
inputType="email"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
[emailAddress, setEmailAddress],
|
[emailAddress],
|
||||||
)
|
)
|
||||||
|
|
||||||
const passwordField = React.useMemo(
|
const passwordField = React.useMemo(
|
||||||
|
@ -42,7 +42,7 @@ function LoginView() {
|
||||||
inputType="password"
|
inputType="password"
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
[setPassword, password],
|
[password],
|
||||||
)
|
)
|
||||||
|
|
||||||
const isFormValid = React.useMemo(() => {
|
const isFormValid = React.useMemo(() => {
|
||||||
|
|
|
@ -44,7 +44,7 @@ describe("NavigationBar", () => {
|
||||||
it("Clicking the upload button and selecting a file POSTs the file", async () => {
|
it("Clicking the upload button and selecting a file POSTs the file", async () => {
|
||||||
const axiosMock = getAxiosMockAdapter()
|
const axiosMock = getAxiosMockAdapter()
|
||||||
axiosMock.onGet("/auth/user/").reply(200)
|
axiosMock.onGet("/auth/user/").reply(200)
|
||||||
const expectedUrlPattern = new RegExp("/files/$")
|
const expectedUrlPattern = /files\/$/
|
||||||
axiosMock.onPost(expectedUrlPattern).reply(200, {
|
axiosMock.onPost(expectedUrlPattern).reply(200, {
|
||||||
id: "b61bf93d-a9db-473e-822e-a65003b1b7e3",
|
id: "b61bf93d-a9db-473e-822e-a65003b1b7e3",
|
||||||
filename: "test.txt",
|
filename: "test.txt",
|
||||||
|
|
|
@ -44,7 +44,7 @@ function RegisterView() {
|
||||||
value={emailAddress}
|
value={emailAddress}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
[emailAddress, setEmailAddress],
|
[emailAddress],
|
||||||
)
|
)
|
||||||
|
|
||||||
const passwordField = React.useMemo(
|
const passwordField = React.useMemo(
|
||||||
|
@ -59,7 +59,7 @@ function RegisterView() {
|
||||||
value={password}
|
value={password}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
[setPassword, password],
|
[password],
|
||||||
)
|
)
|
||||||
|
|
||||||
const isFormValid = React.useMemo(() => {
|
const isFormValid = React.useMemo(() => {
|
||||||
|
|
|
@ -98,11 +98,14 @@ export function LocationContext({
|
||||||
label,
|
label,
|
||||||
pattern.split("/").filter((pattern) => Boolean(pattern)),
|
pattern.split("/").filter((pattern) => Boolean(pattern)),
|
||||||
])
|
])
|
||||||
.reduce((splitUrlMap, current) => {
|
.reduce(
|
||||||
const [label, pattern] = current
|
(splitUrlMap, current) => {
|
||||||
splitUrlMap[label] = pattern
|
const [label, pattern] = current
|
||||||
return splitUrlMap
|
splitUrlMap[label] = pattern
|
||||||
}, {} as { [key: string]: Array<string> })
|
return splitUrlMap
|
||||||
|
},
|
||||||
|
{} as { [key: string]: Array<string> },
|
||||||
|
)
|
||||||
}, [routes])
|
}, [routes])
|
||||||
|
|
||||||
const [location, setLocation] = useState<Location>(
|
const [location, setLocation] = useState<Location>(
|
||||||
|
|
|
@ -1339,15 +1339,17 @@ __metadata:
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/biome@npm:^1.4.1":
|
"@biomejs/biome@npm:^1.4.1":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/biome@npm:1.4.1"
|
resolution: "@biomejs/biome@npm:1.5.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@biomejs/cli-darwin-arm64": "npm:1.4.1"
|
"@biomejs/cli-darwin-arm64": "npm:1.5.0"
|
||||||
"@biomejs/cli-darwin-x64": "npm:1.4.1"
|
"@biomejs/cli-darwin-x64": "npm:1.5.0"
|
||||||
"@biomejs/cli-linux-arm64": "npm:1.4.1"
|
"@biomejs/cli-linux-arm64": "npm:1.5.0"
|
||||||
"@biomejs/cli-linux-x64": "npm:1.4.1"
|
"@biomejs/cli-linux-arm64-musl": "npm:1.5.0"
|
||||||
"@biomejs/cli-win32-arm64": "npm:1.4.1"
|
"@biomejs/cli-linux-x64": "npm:1.5.0"
|
||||||
"@biomejs/cli-win32-x64": "npm:1.4.1"
|
"@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:
|
dependenciesMeta:
|
||||||
"@biomejs/cli-darwin-arm64":
|
"@biomejs/cli-darwin-arm64":
|
||||||
optional: true
|
optional: true
|
||||||
|
@ -1355,56 +1357,74 @@ __metadata:
|
||||||
optional: true
|
optional: true
|
||||||
"@biomejs/cli-linux-arm64":
|
"@biomejs/cli-linux-arm64":
|
||||||
optional: true
|
optional: true
|
||||||
|
"@biomejs/cli-linux-arm64-musl":
|
||||||
|
optional: true
|
||||||
"@biomejs/cli-linux-x64":
|
"@biomejs/cli-linux-x64":
|
||||||
optional: true
|
optional: true
|
||||||
|
"@biomejs/cli-linux-x64-musl":
|
||||||
|
optional: true
|
||||||
"@biomejs/cli-win32-arm64":
|
"@biomejs/cli-win32-arm64":
|
||||||
optional: true
|
optional: true
|
||||||
"@biomejs/cli-win32-x64":
|
"@biomejs/cli-win32-x64":
|
||||||
optional: true
|
optional: true
|
||||||
bin:
|
bin:
|
||||||
biome: bin/biome
|
biome: bin/biome
|
||||||
checksum: fad12f5fdca7fe51f5ebf0cd559cd6ab67a6ffdb6c4b834cbd3221c1e0ca86c5ea80a565cb3bcdba0901f1055a9050db0a399c43e8c3d469cfd8bc31b95a5aca
|
checksum: db7e9635fe1fb844df887326d901be8b7adf49c719a056c7c3176b042e46d0d8923729870e6aa61c432fd398bc52791288e49e84062d2736efdfb51faf1e3469
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/cli-darwin-arm64@npm:1.4.1":
|
"@biomejs/cli-darwin-arm64@npm:1.5.0":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/cli-darwin-arm64@npm:1.4.1"
|
resolution: "@biomejs/cli-darwin-arm64@npm:1.5.0"
|
||||||
conditions: os=darwin & cpu=arm64
|
conditions: os=darwin & cpu=arm64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/cli-darwin-x64@npm:1.4.1":
|
"@biomejs/cli-darwin-x64@npm:1.5.0":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/cli-darwin-x64@npm:1.4.1"
|
resolution: "@biomejs/cli-darwin-x64@npm:1.5.0"
|
||||||
conditions: os=darwin & cpu=x64
|
conditions: os=darwin & cpu=x64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/cli-linux-arm64@npm:1.4.1":
|
"@biomejs/cli-linux-arm64-musl@npm:1.5.0":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/cli-linux-arm64@npm:1.4.1"
|
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.5.0"
|
||||||
conditions: os=linux & cpu=arm64
|
conditions: os=linux & cpu=arm64 & libc=musl
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/cli-linux-x64@npm:1.4.1":
|
"@biomejs/cli-linux-arm64@npm:1.5.0":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/cli-linux-x64@npm:1.4.1"
|
resolution: "@biomejs/cli-linux-arm64@npm:1.5.0"
|
||||||
conditions: os=linux & cpu=x64
|
conditions: os=linux & cpu=arm64 & libc=glibc
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/cli-win32-arm64@npm:1.4.1":
|
"@biomejs/cli-linux-x64-musl@npm:1.5.0":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/cli-win32-arm64@npm:1.4.1"
|
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
|
conditions: os=win32 & cpu=arm64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@biomejs/cli-win32-x64@npm:1.4.1":
|
"@biomejs/cli-win32-x64@npm:1.5.0":
|
||||||
version: 1.4.1
|
version: 1.5.0
|
||||||
resolution: "@biomejs/cli-win32-x64@npm:1.4.1"
|
resolution: "@biomejs/cli-win32-x64@npm:1.5.0"
|
||||||
conditions: os=win32 & cpu=x64
|
conditions: os=win32 & cpu=x64
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
Reference in a new issue