Skip to content

Commit f24d228

Browse files
committed
lint: run eslint against README
1 parent 44ee046 commit f24d228

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ before_install:
2020
- "npm config set shrinkwrap false"
2121
# Setup Node.js version-specific dependencies
2222
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
23-
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint"
23+
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint eslint-plugin-markdown"
2424
# Update Node.js modules
2525
- "test ! -d node_modules || npm prune"
2626
- "test ! -d node_modules || npm rebuild"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"after": "0.8.2",
2525
"cookie-parser": "1.4.3",
2626
"eslint": "3.19.0",
27+
"eslint-plugin-markdown": "1.0.0-beta.6",
2728
"express": "4.15.4",
2829
"istanbul": "0.4.5",
2930
"mocha": "2.5.3",
@@ -39,7 +40,7 @@
3940
"node": ">= 0.8.0"
4041
},
4142
"scripts": {
42-
"lint": "eslint .",
43+
"lint": "eslint --plugin markdown --ext js,md .",
4344
"test": "mocha --check-leaks --bail --no-exit --reporter spec test/",
4445
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --no-exit --reporter dot test/",
4546
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --no-exit --reporter spec test/"

0 commit comments

Comments
 (0)