{"_id":"eslint-plugin-no-async-without-await","_rev":"6-cb79c26f914781bd7796ed308ffa5cef","name":"eslint-plugin-no-async-without-await","description":"Enforce that async functions use await","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"eslint-plugin-no-async-without-await","version":"1.0.0","description":"Enforce that async functions use await","keywords":["async","async/await","await","eslint","eslint-plugin","eslintplugin"],"license":"MIT","files":["*.js"],"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/zertosh/eslint-plugin-no-async-without-await.git"},"scripts":{"test":"find test -name '*-test.js' -print0 | xargs -n 1 -0 node"},"dependencies":{},"devDependencies":{"babel-eslint":"^6.1.2","eslint":"^3.5.0"},"gitHead":"279ac136dfe7825087ac7bdeed4981e050408d22","bugs":{"url":"https://github.com/zertosh/eslint-plugin-no-async-without-await/issues"},"homepage":"https://github.com/zertosh/eslint-plugin-no-async-without-await#readme","_id":"eslint-plugin-no-async-without-await@1.0.0","_shasum":"0e6309539e93bc3fb513861f99ebf7a88bcf6996","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"0e6309539e93bc3fb513861f99ebf7a88bcf6996","tarball":"https://registry.npmjs.org/eslint-plugin-no-async-without-await/-/eslint-plugin-no-async-without-await-1.0.0.tgz","integrity":"sha512-jn8u4Ymke3Y9IFKlZwEJUi9LH6Qpvp1O2Qwall/rAKN9WDiJqFfI3EfQHebJLavHyRpgX/rhrFsSbnCRxCGGgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFkQzPDfXdIXo69i0sxiIXkimaKuLfxjFP1fd910qIpRAiEAunHBq/kiedHtIpe+tR/QzpK1aP4vG4VYEXv7pd2AGTI="}]},"maintainers":[{"name":"zertosh","email":"zertosh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/eslint-plugin-no-async-without-await-1.0.0.tgz_1474232780919_0.22086807317100465"}},"1.1.0":{"name":"eslint-plugin-no-async-without-await","version":"1.1.0","description":"Enforce that async functions use await","keywords":["async","async/await","await","eslint","eslint-plugin","eslintplugin"],"license":"MIT","files":["*.js"],"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/zertosh/eslint-plugin-no-async-without-await.git"},"scripts":{"test":"find test -name '*-test.js' -print0 | xargs -n 1 -0 node"},"dependencies":{},"devDependencies":{"babel-eslint":"^6.1.2","eslint":"^3.5.0"},"gitHead":"b13c4b6a17c32b2f362eff8323cb34e9b1b705c9","bugs":{"url":"https://github.com/zertosh/eslint-plugin-no-async-without-await/issues"},"homepage":"https://github.com/zertosh/eslint-plugin-no-async-without-await#readme","_id":"eslint-plugin-no-async-without-await@1.1.0","_shasum":"2f8b058f2c97fddf912e2a44cee67be59e3794b8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"2f8b058f2c97fddf912e2a44cee67be59e3794b8","tarball":"https://registry.npmjs.org/eslint-plugin-no-async-without-await/-/eslint-plugin-no-async-without-await-1.1.0.tgz","integrity":"sha512-0WcaGZJV5zqNgmk9IH8CQ5HC77iukrbNoyC8lqjPy0o3EtDUSn03cvV7OLGGgcvSvCv9BZE78f/54mWQR/ikTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICP2GM2YabHqYVfawFjQgtjuxteQIO4tq3OijNRYnPkTAiAIND5eHHy1ulXBtkjGHRci0pkCFSKYwiyqe8vHZxDFDg=="}]},"maintainers":[{"name":"zertosh","email":"zertosh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/eslint-plugin-no-async-without-await-1.1.0.tgz_1474310161817_0.8071667472831905"}},"1.2.0":{"name":"eslint-plugin-no-async-without-await","version":"1.2.0","description":"Enforce that async functions use await","keywords":["async","async/await","await","eslint","eslint-plugin","eslintplugin"],"license":"MIT","files":["*.js"],"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/zertosh/eslint-plugin-no-async-without-await.git"},"scripts":{"test":"find test -name '*-test.js' -print0 | xargs -n 1 -0 node"},"dependencies":{},"devDependencies":{"babel-eslint":"^7.0.0","eslint":"^3.8.1"},"gitHead":"ac4827c89c9363edbdd04495482e6e3907dc30fd","bugs":{"url":"https://github.com/zertosh/eslint-plugin-no-async-without-await/issues"},"homepage":"https://github.com/zertosh/eslint-plugin-no-async-without-await#readme","_id":"eslint-plugin-no-async-without-await@1.2.0","_shasum":"c2e64daea07cb23355fc618a16f891a3b74eda50","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.8.1","_npmUser":{"name":"zertosh","email":"zertosh@gmail.com"},"dist":{"shasum":"c2e64daea07cb23355fc618a16f891a3b74eda50","tarball":"https://registry.npmjs.org/eslint-plugin-no-async-without-await/-/eslint-plugin-no-async-without-await-1.2.0.tgz","integrity":"sha512-CGN7cdFzKii2ctN5/wUWKqtEhaVe58c3SRIH5nBDm+c9tfW7H7KAyoIzMb97IoC3lXRAZju2PR75ki97QV12EA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2HuiesRcazhgQHfgqG3rAjjkAEU2rFFk8mBji6GtjcAiEA/t77PrrigKCfYk8r9LZOgVEvNlpzM4QzezKV1dccVTw="}]},"maintainers":[{"name":"zertosh","email":"zertosh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/eslint-plugin-no-async-without-await-1.2.0.tgz_1477018450807_0.7552039423026145"}}},"readme":"# eslint-plugin-no-async-without-await\n\n[![Build Status](https://travis-ci.org/zertosh/eslint-plugin-no-async-without-await.svg?branch=master)](https://travis-ci.org/zertosh/eslint-plugin-no-async-without-await)\n\n## Usage\n\n```sh\nnpm install eslint-plugin-no-async-without-await\n```\n\nIn your `.eslintrc`:\n\n```json\n{\n  \"plugins\": [\n    \"no-async-without-await\"\n  ],\n  \"rules\": {\n    \"no-async-without-await/no-async-without-await\": 1\n  }\n}\n```\n\n## Rule Details\n\nExamples of **incorrect** code for this rule:\n\n```js\nasync function f() {\n  return true;\n}\n\nclass C {\n  async m() {\n    return 2 + 2;\n  }\n}\n```\n\nExamples of **correct** code for this rule:\n\n```js\nasync function f() {\n  await ;\n  return true;\n}\n\nclass C {\n  async m() {\n    await someAsyncProcess();\n    return 2 + 2;\n  }\n}\n\nfunction f() {\n  return someAsyncProcess();\n}\n```\n\n## Options\n\n* `allowThrow`: Allows `throw` to substitute for `await`. It's often convenient for an `async` function simply throw to return a rejected promise.\n","maintainers":[{"name":"zertosh","email":"zertosh@gmail.com"}],"time":{"modified":"2022-06-17T20:36:22.498Z","created":"2016-09-18T21:06:22.730Z","1.0.0":"2016-09-18T21:06:22.730Z","1.1.0":"2016-09-19T18:36:03.788Z","1.2.0":"2016-10-21T02:54:11.705Z"},"homepage":"https://github.com/zertosh/eslint-plugin-no-async-without-await#readme","keywords":["async","async/await","await","eslint","eslint-plugin","eslintplugin"],"repository":{"type":"git","url":"git+https://github.com/zertosh/eslint-plugin-no-async-without-await.git"},"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"bugs":{"url":"https://github.com/zertosh/eslint-plugin-no-async-without-await/issues"},"license":"MIT","readmeFilename":"README.md","users":{"sergiodxa":true}}