All Projects β†’ capaj β†’ Be Pretty

capaj / Be Pretty

Licence: mit
πŸ’„ a small CLI utility for every lazy prettier maximalist out there

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Be Pretty

Mullet
Mullet Stack: Facebook in the front. Walmart in the back. (React, Hapijs, Node)
Stars: ✭ 194 (+410.53%)
Mutual labels:  prettier, hacktoberfest
Prettier action
GitHub action for running prettier on your projects pull requests
Stars: ✭ 77 (+102.63%)
Mutual labels:  prettier, hacktoberfest
Prettier Eslint
Code ➑️ prettier ➑️ eslint --fix ➑️ Formatted Code ✨
Stars: ✭ 3,435 (+8939.47%)
Mutual labels:  prettier, hacktoberfest
Eslint Config Wesbos
No-Sweatβ„’ Eslint and Prettier Setup - with or without VS Code
Stars: ✭ 2,293 (+5934.21%)
Mutual labels:  prettier, hacktoberfest
Mevn Cli
Light speed setup for MEVN(Mongo Express Vue Node) Apps
Stars: ✭ 696 (+1731.58%)
Mutual labels:  prettier, hacktoberfest
Ns Vue Radio
A native white-label application built with NativeScript-Vue for community radios
Stars: ✭ 36 (-5.26%)
Mutual labels:  hacktoberfest
Rocket.chat.apps Cli
The CLI for interacting with Rocket.Chat Apps
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest
Laravel Weather
🌀️ A wrapper around Open Weather Map API (Current weather)
Stars: ✭ 36 (-5.26%)
Mutual labels:  hacktoberfest
Megadraft
Megadraft is a Rich Text editor built on top of Facebook's Draft.JS featuring a nice default base of components and extensibility
Stars: ✭ 982 (+2484.21%)
Mutual labels:  hacktoberfest
Rw.rs
Free shell account and web 1.0 hosting @ http://rw.rs/~you
Stars: ✭ 38 (+0%)
Mutual labels:  hacktoberfest
Analysispreservation.cern.ch
Source code for the CERN Analysis Preservation portal
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest
Cbj smart Home
If you are searching for an easy way to deploy a smart home 🏑 by yourself CyBear Jinni πŸ¦ΎπŸ»πŸ§žβ€β™‚οΈ is here for you. Join the community and make your home smarter than yesterday.
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest
Monero Gui Guide
Guide for the Monero GUI wallet
Stars: ✭ 36 (-5.26%)
Mutual labels:  hacktoberfest
Togglr
an R and Rstudio wrapper for toggl Api
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest
Merge Branch
A GitHub Action that merge PR branch to other branchs
Stars: ✭ 36 (-5.26%)
Mutual labels:  hacktoberfest
Puppet Redis
Puppet Module to manage Redis
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest
Wire Webapp
πŸ‘½ Wire for web
Stars: ✭ 982 (+2484.21%)
Mutual labels:  hacktoberfest
Openwisp Monitoring
Network monitoring system written in Python and Django, designed to be extensible, programmable, scalable and easy to use by end users: once the system is configured, monitoring checks, alerts and metric collection happens automatically.
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest
Nsfw Filter
πŸš€ A Google Chrome / Firefox extension that blocks NSFW images from the web pages that you load using TensorFlow JS.
Stars: ✭ 984 (+2489.47%)
Mutual labels:  hacktoberfest
React Step Progress
Dynamic multi-step progress indicator for React.
Stars: ✭ 37 (-2.63%)
Mutual labels:  hacktoberfest

be-pretty

fabolous

πŸ’„ adds prettier to an existing project with all bells and whistles-including husky and pretty-quick. Have you ever been bothered by all the steps you need to do in a legacy codebase to get prettier all set up? Well now you don't have to.

Install

npm i be-pretty -g

Requires that you have npm/yarn and npx globally available. be pretty defaults to running npm, but if there is yarn.lock file it will use yarn.

Usage

When you are in an old codebase which needs to be pretty now, and stay pretty forever and ever execute be-pretty. An output looks like this:

be-pretty
  βœ” Installing prettier husky pretty-quick
  βœ” Copying custom .prettierrc
  βœ” Adding pretty-quick pre-commit to package.json
  βœ” Formatting whole repo

Now you should have everything ready to just commit&push.

You may skip formatting step with a flag --skipFormatting

Customize .prettierrc

by default, be-pretty creates this prettier config.

{
  "arrowParens": "always", // good for typescript/flow when you want to type your function arguments
  "singleQuote": true // IMHO better readability
}

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

Format all

if you just want to reformat everything, you can call be-pretty formatAll

All Commands

  be-pretty setDefault  sets a .prettierrc file as your default, if ommited
                           will look for the .prettierrc file in CWD[aliases: d]
  be-pretty formatAll   formats everything excluding node_modules[aliases: f]
  be-pretty run         run the series of commands to make a codebase pretty
                                                                       [default]

FAQ

Will this work for a newly added languages as well?

Yes, the list of supported file extensions is not hardcoded anywhere, it's taken from prettier.getSupportInfo() so it will always format all the files prettier supports.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].