# eslint-plugin-event-listener

> check react-native memory leak

Latest version **0.0.6** (published 2021-03-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-event-listener
pnpm add eslint-plugin-event-listener
yarn add eslint-plugin-event-listener
bun add eslint-plugin-event-listener
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2021-03-08 |
| First published | 2020-05-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Unpacked size | 22.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | SinLucifer |
| Maintainers | yangtao_blue, sinlucifer |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-event-listener
- Repository: https://github.com/SinLucifer/eslint-plugin-event-listeners
- Homepage: https://github.com/SinLucifer/eslint-plugin-event-listeners#readme
- Issues: https://github.com/SinLucifer/eslint-plugin-event-listeners/issues
- npm.io page: https://npm.io/package/eslint-plugin-event-listener

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ~1.1.0

## 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
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2021-03-08
- 0.0.5 — 2021-03-08
- 0.0.4 — 2020-12-21
- 0.0.3 — 2020-05-28
- 0.0.2 — 2020-05-14

## README

# eslint-plugin-event-listener

Check react-native memory leak by remind developer to remove any addEventListener in React-Native

**This project is fork from [eslint-plugin-change-listeners](https://www.npmjs.com/package/eslint-plugin-change-listeners) and modify some code**

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-event-listener`:

```
$ npm install eslint-plugin-event-listener --save-dev
```

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-event-listener` globally.

## Usage

Add `plugin:event-listener/recommended` to the extends section of your `.eslintrc` configuration file.

Add `event-listener` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:

```json
{
    "extends": ["plugin:event-listeners/recommended"],
    "plugins": [
        "event-listener"
    ]
}
```


Then configure the rules you want to use under the rules section.

```json
{
    "rules": {
        "event-listener/remove-device-event-listener": 2
    }
}
```

## Thanks
[eslint-plugin-change-listeners](https://www.npmjs.com/package/eslint-plugin-change-listeners)

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