Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ionic/prettier-config

ionic-team184kMIT4.0.0

Prettier config for Ionic and Capacitor

readme

@ionic/prettier-config

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

Usage

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",