Chialab's rules for Prettier.
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;
Install the Prettier extension for your IDE (optional):