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

feat(format): make format synchronous #123

Merged
merged 1 commit into from
Sep 8, 2017

Conversation

robwise
Copy link
Contributor

@robwise robwise commented Sep 8, 2017

Prettier's resolveConfig function has a .sync function that doesn't require async handling:
https://github.com/prettier/prettier#prettierresolveconfigfilepath--options

Prettier's resolveConfig function has a .sync function that doesn't require async handling:
https://github.com/prettier/prettier#prettierresolveconfigfilepath--options
@codecov-io
Copy link

codecov-io commented Sep 8, 2017

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #123   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines         191    191           
  Branches       32     32           
=====================================
  Hits          191    191
Impacted Files Coverage Δ
src/index.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 630bd19...2adebeb. 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.

Even though this is a breaking change, I'm fine because most folks aren't using this package directly and are using the atom plugin or the CLI.

Thanks!

@kentcdodds kentcdodds merged commit e39719e into prettier:master Sep 8, 2017
kentcdodds pushed a commit that referenced this pull request Sep 8, 2017
Prettier's resolveConfig function has a .sync function that doesn't require async handling:
https://github.com/prettier/prettier#prettierresolveconfigfilepath--options

BREAKING CHANGE: the `format` function is now synchronous (again)
@robwise
Copy link
Contributor Author

robwise commented Sep 8, 2017

We could change it so it's under a .sync method like Prettier?

@robwise robwise deleted the rob/use-resolve-config-sync branch September 8, 2017 04:49
@kentcdodds
Copy link
Member

Nah, I like this better anyway.

@zimme
Copy link
Member

zimme commented Sep 9, 2017

I guess we were a bit eager to push version 8 of prettier-eslint. .sync isn't available in prettier@1.6.1 which is the latest release.

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.

4 participants