From 8af2e682a2a881ad8cdc81cb421e6cb335899d5a Mon Sep 17 00:00:00 2001 From: Denis Demchenko Date: Sun, 9 Sep 2018 12:58:44 +0300 Subject: [PATCH] Fix travis testing (include eslint) --- .eslintrc.yml | 2 ++ .travis.yml | 3 +++ package.json | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 9c5151b..6109b74 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,6 +1,8 @@ +parser: babel-eslint extends: airbnb-base rules: no-underscore-dangle: 0 no-void: 0 plugins: - ava + - import diff --git a/.travis.yml b/.travis.yml index 2c9610d..0a6f27b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,6 @@ language: node_js after_success: npm run coverage node_js: - "8.4.0" +script: +- npm run lint +- npm test diff --git a/package.json b/package.json index 1ad014c..da57bc0 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "scripts": { "build": "webpack --config webpack.config.js", "prepublish": "npm run build", - "lint": "eslint ./src --fix", + "lint": "eslint ./src", "testem": "testem", "test": "eslint ./src & nyc --reporter=html --reporter=text ava", "coverage": "nyc report --reporter=text-lcov | coveralls",