.prettierrc.js 496 B

1234567891011121314
  1. const fabric = require('@umijs/fabric')
  2. module.exports = {
  3. ...fabric.prettier,
  4. eslintIntegration: false,
  5. stylelintIntegration: false,
  6. semi: false,
  7. quoteProps: 'consistent',
  8. htmlWhitespaceSensitivity: 'ignore',
  9. jsxBracketSameLine: true,
  10. trailingComma: 'none', // 末尾逗号
  11. bracketSpacing: true, // 字面量对象包括数组对象括号中的空格,默认true
  12. arrowParens: 'avoid' // 箭头函数中的括号 “avoid” - 在有需要的时候使用. Example: x => x
  13. }