|
|
|
@ -114,21 +114,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
|
|
|
|
|