Skip to content

import/no-cycle ignoreExternal does not work for external scoped modules #2258

Closed
@johgoe

Description

@johgoe

A module with name @babel/core seems not to be a external module for the rule

"import/no-cycle": [2, {  ignoreExternal: true   }

Reason seems to be

return isModule(name) && isExternalPath(name, settings, path, getContextPackagePath(context));
which is checking isModule(name) && isExternalPath(name, settings, path, getContextPackagePath(context));

instead of

(isModule(name) || isScopedModule(name)) && isExternalPath(name, settings, path, getContextPackagePath(context));

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