npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@eamodio/eslint-lite-webpack-plugin

v0.5.0

Published

A lightweight ESLint plugin for Webpack

Readme

eslint-lite-webpack-plugin

A lightweight, high-performance ESLint plugin for Webpack with worker thread support.

Features

  • Fast file discovery using tinyglobby (3-5x faster than alternatives)
  • 🚀 Fast pattern matching using picomatch (7-29x faster than minimatch)
  • 🔧 Worker thread support for parallel linting of large codebases
  • 📦 Minimal dependencies - only 2 runtime dependencies
  • 🎯 Smart caching in watch mode for optimal rebuild performance
  • 🔍 Flexible file filtering with include and exclude patterns

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-lite-webpack-plugin:

npm install @eamodio/eslint-lite-webpack-plugin --save-dev

Usage

Basic Usage

Add the plugin to your webpack.config.js:

const { ESLintLitePlugin } = require('@eamodio/eslint-lite-webpack-plugin');

module.exports = {
	// ...
	plugins: [
		new ESLintLitePlugin({
			files: 'src/**/*.{ts,tsx,js,jsx}',
		}),
	],
	// ...
};

Advanced Configuration

const { ESLintLitePlugin } = require('@eamodio/eslint-lite-webpack-plugin');

module.exports = {
	// ...
	plugins: [
		new ESLintLitePlugin({
			// Required: Glob pattern(s) for files to lint
			files: 'src/**/*.{ts,tsx,js,jsx}',

			// Optional: Exclude patterns (can be string or array)
			exclude: ['**/*.test.ts', '**/*.spec.ts', '**/fixtures/**', '**/__mocks__/**'],

			// Optional: ESLint options
			eslintOptions: {
				cache: true,
				cacheLocation: '.eslintcache',
				cacheStrategy: 'content',
			},

			// Optional: Worker configuration
			// - true: Enable workers (default)
			// - false: Disable workers
			// - object: Configure worker behavior
			worker: {
				max: 4, // Maximum number of workers
				filesPerWorker: 500, // Files per worker (default: 500)
			},

			// Optional: Root path for error reporting
			reportingRoot: process.cwd(),
		}),
	],
	// ...
};

Options

files (required)

Type: string | string[]

Glob pattern or array of patterns for files to lint. Uses tinyglobby for fast file discovery.

// Single pattern
files: 'src/**/*.{ts,tsx,js,jsx}';

// Multiple patterns
files: ['src/**/*.ts', 'lib/**/*.js'];

exclude (optional)

Type: string | string[]

Pattern(s) to exclude from linting. Supports both glob patterns and picomatch patterns.

// Single pattern
exclude: '**/*.test.ts';

// Multiple patterns
exclude: ['**/*.test.ts', '**/*.spec.ts', '**/fixtures/**'];

Note: node_modules is always excluded automatically.

eslintOptions (optional)

Type: object

ESLint configuration options. Supports a subset of ESLint options:

  • cache - Enable/disable caching
  • cacheLocation - Path to cache file
  • cacheStrategy - Cache strategy ('metadata' or 'content')
  • concurrency - Number of files to process concurrently (use with worker: false)
  • overrideConfigFile - Path to ESLint config file
eslintOptions: {
  cache: true,
  cacheLocation: '.eslintcache',
  cacheStrategy: 'content'
}

worker (optional)

Type: boolean | { max: number; filesPerWorker?: number } Default: true

Configure worker thread behavior for parallel linting.

// Enable workers (default)
worker: true

// Disable workers
worker: false

// Configure workers
worker: {
  max: 4,              // Maximum number of workers
  filesPerWorker: 500  // Files per worker (default: 500)
}

Note: Workers are automatically used when linting more than 50 files. For smaller projects, consider using worker: false with ESLint's concurrency option instead.

reportingRoot (optional)

Type: string Default: process.cwd()

Root path for relative file paths in error reporting.

reportingRoot: '/path/to/project';

Performance

This plugin is optimized for performance:

  • Initial builds: 20-40% faster than alternatives using tinyglobby
  • Watch mode: 30-50% faster per change using picomatch
  • Large codebases: Parallel processing with worker threads
  • Smart caching: Results cached in watch mode for unchanged files

License

MIT