Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make peerDependency on typescript optional #143

Open
nilzona opened this issue May 28, 2022 · 1 comment · May be fixed by #146
Open

make peerDependency on typescript optional #143

nilzona opened this issue May 28, 2022 · 1 comment · May be fixed by #146

Comments

@nilzona
Copy link

nilzona commented May 28, 2022

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
    }
  },
@cschroedl-gov
Copy link

This may be related to, or a potential duplicate of #134

@nilzona nilzona linked a pull request Sep 17, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants