Skip to content

Commit 1dd38eb

Browse files
committed
test: Add pre-commit hook for Lint
1 parent 4d25479 commit 1dd38eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

package.json

+11
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,16 @@
9999
"textlint": "^11.2.1",
100100
"textlint-rule-preset-jtf-style": "^2.3.3",
101101
"unist-util-map": "^1.0.3"
102+
},
103+
"husky": {
104+
"hooks": {
105+
"pre-commit": "lint-staged"
106+
}
107+
},
108+
"lint-staged": {
109+
"*.md": [
110+
"npm run lint:text",
111+
"git add"
112+
]
102113
}
103114
}

0 commit comments

Comments
 (0)