Skip to content
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

no-missing-{import,require} rule not handling index.js file when requiring a directory #21

Closed
bjrmatos opened this issue Jan 29, 2016 · 2 comments · Fixed by #22
Closed
Assignees
Labels

Comments

@bjrmatos
Copy link

my rules are the following:

"node/no-missing-import": 2,
"node/no-missing-require": 2,
"node/no-unpublished-import": 2,
"node/no-unpublished-require": 2,
"node/no-unsupported-features": [2, {"version": 4}],
"node/shebang": 2

i'm requiring two directories ./fileSchemas and ./utils/logger both directories have a index.js inside but eslint-plugin-node reports an error.

image

according to node docs this is a valid require when dealing with directories.

image

@mysticatea
Copy link
Owner

Thank you for this issue.

Oh, yes! I have forgotten it.

@bjrmatos
Copy link
Author

bjrmatos commented Feb 2, 2016

thnk you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants