Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
be-pretty
Advanced tools
Readme
:lipstick: adds prettier to an existing project with all bells and whistles-including husky, lint-staged
npm i be-pretty -g
Requires that you have npm/yarn and npx
globally available
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`
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 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.ts setDefault sets a .prettierrc file as your default, if ommited
will look for the .prettierrc file in CWD[aliases: d]
be-pretty.ts formatAll formats everything excluding node_modules[aliases: f]
be-pretty.ts run run the series of commands to make a codebase pretty
[default]
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.
FAQs
:lipstick: adds prettier to an existing project with all bells and whistles-including husky, lint-staged
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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).