mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
add husky checks
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user