1.0.1 • Published 6 months ago
@ideasonpurpose/prettier-config v1.0.1
IOP's Prettier Config
Version 1.0.1
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.
How to use
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",Settings
Some of the settings included in this file:
HTML
printWidth:120tabWidth:2
PHP
printWidth:100singleQuote:truetabWidth:4,trailingCommaPHP:true
Our PHP projects include the prettier-php plugin.
Markdown
Options.embeddedLanguageFormatting:off
Related Projects
- WordPress Build Tools
- Prettier Config
- Stylelint Config
- Docker-based Development Environment for WordPress
Brought to you by IOP
This project is actively developed and used in production at Ideas On Purpose.