Skip to content

Commit 6593668

Browse files
committedMar 5, 2017
lint: use standard style in readme
1 parent e55337d commit 6593668

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed
 

‎.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ before_install:
1616
# Setup Node.js version-specific dependencies
1717
- "test $TRAVIS_NODE_VERSION != '0.6' || npm rm --save-dev istanbul"
1818
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
19-
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint eslint-config-standard eslint-plugin-promise eslint-plugin-standard"
19+
- "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"
2020
script:
2121
# Run test script, depending on istanbul install
2222
- "test ! -z $(npm -ps ls istanbul) || npm test"

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ $ npm install fresh
2020

2121
## API
2222

23+
<!-- eslint-disable no-unused-vars -->
24+
2325
```js
2426
var fresh = require('fresh')
2527
```
@@ -55,6 +57,8 @@ links to further reading on this Safari bug.
5557

5658
### API usage
5759

60+
<!-- eslint-disable no-redeclare, no-undef -->
61+
5862
```js
5963
var reqHeaders = { 'if-none-match': '"foo"' }
6064
var resHeaders = { 'etag': '"bar"' }
@@ -85,6 +89,8 @@ var server = http.createServer(function (req, res) {
8589
}
8690

8791
// send the resource
92+
res.statusCode = 200
93+
res.end('hello, world!')
8894
})
8995

9096
function isFresh (req, res) {

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"devDependencies": {
1919
"eslint": "3.17.0",
2020
"eslint-config-standard": "7.0.0",
21+
"eslint-plugin-markdown": "1.0.0-beta.4",
2122
"eslint-plugin-promise": "3.5.0",
2223
"eslint-plugin-standard": "2.1.1",
2324
"istanbul": "0.4.5",
@@ -32,7 +33,7 @@
3233
"node": ">= 0.6"
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)
Please sign in to comment.