eslint-plugin-sanctuary

1.1.3 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-sanctuary

Weekly Downloads

2

Version

1.1.3

License

MIT

Last publish

Collaborators

  • afief-hooq
  • afief