Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
28
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

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7M
decreased by-8.41%
Maintainers
1
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

FAQs

Package last updated on 13 Nov 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc