eslint-plugin-no-visit-before-intercepts

0.2.0 • Public • Published

eslint-plugin-no-visit-before-intercepts

Custom eslint rule that checks that no intercepts occur after a visit

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-visit-before-intercepts:

npm install eslint-plugin-no-visit-before-intercepts --save-dev

Usage

Add no-visit-before-intercepts to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "no-visit-before-intercepts"
    ]
}

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

{
    "rules": {
        "no-visit-before-intercepts/no-visit-before-intercepts": 2
    }
}

Package Sidebar

Install

npm i eslint-plugin-no-visit-before-intercepts

Weekly Downloads

6

Version

0.2.0

License

ISC

Unpacked Size

13.1 kB

Total Files

8

Last publish

Collaborators

  • leapdaywill