Skip to content
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

[WIP] align-object-properties - first take WIP #4

Closed
wants to merge 23 commits into from

Conversation

brody4hire
Copy link
Collaborator

@brody4hire brody4hire commented Jan 1, 2019

ported from prettier-miscellaneous (arijs#7 & arijs#8), with some major rework by @brodybits

with TODO items:

  • configuration & documentation
  • JSON handling does not look right

I suspect there should be a separate option to enable this feature for JSON.

Christopher J. Brody and others added 5 commits January 1, 2019 17:04
ported from prettier-miscellaneous
(arijs#7 & arijs#8)

with some adaptations by @brodybits
(Christopher J. Brody <[email protected]>), including:
* adapt const shouldBreak = hasNewlineInRange(...)
  for newer version of prettier
* extra comment & spacing
* add object to test to ensure that it does not get unwanted padding
* adapt tests/align-object-properties/__snapshots__/jsfmt.spec.js.snap
  for newer version of prettier

XXX TODO ITEMS including:
* export & check alignObjectProperties option
* resolve issue with object partially but not completely defined
  on the first line

Co-authored-by: Joseph Frazier <[email protected]>
Co-authored-by: Christopher J. Brody <[email protected]>
for object partially but not completely defined on the first line
(and test it)

Co-authored-by: Joseph Frazier <[email protected]>
Co-authored-by: Christopher J. Brody <[email protected]>
Co-authored-by: Joseph Frazier <[email protected]>
Co-authored-by: Christopher J. Brody <[email protected]>
@brody4hire brody4hire mentioned this pull request Jan 3, 2019
5 tasks
@brody4hire brody4hire changed the base branch from prettier-master to dev January 11, 2019 00:23
@brody4hire
Copy link
Collaborator Author

Closing in favor of PR #35

@brody4hire brody4hire closed this Jan 14, 2019
@brody4hire brody4hire deleted the align-object-properties-first-take branch January 14, 2019 16:38
@brody4hire brody4hire restored the align-object-properties-first-take branch January 14, 2019 16:38
@brody4hire brody4hire deleted the align-object-properties-first-take branch January 22, 2019 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant