-
Notifications
You must be signed in to change notification settings - Fork 140
eslint extends is not working #445
Comments
I am unable to reproduce this with this setup: linter-eslint_GH445.zip. Is there something about your setup not captured in that archive? |
Well this is frustrating... I cannot reproduce it with the test project either. But I am still getting the issue in my other project with that same setup. Here is my stack trace, do you see anything obvisouly wrong?
|
Are you able to share the exact code you are seeing this issue with? |
It is not a specific piece of code, the linter is failing with any javascript file. |
I notice that it is using the version of ESLint that comes bundled with linter-eslint, which means it can't find a locally installed version of ESLint and you're not using a global version. |
I thought it was proper to not use a global eslint. |
That's true, but for some reason in your error trace it's failing to find the locally installed version. If you can't share the whole codebase can you at least share your |
Normally yes, the ideal is to use the local eslint. Have you run npm On Thu, Feb 18, 2016, 17:30 Richard van der Dys notifications@github.com
|
This new version has what you asked for. The problem is, it does not fail... |
Silly question, but have you restarted Atom since running |
Yes, a few times. |
Why would linter-eslint need to bundle eslint? |
Specifically for when a locally installed version can't be found, and use of the global version is disabled. It's meant as a last resort for when a user has only the most basic of |
So the problem is that in my project, linter-eslint cannot find my local eslint? |
Yes, for some reason. |
I seem to be getting this too, linter-eslint is not finding the local eslint... |
@dijs Can you put a @qimingweng without a folder structure or a zip file with the files to reproduce this it's rather hard to debug from "not working". |
Where would I see the logging? |
It seems that when I install the airbnb module within the linter-eslint directory, all is well... I cannot figure why this is though. |
Because it's still failing to use the local project's version, and you don't seem to have a global version, so it's falling back to the embedded version. The output should be in the Developer Tools console. |
But when I open the dev tools, it is not even logging the directory. It fails before that line. |
I think it is trying to read/load packages from linter-eslint's package.json which includes airbnb, and is failing since airbnb only gets downloaded in dev mode, not production mode. |
Correct, but as I said the only reason it is trying to do that is because for some reason it is failing to find the installation local to your project and is falling back on the |
By the way, it is also failing in the linter-eslint project also. |
I am open to debug more, do you have any other ideas/logging I could try? |
Boom. I think I have steps to reproduce the issue.
|
That should fail, since |
The |
Can you put a |
Could you possibly PM me a link to the exact folder you are seeing this in on Atom's Slack? |
Sure, I am waiting for access to that slack. This doesn't make sense to me. If I install linter-eslint and want to "lint" it's project source code, I feel I should be able to. If it errors out there, it doesn't have the dependencies it needs to run. |
|
Is this is the same as #447? |
Yes, I believe so. |
Quite possibly, I'll be pushing out a release shortly that includes the fix. |
Can you try v6.1.0? It should fix this. |
Looks like it works! Thanks for the help. |
Glad to hear it, marking this as closed. |
updating worked for me |
Error:
Error: Cannot find module 'eslint-config-airbnb'
Seems like it cannot find the locally installed modules for eslint.
Project structure:
The text was updated successfully, but these errors were encountered: