Rule: ban-types

Bans specific types from being used. Does not ban the corresponding runtime objects from being used.

Notes:
TS Only

Config

A list of ["regex", "optional explanation here"], which bans types that match regex

Config examples
"ban-types": [true, ["Object", "Use {} instead."], ["String"]]
Schema
{
  "type": "list",
  "listType": {
    "type": "array",
    "items": {
      "type": "string"
    },
    "minLength": 1,
    "maxLength": 2
  }
}