diff --git a/.travis.yml b/.travis.yml index daf7b52be..3e405b53c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,6 +59,7 @@ jobs: before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.7.0 - export PATH="$HOME/.yarn/bin:$PATH" + - export NODE_ENV=test install: - ./bin/web script: diff --git a/web/app/package.json b/web/app/package.json index afcb46152..5d79a9773 100644 --- a/web/app/package.json +++ b/web/app/package.json @@ -37,7 +37,7 @@ "devDependencies": { "babel-core": "^6.26.0", "babel-eslint": "^8.0.3", - "babel-loader": "^7.1.2", + "babel-loader": "^7.1.4", "babel-plugin-import": "^1.7.0", "babel-preset-env": "^1.7.0", "babel-preset-react-app": "^3.1.1", @@ -45,7 +45,7 @@ "enzyme-context-patch": "^0.0.8", "eslint": "^4.12.1", "eslint-config-airbnb": "^16.1.0", - "eslint-loader": "^1.9.0", + "eslint-loader": "^2.0.0", "eslint-plugin-import": "^2.12.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-promise": "^3.6.0", diff --git a/web/app/webpack.config.js b/web/app/webpack.config.js index 75491bae8..899e44b35 100644 --- a/web/app/webpack.config.js +++ b/web/app/webpack.config.js @@ -24,7 +24,13 @@ module.exports = { exclude: /node_modules/, use: [ 'babel-loader', - { loader: 'eslint-loader', options: { fix: true } } + { + loader: 'eslint-loader', + options: { + fix: true, + emitWarning: process.env.NODE_ENV == 'development' + } + } ] }, { diff --git a/web/app/yarn.lock b/web/app/yarn.lock index 386025485..ee2c3f715 100644 --- a/web/app/yarn.lock +++ b/web/app/yarn.lock @@ -631,9 +631,9 @@ babel-helpers@^6.24.1: babel-runtime "^6.22.0" babel-template "^6.24.1" -babel-loader@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126" +babel-loader@^7.1.4: + version "7.1.4" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.4.tgz#e3463938bd4e6d55d1c174c5485d406a188ed015" dependencies: find-cache-dir "^1.0.0" loader-utils "^1.0.2" @@ -2838,9 +2838,9 @@ eslint-import-resolver-node@^0.3.1: debug "^2.6.9" resolve "^1.5.0" -eslint-loader@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-1.9.0.tgz#7e1be9feddca328d3dcfaef1ad49d5beffe83a13" +eslint-loader@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-2.0.0.tgz#d136619b5c684e36531ffc28c60a56e404608f5d" dependencies: loader-fs-cache "^1.0.0" loader-utils "^1.0.2"