Skip to content

make peerDependency on typescript optional #143

Open
@nilzona

Description

@nilzona

If a library like e.g. eslint-plugin-jest is built with typescript and depends on tsutils, then you will get an "unmet peer dependency" warning on typescript if you use that library in a non-ts project.

This can be solved by making the peerDependency on typescript optional in package.json like the @typescript-eslint/* projects. An example can be found here

 "peerDependenciesMeta": {
    "typescript": {
      "optional": true
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions