Socket
Socket
Sign inDemoInstall

@northone/prettier

Package Overview
Dependencies
1
Maintainers
20
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @northone/prettier

base prettier.config.js for northone projects


Version published
Maintainers
20
Created

Readme

Source

@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,
}

FAQs

Last updated on 05 Feb 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc