@telefonica/eslint-plugin-async-await
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    Eslint plugin async methods

    ESLint plugin to prevent mistakes by not awaiting async methods.

    Usage

    Add @telefonica/eslint-plugin-async-await to the plugins section of your .eslintrc configuration file:

    plugins:
        - '@telefonica/eslint-plugin-async-await'

    Then configure the rules:

    rules:
        - '@telefonica/async-await/await-async-methods':
            [
              error,
              {
                page: ['click', 'screenshot'], # This indicates page.click and page.screenshot are async methods.
                screen: ['findByToken'] # This indicates screen.findByToken is an async method.
              }
            ]

    Keywords

    none

    Install

    npm i @telefonica/eslint-plugin-async-await

    DownloadsWeekly Downloads

    16

    Version

    1.1.0

    License

    UNLICENSED

    Unpacked Size

    48.6 kB

    Total Files

    18

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar