ESLint plugin with environment settings for WebdriverIO
browser and $/$$ helpers are globally available in WebdriverIO. This ESLint plugin makes it easy to configure your WDIO project.
js
/ eslint-env webdriverio/wdio, mocha /
`
$3
.eslintrc:
`js
{
"plugins": ["webdriverio"],
"env": {
"webdriverio/wdio": true,
"mocha": true
}
}
`
$3
package.json:
`json
{
"standard": {
"plugins": [
"webdriverio"
],
"env": [
"mocha",
"webdriverio/wdio"
]
}
}
``