Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 539 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 539 Bytes

one-eslint

all in one

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-one:

npm install eslint-plugin-one --save-dev

Usage

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

{
    "plugins": [
        "one"
    ]
}

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

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