
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
esbuild-plugin-eslint
Advanced tools
esbuild-plugin-eslint
Nicely integrates the most recent version of eslint
into an esbuild
plugin.
npm i esbuild-plugin-eslint eslint --save-dev
import { build } from 'esbuild';
import eslint from 'esbuild-plugin-eslint';
await build({
// ...
plugins: [
eslint({ /* config */ })
]
});
node esbuild.config.js
This plugin respects your ESLint configuration as per default. It also takes a configuration object intended for the ESLint constructor with the addition of a filter
, throwOnError
, and throwOnWarning
property. The most important options are:
filter
Type: RegExp
Default: /\.(?:jsx?|tsx?|mts|cts|mjs|cjs|vue|svelte)$/
Used by: esbuild
Reference: esbuild.github.io
Tells esbuild what files to look at. Only files matching this pattern will be handled by the plugin.
throwOnError
Type: boolean
Default: false
Used by: The plugin itself
Instructs the plugin to forward errors found by ESLint to esbuild and throw an error.
throwOnWarning
Type: boolean
Default: false
Used by: The plugin itself
Instructs the plugin to forward warnings found by ESLint to esbuild and throw an error.
fix
Type: boolean
Default: false
Used by: eslint
Reference: eslint.org (options.fix
)
Controls whether to enable or disable the autofix feature of ESLint.
useEslintrc
Type: boolean
Default: true
Used by: eslint
Reference: eslint.org (options.useEslintrc
)
If set to false
, ESLint will not respect any configuration files it finds.
MIT
v0.3.12
2024-03-15
index.cjs
and index.mjs
chunksFAQs
Lint your esbuild bundles with ESLint. 🧐
The npm package esbuild-plugin-eslint receives a total of 5,211 weekly downloads. As such, esbuild-plugin-eslint popularity was classified as popular.
We found that esbuild-plugin-eslint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.