Skip to content
Search

Eslint-webpack-plugin

lastmod 2022-04-11created 2022-04-111 edits

This plugin uses eslint to find and fix problems in your JavaScript code.

Installation

yarn add -D eslint-webpack-plugin

Add the following to .eslintrc:

const ESLintPlugin = require('eslint-webpack-plugin');

module.exports = {
  // ...
  plugins: [new ESLintPlugin(options)],
  // ...
};

vs eslint-loader

eslint-loader has been depreacted, so use this instead.

See also

Favorite site

author Zer0 sitemap