1.8.0 • Published 9 months ago
@nharox/astro-prettier-config v1.8.0
@nharox/astro-prettier-config
Shared Prettier config for Astro projects.
Installation
- Install package as a dev dependency
npm install --save-dev @nharox/astro-prettier-config
- Update
package.json
{
// ...
"prettier": "@nharox/astro-prettier-config"
}
- Add the following script in your
package.json
{
// ...
"scripts": {
// ...
"format": "prettier --write \"src/**/*.{astro,ts}\""
}
}