Skip to main content

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:

ban-types itself is removed in typescript-eslint v8. See Announcing typescript-eslint v8 Beta for more details.