prettier.config.js 464 B

123456789101112131415161718192021
  1. /**
  2. * @author chuzhixin 1204505056@qq.com (不想保留author可删除)
  3. * @description 代码规范
  4. */
  5. module.exports = {
  6. printWidth: 80,
  7. tabWidth: 2,
  8. useTabs: false,
  9. semi: false,
  10. singleQuote: true,
  11. quoteProps: 'as-needed',
  12. jsxSingleQuote: false,
  13. trailingComma: 'es5',
  14. bracketSpacing: true,
  15. jsxBracketSameLine: false,
  16. arrowParens: 'always',
  17. htmlWhitespaceSensitivity: 'ignore',
  18. vueIndentScriptAndStyle: true,
  19. endOfLine: 'lf',
  20. }