-
Notifications
You must be signed in to change notification settings - Fork 98
(feat) support singleAttributePerLine #313
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
Conversation
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.
Thank you! This mostly looks good, except the tests are currently failing. Also left two comments.
src/print/helpers.ts
Outdated
): PrintFn { | ||
return (path) => | ||
path.getNode().name !== snippedTagContentAttribute | ||
? [getAttributeLine(node, options), path.call(print)] |
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.
We still need to use concat
here even if it's now deprecated because we support Prettier versions where that wasn't a thing yet.
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.
Thank you! This mostly looks good, except the tests are currently failing. Also left two comments.
Thanks! I'm also not sure why the tests are failing, I ran npm test
and they all passed locally 😕
For the tests to pass you probably need to bump Prettier in the devDeps and commit that package-lock change - it probably uses a version where that new option wasn't present yet. |
oh I know what happened, I used |
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.
Thank you and congrats on your first PR in this repo!
@dummdidumm Sorry if this is a dumb question but when will this be released? Thank you very much @david-ding for implementing it by the way! |
@dummdidumm This is actually now causing the syntax highlighting in |
Don't bump issues in separate places. I saw that, and I'll get round to it eventually. |
This PR addresses #305 by adding support for the
singleAttributePerLine
option from prettier