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