@pit-frontend-framework/prettier-config
Advanced tools
+3
-2
@@ -7,3 +7,3 @@ const config = { | ||
| // 单行最大宽度 100 字符,超出时自动换行。 | ||
| printWidth: 100, | ||
| printWidth: 80, | ||
| // 缩进宽度为 2 个空格。 | ||
@@ -18,7 +18,8 @@ tabWidth: 2, | ||
| // 统一输出 LF,避免跨平台换行差异。 | ||
| endOfLine: 'lf', | ||
| endOfLine: 'auto', | ||
| // Vue 的 script/style 标签内容不额外增加缩进。 | ||
| vueIndentScriptAndStyle: false, | ||
| bracketSameLine: true, | ||
| }; | ||
| export default config; |
+1
-1
| { | ||
| "name": "@pit-frontend-framework/prettier-config", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "湖南创智艾泰克科技有限公司-前端组prettier配置", | ||
@@ -5,0 +5,0 @@ "author": "湖南创智艾泰克科技有限公司-前端组", |
1258
2.11%22
4.76%