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

chore(deps): bump and fix prettier #13675

Merged
merged 3 commits into from May 11, 2023

Conversation

falsepopsky
Copy link
Contributor

What

  1. Update prettier to latest.
  2. Remove prettier from devDependencies in prettier-config-carbon.
  3. Add --cache flag in lint-staged.
  4. Don't use --cache in format:diff script.

Why

  1. Previously, in a pull request that I created, I added the --cache option, which had a bug. However, this bug was fixed and released on V8
  2. prettier-config-carbon is a shareable configuration that does not require prettier as devDependency. Instead, it should be added as a peerDependency to indicate that this configuration requires version v2.x of the prettier package.
  3. I missed adding the --cache flag in my old pr.
  4. The primary reason for this change is that I believe it is preferable to check the files rather than depending on the cache.

Changelog

Changed

  • Update prettier to latest.

Removed

  • Remove prettier from devDependencies in prettier-config-carbon

Testing / Reviewing

CI should pass.

@netlify
Copy link

netlify bot commented Apr 26, 2023

Deploy Preview for carbon-components-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 1feb3e5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-react/deploys/645d6b31cc2df9000863719d
😎 Deploy Preview https://deploy-preview-13675--carbon-components-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Apr 26, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 1feb3e5
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/645d6b3120d52b00084e0a6a
😎 Deploy Preview https://deploy-preview-13675--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@falsepopsky falsepopsky changed the title chore(deps): fix prettier chore(deps): bump and fix prettier Apr 26, 2023
Copy link
Member

@tay1orjones tay1orjones left a comment

Choose a reason for hiding this comment

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

This looks great, thanks for updating it!

Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

LGTM, other than a merge conflict

@falsepopsky
Copy link
Contributor Author

conflict solved, thanks

@kodiakhq kodiakhq bot merged commit be77574 into carbon-design-system:main May 11, 2023
18 checks passed
@falsepopsky falsepopsky deleted the chore/fix-prettier branch May 11, 2023 23:20
SunnyJohal pushed a commit to SunnyJohal/carbon that referenced this pull request May 23, 2023
* chore(deps): bump prettier to latest

* fix: format files with prettier

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants