File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1717before_install :
1818 # Setup Node.js version-specific dependencies
1919 - " test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
20- - " test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint eslint-config-standard eslint-plugin-promise eslint-plugin-standard"
20+ - " test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint eslint-config-standard eslint-plugin-markdown eslint-plugin- promise eslint-plugin-standard"
2121 # Update Node.js modules
2222 - " test ! -d node_modules || npm prune"
2323 - " test ! -d node_modules || npm rebuild"
Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ $ npm install errorhandler
3636
3737## API
3838
39+ <!-- eslint-disable no-unused-vars -->
40+
3941``` js
4042var errorhandler = require (' errorhandler' )
4143```
@@ -90,6 +92,8 @@ if (process.env.NODE_ENV === 'development') {
9092Sometimes you may want to output the errors to a different location than STDERR
9193during development, like a system notification, for example.
9294
95+ <!-- eslint-disable handle-callback-err -->
96+
9397``` js
9498var connect = require (' connect' )
9599var errorhandler = require (' errorhandler' )
@@ -102,7 +106,7 @@ if (process.env.NODE_ENV === 'development') {
102106 app .use (errorhandler ({log: errorNotification}))
103107}
104108
105- function errorNotification (err , str , req ) {
109+ function errorNotification (err , str , req ) {
106110 var title = ' Error in ' + req .method + ' ' + req .url
107111
108112 notifier .notify ({
Original file line number Diff line number Diff line change 1616 "after" : " 0.8.2" ,
1717 "eslint" : " 3.14.1" ,
1818 "eslint-config-standard" : " 6.2.1" ,
19+ "eslint-plugin-markdown" : " 1.0.0-beta.3" ,
1920 "eslint-plugin-promise" : " 3.3.2" ,
2021 "eslint-plugin-standard" : " 2.0.1" ,
2122 "istanbul" : " 0.4.5" ,
3233 "node" : " >= 0.8"
3334 },
3435 "scripts" : {
35- "lint" : " eslint ." ,
36+ "lint" : " eslint --plugin markdown --ext js,md ." ,
3637 "test" : " mocha --reporter spec --bail --check-leaks test/" ,
3738 "test-cov" : " istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/" ,
3839 "test-travis" : " istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
You can’t perform that action at this time.
0 commit comments