Skip to content

import/no-cycle should stop looking for cycles when it imports from a rule disabled folder #2439

@georeith

Description

@georeith

I have added a test case to better describe the issue here: #2438

If you import a file from a folder that has the import/no-cycle rule disabled into a folder that has the rule enabled and that file contains a cycle the linter errors.

This is annoying in cases where we have cycles in our codebase that we want to ignore, but we can't do so by just disabling the rule for the folder they belong to as any code that ends up referencing them from anywhere outside at any point fails the lint, ignoring all of these cases as the depth of imports grows becomes unmanageable.

Metadata

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