1.0.0 • Published 5 years ago

eslint-loft-rules v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

eslint-plugin-loft

Loft's ESLint custom rules

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-loft-rules:

$ npm install eslint-loft-rules --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-loft-rules globally.

Usage

Add eslint-loft-rules to the plugins section of your .eslintrc configuration file:

{
    "plugins": [
        "eslint-loft-rules"
    ]
}

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

{
    "rules": {
        "loft/prefer-compose": 2
    }
}

Supported Rules

  • prefer-compose: Rule that suggests the use of compose, instead of multiple HOC