Shared Prettier config for projects at Ideas On Purpose. Using this reduces redundant code in package.json and keeps coding preferences in sync across projects.
Install this package:
npm install --save-dev @ideasonpurpose/prettier-configThen add this prettier key to the project's package.json file:
"prettier": "@ideasonpurpose/prettier-config",Some of the settings included in this file:
printWidth:120tabWidth:2
printWidth:100singleQuote:truetabWidth:4,trailingCommaPHP:true
Our PHP projects include the prettier-php plugin.
Options.embeddedLanguageFormatting:off
- WordPress Build Tools
- Prettier Config
- Stylelint Config
- Docker-based Development Environment for WordPress
![]()
This project is actively developed and used in production at Ideas On Purpose.