Explore tweets tagged as #printwidth
Maybe I'm being too extreme, but I set printWidth to 50 in my .prettierrc on personal projects and I'm loving it
1
0
0
#デイトラコミュニティ EJSなるものをしてみむとしてするなり **.ejs内で、 配列で項目を定義している部分でエラーが発生。 setting.jsonで変更した整形&改行の設定"prettier.printWidth": 80,が原因でした。 きれいに整形されすぎてて、配列内が半角スペースだらけなのに気づきませんでした・・
0
0
7
`printWidth: 160` in the Prettier configuration makes the code look much better; the flat lines are much easier to read.
0
0
1
Just so you know, here's how you can set prettier.printWidth to the max column size of a Monaco editor instance.
0
0
2
help! what's the prettier config that will let me put the whole return statement in one line? (see pic ↓) looks like if there is more than one prop, it puts children in a new line irrespective of printWidth :(
5
0
7
At this point, the only solution is to remove the prettier config, since my colleague and I can't agree on the tabWidth and printWidth. Just for confirmation, who likes the way the first image looks? It looks terrible to me 😫
6
0
7
Prettier experts: Is it possible to prevent Prettier from wrapping HTML attributes if the element contains only one attribute? Note: Without touching on the "printWidth" option.
11
2
83
TIL 🧠 easily format json as js objects with "inspect" in node.js very cool if you wanna write to a file. it's a poor man's json prettier w/o any dependecies :D you can even control when it should create line breaks with: "breakLength". A bit like prettier's "printWidth"
4
0
26
antfuがPrettierを使わずESLintだけを使う理由。opinionatedであり、特にprintWidthによる強制改行でdiffが見辛くなること、ESLintとの組み合わせが煩雑であること / “Why I don't use Prettier”
0
12
47
Is there any downside to setting prettier printWidth to something like 5000? I find it really annoying when writing text inside html or JSX files. My editor will wrap long arrays and sentences for me. (proseWrap doesn't fix this, it's for markdown)
6
1
36
PrettierのprintWidthデフォルト80文字って厳し過ぎじゃない??こんなにおっきいモニター使ってるのに厳し過ぎじゃない??120くらいなら許されるよね??
2
0
3
Product idea: AI-driven @PrettierCode that doesn't format like this just because of some arbitrary printWidth. I would literally pay for that.
0
0
0
コードのフォーマットに個人の好みを主張するのは百害あって一利なしだからprettierもデフォルト設定で使うぞ!って言ってたけど、printWidthだけはごめんやっぱ80文字はつらいってなって120文字に広げました。
0
1
3
.@PrettierCode Tip: You get to choose whether your objects are single-line or multi-line. This lets you choose the most readable format for that particular object. The only limitation is a single-line object can't be longer than the printWidth. Here's how you do it...
0
0
0