Skip to content

Wildcard support in import/core-modulesΒ #1281

@penx

Description

@penx

Feature request:

Allow wildcards in the import/core-modules settings

      "settings": {
        "import/core-modules": [
          "@my-monorepo-namespace/*",
        ]
      }

... so that

        "import/no-extraneous-dependencies": ["error", {"devDependencies": true}]

...does not throw an error for modules within a certain namespace.

Why?

I have a monorepo structure where we can safely assume that anything within a certain namespace is available and doesn't need to be listed in devDependencies. I would rather not maintain lists of packages and versions manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions