|
|
|
@ -122,21 +122,21 @@ module.exports = {
|
|
|
|
|
|
|
|
|
|
// First, run the linter.
|
|
|
|
|
// It's important to do this before Babel processes the JS.
|
|
|
|
|
// {
|
|
|
|
|
// test: /\.(js|jsx|mjs)$/,
|
|
|
|
|
// enforce: 'pre',
|
|
|
|
|
// use: [
|
|
|
|
|
// {
|
|
|
|
|
// options: {
|
|
|
|
|
// formatter: eslintFormatter,
|
|
|
|
|
// eslintPath: require.resolve('eslint'),
|
|
|
|
|
//
|
|
|
|
|
// },
|
|
|
|
|
// loader: require.resolve('eslint-loader'),
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// include: paths.appSrc,
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
test: /\.(js|jsx|mjs)$/,
|
|
|
|
|
enforce: 'pre',
|
|
|
|
|
use: [
|
|
|
|
|
{
|
|
|
|
|
options: {
|
|
|
|
|
formatter: eslintFormatter,
|
|
|
|
|
eslintPath: require.resolve('eslint'),
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
loader: require.resolve('eslint-loader'),
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
include: paths.appSrc,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// "oneOf" will traverse all following loaders until one will
|
|
|
|
|
// match the requirements. When no loader matches it will fall
|
|
|
|
|