Skip to content

Commit ca41e23

Browse files
committed
fix: remove deprecated --ext flag from ESLint scripts and improve pnpm detection in pre-push hook
1 parent af2e9ed commit ca41e23

File tree

8 files changed

+14
-8
lines changed

8 files changed

+14
-8
lines changed

.husky/pre-push

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ fi
77

88
# Detect if running on Windows and use pnpm.cmd, otherwise use pnpm.
99
if [ "$OS" = "Windows_NT" ]; then
10-
pnpm_cmd="pnpm.cmd"
10+
if command -v pnpm.cmd >/dev/null 2>&1; then
11+
pnpm_cmd="pnpm.cmd"
12+
elif command -v pnpm >/dev/null 2>&1; then
13+
pnpm_cmd="pnpm"
14+
else
15+
pnpm_cmd="npx pnpm"
16+
fi
1117
else
1218
if command -v pnpm >/dev/null 2>&1; then
1319
pnpm_cmd="pnpm"

apps/vscode-e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@roo-code/vscode-e2e",
33
"private": true,
44
"scripts": {
5-
"lint": "eslint src --ext=ts --max-warnings=0",
5+
"lint": "eslint src --max-warnings=0",
66
"check-types": "tsc -p tsconfig.esm.json --noEmit",
77
"format": "prettier --write src",
88
"test:ci": "pnpm -w bundle && pnpm --filter @roo-code/vscode-webview build && pnpm test:run",

packages/build/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "./dist/index.js",
77
"types": "./src/index.ts",
88
"scripts": {
9-
"lint": "eslint src --ext=ts --max-warnings=0",
9+
"lint": "eslint src --max-warnings=0",
1010
"check-types": "tsc --noEmit",
1111
"test": "vitest run",
1212
"build": "tsc",

packages/cloud/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"exports": "./src/index.ts",
77
"scripts": {
8-
"lint": "eslint src --ext=ts --max-warnings=0",
8+
"lint": "eslint src --max-warnings=0",
99
"check-types": "tsc --noEmit",
1010
"test": "vitest run",
1111
"clean": "rimraf dist .turbo"

packages/telemetry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"exports": "./src/index.ts",
77
"scripts": {
8-
"lint": "eslint src --ext=ts --max-warnings=0",
8+
"lint": "eslint src --max-warnings=0",
99
"check-types": "tsc --noEmit",
1010
"test": "vitest run",
1111
"clean": "rimraf dist .turbo"

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
},
1616
"scripts": {
17-
"lint": "eslint src --ext=ts --max-warnings=0",
17+
"lint": "eslint src --max-warnings=0",
1818
"check-types": "tsc --noEmit",
1919
"test": "vitest run",
2020
"build": "tsup",

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
}
340340
},
341341
"scripts": {
342-
"lint": "eslint . --ext=ts --max-warnings=0",
342+
"lint": "eslint . --max-warnings=0",
343343
"check-types": "tsc --noEmit",
344344
"pretest": "turbo run bundle --cwd ..",
345345
"test": "jest -w=40% && vitest run",

webview-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6-
"lint": "eslint src --ext=ts,tsx --max-warnings=0",
6+
"lint": "eslint src --max-warnings=0",
77
"check-types": "tsc",
88
"pretest": "turbo run bundle --cwd ..",
99
"test": "jest -w=40%",

0 commit comments

Comments
 (0)