fix: 🐛 修复 printWidth 设置每行最大字符数无效问题

举例:行最大字符长度设置 180 ,行字符数 179 就换行了

#IB2SDA #IB2SDA
This commit is contained in:
ray
2024-11-08 14:00:34 +08:00
parent 2fc574a352
commit 96f4abbf82
2 changed files with 28 additions and 46 deletions

28
.prettierrc Normal file
View File

@@ -0,0 +1,28 @@
{
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "ignore",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": false,
"endOfLine": "auto",
"overrides": [
{
"files": "*.html",
"options": {
"parser": "html"
}
}
]
}