From 0f3d83e58a861c860861e48515b3e659cbed8a63 Mon Sep 17 00:00:00 2001 From: DaxPay Date: Tue, 2 Jul 2024 09:18:40 +0800 Subject: [PATCH] =?UTF-8?q?style=20=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc.cjs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 4a24e88c..9b473dc2 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -1,12 +1,13 @@ module.exports = { - printWidth: 100, - semi: true, - vueIndentScriptAndStyle: true, - singleQuote: true, - trailingComma: 'all', - proseWrap: 'never', - htmlWhitespaceSensitivity: 'strict', - endOfLine: 'auto', + tabWidth: 2, //指定每个缩进级别的空格数 + printWidth: 100, //超过多少换行 + semi: false, //行位是否使用分号 + vueIndentScriptAndStyle: true, // vue文件的script标签和Style标签下的内容需要缩进 + singleQuote: true, // 强制使用单引号 + trailingComma: 'all', // 尾部逗号设置, 强制最后一行也要有斗号 + proseWrap: 'never', // 文章换行,默认情况下会对你的markdown文件换行进行format会控制在printwidth以内 + htmlWhitespaceSensitivity: 'strict', // html中的空格敏感性 + endOfLine: 'lf', // 行尾换行符,默认是lf plugins: ['prettier-plugin-packagejson'], overrides: [ {