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
Typescript peer dependency should not be needed #467
Comments
It's marked as optional - have you updated your version of npm? See typescript-eslint/typescript-eslint#990 Closing this as I don't think it's an issue. Happy to reopen if it is, though |
No, these trees are taken from the same
The change seems to have happened in |
npm 6.9 is pretty old, you need at least 6.11: https://github.com/npm/cli/releases/tag/v6.11.0 |
Ok, thanks for the info |
That worked? If not, should probably raise an issue with |
Well in our exact setup it does not help, but that's fair enough. I will try to move our ops team to update the pipeline's npm version, which will happen eventually. Thanks @SimenB |
Hello, This also produces a warning with yarn (1.19.1) which I would like to avoid without adding a dependency to typescript.
|
Please open up an issue with typescript-eslint - it was added in typescript-eslint/typescript-eslint#1120 |
The specific TS dev dep is required to have the updated eslint dep not throw any warnings. jest-community/eslint-plugin-jest#467
The specific TS dev dep is required to have the updated eslint dep not throw any warnings. jest-community/eslint-plugin-jest#467
Hi there! I'm using yarn 1.21.1 and eslint-plugin-jest ^23.0.4 and still see this all the time I install. thanks a lot for your time |
This is the current state: typescript-eslint/typescript-eslint#1287 (comment) Might be worth opening up an issue with |
Yeah i read that too, bit shouldn't this package have it has a devDependency? Wouldn't that solve it? |
We already have it as a dev dep, but that's not included when you install this module.
|
I do see it in the package.json as a dependency: https://github.com/jest-community/eslint-plugin-jest/blob/master/package.json#L39 thanks for your quick feedback btw! |
@SimenB Would moving 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. |
It would solve the warning occuring, but create the new problem of breaking the entire package, as you'd have removed a critical dependency :) |
…mmit description for WTF?! See * typescript-eslint/typescript-eslint#1120 * jest-community/eslint-plugin-jest#467 * typescript-eslint/typescript-eslint#1287 eslint-plugin-jest depends on typescript-eslint/experimental-utils, which depends on typescript-eslint/typescript-estree, which depends on tsutils, which depends on typescript as a peer dependency tsutils has been added as a dependency to typescript-eslint/typescript-estree from 2.6.0 to 2.6.1 (yes, a patch bump!) in typescript-eslint/typescript-eslint#1120 I'm guessing the peer dependency requirement went unchecked because typescript was already in their devDependencies for obvious reaons, but also tsutils was used in other packages in the monorepo, making it a trivial change. The reactions to the change were 1. "ignore the warning" typescript-eslint/typescript-eslint#1287 (comment) So tens, hundreds, thousands, more people should not pay attention to a warning. In my case, we actually fail the build process if there are unmet peer dependencies. Since many repos depend on eslint, this means that all those repos will start failing. So ignore I can't. 2. use yarn or npm 6.11+ which introduced peerDependenciesMeta which marks tsutils' peerDependency on typescript as optional jest-community/eslint-plugin-jest#467 (comment) typescript-eslint/typescript-eslint#990 Except when running npm 6.12.1 and 6.14.11, I still get that error... So that's why.
…mmit description for WTF?! See * typescript-eslint/typescript-eslint#1120 * jest-community/eslint-plugin-jest#467 * typescript-eslint/typescript-eslint#1287 eslint-plugin-jest depends on typescript-eslint/experimental-utils, which depends on typescript-eslint/typescript-estree, which depends on tsutils, which depends on typescript as a peer dependency tsutils has been added as a dependency to typescript-eslint/typescript-estree from 2.6.0 to 2.6.1 (yes, a patch bump!) in typescript-eslint/typescript-eslint#1120 I'm guessing the peer dependency requirement went unchecked because typescript was already in their devDependencies for obvious reaons, but also tsutils was used in other packages in the monorepo, making it a trivial change. The reactions to the change were 1. "ignore the warning" typescript-eslint/typescript-eslint#1287 (comment) So tens, hundreds, thousands, more people should not pay attention to a warning. In my case, we actually fail the build process if there are unmet peer dependencies. Since many repos depend on eslint, this means that all those repos will start failing. So ignore I can't. 2. use yarn or npm 6.11+ which introduced peerDependenciesMeta which marks tsutils' peerDependency on typescript as optional jest-community/eslint-plugin-jest#467 (comment) typescript-eslint/typescript-eslint#990 Except when running npm 6.12.1 and 6.14.11, I still get that error... So that's why.
I 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.
The text was updated successfully, but these errors were encountered: