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.
2 parents b2fa746 + 17a98cc commit c689c9fCopy full SHA for c689c9f
package.json
@@ -91,11 +91,24 @@
91
"devDependencies": {
92
"@babel/preset-flow": "^7.0.0",
93
"eslint-config-prettier": "^2.6.0",
94
+ "husky": "^1.3.1",
95
+ "lint-staged": "^8.1.4",
96
"lz-string": "^1.4.4",
97
"npm-run-all": "^4.1.5",
98
"recursive-readdir": "^2.2.1",
99
"textlint": "^11.2.1",
100
"textlint-rule-preset-jtf-style": "^2.3.3",
101
"unist-util-map": "^1.0.3"
102
+ },
103
+ "husky": {
104
+ "hooks": {
105
+ "pre-commit": "lint-staged"
106
+ }
107
108
+ "lint-staged": {
109
+ "*.md": [
110
+ "textlint --rulesdir=./textlint",
111
+ "git add"
112
+ ]
113
}
114
0 commit comments