Nero Punished Miscreants

    eslint-plugin-wdio
    TypeScript icon, indicating that this package has built-in type declarations

    7.19.4 • Public • Published

    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": [
            "eslint:recommended",
            "plugin:wdio/recommended"
        ]
    }

    See ESLint documentation for more information about extending configuration files.

    List of supported rules

    Rule Description
    wdio/await-expect expect calls must be prefixed with an await
    wdio/no-debug Don't allow browser.debug() statements
    wdio/no-pause Don't allow browser.pause(<number>) statements

    Install

    npm i eslint-plugin-wdio

    DownloadsWeekly Downloads

    85,640

    Version

    7.19.4

    License

    MIT

    Unpacked Size

    16.9 kB

    Total Files

    27

    Last publish

    Collaborators

    • christian-bromann
    • wdio-user
    • wswebcreation-nl
    • willbrock
    • abjerstedt