From 84e140dccf62f7e014c4e89c90f52de2a958eb33 Mon Sep 17 00:00:00 2001 From: Robin Wieruch Date: Wed, 22 Mar 2017 17:36:48 +0700 Subject: [PATCH] chore(*) let webpack fail when eslint fails --- package.json | 1 + webpack.config.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 228ae42..7506469 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "coveralls": "^2.12.0", "eslint": "^3.17.1", "eslint-config-airbnb-base": "^11.1.1", + "eslint-loader": "^1.6.3", "eslint-plugin-import": "^2.2.0", "gitbook-cli": "^2.3.0", "mocha": "^2.5.3", diff --git a/webpack.config.js b/webpack.config.js index 9a0d432..958debc 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -21,7 +21,12 @@ module.exports = { query: { presets: ['es2015', 'stage-2'] } - } + }, + { + test: /\.js$/, + exclude: /node_modules/, + loaders: ['babel-loader', 'eslint-loader'] + }, ] } };