集成Prettier和Stylelint
This commit is contained in:
8
prettier.config.mjs
Normal file
8
prettier.config.mjs
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
printWidth: 100, // 每行最多字符数量,超出换行(默认80)
|
||||
tabWidth: 2, // 缩进空格数,默认2个空格
|
||||
useTabs: false, // 指定缩进方式,空格或tab,默认false,即使用空格
|
||||
semi: true, // 使用分号
|
||||
singleQuote: false, // 使用单引号 (true:单引号;false:双引号)
|
||||
trailingComma: 'all', // 末尾使用逗号
|
||||
};
|
||||
Reference in New Issue
Block a user