We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c51bd9 commit 898876dCopy full SHA for 898876d
08-auto-format-all-files-and-validate-relevant-files-in-a-precommit-script-with-lint-staged/package.json
@@ -8,8 +8,7 @@
8
"flow": "flow",
9
"format": "npm run prettier -- --write",
10
"prettier": "prettier \"**/*.+(js|json|ts|tsx|md)\"",
11
- "validate": "npm run lint && npm run prettier -- --list-different && npm run flow",
12
- "precommit": "lint-staged && npm run flow"
+ "validate": "npm run lint && npm run prettier -- --list-different && npm run flow"
13
},
14
"devDependencies": {
15
"babel-eslint": "^10.0.2",
@@ -19,5 +18,10 @@
19
18
"husky": "^3.0.2",
20
"lint-staged": "^9.2.1",
21
"prettier": "^1.18.2"
+ },
22
+ "husky": {
23
+ "hooks": {
24
+ "pre-commit": "lint-staged && npm run flow"
25
+ }
26
}
27
0 commit comments