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

no-deprecated-icons

Github

Disallow deprecated Pluma icon names.


Use this rule to fail CI when static Pluma icon names use icons that have been renamed, merged, or scheduled for removal.

The rule reads deprecation metadata from @customerio/pluma-icons, so it stays aligned with the icon package.

Incorrect

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

<Icon name="folder-add" />
<Button icon="copy-to">Copy</Button>

Correct

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

<Icon name="folder-new" />
<Button icon="exit">Copy</Button>

What is checked

The rule reports static icon names on Icon / PlumaIcon, plus static icon prop values such as icon and markerIcon on imported Pluma components. Dynamic icon expressions are ignored.

On this page