From 754ab769914ecc4bfb84ebc3a469162fe43835e6 Mon Sep 17 00:00:00 2001 From: Dinh Le Date: Sun, 6 Sep 2026 15:00:40 +0700 Subject: [PATCH] chore: remove --max-warnings=0 from eslint commands --- .claude/settings.json | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index 7a4c300..a97d6a6 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -6,7 +6,7 @@ "hooks": [ { "type": "command", - "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | { read -r f; ./node_modules/.bin/eslint --no-warn-ignored --max-warnings=0 --fix \"$f\"; } 2>/dev/null || true", + "command": "jq -r '.tool_input.file_path // .tool_response.filePath' | { read -r f; ./node_modules/.bin/eslint --no-warn-ignored --fix \"$f\"; } 2>/dev/null || true", "timeout": 30, "statusMessage": "Running eslint --fix" } diff --git a/package.json b/package.json index 3fc45bc..6dacf92 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,10 @@ "type:check": "pnpm run -r type:check && tsc", "test": "vitest run", "test:coverage": "vitest run --coverage", - "lint": "eslint --max-warnings=0 .", - "lint:fix": "eslint --max-warnings=0 --fix .", + "lint": "eslint .", + "lint:fix": "eslint --fix .", "repo:fix": "sherif --fix", - "sync:sponsors": "node scripts/sync-sponsors.ts && eslint --max-warnings=0 --fix '**/README.md'" + "sync:sponsors": "node scripts/sync-sponsors.ts && eslint --fix '**/README.md'" }, "devDependencies": { "@antfu/eslint-config": "^9.5.1", @@ -31,7 +31,7 @@ "pre-commit": "pnpm lint-staged" }, "lint-staged": { - "*": "eslint --no-warn-ignored --max-warnings=0 --fix" + "*": "eslint --no-warn-ignored --fix" }, "devEngines": { "packageManager": {