Rule: no-floating-promises

Promises returned by functions must be handled appropriately.

Use no-unused-expression in addition to this rule to reveal even more floating promises.

Rationale

Unhandled Promises can cause unexpected behavior, such as resolving at unexpected times.

Notes:

Config

A list of ‘string’ names of any additional classes that should also be handled as Promises.

Examples
"no-floating-promises": true
"no-floating-promises": [true, "JQueryPromise"]
Schema
{
  "type": "list",
  "listType": {
    "type": "array",
    "items": {
      "type": "string"
    }
  }
}