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

Creating stylelint plugin for no deprecated color vars #99

Merged
merged 17 commits into from
Aug 31, 2021

Conversation

jonrohan
Copy link
Member

This creates a plugin that uses /~https://github.com/primer/primitives/blob/main/data/colors_v2/deprecations.json to lint for old css vars and includes auto fix functionality.

@colebemis

@jonrohan jonrohan requested a review from colebemis August 30, 2021 18:46
@changeset-bot
Copy link

changeset-bot bot commented Aug 30, 2021

🦋 Changeset detected

Latest commit: 3964567

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

This PR includes changesets to release 1 package
Name Type
stylelint-config-primer 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

}

stylelint.utils.report({
message: messages.rejected(variableName),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the replacement is an array, can we use that array to make a more specific error message? Something like "text.primary" is deprecated. Use "fg.default" or "fg.muted" instead

@jonrohan jonrohan merged commit e83f61c into main Aug 31, 2021
@jonrohan jonrohan deleted the no_deprecated_vars branch August 31, 2021 20:25
@primer-css primer-css mentioned this pull request Aug 31, 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