Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 729 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 729 Bytes

ShipHero's common prettier configuration

This repository serves as a common prettier configuration that may be shared across multiple Javascript projects within the company.

Usage

If you want to use ShipHero's prettier config in your Javascript project, follow below steps:

  1. Add dev dependency in your project's package.json:
{
  "@shiphero/prettier-config": "github:shiphero/prettier-config"
}
  1. Create prettier.config.js file in the root directory of your project containing:
module.exports = require('@shiphero/prettier-config')

You can also overwrite our rules when needed:

module.exports = {
  ...require('@shiphero/prettier-config'),
  // your custom set of rules goes here
}