
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
best-prettier-config
Advanced tools
The best prettier config in the world :earth_americas:
I add this file to all my projects, so I made a CLI to make it easier to do so.
bunx best-prettier-config
Note: As of v2, I use Bun to execute one-off scripts, so this module is only supported for usage with
bunx
. I try to keep APIs compatiable with Node andnpx
but it's not guaranteed.
This will write a .prettierrc
file with the following contents to your current working directory:
{
"jsxSingleQuote": true,
"semi": false,
"singleQuote": true,
"trailingComma": "es5"
}
If you need to add a couple plugins, like working on an Astro project with Tailwind, you can use the --plugin
command line argument:
# These are all the same
bunx best-prettier-config --plugin prettier-plugin-astro --plugin prettier-plugin-tailwind
bunx best-prettier-config --plugin astro --plugin tailwind
bunx best-prettier-config -p astro -p tailwind
Example output:
{
"jsxSingleQuote": true,
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"plugins": ["prettier-plugin-astro", "prettier-plugin-tailwind"]
}
2.0.2
FAQs
The best prettier config in the world
The npm package best-prettier-config receives a total of 2 weekly downloads. As such, best-prettier-config popularity was classified as not popular.
We found that best-prettier-config 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.