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

fix(stdout): remove extra newlines at EOF #54

Merged

Conversation

BenoitZugmeyer
Copy link
Contributor

By using console.log, an extra newline is printed after the code formated by prettier/eslint. See
related prettier issue prettier/prettier#437

Fix #51

By using console.log, an extra newline is printed after the code formated by prettier/eslint.  See
related prettier issue prettier/prettier#437

Fix prettier#51
@codecov-io
Copy link

codecov-io commented May 14, 2017

Codecov Report

Merging #54 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #54   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines          90     90           
=====================================
  Hits           90     90
Impacted Files Coverage Δ
src/format-files.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7c8ac6...2db015e. Read the comment docs.

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Awesome. Thanks!

@kentcdodds kentcdodds merged commit 9029593 into prettier:master May 15, 2017
BenoitZugmeyer added a commit to BenoitZugmeyer/prettier-eslint-cli that referenced this pull request May 18, 2017
In prettier#54 I removed the extra new line at the end of files printed to
stdout. I wasn't aware of cli-tests, so I didn't change those.

This commit adjust the expected output of files formated and printed to
stdout.
BenoitZugmeyer added a commit to BenoitZugmeyer/prettier-eslint-cli that referenced this pull request May 18, 2017
In prettier#54 I removed the extra new line at the end of files printed to
stdout. I wasn't aware of cli-tests, so I didn't change those.

This commit adjust the expected output of files formated and printed to
stdout.
BenoitZugmeyer added a commit to BenoitZugmeyer/prettier-eslint-cli that referenced this pull request May 18, 2017
In prettier#54 I removed the extra new line at the end of files printed to
stdout. I wasn't aware of cli-tests, so I didn't change those.

This commit adjust the expected output of files formated and printed to
stdout.
kentcdodds pushed a commit that referenced this pull request May 18, 2017
* feat(tests): run cli-tests in CI

In order to make sure the prettier-eslint command won't display colored
output, we have to tweak the environment variables. We don't want
colored output because it won't match jest snapshots.

* fix(tests): adjust expected output for stdout cli tests

In #54 I removed the extra new line at the end of files printed to
stdout. I wasn't aware of cli-tests, so I didn't change those.

This commit adjust the expected output of files formated and printed to
stdout.
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.

3 participants