Skip to content

Commit

Permalink
lint: apply standard 12 style
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Sep 11, 2018
1 parent a531de7 commit 197c61b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ before_install:

# Setup Node.js version-specific dependencies
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev nyc"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 6 || npm rm --save-dev $(grep -E '\"eslint\\S*\"' package.json | cut -d'\"' -f2)"
script:
# Run test script, depending on nyc install
- "test ! -z $(npm -ps ls nyc) || npm test"
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"co": "4.6.0",
"cogent": "1.0.1",
"csv-parse": "2.5.0",
"eslint": "4.19.1",
"eslint-config-standard": "11.0.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-node": "6.0.1",
"eslint-plugin-promise": "3.8.0",
"eslint-plugin-standard": "3.1.0",
"eslint": "5.5.0",
"eslint-config-standard": "12.0.0",
"eslint-plugin-import": "2.14.0",
"eslint-plugin-node": "7.0.1",
"eslint-plugin-promise": "4.0.1",
"eslint-plugin-standard": "4.0.0",
"gnode": "0.1.2",
"mocha": "1.21.5",
"nyc": "11.8.0",
Expand Down
4 changes: 2 additions & 2 deletions scripts/fetch-iana.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function * get (type, options) {
var templates = Object.create(null)

return mimes.map(function (row) {
var data = row.reduce(reduceRows, {type: type})
var data = row.reduce(reduceRows, { type: type })

if (data.template) {
if (data.template === type + '/example') {
Expand Down Expand Up @@ -225,7 +225,7 @@ function * get (type, options) {
}

function * getTemplateBody (res) {
var body = yield getRawBody(res, {encoding: 'ascii'})
var body = yield getRawBody(res, { encoding: 'ascii' })
var lines = body.split(/\r?\n/)
var slurp = false

Expand Down

0 comments on commit 197c61b

Please sign in to comment.