eslint-plugin-immutable-js

0.0.2 • Public • Published

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)

Package Sidebar

Install

npm i eslint-plugin-immutable-js

Weekly Downloads

7

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dhassin