How can I configure jshint-loader with Webpack to make the webpack
command fail when JSHint emits warnings?
I want to ensure that the CI build fails if any linting issues are detected.
At the moment, my setup involves running jshint-loader on preload of JS files in Webpack:
// webpack.config.js
module.exports = {
module: {
preLoaders: [
{
test: /\.js/,
exclude: /node_modules/,
loader: 'jshint-loader',
},
],
},
};