prettier-config

prettier-config
is a curated prettier configuration that can be
across our projects and can be used in your projects. Rather than
add this all to a template, it is included as a package
enabling updates to be pulled forward into consuming projects.
Installation
- You'll first need to install Prettier:
npm install prettier --save-dev
- Next, install
prettier-config
, run the following command:
npm install --save-dev @kodehort/prettier-config
Or:
pnpm add @kodehort/prettier-config -D
Usage
To use prettier-config
, you need to extend it in your prettier
configuration file. Here's an example prettier.config.js
file
import prettierConfig from '@kodehort/prettier-config'
export default {
...prettierConfig,
semi: false,
}