webpack-eslint-plugin
v1.2.0
Published
async run eslint for webpack plugin
Downloads
495
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