Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including eslint-plugin-wdio with all npm packages installed. Try it out:

var eslintPluginWdio = require("eslint-plugin-wdio")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-plugin-wdio v6.0.12

Eslint rules for WebdriverIO

eslint-plugin-wdio

ESLint rules for WebdriverIO

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-wdio:

$ npm install eslint-plugin-wdio --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-wdio globally.

Recommended configuration

This plugin export a recommended configuration that enforce good practices.

To enable this configuration use the extends property in your .eslintrc config file:

{
  "plugins": [
    "wdio"
  ],
  "extends": "plugin:wdio/recommended"
}

See ESLint documentation for more information about extending configuration files.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free