Skip to content

Common Prettier config for projects at Ideas On Purpose

Notifications You must be signed in to change notification settings

ideasonpurpose/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IOP's Prettier Config

Version 1.0.0

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.

About

Common Prettier config for projects at Ideas On Purpose

Resources

Stars

Watchers

Forks

Packages

No packages published