# eslint-plugin-turbolinks-event-handling

> ESLint plugin to avoid registering vanilla or jquery event listeners multiple times when using turbolinks

Latest version **0.0.1** (published 2017-01-09) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-01-09 |
| First published | 2017-01-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Luke Bennett |
| Maintainers | lukeeeebennett |
| Keywords | eslint, eslintplugin, eslint-plugin, turbolinks, jquery, vanilla, events |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-turbolinks-event-handling
- npm.io page: https://npm.io/package/eslint-plugin-turbolinks-event-handling

## 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.1 (latest) — 2017-01-09
- 0.0.0 — 2017-01-09

## README

# eslint-plugin-turbolinks-event-handling

ESLint plugin to avoid registering vanilla or jquery event listeners multiple times when using turbolinks

## Installation

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

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

Next, install `eslint-plugin-turbolinks-event-handling`:

```
$ npm install eslint-plugin-turbolinks-event-handling --save-dev
```

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

## Usage

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

```json
{
  "plugins": [
    "turbolinks-event-handling"
  ]
}
```


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

```json
{
  "rules": {
    "turbolinks-event-handling/jquery-off-before-on": 2,
    "turbolinks-event-handling/jquery-use-event-namespaces": 2,
    "turbolinks-event-handling/vanilla-addeventlistener-needs-function-reference": 2
  }
}
```

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