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

no-banned-imports

Github

Keep application code on Pluma public package entrypoints.


Use this rule to keep application code on Pluma's public package entrypoints. Private source and build-output imports couple consumers to implementation details that can change without a component API change.

Incorrect

import { Button } from '@customerio/pluma-components/dist-react/components/button';
import PlumaButton from '@customerio/pluma-components/src/components/button/ember/index';

Correct

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

Banned paths

The default policy blocks imports from:

  • @customerio/pluma-components/dist-react
  • @customerio/pluma-components/dist-ember
  • @customerio/pluma-components/src

If a public entrypoint is missing something an app needs, add or fix the Pluma entrypoint instead of importing from private paths.

On this page