chore: update linting configuration to use eslint directly

This commit is contained in:
Junyan Qin
2026-01-30 12:03:43 +08:00
parent 8a6f80a181
commit 120ceb0b55
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
{ {
"*.{js,jsx,ts,tsx}": ["next lint --fix --file", "next lint --file"], "*.{js,jsx,ts,tsx}": ["eslint --fix"],
"**/*": ["bash -c 'cd \"$(pwd)\" && next build"] "**/*": ["bash -c 'cd \"$(pwd)\" && next build"]
} }

View File

@@ -6,7 +6,8 @@
"dev": "next dev --turbopack", "dev": "next dev --turbopack",
"build": "next build", "build": "next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint-staged": "lint-staged" "lint-staged": "lint-staged"
}, },
"lint-staged": { "lint-staged": {