-
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
Upgrade stylelint-polaris
to stylelint
v16
#12337
Conversation
/snapit |
🫰✨ Thanks @aaronccasanova! Your snapshots have been published to npm. Test the snapshots by updating your "@shopify/polaris-migrator": "0.0.0-snapshot-20240705202418",
"@shopify/stylelint-polaris": "0.0.0-snapshot-20240705202418" |
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.
Looks good. I'd like to revert the max class / combinators / compound selectors and specificity if possible because the css is already too complex IMO but that can be a follow up
'selector-max-class': 5, | ||
'selector-max-combinators': 5, | ||
'selector-max-compound-selectors': 5, | ||
'selector-max-specificity': '0,5,0', |
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.
I'm concerned about these changes but I understand the need to ship this PR and how difficult it would be to refactor the css to make these tests pass. @jesstelford did you try just block disabling the rules here? Would that be possible?
…`stylelint-scss`
…it from 0,2,0 to 0,5,0
It is not forwards compatible with new CSS features. See: stylelint/stylelint#7630
…ing limit from 3 to 5
Co-authored-by: Kyle Durand <kyle.durand@shopify.com>
7f13243
to
c003716
Compare
/snapit |
🫰✨ Thanks @aaronccasanova! Your snapshots have been published to npm. Test the snapshots by updating your "@shopify/polaris-migrator": "0.0.0-snapshot-20240708173140",
"@shopify/stylelint-polaris": "0.0.0-snapshot-20240708173140" |
This reverts commit b2d2da4.
This reverts commit b2d2da4.
WHAT is this pull request doing?
This PR upgrades
stylelint-polaris
tostylelint
v16 and drops support for v15 and v16.As part of this upgrade, the following updates were made:
stylelint
to^16.6.1
stylelint-scss
to^6.3.2
@shopify/eslint-plugin
to^45.0.0
@shopify/stylelint-plugin
to^14.0.0
eslint
to^8.56.0
jest-preset-stylelint
to^7.0.1
prettier
to^3.2.2
stylelint
to report errors on async rules. See Stylelint issue for more details: Fixstylelint.utils.checkAgainstRule()
for Promise-based rules stylelint/stylelint#7820--experimental-vm-modules
flag tojest
calls to enable support for async pluginsstylelint-polaris
plugins andstylelint
APIs to be asynchronousprettier.format
calls to be asynchronouseslint
andstylelint
failures after dependency upgradesstyles-insert-stylelint-disable
migration asresult.messages
node
s are now detached from theroot
AST. Calls such asnode.prev()
andnode.before(comment)
now throw exceptions as the reported nodes don't have access to properties and methods previously exposed. The consensus speaking with @kyledurand and @sophschneider is that we can revisit adding support for this migration if and when it is needed again.How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
🎩 checklist
README.md
with documentation changes