prettier.config.js 488 B

1234567891011121314151617181920
  1. module.exports = {
  2. printWidth: 150,
  3. tabWidth: 2,
  4. useTabs: false,
  5. semi: true, //语句末尾使用分号
  6. vueIndentScriptAndStyle: true,
  7. singleQuote: true, // 使用单引号
  8. quoteProps: 'as-needed',
  9. bracketSpacing: true,
  10. trailingComma: 'es5',
  11. jsxBracketSameLine: false,
  12. jsxSingleQuote: false,
  13. arrowParens: 'always',
  14. insertPragma: false,
  15. requirePragma: false,
  16. proseWrap: 'never',
  17. htmlWhitespaceSensitivity: 'strict',
  18. endOfLine: 'auto',
  19. rangeStart: 0,
  20. };