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
TypeScript as
regression (2.0.3)
#7957
Comments
I think we should revert #7869 and implement a handler for |
The problem arises only if the first operand is an object literal, right? So we rather need to handle this situation as a special case. |
Duplicate of #7956? |
@domoritz Could you please paste your examples as code not as screenshots so that we could use them for testing? |
I thought screenshots show the changes well. I merely posted them so you can confirm that these are all "the first operand is an object literal". Let me know which code snippets you want (they are all taken from https://github.com/vega/vega-lite running 2.0.3 vs 2.0.2). |
@domoritz We've already solved this situation. Vega-Lite looks like a good codebase to test new versions of Prettier for regressions before releasing. I've made a note of it. |
Great! typescript-eslint is also using Vega-Lite as a test case: https://github.com/typescript-eslint/typescript-eslint/blob/master/tests/performance/fixtures/lint-real-repo/Dockerfile#L7 |
Prettier 2.0.3
Playground link
# Options (if any): --single-quote
Input:
Output:
Expected behavior:
same as input
The text was updated successfully, but these errors were encountered: