fix husky

This commit is contained in:
Kent C. Dodds
2019-07-31 12:54:29 -06:00
parent 9c51bd92fa
commit 898876d0d2

View File

@@ -8,8 +8,7 @@
"flow": "flow",
"format": "npm run prettier -- --write",
"prettier": "prettier \"**/*.+(js|json|ts|tsx|md)\"",
"validate": "npm run lint && npm run prettier -- --list-different && npm run flow",
"precommit": "lint-staged && npm run flow"
"validate": "npm run lint && npm run prettier -- --list-different && npm run flow"
},
"devDependencies": {
"babel-eslint": "^10.0.2",
@@ -19,5 +18,10 @@
"husky": "^3.0.2",
"lint-staged": "^9.2.1",
"prettier": "^1.18.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run flow"
}
}
}