Socket
Socket
Sign inDemoInstall

be-pretty

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-pretty

:lipstick: adds prettier to an existing project with all bells and whistles-including husky, lint-staged


Version published
Weekly downloads
441
increased by20.82%
Maintainers
1
Weekly downloads
 
Created
Source

be-pretty

:lipstick: adds prettier to an existing project with all bells and whistles-including husky, lint-staged

Install

npm i be-pretty -g

Usage

When you are in an old codebase which needs to be pretty now, and stay pretty forever and ever execute

be-pretty
  ✔ Installing prettier husky pretty-quick
  ✔ copying custom .prettierrc
  ✔ Updating package.json
  ✔ formatting existing codebase
``
Now you should have everything ready to just commit&push.

if your codebase is already pretty, but needs help in the future you may skip formatting with a flag `--skipFormatting`

Customize .prettierrc

by default, be-pretty creates this prettier config.

{
  "semi": false,
  "arrowParens": "always",
  "singleQuote": true
}

if you want to customize this, just run be-pretty setDefault -p="/path/to/your/defaultPrettierRc". You can omit the path if there is a prettierc file in the current working directory. be-pretty will use this as default from now on.

Keywords

FAQs

Package last updated on 01 Dec 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc