Skip to content

Create a rule to disallow directly accessing themes from sx or styled system props #17

Open
@jfuchs

Description

A no-theme-access-out-of-context rule would keep you from doing this:

import {theme, Box} from '@primer/components'

<Box width={theme.sizes.large} />

And auto-fix it to:

<Box width="large" />

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions