Skip to content

Latest commit

 

History

History

prettier

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@guardian/prettier

Prettier config for Guardian JavaScript projects.

Installation

yarn add -D @guardian/prettier

or

npm install --save-dev @guardian/prettier

Usage

Prettier can take two configuration files:

  • .prettierignore which works like git's .gitignore
  • .prettierrc.yml (or an equivalent) which provides settings to prettier

To use this package, your prettier config should reference it directly:

# Prettier configuration file
'@guardian/prettier'