eslint-plugin-flowtype icon indicating copy to clipboard operation
eslint-plugin-flowtype copied to clipboard

Re: parser

Open RReverser opened this issue 10 years ago • 3 comments
trafficstars

In README you state:

Internally the plugin makes use of Recast for performing AST transforms and stripping the annotations together with esprima-fb parser( which is now deprecated but i couldn't get flow-parser to play nice with recast as such had to use esprima ).

Please see relevant section from Facebook's blog article:

Alternatively, if you need to parse JSX, take a look at acorn parser in combination with acorn-jsx plugin which is used inside of Babel and thus always supports the latest syntax.

Hopefully this should help.

RReverser avatar Jul 02 '15 17:07 RReverser

Thanks a lot. I'll check it out and update here.

gcazaciuc avatar Jul 03 '15 07:07 gcazaciuc

Would be interested to use this plugin if this issue is solved. esprima is throwing all sorts of illegal token errors on my code.

volkanunsal avatar Sep 13 '15 20:09 volkanunsal

I'm in the same boat as @volkanunsal.

Edit: Actually, using "parser": "babel-eslint" in my .eslintrc gives me everything I need in es6, so I don't need this plugin anymore.

curiouslychase avatar Oct 21 '15 13:10 curiouslychase