- 添加 .prettierrc 配置文件,设置代码格式化规则 - 创建各 packages 目录下的 README.md 文档 - 配置 tsconfig.json TypeScript 编译选项 - 设置 rollup.config.js 打包配置 - 添加 .gitignore 忽略文件配置 - 安装 prettier 依赖
224 B
224 B
.prettierrc
{ "semi": false,// 结尾无分号 "singleQuote": true,// 单引号 "printWidth": 80,// 每行长度为80 "trailingComma": "none",// 不添加尾随逗号 "arrowParens": "avoid"// 省略箭头函数的括号 }