File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1717 "babel-preset-env" : " ^1.7.0" ,
1818 "babel-register" : " ^6.26.0" ,
1919 "chai" : " ^4.1.2" ,
20- "eslint" : " ^5.6 .0" ,
20+ "eslint" : " ^5.7 .0" ,
2121 "eslint-config-canonical" : " ^12.0.0" ,
2222 "gitdown" : " ^2.5.2" ,
2323 "glob" : " ^7.1.2" ,
24- "husky" : " ^0.14.3 " ,
24+ "husky" : " ^1.1.2 " ,
2525 "jsonlint" : " ^1.6.3" ,
2626 "mocha" : " ^5.2.0" ,
2727 "semantic-release" : " ^15.5.0"
4040 "peerDependencies" : {
4141 "eslint" : " >=2.0.0"
4242 },
43+ "husky" : {
44+ "hooks" : {
45+ "post-commit" : " npm run create-readme && git add README.md && git commit -m 'docs: generate docs' --no-verify" ,
46+ "pre-commit" : " npm run lint && npm run test && npm run build && npm run format-json"
47+ }
48+ },
4349 "repository" : {
4450 "type" : " git" ,
4551 "url" : " https://github.com/gajus/eslint-plugin-flowtype"
4652 },
4753 "scripts" : {
4854 "build" : " rm -fr ./dist && babel ./src --out-dir ./dist --copy-files" ,
49- "documentation " : " gitdown ./.README/README.md --output-file ./README.md && npm run documentation-add-assertions" ,
55+ "create-readme " : " gitdown ./.README/README.md --output-file ./README.md && npm run documentation-add-assertions" ,
5056 "documentation-add-assertions" : " babel-node ./bin/readmeAssertions" ,
5157 "format-json" : " jsonlint --sort-keys --in-place --indent ' ' ./src/configs/recommended.json && echo '' >> ./src/configs/recommended.json" ,
5258 "lint" : " eslint ./src ./tests" ,
53- "precommit" : " npm run lint && npm run test && npm run format-json" ,
5459 "test" : " mocha --compilers js:babel-register ./tests/rules/index.js"
5560 },
5661 "version" : " 2.30.1"
You can’t perform that action at this time.
0 commit comments