-
-
Notifications
You must be signed in to change notification settings - Fork 75
Error with syntax import x = require('x')
#47
Comments
That's not a parser error, it's an ESLint warning. We aren't yet at the point where it makes sense to track such problems because nothing is known to work at this point. The version you're using just completely skips over that |
Hi, this still appears to be an issue. Do you know whether this is something we can fix? Keen to help :-) |
We are a long ways from being able to fix this. It requires an augmentation to how scope variables are found in ESLint, and that's a ton of work. Sit tight, we are very early in this process and will get there eventually. If you want to help otherwise, we do need help addressing bugs as they are found. |
@grenudi What version of TypeScript-ESLint-parser are you using? |
sorry, my fault |
Hi, thanks for your amazing work. I have some feedback but I am very aware this project is still in the very early stages.
TypeScript has the syntax
import x = require('x')
for importing specifically CommonJS modules. (ES6 module syntax is used for ES6 modules.) I have found that when using this syntax, the parser throws because it doesn't recognise the imported identifier. Example below.Versions:
ESLint config:
Input and output:
The text was updated successfully, but these errors were encountered: