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

Introduce Prettier #44

Merged
merged 2 commits into from
Jun 14, 2020
Merged

Introduce Prettier #44

merged 2 commits into from
Jun 14, 2020

Conversation

hackerwins
Copy link
Member

@hackerwins hackerwins commented Jun 13, 2020

What does this PR do?

Change the code style of Prettier

How should this be manually tested?

npm run lint:prettier

Any background context you want to provide?

What are the relevant tickets?

Fixes #41

Checklist

  • Added relevant tests
  • Didn't break anything

@hackerwins hackerwins changed the title Apply prettier Apply Prettier Jun 13, 2020
@hackerwins hackerwins changed the title Apply Prettier Introduce Prettier Jun 13, 2020
@hackerwins hackerwins force-pushed the misc/prettier branch 4 times, most recently from a2b8ad2 to 3edeca6 Compare June 13, 2020 15:33
Comment on lines 237 to 250
logger.trivial(changes.map((change) =>
`${change.getID().getAnnotatedString()}\t${change.getAnnotatedString()}`
).join('\n'));
logger.trivial(
changes
.map(
(change) =>
`${change
.getID()
.getAnnotatedString()}\t${change.getAnnotatedString()}`,
)
.join('\n'),
);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems harder to read. We need to find a way to prevent a newline per chained call.
https://eslint.org/docs/rules/newline-per-chained-call#ignorechainwithdepth

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hackerwins hackerwins merged commit 360d1b3 into master Jun 14, 2020
@hackerwins hackerwins deleted the misc/prettier branch June 14, 2020 06:30
parkeunae pushed a commit to parkeunae/yorkie-js-sdk that referenced this pull request Jul 23, 2022
* Apply prettier

* Change code style of Prettier

Co-authored-by: hyunwoo.jo <hyunwoo.jo@navercorp.com>
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.

How about using Prettier?
1 participant