Closed boyum closed 9 months ago
LGTM, but actions failed, I don't know why. Also, I fixed one of them.
Thank you. I don't know either, they seem to work fine locally. It also seems to be an issue in master https://github.com/hosseinmd/prettier-plugin-jsdoc/actions/runs/7180581677/job/19553161503.
It's because of an update in prettier, https://prettier.io/blog/2023/11/13/curious-ternaries
Hmm, this is weird, the github actions workflow file says to try installing a 3.0.x prettier version, but the one that got installed was 3.1.1 which includes the new formatting changes:
https://github.com/hosseinmd/prettier-plugin-jsdoc/actions/runs/7180599499/workflow?pr=220#L17
Are there any options for disabling that?
I just noticed that yarn is installing prettier@3
instead of prettier@3.0
. This is likely due to how yaml treats strings and numbers. Perhaps changing the github actions matrix for the prettier version to be explicitly an string would fix it:
- prettier: [3.0]
+ prettier: ["3.0"]
Merged, Thanks.
The presence of this issue in Prettier has unfortunately hindered our ability to test several older versions.
Nice ✨
Thank you.
I read through some of the code and found some TypeScript
as
statements that seemed unnecessary. You'll of course decide for yourself if you want to do this change. No changes were done to the runtime JS code.