Skip to content

Commit 6a8add9

Browse files
committed
split more commands
1 parent 0271233 commit 6a8add9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@
1010
"precommit": "lint-staged",
1111
"build": "npm run --prefix server build",
1212
"lint": "npm run build && eslint server client",
13+
"lint:client": "cd client && npm run lint",
14+
"lint:server": "cd server && npm run lint",
1315
"test": "npm run build && jest --projects client server --runInBand",
1416
"test-watch": "jest --projects client server --watch"
1517
},
1618
"lint-staged": {
1719
"*.js": [
1820
"prettier --write \"server/src/**/*.{js,ts}\"",
1921
"cd server && npm build",
20-
"eslint --fix",
22+
"cd client && npm run lint --fix",
23+
"cd server && npm run lint --fix",
2124
"git add"
2225
],
2326
"*.ts": [
2427
"prettier --write \"server/src/**/*.{js,ts}\"",
2528
"cd server && npm build",
26-
"eslint --fix",
29+
"cd client && npm run lint --fix",
30+
"cd server && npm run lint --fix",
2731
"git add"
2832
]
2933
},

0 commit comments

Comments
 (0)