From af9351f572961f029e418416f320a7e2851cbcd4 Mon Sep 17 00:00:00 2001 From: jinno Date: Sat, 12 Apr 2025 09:34:08 +0900 Subject: [PATCH] Fix eslint error about --ext option by remove it --- e2e/package.json | 2 +- evals/apps/cli/package.json | 2 +- evals/packages/db/package.json | 2 +- evals/packages/ipc/package.json | 2 +- evals/packages/lib/package.json | 2 +- evals/packages/types/package.json | 2 +- package.json | 2 +- webview-ui/package.json | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/e2e/package.json b/e2e/package.json index d6a2c7af000..aec42f93f1d 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "lint": "eslint src --ext ts", + "lint": "eslint src/**/*.ts", "check-types": "tsc --noEmit", "test": "npm run build && npx dotenvx run -f .env.local -- node ./out/runTest.js", "ci": "npm run vscode-test && npm run test", diff --git a/evals/apps/cli/package.json b/evals/apps/cli/package.json index 3e7da0266e9..8744c1c7f1e 100644 --- a/evals/apps/cli/package.json +++ b/evals/apps/cli/package.json @@ -3,7 +3,7 @@ "private": true, "type": "module", "scripts": { - "lint": "eslint src --ext ts --max-warnings=0", + "lint": "eslint src/**/*.ts --max-warnings=0", "check-types": "tsc --noEmit", "format": "prettier --write src", "dev": "dotenvx run -f ../../.env -- tsx src/index.ts" diff --git a/evals/packages/db/package.json b/evals/packages/db/package.json index 9e22267d221..93286680401 100644 --- a/evals/packages/db/package.json +++ b/evals/packages/db/package.json @@ -4,7 +4,7 @@ "type": "module", "exports": "./src/index.ts", "scripts": { - "lint": "eslint src --ext ts --max-warnings=0", + "lint": "eslint src/**/*.ts --max-warnings=0", "check-types": "tsc --noEmit", "format": "prettier --write src", "drizzle-kit": "dotenvx run -f ../../.env -- tsx node_modules/drizzle-kit/bin.cjs", diff --git a/evals/packages/ipc/package.json b/evals/packages/ipc/package.json index 902ebff26c2..d833142cc86 100644 --- a/evals/packages/ipc/package.json +++ b/evals/packages/ipc/package.json @@ -4,7 +4,7 @@ "type": "module", "exports": "./src/index.ts", "scripts": { - "lint": "eslint src --ext ts --max-warnings=0", + "lint": "eslint src/**/*.ts --max-warnings=0", "check-types": "tsc --noEmit", "format": "prettier --write src" }, diff --git a/evals/packages/lib/package.json b/evals/packages/lib/package.json index 0fef85a63b2..ac6ad9e51b4 100644 --- a/evals/packages/lib/package.json +++ b/evals/packages/lib/package.json @@ -4,7 +4,7 @@ "type": "module", "exports": "./src/index.ts", "scripts": { - "lint": "eslint src --ext ts --max-warnings=0", + "lint": "eslint src/**/*.ts --max-warnings=0", "check-types": "tsc --noEmit", "test": "vitest --globals --run", "format": "prettier --write src" diff --git a/evals/packages/types/package.json b/evals/packages/types/package.json index 229c2bd780f..7e6f58afe4e 100644 --- a/evals/packages/types/package.json +++ b/evals/packages/types/package.json @@ -4,7 +4,7 @@ "type": "module", "exports": "./src/index.ts", "scripts": { - "lint": "eslint src --ext ts --max-warnings=0", + "lint": "eslint src/**/*.ts --max-warnings=0", "check-types": "tsc --noEmit", "format": "prettier --write src" }, diff --git a/package.json b/package.json index 9e80dfafd83..ca76bc49902 100644 --- a/package.json +++ b/package.json @@ -359,7 +359,7 @@ "install-webview": "cd webview-ui && npm install", "install-e2e": "cd e2e && npm install", "lint": "npm-run-all -l -p lint:*", - "lint:extension": "eslint src --ext ts", + "lint:extension": "eslint src/**/*.ts", "lint:webview": "cd webview-ui && npm run lint", "lint:e2e": "cd e2e && npm run lint", "check-types": "npm-run-all -l -p check-types:*", diff --git a/webview-ui/package.json b/webview-ui/package.json index 6c4c157176a..981e540f7ec 100644 --- a/webview-ui/package.json +++ b/webview-ui/package.json @@ -4,8 +4,8 @@ "private": true, "type": "module", "scripts": { - "lint": "eslint src --ext ts,tsx", - "lint-fix": "eslint src --ext ts,tsx --fix", + "lint": "eslint src/**/*.ts src/**/*.tsx", + "lint-fix": "eslint src/**/*.ts src/**/*.tsx --fix", "check-types": "tsc", "test": "jest", "dev": "vite",