集成Prettier和Stylelint

This commit is contained in:
ray
2024-09-18 20:09:40 +08:00
parent 08c6855f49
commit 801d4d58c7
10 changed files with 4769 additions and 4411 deletions

8
prettier.config.mjs Normal file
View 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', // 末尾使用逗号
};