1.0.0-alpha.1 • Published 2 years ago

@gogogosir/prettier-config v1.0.0-alpha.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@gogogosir/prettier-config

Install

yarn add prettier @gogogosir/prettier-config -D

配置 prettier

.prettierrc.js 中:

module.exports = {
  ...require('@gogogosir/prettier-config')

  // 下面声明的可以覆盖上面的默认配置
}

默认配置如下:

{
  printWidth: 80,
  tableWidth: 2,
  useTabs: false,
  semi: false,
  singleQuote: true,
  quoteProps: 'as-needed',
  jsxSingleQuote: true,
  trailingComma: 'none',
  bracketSpacing: true,
  bracketSameLine: false,
  proseWrap: 'preserve',
  vueIndentScriptAndStyle: false,
  endOfLine: 'lf',
  arrowParens: 'always',
  embeddedLanguageFormatting: 'auto', // v2.1.0 可用
  singleAttributePerLine: 'false' // v2.6.0 可用
}
1.0.0-alpha.1

2 years ago

1.0.0-alpha.0

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago

0.0.1-0

3 years ago