Socket
Book a DemoInstallSign in
Socket

eslint-plugin-wdio

Package Overview
Dependencies
Maintainers
5
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-wdio

Eslint rules for WebdriverIO

9.16.2
latest
Source
npmnpm
Version published
Weekly downloads
128K
-2.9%
Maintainers
5
Weekly downloads
 
Created
Source

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.

This plugin export a recommended configuration that enforce good practices.

With Eslint v8 and below

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

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

With Eslint v9 and Flat Config

If you are using the latest version of Eslint with the flat configuration, you can embed this plugin as follows:

// eslint.config.mjs
import { configs as wdioConfig } from "eslint-plugin-wdio";

export default [
    {
        extends: [
            wdioConfig['flat/recommended'],
            // ...
        ]
    }
];

See ESLint documentation for more information about extending configuration files.

List of supported rules

  • wdio/await-expect

expect calls must be prefixed with an await

Don't allow browser.debug() statements

Don't allow browser.pause(<number>) statements

Keywords

eslint

FAQs

Package last updated on 23 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.