-
Notifications
You must be signed in to change notification settings - Fork 926
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
Use consistent prettier config for lit-html package #4749
Conversation
🦋 Changeset detectedLatest commit: fd9209a The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types 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 |
📊 Tachometer Benchmark ResultsSummarynop-update
render
update
update-reflect
Resultsthis-change
render
update
update-reflect
this-change, tip-of-tree, previous-release
render
update
nop-update
this-change, tip-of-tree, previous-release
render
update
this-change, tip-of-tree, previous-release
render
update
update-reflect
|
The size of lit-html.js and lit-core.min.js are as expected. |
9588e41
to
fd9209a
Compare
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.
Nice!
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.
Consistency is good. Started a discussion on comma policy in the discord, but getting consistency with other packages is an improvement.
When prettier was updated in #4559 the default config for trailing comma changed from "es5" to "all", adding a lot of trailing comma to function params, specifically for the
lit-html
package as it had its own.prettierrc.json
file without that option set.This is inconsistent with the monorepo root prettierrc which explicitly had
"trailingComma": "es5"
.This PR adds the explicit trailing comma setting to
packages/lit-html/src/.prettierrc.json
.Alternatively, I tried to remove the file and have the package use the root monorepo prettierrc but the
"embeddedLanguageFormatting"
setting was causing issue and test failures elsewhere.