Prettier 3 is async, so related functions were made async.
Code was reformatted using Prettier.
Prettier now ships their own types, so @types/prettier was removed.
Prettier was moved to dependencies. optionalDependencies is for dependencies that have a install script that may fail. This isn’t the case for Prettier.
eslint-plugin-prettier was updated as well.
Alternatively the formatting functionality could be removed. IMO people should just use Prettier themselves for formatting YAML instead of relying on this yaml-language-server.
coverage: 84.181% (+0.007%) from 84.174%
when pulling 678e80a588ffc13ad33b5187adcbdb41714da7cc on remcohaszing:prettier-3
into f039273ee5b6974db5ad34b03bb24cfe09b64447 on redhat-developer:main.
What does this PR do?
This updates Prettier to version 3.
@types/prettier
was removed.dependencies
.optionalDependencies
is for dependencies that have ainstall
script that may fail. This isn’t the case for Prettier.eslint-plugin-prettier
was updated as well.Alternatively the formatting functionality could be removed. IMO people should just use Prettier themselves for formatting YAML instead of relying on this
yaml-language-server
.What issues does this PR fix or reference?
N/A
Is it tested? How?