// prettier.config.js
module.exports = { /** * @description 尾随逗号 */ trailingComma: 'none', /** * @description 箭头函数 * @example avoid x => x * @example always (x) => x */ arrowParens: 'avoid', /** * @description 代码最大长度 超过换行 */ printWidth: 200, /** * @description 缩进行数 */ tabWidth: 4, useTabs: false, /** * @description 在结尾增加分号 */ semi: true, /** * @description 使用单引号 */ singleQuote: true, quoteProps: 'as-needed', /** * @description 使用jsx */ jsxSingleQuote: true, /** * @description 对象属性之间是否需要空格 * @example true { foo: bar } * @example false {foo: bar} */ bracketSpacing: true, /** * @description jsx语法中的开始标签是否换行显示 */ bracketSameLine: false, proseWrap: 'never', htmlWhitespaceSensitivity: 'css', /** * @description vue 文件 script 以及style标签是否缩进 */ vueIndentScriptAndStyle: false, endOfLine: 'crlf' };

 

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2022-02-16
  • 2022-12-23
  • 2021-10-14
  • 2021-04-04
  • 2022-12-23
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-05-06
  • 2021-09-18
  • 2021-11-03
  • 2021-09-10
相关资源
相似解决方案