Beta Prettier Plugin for Astro
Install prettier-plugin-astro
yarn add --dev prettier-plugin-astro
ornpm i -D prettier-plugin-astro
yarn prettier .
to check your formatting /yarn prettier -w .
to fix your formatting.- Add
"format": "yarn prettier -w .",
to your package.json
and create a .prettierignore
to ignore any files.
To get setup:
git clone [email protected]:withastro/prettier-plugin-astro.git
yarn
yarn build
- Run tests with
yarn test
- Lint code with
yarn lint
- Format code with
yarn format
- Run
yarn changeset
to add your changes to the changelog on version bump. Most changes to the plugin should bepatch
changes while we're before1.0.0
.