Prettier-vscode: Upgrade prettier to 1.15

Created on 7 Nov 2018  路  6Comments  路  Source: prettier/prettier-vscode

Prettier version 1.15 was just released which supports HTML, Vue, and Angular now which are highly anticipated. Can we get the extension updated?

https://prettier.io/blog/2018/11/07/1.15.0.html

locked

Most helpful comment

It might be rational to solve the problem of adding new extensions by implementing plugin support in general: https://github.com/prettier/prettier-vscode/issues/395

Every language in Prettier comes from a plugin, no matter if it鈥檚 a core one or a third party. Prettier CLI can provide the list of plugins and thus file extensions via --support-info. There also exists --file-info to help editors know if a given file can be formatted or not (eg on save)

Prettier for Atom has been supprting this approach for a few months, so they don鈥檛 need to do anything to let people start using 1.15 (if it is installed globally or as a project dependency).

All 6 comments

And please add support for HTML, Vue, Angular and MDX.

It might be rational to solve the problem of adding new extensions by implementing plugin support in general: https://github.com/prettier/prettier-vscode/issues/395

Every language in Prettier comes from a plugin, no matter if it鈥檚 a core one or a third party. Prettier CLI can provide the list of plugins and thus file extensions via --support-info. There also exists --file-info to help editors know if a given file can be formatted or not (eg on save)

Prettier for Atom has been supprting this approach for a few months, so they don鈥檛 need to do anything to let people start using 1.15 (if it is installed globally or as a project dependency).

https://github.com/prettier/prettier-vscode#prettier-resolution

It should use whatever you have installed in the project. However I'm still trying to get it to work in vuejs to format html. I'll let you know what i find.

1.7 is out

Hmm, I have "prettier-vscode" v. 1.7.2 installed and locally inside the project 1.15.2.

But when I open a *.vue file, the part on top does not get linted.

Am I'm doing something wrong?

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings