Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.2 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.2 KB

Beta Prettier Plugin for Astro

  1. yarn add --dev prettier-plugin-astro or npm i -D prettier-plugin-astro
  2. yarn prettier . to check your formatting / yarn prettier -w . to fix your formatting.
  3. Add
"format": "yarn prettier -w .",

to your package.json and create a .prettierignore to ignore any files.

Contributing

To get setup:

  1. git clone [email protected]:withastro/prettier-plugin-astro.git
  2. yarn
  3. yarn build
  4. Run tests with yarn test
  5. Lint code with yarn lint
  6. Format code with yarn format
  7. Run yarn changeset to add your changes to the changelog on version bump. Most changes to the plugin should be patch changes while we're before 1.0.0.

Resources for contributing