eslint-plugin-async-await

0.0.0 • Public • Published

Eslint Plugin Async/Await

Installation

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

Usage

Via .eslintrc (Recommended)

.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

Package Sidebar

Install

npm i eslint-plugin-async-await

Weekly Downloads

3,500

Version

0.0.0

License

MIT

Last publish

Collaborators

  • 59naga