"scripts": {
"precommit": "npm run precommit:client && npm run precommit:server",
"precommit:client": "cd client && npm run precommit",
"precommit:server": "cd server && npm run precommit"
},
"scripts": {
...
"precommit": "pretty-quick --staged && npm run lint:fix",
"lint": "tslint --project tsconfig.json",
"lint:fix": "tslint --project tsconfig.json --fix",
}
"scripts": {
...
"precommit": "pretty-quick --staged && npm run lint:fix",
"lint": "eslint src/",
"lint:fix": "eslint --fix src --ext .js",
}