Skip to content

Commit 7af99ef

Browse files
committed
lint: use standard style in readme
1 parent 35596f6 commit 7af99ef

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cache:
1717
before_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"

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ $ npm install errorhandler
3636

3737
## API
3838

39+
<!-- eslint-disable no-unused-vars -->
40+
3941
```js
4042
var errorhandler = require('errorhandler')
4143
```
@@ -90,6 +92,8 @@ if (process.env.NODE_ENV === 'development') {
9092
Sometimes you may want to output the errors to a different location than STDERR
9193
during development, like a system notification, for example.
9294

95+
<!-- eslint-disable handle-callback-err -->
96+
9397
```js
9498
var connect = require('connect')
9599
var 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({

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
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",
@@ -32,7 +33,7 @@
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/"

0 commit comments

Comments
 (0)