Occasionally, components are removed from Circuit UI. This rule flags uses of deprecated components.
A component is removed in two stages:
- The component is marked as deprecated in a minor release. In this phase, setting the rule's error level to
warn
(or1
) is recommended. - The component is removed in the next major release. In this phase, setting the rule's error level to
error
(or2
) is recommended.
When upgrading Circuit UI, it is recommended to upgrade to the latest minor version, remove or replace the component using the suggestions from this rule, then upgrade to the next major.
Examples of incorrect code for this rule:
// Since Circuit UI v6.4
import { RadioButton, Selector } from '@sumup/circuit-ui';
Examples of correct code for this rule:
// Since Circuit UI v6.4
import { RadioButtonGroup, SelectorGroup } from '@sumup/circuit-ui';
n/a
n/a