.prettierrc.js 649 B

123456789101112131415161718192021222324252627282930313233
  1. const fabric = require('@umijs/fabric');
  2. module.exports = {
  3. ...fabric.prettier,
  4. semi: false,
  5. // quoteProps: 'consistent',
  6. htmlWhitespaceSensitivity: 'ignore',
  7. jsxBracketSameLine: true,
  8. trailingComma: 'none',
  9. bracketSpacing: true,
  10. arrowParens: 'avoid',
  11. printWidth: 100,
  12. tabWidth: 2,
  13. singleQuote: true,
  14. quoteProps: 'as-needed',
  15. bracketSpacing: true,
  16. jsxSingleQuote: false,
  17. insertPragma: false,
  18. requirePragma: false,
  19. proseWrap: 'never',
  20. htmlWhitespaceSensitivity: 'strict',
  21. endOfLine: 'lf',
  22. rangeStart: 0,
  23. overrides: [
  24. {
  25. files: '*.md',
  26. options: {
  27. tabWidth: 2,
  28. },
  29. },
  30. ],
  31. };