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

Proposal: Disallow importing self #447

Closed
just-paja opened this issue Jul 21, 2016 · 1 comment
Closed

Proposal: Disallow importing self #447

just-paja opened this issue Jul 21, 2016 · 1 comment

Comments

@just-paja
Copy link

just-paja commented Jul 21, 2016

Hi,

I think it would be nice if we had a rule that prevents importing the current file. It might happen when refactoring and moving files across directories. What do you think?

file: foo.jsx

import foo from './foo';
import foo from './foo.jsx';
@benmosher
Copy link
Member

I would accept a PR for that. 😎

Call it no-self-import?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants