@bit-ocean/prettier-config
v0.0.50
Published
Universal Prettier configuration.
Downloads
246
Readme
@bit-ocean/prettier-config
Universal Prettier configuration.
We use Prettier
for code formatting. This package provides a universal configuration for all our projects.
Installation
pnpm add -D prettier @bit-ocean/prettier-config
Configuration
Create a .prettierrc
file in the root of your project and add the following:
"@bit-ocean/prettier-config"
Use Astro:
"@bit-ocean/prettier-config/astro"
Or add the following prettier property to your package.json
:
{
"prettier": "@bit-ocean/prettier-config"
}
Use Astro:
{
"prettier": "@bit-ocean/prettier-config/astro"
}
Add the prettier
scripts to your package.json
:
{
"scripts": {
"prettier:check": "prettier --check --cache --ignore-unknown .",
"prettier:fix": "prettier --write --cache --ignore-unknown ."
}
}
License
MIT License © 2024 Bit Ocean