1.0.1 • Published 4 years ago

@toreda/prettier-config v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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"
}
1.0.1

4 years ago

1.0.0

4 years ago