-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[stylelint-polaris] Validate rule configs #7827
Labels
stylelint-polaris
Related to the the @shopify/stylelint-polaris package
Comments
chloerice
changed the title
[stylelint-polaris - v5] Final validation of rules
[stylelint-polaris] Validate rule configs
Dec 6, 2022
created this google sheet with current stylelint errors to track validation progress on the files Chloe listed above |
Bugs
Questions
Replacement components
Note
|
Bugs
Questions
|
sam-b-rose
added
the
stylelint-polaris
Related to the the @shopify/stylelint-polaris package
label
Dec 11, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tl;dr:
The rule settings configured have a few problems that need to be addressed before we ship
@shopify/stylelint-polaris
to Shopify/web.Why
The rule configurations in each category need to be checked for validity to address known (and uncover unknown) issues before we ship to
Shopify/web
. Look for and flag or fix:property-disallowed-list
anddeclaration-property-value-disallowed-list
declaration-property-value-disallowed-list
=>opacity: [/(?!0|1)\d$|^\d{2,}|^[1-9]+\.|^\d+\.\d+\.|^0\.\d{3,}/]
doesn't report problems at all as configuredproperty-disallowed-list
that map to specific components and should move todeclaration-property-value-disallowed-list
and have detailed error messagesposition
be wholly disallowed, or shouldposition sticky;
be specifically disallowed since folks should use theSticky
componentHow
To uncover issues with the rule configs, prioritize validating the disabled errors and warnings for each category using the stylesheets of some of the more complex/configurable
@shopify/polaris
components, such as:For example, run
yarn stylelint polaris-react/src/components/Button/Button.scss --ignore-disables
and check that errors and warnings are valid.Let's split up the work by category so we can move quickly without duplicating effort (just add your name to the category when you start to tackle it).
The text was updated successfully, but these errors were encountered: