You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
516 B

4 months ago
4 months ago
  1. module.exports = {
  2. singleQuote: true, // 使用单引号
  3. semi: true, // 使用分号
  4. trailingComma: 'es5', // 在对象或数组的最后一个元素后添加逗号
  5. printWidth: 100, // 每行的最大字符数
  6. tabWidth: 2, // 缩进宽度
  7. useTabs: false, // 使用制表符缩进
  8. jsxSingleQuote: false, // JSX 中使用单引号
  9. bracketSpacing: true, // 对象字面量的括号是否换行
  10. jsxBracketSameLine: false, // JSX 的闭合括号是否在同一行
  11. endOfLine: 'auto', // 自动处理换行符
  12. };