Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/toreda/prettier-config

Standard Prettier config file for all Toreda NPM package projects. Private internal repo but published publicly for use in our Open Source projects.
https://github.com/toreda/prettier-config

prettier standard-config tools toreda typed typescript

Last synced: 18 days ago
JSON representation

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

Awesome Lists containing this project

README

        

[![Toreda](https://content.toreda.com/logo/toreda-logo.png)](https://www.toreda.com)

# `@toreda/prettier-config`

Toreda's official organization-wide `prettier-config` for TypeScript projects.

 
# Usage

## Install using yarn

```bash
$ yarn add @toreda/prettier-config --dev
```

## Install using npm
```bash
$ 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`:

```jsonc
{
// ...
"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:

```json
{
"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](LICENSE) © Toreda, Inc.

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

https://www.toreda.com