New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-webpack-plugin

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-webpack-plugin

A ESLint plugin for webpack

5.0.0
latest
Source
npm
Version published
Weekly downloads
4.1M
-1.27%
Maintainers
0
Weekly downloads
 
Created

What is eslint-webpack-plugin?

The eslint-webpack-plugin is a plugin for webpack that utilizes ESLint to identify and report on patterns found in ECMAScript/JavaScript code. It is intended to help developers adhere to a consistent code style and find and fix problems in their JavaScript code.

What are eslint-webpack-plugin's main functionalities?

Linting on Build

Automatically lints your JavaScript files when you run your webpack build. The 'options' object can be used to customize the behavior of the plugin.

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

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

Automatic Fixing

The plugin can be configured to automatically fix certain issues in your code as it lints. This is done by setting the 'fix' option to true.

new ESLintPlugin({ fix: true })

Customizable Linting

You can customize which files are linted, where the linting occurs, whether to cache results, and whether to fail the build on a lint error. You can also enable multi-threaded linting for performance.

new ESLintPlugin({
  extensions: ['js', 'jsx'],
  exclude: ['node_modules'],
  context: 'src',
  cache: true,
  cacheLocation: 'path/to/cache',
  failOnError: false,
  threads: true,
})

Other packages similar to eslint-webpack-plugin

Keywords

eslint

FAQs

Package last updated on 26 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts