eslint-webpack-plugin
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|---|---|---|---|---|
@types/eslint | 8.56.10 | 187.94 kB | MIT | prod | |
eslint | 8.57.0 | 2.9 MB | MIT | prod peer | |
jest-worker | 29.7.0 | 22.13 kB | MIT | prod | |
micromatch | 4.0.5 | 14.09 kB | MIT | prod | |
normalize-path | 3.0.0 | 3.48 kB | MIT | prod | |
schema-utils | 4.2.0 | 15.34 kB | MIT | prod | |
webpack | 5.91.0 | 4.71 MB | MIT | prod peer | 1 1 |
The eslint-webpack-plugin plugin is a useful development tool that employs ESLint to identify and correct issues in your JavaScript code. This version (v3.0) is specifically designed to function alongside webpack 5.
The eslint-webpack-plugin is pretty straightforward to setup and use in your JavaScript project. Here’s what you need to do:
npm install eslint-webpack-plugin --save-dev
Also, ensure that you have ESLint (version >= 8) installed. If not, you can install it using npm like so:
npm install eslint --save-dev
const ESLintPlugin = require('eslint-webpack-plugin');
module.exports = {
// ...
plugins: [new ESLintPlugin(options)],
// ...
};
In this code snippet, 'options' refers to the configuration options you want to pass to ESLint.
You can find more details on the various options you can pass to ESLint on the eslint documentation page.
The comprehensive documentation for eslint-webpack-plugin can be found directly in the README in the GitHub repository at https://github.com/webpack-contrib/eslint-webpack-plugin. The README includes information on how to get started with the plugin, explanation of the available options, and how to use these options in your configuration.