0.1.1 • Published 1 year ago

@utilitywarehouse/prettier-config v0.1.1

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

UW Prettier config

This is the standard Prettier config for UW projects.

Installation

Install prettier along with this config

yarn add prettier @utilitywarehouse/prettier-config

Usage

There are a few different ways you can use this config in your project.

  1. In your root package.json file add a prettier key and set it to the name of this config:
{
  // ...
  "prettier": "@utilitywarehouse/prettier-config"
  // ...
}
  1. If you don’t want to use package.json, you can use any of the supported extensions (e.g. .prettierrc.yaml), to export a string:
"@utilitywarehouse/prettier-config"
  1. If you want to override any of these defaults, create a .prettierrc.js file with the following:
module.exports = {
  ...require("@utilitywarehouse/prettier-config"),
  // Override values here
  printWidth: 125,
};