eslint-plugin-immutable-js

ESLint for Immutable.js

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-plugin-immutable-js
100.0.27 years ago7 years agoMinified + gzip package size for eslint-plugin-immutable-js in KB

Readme

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)