1.0.7 • Published 3 years ago
@fenghan/prettier-config v1.0.7
Prettier Config
Prettier configuration for my projects.
Installation
This package is distributed via npm. It requires prettier.
If using npm 5+, use this shortcut:
npx install-peerdeps -D @fenghan/prettier-config
Or install each package by yourself:
npm install -D @fenghan/prettier-config prettier
# or
yarn add -D @fenghan/prettier-config prettier
Usage
You can just reference it in your package.json
file:
{
"prettier": "@fenghan/prettier-config"
}
If you need to overwrite some properties from this configuration, import this in your .prettierrc.js
file and export the modifications:
module.exports = {
...require('@fenghan/prettier-config'),
// ...
}
Then you can setup the Prettier CLI in your package.json
file:
{
"format": "prettier --write ."
}