Skip to content

Commit 5b3edcc

Browse files
committed
fix:lint error catch in local
1 parent 384713b commit 5b3edcc

5 files changed

Lines changed: 8 additions & 3 deletions

File tree

apps/core-api/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"build": "tsc",
1010
"start": "ts-node src/server.ts",
1111
"start:prod": "node dist/server.js",
12+
"typecheck": "tsc --noEmit",
1213
"test": "echo \"Error: no test specified\" && exit 1"
1314
},
1415
"keywords": [],

apps/web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "eslint ."
9+
"lint": "eslint .",
10+
"typecheck": "tsc --noEmit"
1011
},
1112
"dependencies": {
1213
"@aws-sdk/client-s3": "^3.1006.0",

apps/worker/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"start": "tsx src/main.ts",
99
"build": "tsc",
1010
"start:prod": "node dist/main.js",
11+
"typecheck": "tsc --noEmit",
1112
"test": "echo \"Error: no test specified\" && exit 1"
1213
},
1314
"keywords": [],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"dev": "pnpm -r dev ",
99
"build": "pnpm -r build",
1010
"lint": "pnpm -r lint",
11+
"typecheck": "pnpm -r typecheck",
1112
"test": "echo \"Error: no test specified\" && exit 1",
1213
"prepare": "husky"
1314
},
@@ -30,7 +31,7 @@
3031
},
3132
"lint-staged": {
3233
"*.{ts,tsx,js,jsx}": [
33-
"eslint --fix"
34+
"eslint --fix --max-warnings 0"
3435
],
3536
"*.{json,md,yml,yaml}": [
3637
"prettier --write"

packages/shared/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"scripts": {
8-
"build": "tsc"
8+
"build": "tsc",
9+
"typecheck": "tsc --noEmit"
910
},
1011
"devDependencies": {
1112
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)