Skip to content

Files

Latest commit

c86edad · Oct 22, 2018

History

History
This branch is 3175 commits behind wix/react-native-ui-lib:master.

eslint-rules

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

eslint-plugin-uilib

uilib set of eslint rules

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-uilib:

$ npm install eslint-plugin-uilib --save-dev

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

Usage

Add uilib to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "uilib"
    ]
}

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

{
    "rules": {
        "uilib/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here