eslint-plugin-no-visit-before-intercepts

0.3.0 • Public • Published

eslint-plugin-no-visit-before-intercepts

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

Limitations: Currently does not handle linting cypress code defined in functions.

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
    }
}

Dependents (0)

Package Sidebar

Install

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

Weekly Downloads

77

Version

0.3.0

License

ISC

Unpacked Size

13.4 kB

Total Files

8

Last publish

Collaborators

  • leapdaywill