@dyb-dev/prettier-config 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +2 -4
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -43,13 +43,11 @@ module.exports = {
|
|
|
43
43
|
// Prettier 不会更改 Markdown 文本 例如:README.md
|
|
44
44
|
proseWrap: "preserve",
|
|
45
45
|
// 指定 HTML、Vue、Angular 和 Handlebars 的全局空白敏感度,如果行标签可能会改变间距,保留空格,如果是块标签无法影响布局,则去除空格
|
|
46
|
-
htmlWhitespaceSensitivity:
|
|
47
|
-
"css",
|
|
46
|
+
htmlWhitespaceSensitivity: "css",
|
|
48
47
|
// 维护现有的行结尾(一个文件中的混合值通过查看第一行之后使用的内容来规范化)
|
|
49
48
|
endOfLine: "auto",
|
|
50
49
|
// 控制 Prettier 是否格式化嵌入在文件中的引用代码
|
|
51
|
-
embeddedLanguageFormatting:
|
|
52
|
-
"auto",
|
|
50
|
+
embeddedLanguageFormatting: "auto",
|
|
53
51
|
// 不要强制每行使用一个属性
|
|
54
52
|
singleAttributePerLine: false
|
|
55
53
|
}
|