更新 ESLint 配置,修改 lint 脚本命令

This commit is contained in:
JIANG
2026-03-10 11:38:37 +08:00
parent 520e1cb3f1
commit 64dcf9cbdb
3 changed files with 6 additions and 4 deletions
-3
View File
@@ -1,3 +0,0 @@
{
"extends": "next/core-web-vitals"
}
+5
View File
@@ -0,0 +1,5 @@
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
const config = [...nextCoreWebVitals];
export default config;
+1 -1
View File
@@ -9,7 +9,7 @@
"dev": "cross-env NODE_OPTIONS=--max_old_space_size=4096 refine dev",
"build": "refine build",
"start": "refine start",
"lint": "next lint",
"lint": "eslint .",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",