-
-
Notifications
You must be signed in to change notification settings - Fork 75
Parse error when using as parser for eslint-plugin-import #519
Comments
Seems that eslint-plugin-import should follow the same rules as ESLint when parsing a file: it should check for a Not sure if we want/need to add |
I think both approaches would be reasonable. 19 was a breaking change version and this was a breaking change, so there shouldn't be an issue for folks rolling back. On the other hand, it would be trivial to add for backwards compatibility and we could accept a PR? |
I'm having this as well, and this is kind of preventing me from upgrading to the latest, you can see the error here https://travis-ci.com/GabrielDuarteM/gd-scripts/jobs/147824652#L4114 I'm not familiar with the codebase/eslint internals, and the error is kind of cryptic, as apparently this is not really an error in my code (at least I hope), so I didn't quite understand what is going on. |
I'm getting the same error as well. |
What version of TypeScript are you using?
3.0.1
What version of
typescript-eslint-parser
are you using?19.0.1
What code were you trying to parse?
What did you expect to happen?
Using eslint-plugin-import 2.14.0 should allow eslint on Javascript to check imports of Typescript files using typescript-eslint-parser as documented by the plugin.
What happened?
All files importing typescript code complain:
It appears that version 19 has dropped the
parse
function from its list of exports, which seems like it would be related.The text was updated successfully, but these errors were encountered: