javascript - Can't get Eslint work with Webpack dev server -


i can't webpack-dev-server working eslint. here wepback config:

const path = require('path');  const paths = {   app: path.join(__dirname, 'app/js/app.js'),   build: path.join(__dirname, 'build') };  module.exports = {   entry: {     app: paths.app   },   output: {     path: paths.build,     filename: 'bundle.js'   },    devserver: {         contentbase: 'dist'     },    module: {     loaders: [       {         test: /\.(jsx|js)?$/,         exclude: /node_modules/,         loader: ['babel']       },       {         test: /\.js$/, loader: "eslint-loader", exclude: /node_modules/       },       {         test: /\.json$/, loader: "json-loader", exclude: /node_modules/       },       {         test: /\.css$/,         loader: "style-loader!css-loader"       },       {                 test: /\.woff($|\?)|\.woff2($|\?)|\.ttf($|\?)|\.eot($|\?)|\.svg($|\?)/,                 loader: "url-loader?limit=10000"             }     ]   },    resolve: {     extensions: ['', 'jsx', '.js', '.es6', '.css']   } }; 

and here npm scripts:

  "scripts": {     "build": "webpack",     "start": "webpack-dev-server --content-base build eslint",     "eslint": "eslint ./app"   }, 

do need else though have .eslintrc.json file , it's different project working , works there using custom node server.

thanks


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -