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-require: only report at top-level scope #88

Closed
2 tasks
benmosher opened this issue Nov 5, 2015 · 1 comment · Fixed by #96
Closed
2 tasks

no-require: only report at top-level scope #88

benmosher opened this issue Nov 5, 2015 · 1 comment · Fixed by #96
Milestone

Comments

@benmosher
Copy link
Member

  • only report at top-level scope
    Not possible import in deep scopes. Need to verify parent (naked require) or grandparent (via an assignment expression) is the program body.
  • don't report on paths ignored by import/ignore
@benmosher benmosher added this to the 0.10.0 milestone Nov 8, 2015
benmosher added a commit that referenced this issue Nov 8, 2015
@benmosher benmosher mentioned this issue Nov 8, 2015
@benmosher
Copy link
Member Author

Just kidding. Decided to just let this rule flag everything and turn it off if not trying to get rid of all requires.

benmosher added a commit that referenced this issue Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant