Browse Source

chore(package): update xo to version 0.19.0 (#51)

* chore(package): update xo to version 0.19.0

Closes #15

https://greenkeeper.io/

* Lint browser files with esnext false

* Use property shorthand
pull/52/head
Luke Childs 7 years ago
committed by GitHub
parent
commit
c4f4a86434
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      controllers/listing.js
  2. 10
      package.json

4
controllers/listing.js

@ -19,8 +19,8 @@ module.exports = (req, res, next) => {
tor.listNodes(query) tor.listNodes(query)
.then(nodes => res.render('listing.html', { .then(nodes => res.render('listing.html', {
pageTitle: req.query.s ? `Search: ${req.query.s}` : false, pageTitle: req.query.s ? `Search: ${req.query.s}` : false,
title: title, title,
nodes: nodes, nodes,
numOfNodes: query.limit numOfNodes: query.limit
})) }))
.catch(err => { .catch(err => {

10
package.json

@ -23,7 +23,7 @@
"devDependencies": { "devDependencies": {
"eslint-config-xo-lukechilds": "^1.0.1", "eslint-config-xo-lukechilds": "^1.0.1",
"nodemon": "^1.10.2", "nodemon": "^1.10.2",
"xo": "^0.17.1" "xo": "^0.19.0"
}, },
"scripts": { "scripts": {
"start": "node index.js", "start": "node index.js",
@ -33,7 +33,13 @@
"test": "xo" "test": "xo"
}, },
"xo": { "xo": {
"extends": "xo-lukechilds" "extends": "xo-lukechilds",
"overrides": [
{
"files": "public/**",
"esnext": false
}
]
}, },
"repository": { "repository": {
"type": "git", "type": "git",

Loading…
Cancel
Save