Skip to content

Commit ea8ad01

Browse files
committed
fix: build fail
1 parent 1844ad9 commit ea8ad01

File tree

4 files changed

+629
-21
lines changed

4 files changed

+629
-21
lines changed

components/borrows/ListCardBorrow.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
import Link from 'next/link'
2121
import { Route } from 'next'
2222
import { GetBorrowQuery } from '@/lib/api/borrow'
23+
import { ViewTransition } from 'react'
2324

2425
export const ListCardBorrow: React.FC<
2526
React.PropsWithChildren<{

eslint.config.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
import nextCoreWebVitals from 'eslint-config-next/core-web-vitals'
2+
import nextTypescript from 'eslint-config-next/typescript'
13
import { dirname } from 'path'
24
import { fileURLToPath } from 'url'
3-
import { FlatCompat } from '@eslint/eslintrc'
45

56
const __filename = fileURLToPath(import.meta.url)
67
const __dirname = dirname(__filename)
78

8-
const compat = new FlatCompat({
9-
baseDirectory: __dirname,
10-
})
11-
129
const eslintConfig = [
1310
{
1411
ignores: [
@@ -19,7 +16,8 @@ const eslintConfig = [
1916
'next-env.d.ts',
2017
],
2118
},
22-
...compat.extends('next/core-web-vitals', 'next/typescript'),
19+
...nextCoreWebVitals,
20+
...nextTypescript,
2321
]
2422

2523
export default eslintConfig

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"analyze": "next experimental-analyze",
1010
"build": "next build --turbopack",
1111
"start": "next start",
12-
"lint": "eslint .",
13-
"format": "prettier --write .",
12+
"lint": "biome check",
13+
"format": "biome format --write",
1414
"typegen": "next typegen && tsc --noEmit",
1515
"typecheck": "tsc --noEmit"
1616
},
@@ -74,14 +74,14 @@
7474
"zod": "^4.0.0"
7575
},
7676
"devDependencies": {
77-
"@eslint/eslintrc": "^3",
7877
"@tailwindcss/postcss": "^4.0.8",
7978
"@tailwindcss/typography": "^0.5.16",
8079
"@types/ioredis": "^5.0.0",
8180
"@types/node": "^20",
8281
"@types/qrcode": "^1.5.6",
8382
"@types/react": "19.2.7",
8483
"@types/react-dom": "19.2.3",
84+
"biome": "^0.3.3",
8585
"eslint": "^9",
8686
"eslint-config-next": "^16.1.6",
8787
"postcss": "^8",

0 commit comments

Comments
 (0)