2 Star 31 Fork 14

故时旅人/BM导航

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
.prettierrc.cjs 1.08 KB
Copy Edit Raw Blame History
故时旅人 authored 2023-08-22 16:22 +08:00 . 格式化代码
module.exports = {
//单行长度
printWidth: 1000,
//缩进长度
tabWidth: 2,
//使用空格代替tab缩进
useTabs: true,
//句末使用分号
semi: false,
//使用单引号
singleQuote: true,
//仅在必需时为对象的key添加引号
quoteProps: 'as-needed',
// jsx中使用单引号
jsxSingleQuote: true,
//多行时尽可能打印尾随逗号
trailingComma: 'none',
//在对象前后添加空格-eg: { foo: bar }
bracketSpacing: true,
//单参数箭头函数参数周围使用圆括号-eg: (x) => x
arrowParens: 'avoid',
//无需顶部注释即可格式化
requirePragma: false,
//在已被preitter格式化的文件顶部加上标注
insertPragma: false,
// 使用默认的折行标准 always\never\preserve
proseWrap: 'preserve',
//对HTML全局空白不敏感
htmlWhitespaceSensitivity: 'ignore',
//不对vue中的script及style标签缩进
vueIndentScriptAndStyle: false,
//结束行形式
endOfLine: 'lf',
//对引用代码进行格式化
embeddedLanguageFormatting: 'auto',
plugins:[
"prettier-plugin-organize-imports",
"prettier-plugin-tailwindcss"
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/robin901118/homepage_navigation.git
git@gitee.com:robin901118/homepage_navigation.git
robin901118
homepage_navigation
BM导航
master

Search