Huge News!Announcing our $40M Series B led by Abstract Ventures.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
  • Socket score

Version published
Weekly downloads
5K
decreased by-13.07%
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

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

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