vuejs/vetur

Error message suggests non-documented formatter prettier-tslint

オープン

#3,124 opened on 2021/08/24

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (597 件のフォーク)github user discovery
bugdocsgood first issueinteg:tslint

Repository metrics

Stars
 (5,746 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version: 0.34.1
  • VS Code version: 1.59.1

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",

コントリビューターガイド