-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when parsing app.js: "ImportDeclaration should appear when the mode is ES6 and in the module context." #56
Comments
Thanks for the report. Is there any way that you could provide the code (or sanitized code) that trigger the error? |
I reduced the code to a sample I can post here. The project folder is a single file
This produces exactly the same error as above. |
That's great. We will take a look during the next week or so. |
Hi, it's been a month and I want to introduce this tool to my colleagues early in November. Is there any way I can help with that? I figured out that this is a problem with eslint and there seem to be several ways to fix this: eslint/eslint#4344
|
Apologies for the delay, but unfortunately we still didn't find time to fix this issue. Rest assured - it's on our roadmap! |
Took a quick look in the past 5 minutes, but it's not just a simple dep upgrade. Updating eslint causes a new error |
Hello @vollkorn1982 and thank you for your report, Upgrading Let me know if you are still experiencing the problem after this fix. |
Hi, I would really love to test these changes, but fail to install the current version from the repo.
And indeed, that path does not exist because the install is from git:
How do you do it? |
You will need to use |
Thanks a lot for the help. I managed to install and test the current master branch now and can confirm that this fixes the problem I described in this bug. Great tool! |
Glad to help. Let us know what your colleagues think of the tool! Electronegativity is always accepting new contributors or ideas :) |
Describe the bug
When analysing an electron app I receive a parsing error message from eslint. Unfortunately this is an electron app I am not allowed to share.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Since the config file
/usr/lib/node_modules/@doyensec/electronegativity/.eslintrc.json
specifies the necessary options for parsing as a module:Therefore I would expect
app.js
to be parsed without problems.Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: