mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-10-13 21:51:07 +00:00
style 代码格式配置
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
printWidth: 100,
|
tabWidth: 2, //指定每个缩进级别的空格数
|
||||||
semi: true,
|
printWidth: 100, //超过多少换行
|
||||||
vueIndentScriptAndStyle: true,
|
semi: false, //行位是否使用分号
|
||||||
singleQuote: true,
|
vueIndentScriptAndStyle: true, // vue文件的script标签和Style标签下的内容需要缩进
|
||||||
trailingComma: 'all',
|
singleQuote: true, // 强制使用单引号
|
||||||
proseWrap: 'never',
|
trailingComma: 'all', // 尾部逗号设置, 强制最后一行也要有斗号
|
||||||
htmlWhitespaceSensitivity: 'strict',
|
proseWrap: 'never', // 文章换行,默认情况下会对你的markdown文件换行进行format会控制在printwidth以内
|
||||||
endOfLine: 'auto',
|
htmlWhitespaceSensitivity: 'strict', // html中的空格敏感性
|
||||||
|
endOfLine: 'lf', // 行尾换行符,默认是lf
|
||||||
plugins: ['prettier-plugin-packagejson'],
|
plugins: ['prettier-plugin-packagejson'],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user