Files
static-testing-tools/07-run-the-validate-script-in-a-pre-commit-git-hook-with-husky/package.json
2019-07-31 20:24:08 -06:00

27 lines
698 B
JSON

{
"name": "static-testing-tools",
"private": true,
"author": "Kent C. Dodds <kent@doddsfamily.us> (http://kentcdodds.com/)",
"license": "GPLv3",
"scripts": {
"lint": "eslint .",
"check-types": "tsc",
"format": "npm run prettier -- --write",
"prettier": "prettier \"**/*.+(js|json|ts)\"",
"validate": "npm run lint && npm run prettier -- --list-different && npm run check-types"
},
"devDependencies": {
"babel-eslint": "11.0.0-beta.0",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.0.0",
"husky": "^3.0.2",
"prettier": "^1.18.2",
"typescript": "^3.5.3"
},
"husky": {
"hooks": {
"pre-commit": "npm run validate"
}
}
}