Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-unnecessary-arbitrary-value guidance regarding spacing units #361

Open
mm-jasonh opened this issue Sep 20, 2024 · 0 comments
Open

no-unnecessary-arbitrary-value guidance regarding spacing units #361

mm-jasonh opened this issue Sep 20, 2024 · 0 comments

Comments

@mm-jasonh
Copy link

Hello,

Could use some guidance on how to maybe apply the no-unnecessary-arbitrary-value rule to this scenario.

Say I have a tailwind.config.cjs with...

theme: {
    spacing: {
        80: '5rem', // 80px
    }
}

The linter will error (per my lint config) when it finds className="p-[5rem]" for example.

Is it possible for the linter to also error when it finds className="p-[80px]"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant