Is your suggestion related to an experience ? Please describe.
eslint-loader was deprecated in favor of eslint-webpack-plugin (see https://github.com/webpack-contrib/eslint-loader ).
Some advantages over eslint-loader include the reuse of the ESLint cache and improved lint performance (see https://github.com/webpack-contrib/eslint-webpack-plugin#about-plugin ).
Describe the improvement
Replace the deprecated eslint-loader with eslint-webpack-plugin.
Additional context
Tried to migrate but there seems to be few issues with the new eslint-webpack-plugin.
Recompile time significantly increased when migrated.(WDS significant increase in recompile time after migrating from eslint-loader webpack/eslint-webpack-plugin#20 )
Used the lintDirtyModulesOnly as suggested but that caused errors to not being recognised.
File names and path are not shown properly which makes it hard to figure out which file has the errors. A custom formatter has to be written to overcome the issue. (Replace deprecated eslint-loader by eslint-webpack-plugin facebook/create-react-app#9751 (comment) )
Issues to keep an eye out for:
NOTE: Only do the migration when the plugin is stable.
Is your suggestion related to an experience ? Please describe.
eslint-loaderwas deprecated in favor ofeslint-webpack-plugin(see https://github.com/webpack-contrib/eslint-loader).Some advantages over eslint-loader include the reuse of the ESLint cache and improved lint performance (see https://github.com/webpack-contrib/eslint-webpack-plugin#about-plugin).
Describe the improvement
Replace the deprecated
eslint-loaderwitheslint-webpack-plugin.Additional context
Tried to migrate but there seems to be few issues with the new
eslint-webpack-plugin.lintDirtyModulesOnlyas suggested but that caused errors to not being recognised.Issues to keep an eye out for:
NOTE: Only do the migration when the plugin is stable.