From 120ceb0b551587d5e986cc54f1aefa8c4243a0ff Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 30 Jan 2026 12:03:43 +0800 Subject: [PATCH] chore: update linting configuration to use eslint directly --- web/.lintstagedrc.json | 2 +- web/package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/.lintstagedrc.json b/web/.lintstagedrc.json index ab33c2b3..f1750706 100644 --- a/web/.lintstagedrc.json +++ b/web/.lintstagedrc.json @@ -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"] } diff --git a/web/package.json b/web/package.json index 8178da3b..a45d8995 100644 --- a/web/package.json +++ b/web/package.json @@ -6,7 +6,8 @@ "dev": "next dev --turbopack", "build": "next build", "start": "next start", - "lint": "next lint", + "lint": "eslint .", + "lint:fix": "eslint . --fix", "lint-staged": "lint-staged" }, "lint-staged": {