TypeScript `as` regression (2.0.3)
See original GitHub issuePrettier 2.0.3 Playground link
# Options (if any):
--single-quote
Input:
function foo() {
return {
foo,
foo,
} as FOO
}
Output:
function foo() {
return (
{
foo,
foo,
} as FOO
);
}
Expected behavior:
same as input
function foo() {
return {
foo,
foo,
} as FOO
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:8 (4 by maintainers)
Top Results From Across the Web
TypeScript regression in 2.0.3 #713 - GitHub
I updated to latest http-proxy-middleware . Describe the bug (be clear and concise). import { createProxyMiddleware, Options } ...
Read more >@types/regression - npm
TypeScript definitions for regression. Latest version: 2.0.2, last published: a year ago. Start using @types/regression in your project by ...
Read more >@types/regression | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Documentation - TypeScript 3.9
Unfortunately, that introduced a few regressions, especially when mixing in values with null or undefined . ts. interface Lion {. roar(): void;. }....
Read more >percy-agent dashboard
#598 build(deps-dev): bump typescript from 4.0.5 to 4.1.3 Deleted User ... dependabot-preview[bot] build(deps-dev): bump tslib from 2.0.0 to 2.0.3 (#582).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
@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.