# eslint-plugin-nonoptimal-innerhtml

> Warn about nonoptimal use of innerHTML

Latest version **0.0.4** (published 2022-05-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install eslint-plugin-nonoptimal-innerhtml
pnpm add eslint-plugin-nonoptimal-innerhtml
yarn add eslint-plugin-nonoptimal-innerhtml
bun add eslint-plugin-nonoptimal-innerhtml
```

## 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.4 |
| Published | 2022-05-02 |
| First published | 2022-04-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 12.x \|\| 14.x \|\| >= 16 |
| Dependencies | 1 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrés Quilodrán |
| Maintainers | oxfist |
| Keywords | eslint, eslintplugin, eslint-plugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-nonoptimal-innerhtml
- Repository: https://github.com/oxfist/eslint-plugin-nonoptimal-innerhtml
- Homepage: https://github.com/oxfist/eslint-plugin-nonoptimal-innerhtml#readme
- Issues: https://github.com/oxfist/eslint-plugin-nonoptimal-innerhtml/issues
- npm.io page: https://npm.io/package/eslint-plugin-nonoptimal-innerhtml

## Dependencies (1)

- [requireindex](https://npm.io/package/requireindex.md) ^1.2.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.4 (latest) — 2022-05-02
- 0.0.3 — 2022-04-21
- 0.0.2 — 2022-04-21

## README

# eslint-plugin-nonoptimal-innerhtml

Don't use `innerHTML` inside loops or you'll have a slow website. See the [reasoning for this rule](./docs/rules/nonoptimal-innerhtml.md).

## Installation

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

```sh
npm i eslint --save-dev
```

Next, install `eslint-plugin-nonoptimal-innerhtml`:

```sh
npm install eslint-plugin-nonoptimal-innerhtml --save-dev
```

## Usage

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

```json
{
  "plugins": ["nonoptimal-innerhtml"]
}
```

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

```json
{
  "rules": {
    "nonoptimal-innerhtml/nonoptimal-innerhtml": "warn"
  }
}
```

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