Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

webpack-eslint-plugin

eyasliu1.1kISC1.2.0

async run eslint for webpack plugin

eslint, webpack, plugin, async

readme

webpack-eslint-plugin

async run eslint for webpack plugin, won't block webpack compilation

install

npm i -S webpack-eslint-plugin

usage

// webpack.config.js
import EslintPlugin from 'webpack-eslint-plugin'
module.exports = {
  // ...
  plugins: [
    // other plugins
    new EslintPlugin({/*options*/})
  ]
}

options

You can pass eslint options

format(default: eslint stylish formatter)

new EslintPlugin({
  format: require('eslint-friendly-formatter'),
  include: ['**/*.js', '**/*.jsx']
})

beforeOutput([Function (results)])

before output hook function

include [string or array] (default: '*/.js')

minimatch sync, include dependencies files type