1.0.4 • Published 3 years ago
@muhortov/prettier-config v1.0.4
Prettier config
Configuration for the Prettier code formatter.
Installation
yarn add --dev @muhortov/prettier-config
Usage
To enable prettier in your project add the prettier
key to your package.json
file:
{
// ...
"prettier": "@muhortov/prettier-config"
}
To be able to format your files add the following command to the package.json
file
{
// ...
"scripts": {
// ...
"format": "prettier --write '**/*.{ts,tsx,js,jsx,vue,json,html,css,sass,scss,less,md,yaml,yml}'"
}
}
You can now run yarn format
to format your code.