引入 mdx 以显示 markdown 文档,使用 tailwind 默认排版样式;修正 eslint 规则

This commit is contained in:
2025-06-05 17:29:32 +08:00
parent c17c17724f
commit 7fff0308d0
11 changed files with 1358 additions and 7 deletions

View File

@@ -3,13 +3,16 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev -H 0.0.0.0 --turbopack",
"dev": "next dev -H 0.0.0.0",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@hookform/resolvers": "^4.1.3",
"@mdx-js/loader": "^3.1.0",
"@mdx-js/react": "^3.1.0",
"@next/mdx": "^15.3.3",
"@radix-ui/react-alert-dialog": "^1.1.6",
"@radix-ui/react-checkbox": "^1.1.4",
"@radix-ui/react-dialog": "^1.1.6",
@@ -35,6 +38,7 @@
"react-dom": "^19.0.0",
"react-hook-form": "^7.54.2",
"recharts": "^2.15.3",
"remark-gfm": "^4.0.1",
"sonner": "^2.0.1",
"tailwind-merge": "^3.0.2",
"tailwindcss-animate": "^1.0.7",
@@ -46,6 +50,8 @@
"@next/eslint-plugin-next": "^15.2.1",
"@stylistic/eslint-plugin": "^4.2.0",
"@tailwindcss/postcss": "^4",
"@tailwindcss/typography": "^0.5.16",
"@types/mdx": "^2.0.13",
"@types/node": "^20",
"@types/qrcode": "^1.5.5",
"@types/react": "^19",
@@ -66,4 +72,4 @@
"react-is": "19.0.0-rc.1"
}
}
}
}