feat: 更新 eslint 配置
This commit is contained in:
16
package.json
16
package.json
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user