eslint-plugin-sanctuary

Misc. eslint rules of Sanctuary

Usage no npm install needed!

<script type="module">
  import eslintPluginSanctuary from 'https://cdn.skypack.dev/eslint-plugin-sanctuary';
</script>

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