eslint-plugin-sanctuary
v1.1.3
Published
Misc. eslint rules of Sanctuary
Downloads
11
Readme
eslint-plugin-sanctuary
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-sanctuary
:
$ npm install eslint-plugin-sanctuary --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-sanctuary
globally.
Usage
Add sanctuary
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"sanctuary"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"sanctuary/rule-name": 2
}
}
Supported Rules
Following rules are sanctuary flavored!
no-undef