Typescript peer dependency should not be needed
See original GitHub issueI would like to use this plugin in a project without any typescript, why does it have a peer dependency? Going from 23.0.1 to 23.0.2 seems to have added this for me.
βββ¬ eslint-plugin-jest@23.0.1
β βββ¬ @typescript-eslint/experimental-utils@2.5.0
β βββ @types/json-schema@7.0.3
β βββ¬ @typescript-eslint/typescript-estree@2.5.0
β β βββ¬ debug@4.1.1
β β β βββ ms@2.1.2
β β βββ glob@7.1.4 deduped
β β βββ is-glob@4.0.1 deduped
β β βββ lodash.unescape@4.0.1
β β βββ semver@6.3.0 deduped
β βββ eslint-scope@5.0.0 deduped
βββ¬ eslint-plugin-jest@23.0.2
β βββ¬ @typescript-eslint/experimental-utils@2.6.1
β βββ @types/json-schema@7.0.3
β βββ¬ @typescript-eslint/typescript-estree@2.6.1
β β βββ¬ debug@4.1.1
β β β βββ ms@2.1.2
β β βββ glob@7.1.5 deduped
β β βββ is-glob@4.0.1 deduped
β β βββ lodash.unescape@4.0.1
β β βββ semver@6.3.0
β β βββ¬ tsutils@3.17.1
β β β βββ tslib@1.10.0 deduped
β β βββ UNMET PEER DEPENDENCY typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >=
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:15 (6 by maintainers)
Top Results From Across the Web
A tip on using peer dependencies with TypeScript
To address this, the simplest solution I've found is to duplicate that dependency over to "devDependencies". Doing this makes sure that it isΒ ......
Read more >Understanding Peer Dependencies in JavaScript
Peer dependencies are a must-know feature that many developers overlook ... such as React and React-dom are required, just not installed.
Read more >Should I duplicate "peerDependencies" in "dependencies ...
"If more than one package require another package in common but at different versions, NPM will install multiple copies, for each one of...
Read more >package.json - npm Docs
When a user installs your package, npm will emit warnings if packages specified in peerDependencies are not already installed. The peerDependenciesMeta fieldΒ ...
Read more >you must install peer dependencies yourself Code Example
npm WARN codelyzer@6.0.1 requires a peer of tslint@^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself. typescript by devopsΒ ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SimenB Would moving
@typescript-eslint/experimental-utils
fromdependencies
todevDependencies
as @MatteoGabriele suggested solve it?I understand that it is safe to ignore this particular warning, however I am afraid that if we start having this kind of βsafeβ warnings people will simply start to ignore all warnings, so I would like to avoid them if possible.
Hello,
This also produces a warning with yarn (1.19.1) which I would like to avoid without adding a dependency to typescript.
warning "eslint-plugin-jest > @typescript-eslint/experimental-utils > @typescript-eslint/typescript-estree > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".