Shared Prettier config used in Ionic, Capacitor, and Stencil projects.
Usage is based on Sharing configurations from the Prettier docs.
-
Remove existing
.prettierrc
file, if present. -
Install the config.
npm install -D @ionic/prettier-config
-
Add the following to
package.json
:"prettier": "@ionic/prettier-config",