-
Notifications
You must be signed in to change notification settings - Fork 19
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
Conversation
🦋 Changeset detectedLatest commit: 3964567 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
Conflicts: package-lock.json
Conflicts: yarn.lock
plugins/no-deprecated-colors.js
Outdated
} | ||
|
||
stylelint.utils.report({ | ||
message: messages.rejected(variableName), |
There was a problem hiding this comment.
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
Co-authored-by: Cole Bemis <colebemis@github.com>
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