Skip to content

emitWarning option dont work #19

Description

@z-950
  • Operating System: Windows 10 v2004 64-bit
  • Node Version: 12.16.3
  • NPM Version: 6.14.4
  • webpack Version: 4.44.2
  • eslint-webpack-plugin Version: 2.1.0

Expected Behavior

Warning message should not be shown when emitWarning set to false.

Actual Behavior

Warning message is shown when emitWarning set to false.

Code

// webpack.config.js
const path = require('path')
const ESLintPlugin = require('eslint-webpack-plugin')

module.exports = {
  mode: "development",
  entry: 'src/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'index.js',
  },
  plugins: [new ESLintPlugin({
    context: 'src',
    extensions: ['js'],
    emitWarning: false,
    emitError: true,
    failOnError: true,
    failOnWarning: false
  })]
}

In this case, warning is always shown.

I use webpack-cli@3.3.12 to run building.

How Do We Reproduce?

Warning message should not be shown when emitWarning set to false.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions