Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

📐 Chialab's rules for Prettier.
https://github.com/chialab/prettier-config

Last synced: about 2 months ago
JSON representation

📐 Chialab's rules for Prettier.

Awesome Lists containing this project

README

        

# @chialab/prettier-config

Chialab's rules for [Prettier](https://prettier.io/).

## Usage

Install Prettier:

```
npm i -D prettier
```

```
yarn add -D prettier
```

Install `@chialab/prettier-config`:

```
npm i -D @chialab/prettier-config
```

```
yarn add -D @chialab/prettier-config
```

Create a `prettier.config.js` file and add the configuration:

**prettier.config.js**

```js
import config from '@chialab/prettier-config';

export default config;
```

## IDE

Install the Prettier extension for your IDE (optional):

- [VSCode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)