@northone/prettier

4.0.0 • Public • Published

@northone/prettier

Use NorthOne default prettier config

npx @northone/stan-cli prettier:init

(both install and usage are setup in above command)

Install

npm i -D @northone/prettier

Usage

Create prettier.config.js and put following contents:

module.exports = Object.assign(require('./node_modules/@northone/prettier/prettier.config'), {
  // custom config
})

Learn more about prettier config at Prettier - Configuration File

Configuration

module.exports = {
  printWidth: 120,
  tabWidth: 2,
  useTabs: false,
  semi: false,
  singleQuote: true,
  trailingComma: 'all',
  bracketSpacing: false,
  jsxBracketSameLine: false,
  arrowParens: 'avoid',
  rangeStart: 0,
}

Readme

Keywords

none

Package Sidebar

Install

npm i @northone/prettier

Weekly Downloads

171

Version

4.0.0

License

ISC

Unpacked Size

3.36 kB

Total Files

7

Last publish

Collaborators

  • giuliaverruckno
  • cufflinks
  • leslie-alhassan
  • conor.meldrum
  • eoudyk
  • navin-northone
  • calham-n1
  • tjones-northone
  • stark2022
  • zfossn1
  • n1alexyoung
  • mlitviak
  • electblake
  • tanisha-northone
  • duncan_mann
  • byrnegr
  • chrisn1
  • n1franey