-
Notifications
You must be signed in to change notification settings - Fork 52
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
Support for JSX? #18
Comments
@myitcv tsfmt use typescript that are installed at the same time. |
Thanks, I think I've tracked down the problem. Confirmed that JSX formatting is working, except (for some reason) for the following: /// <reference path="typings/tsd.d.ts" />
import React = require("react");
function test(): any {
return <span>This is a test</span>;
} produces:
Notice the problematic The former compiles, the latter does not:
So this is probably a TypeScript core thing? |
yes. typescript-formatter depends to TypeScript core. |
Thanks. I'll raise this as an issue over there and cc you |
Reference microsoft/TypeScript#4127 |
@vvakame - please see microsoft/TypeScript#4127 (comment) |
I've just raised #19 to flesh out a fix for this |
typescript-formatter 1.0.0 support jsx maybe i think so... |
It does, thanks |
JSX support has landed:
microsoft/TypeScript#3564
Any plans to support that here?
Thanks
The text was updated successfully, but these errors were encountered: