@toreda/prettier-config

1.0.1 • Public • Published

@toreda/prettier-config

Toreda

Toreda's official organization-wide prettier-config for TypeScript projects.

Usage

Install using yarn

$ yarn add @toreda/prettier-config --dev

Install using npm

$ npm add @toreda/prettier-config --save-dev

Add to Project

  1. Navigate to your project's root folder.
  2. Open package.json
  3. Add a prettier key pointing to @toreda/prettier-config:
{
  // ...
  "prettier": "@toreda/prettier-config"
}

Note: If your package.json already contains a prettier key, you will need to replace the value with the value shown above.

Example

Here's a complete package.json example using the prettier key:

{
  "name": "sample-project-here",
  "version": "1.5.3",
  "description": "Sample project",
  "main": "./dist/index",
  "scripts": {
    "test": "yarn jest --coverage"
  },
  "author": "Toreda, Inc.",
  "license": "MIT",
  "prettier": "@toreda/prettier-config"
}

Readme

Keywords

none

Package Sidebar

Install

npm i @toreda/prettier-config

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.07 kB

Total Files

4

Last publish

Collaborators