-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Turn on prettier (except repo root) #1167
Conversation
I proposed at #948 (comment) that we turn off semicolons for lib/ and service-tests/ before merging this. |
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.
Seems good to me. I don't really have any comments to add, since this is all automated.
lib/badge.js
Outdated
' Generated untemplated SVG:\n' + | ||
'---\n' + untemplatedSvg + '---\n'); | ||
console.error( | ||
'Template ' + |
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 like a great use case for a format string.
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.
Is there a prettier option for prefer template string?
Do we want to add info about usage of prettier in this project in documentation, e.g. in |
pre-commit hook would make much more sense than explaining commands to the contributors, the process should be transparent |
Let's take one last pass through the recent open PRs that modify a lot of files in
|
I'm not sure we'll be able to merge all of these in a timely way. How about we just go ahead and do this, and deal with the rebasing + conflicts? I worry if we wait until everything is clear we could be waiting a long time… |
Yeah, that sounds fine to me 👍 |
@chris48s Does that work for you, too? Most of the outstanding rebasing work would likely fall on the three of us, so if we're cool with it, I'll revive this, update it, add some doc, and then merge it shortly after. |
# Conflicts: # .eslintrc-preferred.yml
See discussion #948 (comment)
Generated by 🚫 dangerJS |
I spot-checked these and they look way cleaner, especially without the semis. The tester code looks especially pretty! ✨ |
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 work, Changes are looking good.
Nice work! I miss the semicolons, but consistency is good. I'm happy either way, as long as it's consistent across everything :) |
# Conflicts: # package-lock.json
To make it easier to read the config changes, I reverted the formatting changes, which I'll merge separately. This PR will fail |
Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
I've posted guidance on resolving merge conflicts here: #1866 (comment) |
Follow-up to #1123.
This is going to conflict with open PRs. Before merging it, I want to get through a few open PRs which are making substantive changes in lib/:
The open PRs for service badges will conflict too, though the conflicts there will be smaller and so not as difficult to solve.