Componentsv2.189.0
Iconsv1.19.0
MCPv0.8.61
Tokensv0.34.3

no-deprecated-apis

Github

Disallow deprecated Pluma component APIs.


Use this rule to turn Pluma deprecations into migration errors before the next major release removes old APIs.

Incorrect

import { Button, LabelIcon, Popover } from '@customerio/pluma-components/react';

<Button isError size="medium" unsafe_isActive>Delete</Button>
<Popover content="More details">Details</Popover>
<LabelIcon icon="star">Feature</LabelIcon>

Correct

import { Button, Coin, Icon, Popover } from '@customerio/pluma-components/react';

<Button isDanger size="md" isActive>Delete</Button>
<Popover description="More details">Details</Popover>
<Coin><Icon name="star" /></Coin>

What is checked

The rule resolves Pluma imports and aliases before matching component usage. It reports deprecated components, deprecated prop names, deprecated static prop values, and the deprecated DataTable sorting={{ id, desc }} object form.

On this page