Skip to content

chialab/prettier-config

Repository files navigation

@chialab/prettier-config

Chialab's rules for Prettier.

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

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

export default config;

IDE

Install the Prettier extension for your IDE (optional):