Skip to content

Commit

Permalink
lint: use standard style in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jan 16, 2017
1 parent 14952be commit 0e44768
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -17,7 +17,7 @@ cache:
before_install:
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint eslint-config-standard eslint-plugin-promise eslint-plugin-standard"
- "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"

# Update Node.js modules
- "test ! -d node_modules || npm prune"
Expand Down
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -44,6 +44,8 @@ $ npm install body-parser

## API

<!-- eslint-disable no-unused-vars -->

```js
var bodyParser = require('body-parser')
```
Expand Down Expand Up @@ -383,6 +385,11 @@ All the parsers accept a `type` option which allows you to change the
`Content-Type` that the middleware will parse.

```js
var express = require('express')
var bodyParser = require('body-parser')

var app = express()

// parse various different custom JSON types as JSON
app.use(bodyParser.json({ type: 'application/*+json' }))

Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -23,6 +23,7 @@
"devDependencies": {
"eslint": "3.13.1",
"eslint-config-standard": "6.2.1",
"eslint-plugin-markdown": "1.0.0-beta.3",
"eslint-plugin-promise": "3.4.0",
"eslint-plugin-standard": "2.0.1",
"istanbul": "0.4.5",
Expand All @@ -40,7 +41,7 @@
"node": ">= 0.8"
},
"scripts": {
"lint": "eslint .",
"lint": "eslint --plugin markdown --ext js,md .",
"test": "mocha --require test/support/env --reporter spec --check-leaks --bail test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require test/support/env --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require test/support/env --reporter spec --check-leaks test/"
Expand Down

0 comments on commit 0e44768

Please sign in to comment.