Skip to content

Update prettier to v1.13#7434

Merged
sokra merged 1 commit intomasterfrom
bump_prettier
May 29, 2018
Merged

Update prettier to v1.13#7434
sokra merged 1 commit intomasterfrom
bump_prettier

Conversation

@ooflorent
Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

code style

Did you add tests for your changes?

no

Does this PR introduce a breaking change?

no

What needs to be documented once your changes are merged?

nothing

@webpack-bot
Copy link
Copy Markdown
Contributor

webpack-bot commented May 29, 2018

For maintainers only:

  • This need to be documented (issue in webpack/webpack.js.org will be filed when merged)

files.forEach(({ file, chunk }, idx) => {
reportProgress(
0.5 * idx / files.length,
(0.5 * idx) / files.length,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't that a bit too much? Why is prettier doing this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Prettier will now add parens around module operations when they're inside an additive operation or when mixing two different multiplicative operations, even though they're not necessary. This is to help more quickly understand a code snippet.

Yes. It is too much. It adds parens so you don't have to think about precedence when reading the code.

@webpack-bot
Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra sokra merged commit 4f4a2ba into master May 29, 2018
@sokra sokra deleted the bump_prettier branch May 29, 2018 18:35
@sokra
Copy link
Copy Markdown
Member

sokra commented May 29, 2018

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants