eslint-plugin-flowtype
eslint-plugin-flowtype copied to clipboard
Re: parser
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.
Thanks a lot. I'll check it out and update here.
Would be interested to use this plugin if this issue is solved. esprima is throwing all sorts of illegal token errors on my code.
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.