Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-webdriverio

sebdeckers90.6kISC1.0.1

ESLint plugin with environment settings for WebdriverIO

eslint, eslintplugin

readme

eslint-plugin-webdriverio 🤖

The browser and $/$$ helpers are globally available in WebdriverIO. This ESLint plugin makes it easy to configure your WDIO project.

Usage

There are several ways to configure environments in ESLint.

For example in combination with Mocha:

Individual Source File

/* eslint-env webdriverio/wdio, mocha */

ESLint

.eslintrc:

{
  "plugins": ["webdriverio"],
  "env": {
    "webdriverio/wdio": true,
    "mocha": true
  }
}

StandardJS

package.json:

{
  "standard": {
    "plugins": [
      "webdriverio"
    ],
    "env": [
      "mocha",
      "webdriverio/wdio"
    ]
  }
}