Prettier config for Ionic and Capacitor

Usage no npm install needed!

<script type="module">
  import ionicPrettierConfig from 'https://cdn.skypack.dev/@ionic/prettier-config';



Shared Prettier config used in Ionic, Capacitor, and Stencil projects.


Usage is based on Sharing configurations from the Prettier docs.

  1. Remove existing .prettierrc file, if present.

  2. Install the config.

    npm install -D @ionic/prettier-config
  3. Add the following to package.json:

    "prettier": "@ionic/prettier-config",