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

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

My config for Prettier
https://github.com/phts/prettier-config

npm-package prettier prettier-config

Last synced: 3 months ago
JSON representation

My config for Prettier

Awesome Lists containing this project

README

        

# @phts/prettier-config

[![npm](https://img.shields.io/npm/v/@phts/prettier-config.svg)](https://www.npmjs.com/package/@phts/prettier-config)

My Prettier config. Works best with [`@phts/eslint-config`](https://github.com/phts/eslint-config).

## Install

```bash
$ npm i -D @phts/prettier-config
```

To able to support [`@phts/eslint-config`](https://github.com/phts/eslint-config) additionally
install [`prettier-eslint-cli`](https://www.npmjs.com/package/prettier-eslint) globally:

```bash
$ npm i -g prettier-eslint-cli
```

## Usage

`.prettierrc.json`:

```json
"@phts/prettier-config"
```

## Sublime Text integration

Install [JsPrettier](https://packagecontrol.io/packages/JsPrettier) package and put this into
`JsPrettier.sublime-settings`:

```json
{
"auto_format_on_save": true,
"auto_format_on_save_excludes": ["*/node_modules/*"],
"auto_format_on_save_requires_prettier_config": true,
"prettier_cli_path": "./node_modules/.bin/prettier"
}
```