vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 593 forks source link

Error message suggests non-documented formatter prettier-tslint #3124

Open HansCronau opened 3 years ago

HansCronau commented 3 years ago

Info

Problem

When setting vetur.format.defaultFormatter.ts in settings.json to an invalid value, the following message pops up:

Value is not accepted. Valid values: "none", "prettier", "prettier-tslint", "vscode-typescript".

The option prettier-tslint is not mentioned as a valid formatter in the docs. Should the error message or the docs be updated?

I did test the prettier-tslint option and it does actually seem to work.

Reproducible Case

Add the following line to either settings.json:

"vetur.format.defaultFormatter.ts": "invalid-formatter",
yoyo930021 commented 3 years ago

We have prettier-tslint in vetur. but it doesn't have a doc.