0.0.2 • Published 7 years ago

eslint-plugin-immutable-js v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

eslint-plugin-immutable-js

npm version build status

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 chaining gets (supports fixing)