{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/tslint/issues/892","repository_url":"https://api.github.com/repos/palantir/tslint","labels_url":"https://api.github.com/repos/palantir/tslint/issues/892/labels{/name}","comments_url":"https://api.github.com/repos/palantir/tslint/issues/892/comments","events_url":"https://api.github.com/repos/palantir/tslint/issues/892/events","html_url":"https://github.com/palantir/tslint/issues/892","id":123464587,"node_id":"MDU6SXNzdWUxMjM0NjQ1ODc=","number":892,"title":"Rule suggestion: require `await` of async functions","user":{"login":"cevek","id":3171573,"node_id":"MDQ6VXNlcjMxNzE1NzM=","avatar_url":"https://avatars0.githubusercontent.com/u/3171573?v=4","gravatar_id":"","url":"https://api.github.com/users/cevek","html_url":"https://github.com/cevek","followers_url":"https://api.github.com/users/cevek/followers","following_url":"https://api.github.com/users/cevek/following{/other_user}","gists_url":"https://api.github.com/users/cevek/gists{/gist_id}","starred_url":"https://api.github.com/users/cevek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cevek/subscriptions","organizations_url":"https://api.github.com/users/cevek/orgs","repos_url":"https://api.github.com/users/cevek/repos","events_url":"https://api.github.com/users/cevek/events{/privacy}","received_events_url":"https://api.github.com/users/cevek/received_events","type":"User","site_admin":false},"labels":[{"id":243410757,"node_id":"MDU6TGFiZWwyNDM0MTA3NTc=","url":"https://api.github.com/repos/palantir/tslint/labels/P2","name":"P2","color":"bbbbbb","default":false},{"id":427273270,"node_id":"MDU6TGFiZWw0MjcyNzMyNzA=","url":"https://api.github.com/repos/palantir/tslint/labels/Requires%20Type%20Checker","name":"Requires Type Checker","color":"bfdadc","default":false},{"id":236417479,"node_id":"MDU6TGFiZWwyMzY0MTc0Nzk=","url":"https://api.github.com/repos/palantir/tslint/labels/Resolution:%20Fixed","name":"Resolution: Fixed","color":"000000","default":false},{"id":182886787,"node_id":"MDU6TGFiZWwxODI4ODY3ODc=","url":"https://api.github.com/repos/palantir/tslint/labels/Type:%20Rule%20Suggestion","name":"Type: Rule Suggestion","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2015-12-22T11:29:43Z","updated_at":"2018-10-09T16:59:34Z","closed_at":"2017-04-02T17:25:27Z","author_association":"NONE","body":"For example: \n\n```\nasync function foo(){\n}\nasync function bar(){\n    foo(); // I need absent await warning \n    return 234;\n}\n```\n\nI need just simple example how to start, find method declaration and check that is async function\n"},"comment":{"url":"https://api.github.com/repos/palantir/tslint/issues/comments/428270271","html_url":"https://github.com/palantir/tslint/issues/892#issuecomment-428270271","issue_url":"https://api.github.com/repos/palantir/tslint/issues/892","id":428270271,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODI3MDI3MQ==","user":{"login":"JoshuaKGoldberg","id":3335181,"node_id":"MDQ6VXNlcjMzMzUxODE=","avatar_url":"https://avatars1.githubusercontent.com/u/3335181?v=4","gravatar_id":"","url":"https://api.github.com/users/JoshuaKGoldberg","html_url":"https://github.com/JoshuaKGoldberg","followers_url":"https://api.github.com/users/JoshuaKGoldberg/followers","following_url":"https://api.github.com/users/JoshuaKGoldberg/following{/other_user}","gists_url":"https://api.github.com/users/JoshuaKGoldberg/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshuaKGoldberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshuaKGoldberg/subscriptions","organizations_url":"https://api.github.com/users/JoshuaKGoldberg/orgs","repos_url":"https://api.github.com/users/JoshuaKGoldberg/repos","events_url":"https://api.github.com/users/JoshuaKGoldberg/events{/privacy}","received_events_url":"https://api.github.com/users/JoshuaKGoldberg/received_events","type":"User","site_admin":false},"created_at":"2018-10-09T16:59:34Z","updated_at":"2018-10-09T16:59:34Z","author_association":"CONTRIBUTOR","body":"@bennyn This section is technically not a floating promise, since you handle it:\r\n\r\n```typescript\r\nawaitMe() ? true : false\r\n```\r\n\r\n`strict-boolean-expressions` would handle that, since you're comparing a Promise in the ternary instead of the expected boolean. See discussion in https://github.com/palantir/tslint/issues/4117.\r\n\r\nThis is a common concern brought up - a little more +1 to making `strict-boolean-expressions` more configurable so more folks can use it :)"}}
{"actor":{"display_login":"JoshuaKGoldberg"}}