ban-types
Deprecated
The old ban-types
rule encompassed multiple areas of functionality, and so has been split into several rules.
no-restricted-types
is the new rule for banning a configurable list of type names.
It has no options enabled by default and is akin to rules like no-restricted-globals
, no-restricted-properties
, and no-restricted-syntax
.
The default options from ban-types
are now covered by:
no-empty-object-type
: banning the built-in{}
type in confusing locationsno-unsafe-function-type
: banning the built-inFunction
no-wrapper-object-types
: banningObject
and built-in class wrappers such asNumber
ban-types
itself is removed in typescript-eslint v8.
See Announcing typescript-eslint v8 Beta for more details.