Skip to content

Custom webpack.config linting #90

@stewartduffy

Description

@stewartduffy

Has anyone had any using eslint-loader in the custom webpack.config? I have the following set up, however eslint-loader is not running

const path = require('path')

module.exports = {
  module: {
    preLoaders: [
      {
        test: /\.js$/,
        loader: 'eslint-loader',
        include: path.resolve(__dirname, '../'),
        exclude: path.resolve(__dirname, '../node_modules/')
      }
    ],
    loaders: [
      {
        test: /\.css?$/,
        loaders: [ 'style', 'raw' ],
        include: path.resolve(__dirname, '../')
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions