
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@rollup/plugin-eslint
Advanced tools
🍣 A Rollup plugin to lint entry points and all imported files with ESLint.
This plugin requires an LTS Node version (v14.0.0+) and Rollup v1.20.0+.
Using npm:
npm install @rollup/plugin-eslint --save-dev
# or
yarn add -D @rollup/plugin-eslint
import eslint from '@rollup/plugin-eslint';
export default {
input: 'main.js',
plugins: [
eslint({
/* your options */
})
]
};
This plugin takes a configuration object intended for the ESLint constructor with the addition of a throwOnWarning, throwOnError, formatter, include and exclude prop.
You can also use eslint configuration in the form of a .eslintrc.* file in your project's root. It will be loaded automatically.
Type: String | String[]
Default: node_modules/**
A single picomatch pattern or an array of patterns controlling which files this plugin should explicitly exclude. Gets forwarded to the createFilter method of @rollup/pluginutils.
Type: Boolean
Default: false
If true, will auto fix source code.
Type: Function<String> | Function<Promise<String>> | String
Default: stylish
Custom error formatter, the name of a built-in formatter, or the path to a custom formatter.
Type: String | String[]
Default: []
A single picomatch pattern or an array of patterns controlling which files this plugin should explicitly include. Gets forwarded to the createFilter method of @rollup/pluginutils.
Type: Boolean
Default: false
If true, will throw an error and exit the process when ESLint reports any errors.
Type: Boolean
Default: false
If true, will throw an error and exit the process when ESLint reports any warnings.
FAQs
Verify entry point and all imported files with ESLint
The npm package @rollup/plugin-eslint receives a total of 18,092 weekly downloads. As such, @rollup/plugin-eslint popularity was classified as popular.
We found that @rollup/plugin-eslint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.