0.5.0 • Published 1 year ago

eslint-plugin-no-visit-before-intercepts v0.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago