Toreda's official organization-wide prettier-config for TypeScript projects.
$ yarn add @toreda/prettier-config --dev$ npm add @toreda/prettier-config --save-dev
- Navigate to your project's root folder.
- Open
package.json - Add a
prettierkey pointing to@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.
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"
}
MIT © Toreda, Inc.
Copyright © 2019 - 2021 Toreda, Inc. All Rights Reserved.

{ // ... "prettier": "@toreda/prettier-config" }