-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Configure node resolver #1131
Comments
Adding the |
It means “error”, and it’s how all eslint rules are configured (with a severity of 0/1/2 or off/warn/error) By adding it without the 2, you’re disabling the rule, which is unlikely to be what you want. Can you share your entire eslintrc, with nothing elided? |
Ah, OK, thanks. |
The docs say that “paths” must be an absolute path - not a relative one. https://github.com/benmosher/eslint-plugin-import/tree/master/resolvers/node |
Ah, tried that. |
In that case, I'm not really sure (but i don't know what |
Ah, sorry... app-module-path |
Looking briefly at the docs for FWIW I think you want Closing because it is tough to manage config questions but other ideas/responses from the community are still welcome. |
@benmosher |
I'm not exactly sure how this is supposed to work, but it appears as though I'm doing things the right way.
In my .eslinrc.js I have:
but eslint is still complaining:
error Unable to resolve path to module 'config/config' import/no-unresolved
on a file that has
const config = require('config/config');
at the top.I'm using
app-module-path
for my package deps.Opened issue from #506
Same deal for
./src
in the rood dir.package.json
is in the root dir. Have tried adding all the incantations to thepaths
andmoduleDirectories
arrays.The text was updated successfully, but these errors were encountered: