Skip to content

@nnecec/prettier-config

Features

  • No semi.(semi: false)
  • avoid parentheses around a sole arrow function parameter.(arrowParens: 'avoid')
  • Single quote.(jsxSingleQuote: false singleQuote: true)
  • Enable proseWrap, but never wrap in markdown.
  • 2 tab width.(tabWidth: 2)
  • New ternary formatting.(experimentalTernaries: true)

Usage

sh
$ npm add -D @nnecec/prettier-config
sh
$ pnpm add -D @nnecec/prettier-config
sh
$ bun add -D @nnecec/prettier-config

Configuration

Then create a configuration file at your project's root path, choose one way to fill your configuration:

js
import nnecec from '@nnecec/prettier-config'

export default nnecec
// or
export default {
  ...nnecec,
}
js
module.exports = {
  ...require('@nnecec/prettier-config'),
}
json
"@nnecec/prettier-config"

MIT License.