eslint-plugin-cucumber
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-cucumber
:
$ npm install eslint-plugin-cucumber --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-cucumber
globally.
Usage
Add cucumber
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"cucumber"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"cucumber/async-then": 2
}
}
Supported Rules
Name | Description |
---|
async-then | If you assume asynchronous steps then your Then steps should either return a promise or provide a callback function |