1.6.1 • Published 1 month ago
@nharox/astro-prettier-config v1.6.1
@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}\""
}
}