Skip to content

no-extraneous-dependencies should not report the package itself #305

@dmail

Description

@dmail

The following package.json

{
  "name": "package-name"
}

And index.js:

import { foo } from "package-name";

Actual

import-x/no-extraneous-dependencies rule reports an error with the following message.

'package-name' should be listed in the project's dependencies. Run 'npm i -S package-name' to add it

Expected

import-x/no-extraneous-dependencies remains silent because the package can import itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions