add husky checks

This commit is contained in:
2019-12-25 20:51:12 +03:00
parent e272a605ba
commit 7ff76049c7
20 changed files with 276 additions and 59 deletions

View File

@@ -30,6 +30,7 @@
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.17.0",
"eslint-plugin-react-hooks": "^2.3.0",
"husky": "^3.1.0",
"mocha": "^6.2.2",
"prettier": "^1.19.1",
"supertest": "^4.0.2",
@@ -66,6 +67,8 @@
"node_modules"
],
"scripts": {
"pre-commit": "tslint --project . --fix && tslint --project ./frontend --fix && prettier src/** --write && prettier frontend/src/** --write",
"pre-push": "npm test && cd frontend && npm test",
"ts-node-dev": "ts-node-dev -r tsconfig-paths/register src/server.ts",
"start": "ts-node -T -r tsconfig-paths/register src/server.ts",
"prod-start": "cross-env NODE_ENV=development npm start",