File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ sudo: required
3
3
language : node_js
4
4
5
5
node_js :
6
- - 6
7
6
- 8
8
7
- 10
9
8
- 12
@@ -23,9 +22,9 @@ before_script:
23
22
- docker ps -a
24
23
25
24
script :
26
- # - npm run lint
25
+ - yarn lint
27
26
# turn off lint for the moment
28
- - MONGODB_URL=mongodb://localhost/connect-mongo-test travis_retry npm test
27
+ - MONGODB_URL=mongodb://localhost/connect-mongo-test travis_retry yarn test
29
28
30
29
after_success :
31
- - npm install coveralls -g && npm run cover | coveralls
30
+ - npm install coveralls -g && yarn cover | coveralls
Original file line number Diff line number Diff line change
1
+ module . exports = { extends : [ '@commitlint/config-conventional' ] }
Original file line number Diff line number Diff line change 51
51
"lint:fix" : " eslint src test --fix" ,
52
52
"cover" : " nyc report --reporter=text-lcov" ,
53
53
"test" : " nyc mocha"
54
+ },
55
+ "husky" : {
56
+ "hooks" : {
57
+ "pre-commit" : " lint-staged" ,
58
+ "commit-msg" : " commitlint -E HUSKY_GIT_PARAMS"
59
+ }
60
+ },
61
+ "lint-staged" : {
62
+ "*.js" : [
63
+ " eslint --fix" ,
64
+ " git add"
65
+ ]
54
66
}
55
67
}
You can’t perform that action at this time.
0 commit comments