# rollup-plugin-eslint

> Verify entry point and all imported files with ESLint

Latest version **7.0.0** (published 2019-06-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-eslint
pnpm add rollup-plugin-eslint
yarn add rollup-plugin-eslint
bun add rollup-plugin-eslint
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 7.0.0 |
| Published | 2019-06-24 |
| First published | 2016-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 60 |
| Author | Bogdan Chadkin |
| Maintainers | trysound |
| Keywords | rollup, rollup-plugin, es2015, eslint, lint |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-eslint
- Repository: https://github.com/TrySound/rollup-plugin-eslint
- npm.io page: https://npm.io/package/rollup-plugin-eslint

## Dependencies (2)

- [eslint](https://npm.io/package/eslint.md) ^6.0.0
- [rollup-pluginutils](https://npm.io/package/rollup-pluginutils.md) ^2.7.1

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 7.0.0 (latest) — 2019-06-24
- 6.0.0 — 2019-05-22
- 5.1.0 — 2019-03-22
- 5.0.0 — 2018-07-20
- 4.0.0 — 2017-07-01
- 3.0.0 — 2016-09-08
- 2.0.2 — 2016-06-23
- 2.0.1 — 2016-06-12
- 2.0.0 — 2016-02-13
- 1.0.2 — 2016-02-01
- 1.0.1 — 2016-01-31
- 1.0.0 — 2016-01-31

## README

# rollup-plugin-eslint [![Travis Build Status][travis-img]][travis]

[travis-img]: https://travis-ci.org/TrySound/rollup-plugin-eslint.svg
[travis]: https://travis-ci.org/TrySound/rollup-plugin-eslint
[rollup]: https://github.com/rollup/rollup
[eslint-config]: http://eslint.org/docs/developer-guide/nodejs-api#cliengine

[Rollup] plugin to verify entry point and all imported files with ESLint.

## Install

```sh
yarn add rollup-plugin-eslint --dev
```

## Usage

```js
import { rollup } from "rollup";
import { eslint } from "rollup-plugin-eslint";

export default {
  input: "main.js",
  plugins: [
    eslint({
      /* your options */
    })
  ]
};
```

## Options

See more options here [eslint-config].

You can also use eslint configuration in the form of a `.eslintrc.*` file in your project's root. It will be loaded automatically.

### fix

Type: `boolean`  
Default: `false`

If true, will auto fix source code.

### throwOnError

Type: `boolean`  
Default: `false`

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

### throwOnWarning

Type: `boolean`  
Default: `false`

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

### include

Type: `array` or `string`  
Default: `[]`

A single file, or array of files, to include when linting.

### exclude

Type: `array` or `string`  
Default: `node_modules/**`

A single file, or array of files, to exclude when linting.

### formatter

Type: `function` or `string`  
Default: `stylish`

Custom error formatter or the name of a built-in formatter.

# License

MIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)

---
_Source: https://npm.io/package/rollup-plugin-eslint · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
