eslint rules for cucumber steps
npm install eslint-plugin-cucumber
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.
Add cucumber to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
`json`
{
"plugins": [
"cucumber"
]
}
Then configure the rules you want to use under the rules section.
`json`
{
"rules": {
"cucumber/async-then": 2,
"cucumber/expression-type": 2,
"cucumber/no-restricted-tags": [2, "wip", "broken", "foo"],
"cucumber/no-arrow-functions": 2
}
}
| Name | Description |
| ------------- | ------------- |
| async-then | If you assume asynchronous steps/hooks then your implementation should either be an async function, return a promise or provide a callback function|
| expression-type | Restrict steps to either Cucumber Expressions or Regular Expressions |
| no-restricted-tags | Restrict usage of specified tags |
| no-arrow-functions | Restrict usage of arrow functions on step definitions |
#### Releasing
1. bump version
1. npm publishgit tag vx.x.x && git push origin master --tags
1. tag release ()npx release`)
1. build github release (