Conversation
5a12f60 to
e14a67b
Compare
|
Run this on our code base, result https://github.com/fisker/prettier/pull/429/files |
|
Accept this? |
Ugly |
This one seems not related. It's changed by #7889 |
|
Definitely looks like a positive change to me. Wouldn't this looks like a breaking change to some users? |
Yes. I wonder what to do with it. Should we special-case |
|
As for this PR, what do you all think about the reformatting of the |
Where exactly do you think this change might look unexpected? |
If a massive set of changes would suddenly happen to a code base after a minor update of Prettier, like we would see in Prettier itself (fisker#429), I would be a bit surprised. Or am I too pedantic? |
|
@brodybits I think people are okay with massive changes when these massive changes are perceived as in improvement. |
I think it's good. |
Recall also that, to some extent, this sort of rolls back another "massive" change that appeared in 1.19. |
|
Any progress and/or resolution on this one? I've rebased this branch on master and tried running my codebase through it. It's somewhat better than the original, but there are still those weird single-line |
|
@rassie This PR wasn't meant to change the situation for RxJS pipes as I don't know a solution to it. |
0ab08dc to
e090f0a
Compare
| if ( | ||
| hasComment( | ||
| lastArg, | ||
| CommentCheckFlags.Leading | CommentCheckFlags.Trailing |
There was a problem hiding this comment.
@fisker This doesn't work as expected. Something is wrong inside hasComment.
There was a problem hiding this comment.
I was wrong. Actually, it makes sense. CommentCheckFlags.Leading | CommentCheckFlags.Trailing doesn't mean "leading or trailing". It means "leading and trailing".
There was a problem hiding this comment.
Maybe we can add conflicting flags check? eg Leading/Trailing/Dangling and Block/Line
There was a problem hiding this comment.
Yes, as an assertion removed at build time. Good idea.
e090f0a to
11952f1
Compare
Playing with different ideas to (partially) address #6921.
✨Try the playground for this PR✨
Or test it locally:
npm install thorn0/prettier#functional-composition-experimentsaddEventListener(Node.js callback style) and to functional-composition functions likecreateSelectorfrom Reselect._.mapto keep their last arguments hugged.docs/directory)changelog_unreleased/*/pr-XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.