Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
be-pretty
Advanced tools
Readme
:lipstick: 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.
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
.
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
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.
if you just want to reformat everything, you can call be-pretty formatAll
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]
Yes, the list of supported file extensions is not hardcoded anywhere-format all just invokes prettier in the current folder and let's it format all supported extensions.
FAQs
:lipstick: adds prettier to an existing project with all bells and whistles-including husky, lint-staged
The npm package be-pretty receives a total of 767 weekly downloads. As such, be-pretty popularity was classified as not popular.
We found that be-pretty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.