Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

eslint-plugin-nonoptimal-innerhtml

Don't use innerHTML inside loops or you'll have a slow website. See the reasoning for this rule.

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-nonoptimal-innerhtml:

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:

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

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

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

About

Don't use innerHTML inside loops

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /