Skip to content

Proposal: Disallow importing self #447

Closed
@just-paja

Description

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';

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions