0.0.10 • Published 1 year ago
eslint-plugin-cypress-intercept-before-visit-check v0.0.10
eslint-plugin-cypress-intercept-before-visit-check
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-cypress-intercept-before-visit-check
:
npm install eslint-plugin-cypress-intercept-before-visit-check --save-dev
Usage
Add cypress-intercept-before-visit-check
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"cypress-intercept-before-visit-check"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"cypress-intercept-before-visit-check/cypress-intercept-before-visit": 2
}
}