-
-
Notifications
You must be signed in to change notification settings - Fork 75
__dirname should not cause error when using node env #46
Comments
Sorry, same response as here: #47 (comment) |
Hi @nzakas - Its been quite a few months, has any progress been made about this? I read the comment you link to, but I don't understand quite how that issue relates to this one. Is there a work around? Should we just do Also, what I don't quite understand is I am seeing the error in a .js file, not a .ts one. |
@jbcpollak The error with node globals such as __filename and __dirname has been fixed in master. Check the issue #145 for more details. When you enable a parser in eslint it will parse all files passed into it, this includes javascript and typescript files. If you still have problems with the master branch you can open a new issue and we can look into. |
@soda0289 thanks - should I used a Git URL for the dependency or is it published to npm? Thanks! |
@jbcpollak We have one pull request, that fixes some JSX issues, that is waiting on a review. As soon as it is merged there will be a new release. Should not take too long but if you want to try out master today use the git url. |
Hi, thanks for your amazing work. I have some feedback but I am very aware this project is still in the very early stages.
Versions:
ESLint config:
Input and output:
Since I set the node env to true, I do not expect
__dirname
to cause an error.The text was updated successfully, but these errors were encountered: