has commented out the configuration of eslint in the webpack.main.config.js in the npm run dev
, but eslint still prompts an error
module: {
rules: [
// {
// test: /\.(js)$/,
// enforce: "pre",
// exclude: /node_modules/,
// use: {
// loader: "eslint-loader",
// options: {
// formatter: require("eslint-friendly-formatter")
// }
// }
// },
{
test: /\.js$/,
use: "babel-loader",
exclude: /node_modules/
},
{
test: /\.node$/,
use: "node-loader"
}
]
},