ESLint rules for testcafe
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-testcafe
:
$ npm install eslint-plugin-testcafe --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-testcafe
globally.
This plugin export a recommended configuration that enforce good practices.
To enable this configuration use the extends property in your .eslintrc config file:
{
"plugins": [
"testcafe"
],
"extends": "plugin:testcafe/recommended"
}
See ESLint documentation for more information about extending configuration files.