Installations
npm install @rollup/plugin-eslint
Developer Guide
Typescript
Yes
Module System
CommonJS, ESM
Min. Node Version
>=14.0.0
Node Version
20.8.0
NPM Version
10.1.0
Score
50.2
Supply Chain
93.2
Quality
77.2
Maintenance
100
Vulnerability
96.7
License
Releases
Unable to fetch releases
Contributors
Languages
JavaScript (75.11%)
TypeScript (24.88%)
Shell (0.01%)
Developer
rollup
Download Statistics
Total Downloads
3,353,032
Last Day
1,034
Last Week
13,511
Last Month
85,634
Last Year
1,155,619
GitHub Statistics
3,661 Stars
1,207 Commits
593 Forks
36 Watching
4 Branches
266 Contributors
Bundle Size
1.45 MB
Minified
389.28 kB
Minified + Gzipped
Package Meta Information
Latest Version
9.0.5
Package Id
@rollup/plugin-eslint@9.0.5
Unpacked Size
11.07 kB
Size
3.31 kB
File Count
6
NPM Version
10.1.0
Node Version
20.8.0
Publised On
05 Oct 2023
Total Downloads
Cumulative downloads
Total Downloads
3,353,032
Last day
-76.2%
1,034
Compared to previous day
Last week
-32.8%
13,511
Compared to previous week
Last month
-21.6%
85,634
Compared to previous month
Last year
-6.4%
1,155,619
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
Peer Dependencies
1
@rollup/plugin-eslint
🍣 A Rollup plugin to lint entry points and all imported files with ESLint.
Requirements
This plugin requires an LTS Node version (v14.0.0+) and Rollup v1.20.0+.
Install
Using npm:
1npm install @rollup/plugin-eslint --save-dev 2# or 3yarn add -D @rollup/plugin-eslint
Usage
1import eslint from '@rollup/plugin-eslint'; 2 3export default { 4 input: 'main.js', 5 plugins: [ 6 eslint({ 7 /* your options */ 8 }) 9 ] 10};
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.
exclude
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
.
fix
Type: Boolean
Default: false
If true, will auto fix source code.
formatter
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.
include
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
.
throwOnError
Type: Boolean
Default: false
If true, will throw an error and exit the process when ESLint reports any errors.
throwOnWarning
Type: Boolean
Default: false
If true, will throw an error and exit the process when ESLint reports any warnings.
Meta
No vulnerabilities found.
Reason
30 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
binaries present in source code
Details
- Warn: binary detected: packages/wasm/test/fixtures/complex.wasm:1
- Warn: binary detected: packages/wasm/test/fixtures/imports.wasm:1
- Warn: binary detected: packages/wasm/test/fixtures/sample.wasm:1
Reason
Found 13/30 approved changesets -- score normalized to 4
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/node-windows.yml:1
- Warn: no topLevel permission defined: .github/workflows/pr-title.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
- Warn: no topLevel permission defined: .github/workflows/validate.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node-windows.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/node-windows.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node-windows.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/node-windows.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr-title.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/pr-title.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/release.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/validate.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/validate.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/validate.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/validate.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/rollup/plugins/validate.yml/master?enable=pin
- Info: 0 out of 10 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 14 are checked with a SAST tool
Reason
16 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h
- Warn: Project is vulnerable to: GHSA-9pv7-vfvm-6vr7
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-vm32-9rqf-rh3r
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
3.9
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to @rollup/plugin-eslint
rollup-plugin-eslint
Verify entry point and all imported files with ESLint
@rbnlffl/rollup-plugin-eslint
Lint your Rollup bundles with ESLint. 🐝
@swissquote/rollup-plugin-eslint
Verify entry point and all imported files with ESLint
eslint-plugin-tree-shaking
Marks all side-effects in module initialization that will interfere with tree-shaking