@toreda/prettier-config
v1.0.1
Published
Toreda's standard prettier config for organization-wide use in all TypeScript projects.
Downloads
43
Readme
@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
- Navigate to your project's root folder.
- Open
package.json
- 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"
}