-
Notifications
You must be signed in to change notification settings - Fork 7
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(parser): support JSX syntax. #60
Conversation
@teppeis Here's support of JSX syntax. Could you review this? |
@@ -3,7 +3,7 @@ | |||
var parse = require('espree').parse; | |||
var doctrine = require('doctrine'); | |||
var _ = require('underscore'); | |||
var traverse = require('estraverse').traverse; | |||
var traverse = require('estraverse-fb').traverse; | |||
var Syntax = require('estraverse').Syntax; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use require('estraverse-fb').Syntax
to ensure it's JSX-injected Syntax.
Fix lib/visitor.js
too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed 6485414
feat(parser): support JSX syntax.
LGTM! |
I'll publish a new version. |
v1.5.0 is released! 🚀 |
Thank you for fixing 😋 |
No description provided.