Package Exports
- @toreda/prettier-config
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@toreda/prettier-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@toreda/prettier-config

Toreda's official organization-wide prettier-config for TypeScript projects.
Usage
Install using yarn
$ yarn add @toreda/prettier-config --devInstall using npm
$ npm add @toreda/prettier-config --save-devAdd to Project
- Navigate to your project's root folder.
- Open
package.json - Add a
prettierkey 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"
}