webpack-contrib / eslint-webpack-plugin

A ESLint plugin for webpack
MIT License
255 stars 49 forks source link

Allow multiple instances with different #90

Closed thomaschaaf closed 3 years ago

thomaschaaf commented 3 years ago

Expected Behavior / Situation

Initializing the plugin twice with js and ts extensions should result in both file types to be linted.

Actual Behavior / Situation

With the following plugins only js files are linted and ts files are ignored.

  plugins: [
    new ESLintPlugin({
      context: servicePath,
      baseConfig: jsEslintConfig,
      extensions: "js"
    }),
    new ESLintPlugin({
      context: servicePath,
      baseConfig: tsEslintConfig,
      extensions: "ts"
    })
  ]

Modification Proposal

alexander-akait commented 3 years ago

/cc @ricardogobbosouza I think make sense, why we do not support it?

ricardogobbosouza commented 3 years ago

It should work, I will analyze

ricardogobbosouza commented 3 years ago

Hi @thomaschaaf It doesn't really work ... I'm fixing now Thanks for reporting