🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

eslint-plugin-async-await

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-async-await

enforces spacing after async/await plugin

0.0.0
latest
Source
npm
Version published
Weekly downloads
3.6K
-23.36%
Maintainers
1
Weekly downloads
 
Created
Source

Eslint Plugin Async/Await

Installation

npm install eslint-plugin-async-await --save

Usage

.eslintrc

{
  "plugins": ["async-await"],
  "rules": {
    "async-await/space-after-async": 2,
    "async-await/space-after-await": 2
  }
}

Rules

  • async-await/space-after-async: disallow async()=>{}, fixing to async ()=>{}.
  • async-await/space-after-await: disallow await(foo), fixing to await (foo).

The --fix option on the command line automatically fixes problems reported by this rule.

Development

Requirement global

  • NodeJS v5.10.0
  • Npm v3.8.3
git clone https://github.com/59naga/eslint-plugin-async-await
cd eslint-plugin-async-await
npm install

npm test

License

MIT

Keywords

babel

FAQs

Package last updated on 17 May 2016

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