feat: 更新 eslint 配置

This commit is contained in:
hzm
2026-02-19 18:21:56 +08:00
parent 623c41acf6
commit b645c7d034
9 changed files with 5459 additions and 26 deletions

View File

@@ -5,7 +5,10 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
"start": "next start",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare": "husky"
},
"dependencies": {
"@dicebear/collection": "^9.3.1",
@@ -24,6 +27,15 @@
"node": ">=20.9.0"
},
"devDependencies": {
"babel-plugin-react-compiler": "^1.0.0"
"babel-plugin-react-compiler": "^1.0.0",
"eslint": "^9.0.0",
"eslint-config-next": "^16.1.5",
"husky": "^9.1.7",
"lint-staged": "^16.2.7"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint"
]
}
}