feat: init project

This commit is contained in:
秋水浮尘
2023-10-06 22:43:22 +08:00
parent 95ce141489
commit 05284248dd
25 changed files with 4120 additions and 2 deletions

11
.prettierrc.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
printWidth: 100, // 一行的字符数,如果超过会进行换行
tabWidth: 2, // 一个tab代表几个空格数默认就是2
useTabs: false, // 是否启用tab取代空格符缩进.editorconfig设置空格缩进所以设置为false
semi: false, // 行尾是否使用分号默认为true
singleQuote: true, // 字符串是否使用单引号
trailingComma: 'none', // 对象或数组末尾是否添加逗号 none| es5| all
jsxSingleQuote: true, // 在jsx里是否使用单引号你看着办
bracketSpacing: true, // 对象大括号直接是否有空格默认为true效果{ foo: bar }
arrowParens: "avoid", // 箭头函数如果只有一个参数则省略括号
}