We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Input:
// @flow const f = x => ({a: 'a', b: 'b'}[x]);
Output:
const f = (x) => ({ a: 'a', b: 'b', }[x]);
With --no-prettier:
--no-prettier
const f = x => ({ a: 'a', b: 'b' })[x];
It could have left that line alone.
The text was updated successfully, but these errors were encountered:
I suspect the issue is that recast reformats the code, and then prettier preserves the formatting. Will look into but likely there is no easy fix…
Sorry, something went wrong.
The question though is why does recast bother changing the code? The AST is identical, isn't it?
No branches or pull requests
Input:
Output:
With
--no-prettier
:It could have left that line alone.
The text was updated successfully, but these errors were encountered: