/**
 * ReactCompass - a carefully crafted Compass component for React.
 *
 * Copyright (c) 2016 Bohdan Shtepan
 * http://modern-dev.com/
 *
 * Licensed under the MIT license.
 */

module.exports = [
    {
        test: /(\.jsx|\.js)$/,
        loader: 'babel-loader',
        exclude: /(node_modules|bower_components)/
    },
    {
        test: /(\.jsx|\.js)$/,
        loader: 'eslint-loader',
        exclude: /(node_modules|bower_components|example|dist)/
    }
];
/**
 * ReactCompass - a carefully crafted Compass component for React.
 *
 * Copyright (c) 2016 Bohdan Shtepan
 * http://modern-dev.com/
 *
 * Licensed under the MIT license.
 */

module.exports = [
    {
        test: /(\.jsx|\.js)$/,
        preLoaders: ['eslint-loader'],
        loaders: ['babel-loader'],
        exclude: /(node_modules|bower_components)/
    }
];
--- 
+++ 
@@ -10,12 +10,8 @@
 module.exports = [
     {
         test: /(\.jsx|\.js)$/,
-        loader: 'babel-loader',
+        preLoaders: ['eslint-loader'],
+        loaders: ['babel-loader'],
         exclude: /(node_modules|bower_components)/
-    },
-    {
-        test: /(\.jsx|\.js)$/,
-        loader: 'eslint-loader',
-        exclude: /(node_modules|bower_components|example|dist)/
     }
 ];
Configure shity webpack to lint the code exactly before babel would run.
