eslint-plugin-immutable-js
v0.0.2
Published
ESLint for Immutable.js
Downloads
37
Maintainers
Readme
eslint-plugin-immutable-js
ESLint for Immutable.js
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-immutable-js
:
$ npm install eslint-plugin-immutable-js --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-immutable-js
globally.
Usage
Add immutable-js
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"immutable-js"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"immutable-js/no-get-get": 2
}
}
Supported Rules
- no-get-get: Prefer
getIn
to chainingget
s (supports fixing)