Open ryuapp opened 2 months ago
Current Prettier's format is not compatible with Chromium & WebKit. Its behavior is going to be changed soon: https://github.com/prettier/prettier/pull/16691 https://github.com/prettier/prettier/issues/16710
The current output by Deno is the best as for now considering the behavior of each browser:
Denoは、最新のWeb用のオープンソースJavaScriptランタイムです。Denoは、構成不要のTypeScript、比類のないセキュリティ、完全な組み込みツールチェーンを備えたWeb標準に基づいて構築されており、JavaScriptを使用するための最も簡単で生産的な方法です。Deno
Deployは簡単にDenoのプロジェクトがデプロイ出来て便利です。
However, dprint can afford to append additional options unlike Prettier or Biome, so we can switch the behavior.
Languages like Japanese do not use space as delimiters, so line breaks only occur when English words appears in a sentence. Sentences in such languages are therefore better separated by words, regardless of white space.
Input:
Output(
deno fmt --prose-wrap always
):Output(
npx prettier . --write --prose-wrap always
)