きれい1.19リリース、フロントエンドのコードの書式設定ツール

きれい1.19がリリースされている次のように、主なアップデートは以下のとおりです。

CLI

  • 修理1.19.0バージョンの--stdin 復帰
// Prettier stable
$ echo "test" | prettier --stdin --parser babel
[error] regeneratorRuntime is not defined

// Prettier master
$ echo "test" | prettier --stdin --parser babel
test;

 活字体

  • 賠償タイプフォーマット関数の戻り値の型の矢印
//入力
getVehicleDescriptor =非同期constの輸出(
  vehicleId:文字列、
):プロミス<Collections.Parts.PrintedCircuitBoardAssembly [ '属性'] | 未定義> => {} 

//きれいの安定の
輸出のconst getVehicleDescriptor =非同期(
  vehicleId:文字列
):約束<| Collections.Parts.PrintedCircuitBoardAssembly [ "属性"] 
| 未定義> => {}; 

//きれいマスター
輸出のconst getVehicleDescriptor =非同期(
  vehicleId:文字列
):約束< 
  Collections.Parts.PrintedCircuitBoardAssembly [ "属性"] | 未定義
> => {};

参照してください。リリースノートを

おすすめ

転載: www.oschina.net/news/111216/prettier-1-19-released
おすすめ