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

Upgrade to latest stylelint 16 and make esm the default module format #397

Merged
merged 23 commits into from
Apr 16, 2024

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Apr 11, 2024

This PR's goal is to update to the latest version of Stylelint.

In order to do this, it requires that we upgrade the package to using ESModules. This needed a bit of rewriting happening in some of the plugins. The majority of changes were needed in how we import in each plugin. To do so without breaking backwards compatibility we introduced rollup to include .cjs common js imports.

There was also an upgrade of eslint needed to support the new formats.

Copy link

changeset-bot bot commented Apr 11, 2024

🦋 Changeset detected

Latest commit: 4e9e74c

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

This PR includes changesets to release 1 package
Name Type
@primer/stylelint-config Major

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

@joshblack
Copy link
Member

Changes look good from the CommonJS -> ESM perspective! Let me know when you want an official review once this is ready to review 👀

I think the only thing that could come up is around subpath imports (or requires) and if that changes with this update.

@jonrohan jonrohan marked this pull request as ready for review April 16, 2024 15:57
@jonrohan jonrohan requested a review from a team as a code owner April 16, 2024 15:57
@jonrohan jonrohan self-assigned this Apr 16, 2024
@jonrohan jonrohan enabled auto-merge (squash) April 16, 2024 22:05
Copy link
Collaborator

@langermank langermank left a comment

Choose a reason for hiding this comment

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

Let's goooo 💪 nice work

@jonrohan jonrohan merged commit 255a3c4 into main Apr 16, 2024
4 checks passed
@jonrohan jonrohan deleted the upgrade_stylelint branch April 16, 2024 22:57
@primer-css primer-css mentioned this pull request Apr 16, 2024
@jonrohan jonrohan changed the title Upgrade to latest stylelint and make esm the default module format Upgrade to latest stylelint 16 and make esm the default module format Apr 17, 2024
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.

3 participants