fix husky
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user