precommit hooks

This commit is contained in:
Daniel Lugo 2020-05-17 17:38:42 -04:00
parent 06e76cec45
commit 3f206bd05d
2 changed files with 504 additions and 89 deletions

View file

@ -10,15 +10,9 @@
"test": "jest --no-cache", "test": "jest --no-cache",
"test:watch": "jest --no-cache --watch", "test:watch": "jest --no-cache --watch",
"typecheck": "tsc", "typecheck": "tsc",
"eslint": "eslint services/**/*.js src/**/*.js utils/**/*.js config/**/*.js constants/**/*.js",
"lint": "eslint \"services/gunDB/**/*.js\"", "lint": "eslint \"services/gunDB/**/*.js\"",
"format": "prettier --write \"./**/*.js\"" "format": "prettier --write \"./**/*.js\""
}, },
"husky": {
"hooks": {
"precommit": "eslint"
}
},
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -40,7 +34,7 @@
"graphviz": "0.0.8", "graphviz": "0.0.8",
"grpc": "^1.21.1", "grpc": "^1.21.1",
"gun": "git://github.com/amark/gun#c59e0e95f92779ce6bb3aab823d318bc16b20c33", "gun": "git://github.com/amark/gun#c59e0e95f92779ce6bb3aab823d318bc16b20c33",
"husky": "^3.0.9", "husky": "^4.2.5",
"jsonfile": "^4.0.0", "jsonfile": "^4.0.0",
"jsonwebtoken": "^8.3.0", "jsonwebtoken": "^8.3.0",
"localtunnel": "^1.9.0", "localtunnel": "^1.9.0",
@ -77,9 +71,21 @@
"eslint-plugin-jest": "^22.20.1", "eslint-plugin-jest": "^22.20.1",
"eslint-plugin-prettier": "^3.1.1", "eslint-plugin-prettier": "^3.1.1",
"jest": "^24.9.0", "jest": "^24.9.0",
"lint-staged": "^10.2.2",
"nodemon": "^1.19.3", "nodemon": "^1.19.3",
"prettier": "^1.18.2", "prettier": "^1.18.2",
"ts-type": "^1.2.16", "ts-type": "^1.2.16",
"typescript": "^3.6.3" "typescript": "^3.6.3"
},
"lint-staged": {
"*.{js,ts}": [
"prettier --check",
"eslint"
]
},
"husky": {
"hooks": {
"pre-commit": "yarn lint && yarn typecheck && yarn lint-staged"
}
} }
} }

573
yarn.lock

File diff suppressed because it is too large Load diff