ESLint plugin
The essential plugin for use with the Atlassian Design System.prefer-primitives
Using primitives allows you to delete bespoke component code and replace it with ready made solutions made by the Atlassian Design System Team.
Examples
This rule marks code as violations when it may be able to be replaced with a primitive component.
Incorrect
<div />
^^^^^^^
<Component>
<div css={someStyles}></div>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
</Component>Correct
<Box /><Component>
<Box xcss={someStyles}></Box>
</Component>