Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-eslint-bundle

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-eslint-bundle

Rollup plugin to verify (and fix) bundled code with ESLint

  • 6.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
177
increased by30.15%
Maintainers
1
Weekly downloads
 
Created
Source

rollup-plugin-eslint-bundle build JavaScript Style Guide

Rollup plugin to lint (and fix) bundled code with ESLint.

Install

npm i rollup-plugin-eslint-bundle -D

Usage

import { rollup } from 'rollup';
import { eslintBundle } from 'rollup-plugin-eslint-bundle';

rollup({
  entry: 'main.js',
  plugins: [
    eslintBundle({
      eslintOptions: {
        fix: true
      },
      throwOnWarning: true,
      throwOnError: true,
      formatter: 'compact'
    })
  ]
});

Options

eslintOptions

ESLint class options object.

throwOnWarning

Type: boolean Default: false

If true, will throw an error if any warnings were found.

throwOnError

Type: boolean Default: false

If true, will throw an error if any errors were found.

formatter

Type: string

Value to be passed to eslint.loadFormatter()

License

MIT License (MIT)

Contributing

If you find a bug or think about enhancement, feel free to contribute and submit an issue or a pull request.

Keywords

FAQs

Package last updated on 24 Jan 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc