ESLint plugin with rules to lint BDD specs.
npm install eslint-plugin-bdd> ESLint plugin with rules to lint BDD specs.
``bash`
$ npm install eslint-plugin-bdd
to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix.`js
{
"plugins": [
"bdd"
]
}
`Then configure the rules you want to use under the rules section.
`js
{
"rules": {
"bdd/focus": 2,
"bdd/exclude": 2
}
}
`$3
- bdd/focus
- bdd/exclude`For more examples on what each rule does take a look at the test samples.