0.1.4 • Published 12 months ago

prettier-config-jaz v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

prettier-config-jaz

Usage

Install

pnpm add -D prettier prettier-config-jaz

Edit package.json

{
  "prettier": "prettier-config-jaz"
}

Preview

NameValueDescription
printWidth100每行最多 多少个字符换行
tabWidth2tab 缩进大小
useTabsfalse使用 tab 缩进
semifalse使用分号
singleQuotetrue使用单引号
jsxSingleQuotetrueJSX 使用单引号
quoteProps"as-needed"更改对象中的属性被引号包含的时机 as-needed:仅在需要时在对象属性周围添加引号 consistent:如果对象中至少有一个属性需要引号,则引用所有属性 ...
trailingComma"all"尾随逗号
bracketSpacingtrue对象的间距 true - Example: { foo: bar } false - Example: {foo: bar}
bracketSameLinefalse多行HTML时,> 放在最后一行的末尾,而不是单独放在下一行 true - Example: <button onClick={ this.handleClick }> Click Here false - Example: <button onClick={ this.handleClick } > Click Here
arrowParens"avoid"箭头函数只有一个参数时两边加上括号 "always" - Example: (x) => x "avoid"   - Example:   x => x
endOfLine"lf"换行符类型
0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago