From ab8f1d4515a447b0c2844852d3f00564cb492458 Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 30 Jun 2017 12:45:10 +0100 Subject: [PATCH] Update to xo --- .travis.yml | 2 +- package.json | 19 +++++++++---------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c2f25b..1e5fc8a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ node_js: - 'node' - '6' - '4' -script: npm run lint && npm test +script: npm test after_success: npm run coverage notifications: email: diff --git a/package.json b/package.json index e2a026a..7ad17b5 100644 --- a/package.json +++ b/package.json @@ -7,15 +7,14 @@ "node": ">=4" }, "scripts": { - "test": "nyc ava test", - "lint": "eslint src", + "test": "xo && nyc ava", "coverage": "nyc report --reporter=text-lcov | coveralls" }, - "eslintConfig": { - "extends": "lukechilds", - "rules": { - "prefer-rest-params": "off" - } + "xo": { + "extends": "xo-lukechilds", + "envs": [ + "browser" + ] }, "repository": { "type": "git", @@ -41,8 +40,8 @@ "devDependencies": { "ava": "^0.20.0", "coveralls": "^2.11.13", - "eslint": "^4.1.0", - "eslint-config-lukechilds": "^1.9.0", - "nyc": "^11.0.1" + "eslint-config-xo-lukechilds": "^1.0.0", + "nyc": "^11.0.2", + "xo": "^0.18.2" } }