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

2.0.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'], screen: ['findByToken']}, # This indicates page.click and page.screenshot are async methods.
      ] # This indicates screen.findByToken is an async method.

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

319

Version

2.0.0

License

UNLICENSED

Unpacked Size

48.9 kB

Total Files

18

Last publish

Collaborators

  • tdaf
  • aura
  • living-apps
  • lifecyle-novum