File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 17
17
"babel-preset-env" : " ^1.7.0" ,
18
18
"babel-register" : " ^6.26.0" ,
19
19
"chai" : " ^4.1.2" ,
20
- "eslint" : " ^5.6 .0" ,
20
+ "eslint" : " ^5.7 .0" ,
21
21
"eslint-config-canonical" : " ^12.0.0" ,
22
22
"gitdown" : " ^2.5.2" ,
23
23
"glob" : " ^7.1.2" ,
24
- "husky" : " ^0.14.3 " ,
24
+ "husky" : " ^1.1.2 " ,
25
25
"jsonlint" : " ^1.6.3" ,
26
26
"mocha" : " ^5.2.0" ,
27
27
"semantic-release" : " ^15.5.0"
40
40
"peerDependencies" : {
41
41
"eslint" : " >=2.0.0"
42
42
},
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
+ },
43
49
"repository" : {
44
50
"type" : " git" ,
45
51
"url" : " https://github.com/gajus/eslint-plugin-flowtype"
46
52
},
47
53
"scripts" : {
48
54
"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" ,
50
56
"documentation-add-assertions" : " babel-node ./bin/readmeAssertions" ,
51
57
"format-json" : " jsonlint --sort-keys --in-place --indent ' ' ./src/configs/recommended.json && echo '' >> ./src/configs/recommended.json" ,
52
58
"lint" : " eslint ./src ./tests" ,
53
- "precommit" : " npm run lint && npm run test && npm run format-json" ,
54
59
"test" : " mocha --compilers js:babel-register ./tests/rules/index.js"
55
60
},
56
61
"version" : " 2.30.1"
You can’t perform that action at this time.
0 commit comments