{"id":13773789,"url":"https://github.com/nikolay-borzov/rollup-plugin-eslint-bundle","last_synced_at":"2025-09-13T21:30:48.737Z","repository":{"id":29239185,"uuid":"332513038","full_name":"nikolay-borzov/rollup-plugin-eslint-bundle","owner":"nikolay-borzov","description":"Rollup plugin to lint (and fix) bundled code with ESLint.","archived":false,"fork":false,"pushed_at":"2023-12-17T19:42:10.000Z","size":576,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-01T14:36:01.179Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TrySound/rollup-plugin-eslint","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikolay-borzov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-01-24T17:37:23.000Z","updated_at":"2024-06-28T13:49:39.000Z","dependencies_parsed_at":"2023-12-17T19:29:29.530Z","dependency_job_id":"c050d7a4-3d05-451d-b9ae-75fdf9ce3e28","html_url":"https://github.com/nikolay-borzov/rollup-plugin-eslint-bundle","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"2381cd94bbfcd8314c8fae65b8cc234ad5e48c88"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/nikolay-borzov/rollup-plugin-eslint-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolay-borzov%2Frollup-plugin-eslint-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolay-borzov%2Frollup-plugin-eslint-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolay-borzov%2Frollup-plugin-eslint-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolay-borzov%2Frollup-plugin-eslint-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikolay-borzov","download_url":"https://codeload.github.com/nikolay-borzov/rollup-plugin-eslint-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikolay-borzov%2Frollup-plugin-eslint-bundle/sbom","scorecard":{"id":687596,"data":{"date":"2025-08-11","repo":{"name":"github.com/nikolay-borzov/rollup-plugin-eslint-bundle","commit":"e6f25c352067d9321ec8282bd225d6f86424880e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/nikolay-borzov/rollup-plugin-eslint-bundle/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/nikolay-borzov/rollup-plugin-eslint-bundle/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/nikolay-borzov/rollup-plugin-eslint-bundle/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/nikolay-borzov/rollup-plugin-eslint-bundle/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/nikolay-borzov/rollup-plugin-eslint-bundle/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/nikolay-borzov/rollup-plugin-eslint-bundle/npm-publish.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"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"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T01:21:23.111Z","repository_id":29239185,"created_at":"2025-08-22T01:21:23.111Z","updated_at":"2025-08-22T01:21:23.111Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275029891,"owners_count":25393394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:20.167Z","updated_at":"2025-09-13T21:30:48.396Z","avatar_url":"https://github.com/nikolay-borzov.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Code Quality"],"readme":"[![ru](https://img.shields.io/badge/lang-ru-%23d52b1e)](./README.ru.md)\n\n[![NPM version][npm-image]][npm-url] [![install size](https://packagephobia.com/badge?p=rollup-plugin-eslint-bundle)](https://packagephobia.com/result?p=rollup-plugin-eslint-bundle) ![build](https://github.com/nikolay-borzov/rollup-plugin-eslint-bundle/workflows/CI/badge.svg) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ![npm type definitions](https://img.shields.io/npm/types/rollup-plugin-eslint-bundle)\n\n# rollup-plugin-eslint-bundle\n\n[npm-image]: https://img.shields.io/npm/v/rollup-plugin-eslint-bundle.svg\n[npm-url]: https://npmjs.org/package/rollup-plugin-eslint-bundle\n[rollup]: https://github.com/rollup/rollup\n[eslint]: https://github.com/eslint/eslint\n[eslint-config]: https://eslint.org/docs/developer-guide/nodejs-api#parameters\n\n🍣 A [Rollup] plugin to lint and fix bundled code with [ESLint].\n\n## Requirements\n\nThis plugin requires an Node.js v20.x, Rollup v4.x and ESLint v8.x\n\n## Install\n\n```sh\nnpm i -D rollup-plugin-eslint-bundle\n```\n\n## Usage\n\n```js\n// rollup.config.js ESM\nimport { rollup } from 'rollup'\nimport { eslintBundle } from 'rollup-plugin-eslint-bundle'\n\nconst root = path.dirname(url.fileURLToPath(import.meta.url))\n\nexport default {\n  input: path.resolve(root, './main.js'),\n\n  plugins: [\n    eslintBundle({\n      eslintOptions: {\n        fix: true,\n      },\n      throwOnWarning: true,\n      throwOnError: true,\n      formatter: 'compact',\n    }),\n  ],\n\n  output: {\n    file: path.resolve(root, './dist/bundle.js'),\n    format: 'es',\n  },\n}\n```\n\n```js\n// Rollup JavaScript API\nimport { rollup } from 'rollup'\nimport { eslintBundle } from 'rollup-plugin-eslint-bundle'\n\n// ...\n\nconst bundle = await rollup.rollup({\n  input: 'main.js',\n  plugins: [\n    eslintBundle({\n      eslintOptions: {\n        fix: true,\n      },\n      throwOnWarning: true,\n      throwOnError: true,\n      formatter: 'compact',\n    }),\n  ],\n})\n\nawait bundle.write({\n  file: 'dist/bundle.js',\n  format: 'es',\n})\n\nawait bundle.close()\n```\n\n## Options\n\n|                  | Description                                                                                                                                                            |\n| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `eslintOptions`  | [ESLint class options object](https://eslint.org/docs/developer-guide/nodejs-api#parameters)                                                                           |\n| `throwOnWarning` | `boolean` (Default: `false`)\u003cbr\u003eIf true, will throw an error if any ESLint warnings were found.                                                                        |\n| `throwOnError`   | `boolean` (Default: `false`)\u003cbr\u003eIf true, will throw an error if any ESLint errors were found.                                                                          |\n| `formatter`      | `string` (Default: `undefined`)\u003cbr\u003e[Value](https://eslint.org/docs/developer-guide/nodejs-api#-eslintloadformatternameorpath) to be passed to `eslint.loadFormatter()` |\n\n## License\n\nMIT License (MIT)\n\n## Contributing\n\nIf you find a bug or think about enhancement, feel free to contribute and submit an issue or a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolay-borzov%2Frollup-plugin-eslint-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikolay-borzov%2Frollup-plugin-eslint-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikolay-borzov%2Frollup-plugin-eslint-bundle/lists"}