prettier.config.js 436 B

12345678
  1. module.exports = {
  2. $schema: "https://json.schemastore.org/prettierrc",
  3. printWidth: 80, // 指定换行的行长
  4. tabWidth: 2, // 指定每个缩进级别的空格数
  5. semi: true, // 在每个语句的末尾添加一个分号
  6. singleQuote: false, // 使用双引号而不是单引号
  7. trailingComma: "es5", // 在 ES5 中有效的尾随逗号(对象、数组等)。TypeScript 和 Flow 中类型参数中的尾随逗号。
  8. };