update
This commit is contained in:
parent
ffcb053b6e
commit
1bc8c22f15
14
.eslintrc.js
14
.eslintrc.js
@ -37,19 +37,5 @@ module.exports = {
|
||||
'vue/require-default-prop': 'off',
|
||||
'vue/no-unused-components': 'warn',
|
||||
'vue/no-setup-props-destructure': 'off',
|
||||
"prettier/prettier": [
|
||||
"warn",
|
||||
{
|
||||
'printWidth': 80, // 每行代码长度(默认80)
|
||||
'tabWidth': 2, // 每个tab相当于多少个空格(默认2)
|
||||
'useTabs': false, // 是否使用tab进行缩进(默认false)
|
||||
'singleQuote': true, // 使用单引号(默认false)
|
||||
'semi': false, // 声明结尾使用分号(默认true)
|
||||
'trailingComma': 'es5', // 多行使用拖尾逗号(默认none)
|
||||
'bracketSpacing': true, // 对象字面量的大括号间使用空格(默认true)
|
||||
'jsxBracketSameLine': false, // 多行JSX中的>放置在最后一行的结尾,而不是另起一行(默认false)
|
||||
'arrowParens': 'avoid', // 只有一个参数的箭头函数的参数是否带括号(默认avoid)
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
11
.prettierrc.js
Normal file
11
.prettierrc.js
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
"printWidth": 80, // 每行代码长度(默认80)
|
||||
"tabWidth": 2, // 每个tab相当于多少个空格(默认2)
|
||||
"useTabs": false, // 是否使用tab进行缩进(默认false)
|
||||
"singleQuote": true, // 使用单引号(默认false)
|
||||
"semi": false, // 声明结尾使用分号(默认true)
|
||||
"trailingComma": "es5", // 多行使用拖尾逗号(默认none)
|
||||
"bracketSpacing": true, // 对象字面量的大括号间使用空格(默认true)
|
||||
"jsxBracketSameLine": false, // 多行JSX中的>放置在最后一行的结尾,而不是另起一行(默认false)
|
||||
"arrowParens": "avoid", // 只有一个参数的箭头函数的参数是否带括号(默认avoid)
|
||||
}
|
||||
@ -29,7 +29,9 @@ Object.entries(Components).forEach(([key, component]) => {
|
||||
})
|
||||
|
||||
app
|
||||
.use(ElementPlus, { locale })
|
||||
.use(ElementPlus, {
|
||||
locale,
|
||||
})
|
||||
.use(store)
|
||||
.use(router)
|
||||
.mount('#app')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user