Skip to content

[no-deprecated-colors] Warn about deprecated and removed color variables #15

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

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

colebemis
Copy link
Contributor

Context

Primer Primitives now exports a list of removed variables in addition to deprecated variables

Summary

This PR updates the no-deprecated-colors rule to warn about both deprecated and removed variables

Notes

I considered creating a separate rule called no-removed-colors that would allow us to set different severity levels (i.e. deprecated colors would trigger warnings and removed colors would trigger errors). However, the complexity/time to create a separate rule didn't seem worth it. I'm open to creating a separate rule if it seems necessary later.

@changeset-bot
Copy link

changeset-bot bot commented Oct 14, 2021

🦋 Changeset detected

Latest commit: 9b96147

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-primer-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@colebemis colebemis requested review from pksjce and jfuchs October 14, 2021 00:22
@pksjce pksjce merged commit e4f6dfd into main Oct 14, 2021
@pksjce pksjce deleted the removed-and-deprecated branch October 14, 2021 00:47
@primer-css primer-css mentioned this pull request Oct 14, 2021
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

Successfully merging this pull request may close these issues.

2 participants