Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-wdio

Package Overview
Dependencies
Maintainers
0
Versions
142
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.2.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130K
decreased by-13.36%
Maintainers
0
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 { config 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

RuleDescription
wdio/await-expectexpect calls must be prefixed with an await
wdio/no-debugDon't allow browser.debug() statements
wdio/no-pauseDon't allow browser.pause(<number>) statements

Keywords

FAQs

Package last updated on 07 Nov 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc