Rule: no-void-expression

Requires expressions of type void to appear in statement position.

Notes:

Config

If ignore-arrow-function-shorthand is provided, () => returnsVoid() will be allowed. Otherwise, it must be written as () => { returnsVoid(); }.

Examples
Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "enum": [
      "ignore-arrow-function-shorthand"
    ]
  },
  "minLength": 0,
  "maxLength": 1
}