This is my preferred prettier config. (in the replies as text)
Down with semi-colons and long lines. Deal with it.
#javascript #code #webdev #nodejs #code
This is my preferred prettier config. (in the replies as text)
Down with semi-colons and long lines. Deal with it.
#javascript #code #webdev #nodejs #code
printWidth = 70
semi = false
trailingComma = "none"
singleQuote = true
arrowParens = "avoid"
experimentalTernaries = true
jsxSingleQuote = true
quoteProps = "consistent"
singleAttributePerLine = true
```
printWidth = 70
semi = false
trailingComma = "none"
singleQuote = true
arrowParens = "avoid"
experimentalTernaries = true
jsxSingleQuote = true
quoteProps = "consistent"
singleAttributePerLine = true
```
printWidth = 70
semi = false
trailingComma = "none"
singleQuote = true
arrowParens = "avoid"
experimentalTernaries = true
jsxSingleQuote = true
quoteProps = "consistent"
singleAttributePerLine = true
```
and experience JS the way the lord intended.
printWidth = 70
semi = false
trailingComma = "none"
singleQuote = true
arrowParens = "avoid"
experimentalTernaries = true
jsxSingleQuote = true
quoteProps = "consistent"
singleAttributePerLine = true
```
and experience JS the way the lord intended.
Markdownで日本語/中国語と英語の間にスペースを入れないように変更、CJKの禁則処理に対応。
プラグインで非同期パーサをサポート、設定ファイルでESMをサポート、`trailingComma`のデフォルト値を`all`に変更など "Prettier 3.0: Hello, ECMAScript Modules! · Pret…" https://prettier.io/blog/2023/07/05/3.0.0.html
Markdownで日本語/中国語と英語の間にスペースを入れないように変更、CJKの禁則処理に対応。
プラグインで非同期パーサをサポート、設定ファイルでESMをサポート、`trailingComma`のデフォルト値を`all`に変更など "Prettier 3.0: Hello, ECMAScript Modules! · Pret…" https://prettier.io/blog/2023/07/05/3.0.0.html
"trailingComma": "none"
"trailingComma": "none"
✅ No semicolons, always single quotes
✅ Trailing commas everywhere (yes, even in arrays!)
✅ Wider print width for cleaner diffs
#CodingStyle #devTools
✅ No semicolons, always single quotes
✅ Trailing commas everywhere (yes, even in arrays!)
✅ Wider print width for cleaner diffs
#CodingStyle #devTools
```
bracketSpacing: false # consistency: compare {[n]: 42} with [n, 42]
semi: false # readability: they do nothing
trailingComma: all # editability: easy to shuffle lines
```
```
bracketSpacing: false # consistency: compare {[n]: 42} with [n, 42]
semi: false # readability: they do nothing
trailingComma: all # editability: easy to shuffle lines
```