You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Looking at the parser code, it just passes the raw parserOptions object into typescript-estree, however typescript-estree has its jsx option on the root options object, not on ecmaFeatures.
Workaround is to set jsx: true on the base parserOptions object:
What version of TypeScript are you using?
3.1.1
What version of
typescript-eslint-parser
are you using?21.0.2
What code were you trying to parse?
What did you expect to happen?
The code should parse successfully, so I can test the rule.
What happened?
Parsing error: \'>\' expected.
see astexplorer repl
Note the parser has the
jsx
option set to trueThe text was updated successfully, but these errors were encountered: