@ideasonpurpose/prettier-config

0.0.6 • Public • Published

IOP's Prettier Config

Version 0.0.6

NPM Version GitHub Actions Workflow Status

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-config

Then 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: 120
  • tabWidth: 2

PHP

  • printWidth: 100
  • singleQuote: true
  • tabWidth: 4,
  • trailingCommaPHP: true

Our PHP projects include the prettier-php plugin.

Markdown

  • Options.embeddedLanguageFormatting: off

Related Projects

 

Brought to you by IOP

IOP Logo This project is actively developed and used in production at Ideas On Purpose.

Readme

Keywords

none

Package Sidebar

Install

npm i @ideasonpurpose/prettier-config

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

4.87 kB

Total Files

5

Last publish

Collaborators

  • joemaller