eslint-Plugin to add globals for mochas chai assertion library
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-chai-assert-bdd
:
$ npm install eslint-plugin-chai-assert-bdd --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-chai-assert-bdd
globally.
Add chai-assert-bdd
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"chai-assert-bdd"
]
}