Skip to content

toreda/prettier-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toreda

@toreda/prettier-config

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.

 

Examples

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

 

Legal

License

MIT © Toreda, Inc.

Copyright

Copyright © 2019 - 2021 Toreda, Inc. All Rights Reserved.

https://www.toreda.com

About

Standard Prettier config file for all Toreda NPM package projects. Private internal repo but published publicly for use in our Open Source projects.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors