Add TypeScript version rule and tests for project doctor. Closes #6716
Pull Request Title Adds rule to validate TypeScript dev dependency version. Closes https://github.com/pnp/cli-microsoft365/issues/6716
Linked Issue Closes https://github.com/pnp/cli-microsoft365/issues/6716
Thanks, we'll try to have a look at it ASAP!
@nirav-raval, seems like your tests are failing, could you have a look, please? If you need any help, don't hesitate to reach out to us.
@milanholemans Thanks for raising. Checked the test errors in the workflow file, it says node version mismatch. I am using v22.16.0. The contribution guide says to use v20, and the workflow file says to use v22.
Can you guide me on this?
We are using v22 for development. The version in the docs is being updated, but that PR still has to be merged yet. Sorry for the inconsistency.
In this case, would you like me to make any changes on my end?
The tests are failing. Are you able to reproduce it locally?
@milanholemans Do I need to update anything here?
Ni thanks @nirav-raval . If the tests are passing, it's fine. We'll try to review it ASAP.
Seems like the workflow is failing @nirav-raval. Could you take a look at it.
Looking at your code again, I was wondering if we could simplify the rule drastically by inheriting from the DependencyRule class just like we do for the @types/webpack-env rule.
@milanholemans Updated the rule based on @types/webpack-env and tests as well.
Merged manually. Thanks for the enhancement! Also, welcome to the team! https://pnp.github.io/cli-microsoft365/about/team