Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Standard Prettier configuration for Software Ventures Limited
https://github.com/softwareventures/prettier-config

prettier typescript

Last synced: 3 days ago
JSON representation

Standard Prettier configuration for Software Ventures Limited

Awesome Lists containing this project

README

        

# prettier-config

Standard [Prettier](https://prettier.io/) configuration for
[Software Ventures Limited](https://softwareventures.co.uk/).

## Install

```bash
npm install --save-dev @softwareventures/prettier-config
```

or for yarn users:

```bash
yarn add --dev @softwareventures/prettier-config
```

## Usage

Add to `package.json`:

```json
{
"prettier": "@softwareventures/prettier-config"
}
```

## pre-commit hook

Recommended: Configure husky and precise-commits to automatically reformat
changes before they are committed.

```bash
npm install --save-dev husky precise-commits
```

or

```bash
yarn add --dev husky precise-commits
```

Then add to `package.json`:

```json
{
"husky": {
"hooks": {
"pre-commit": "precise-commits"
}
}
}
```