-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(project): add prettier-config-carbon package #6168
feat(project): add prettier-config-carbon package #6168
Conversation
Deploy preview for carbon-elements ready! Built with commit 0a47c4f |
Deploy preview for carbon-components-react ready! Built with commit 0a47c4f https://deploy-preview-6168--carbon-components-react.netlify.app |
Deploy preview for carbon-elements ready! Built with commit 88a3209 |
Deploy preview for carbon-components-react ready! Built with commit 88a3209 https://deploy-preview-6168--carbon-components-react.netlify.app |
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 to me
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.
Should Prettier be specified as a peer dep? Is the intent here for this to be compatible with all versions of prettier, <=1, or >=2?
We're using Prettier v2, which has some new defaults. I don't think there's any changes to the way configs are set/used, just the config properties.
Good call @tay1orjones! And I'd say for v2 but could easily have it apply to both 👀 |
Adds the
prettier-config-carbon
package to help have consistent prettier configuration across projects, both for Carbon and for teams building with Carbon.Changelog
New
prettier-config-carbon
Changed
@carbon/cli
to use new prettier configurationRemoved