@pixeloven-tooling/pretty
Pixel Oven tooling pretty
See our website PixelOven for more information or our issues board to report issues associated with this package.
Install
Using npm:
npm install --save-dev @pixeloven-tooling/pretty
or using yarn:
yarn add --dev @pixeloven-tooling/pretty
Usage
Note this package was originally created to encapsulate common dependencies and scripts used during the development of PixelOven. For a full public CLI experience please see our website pixeloven.
This simple package wraps prettier for use throughout our workflow. We often use this package side by side with lint-staged to help improve our code quality.
Example of usage in package.json
{
"devDependencies": {
"@pixeloven-tooling/pretty": "6.2.0",
"lint-staged": "10.0.7"
},
"scripts": {
"pretty": "pixeloven-pretty src/**/*.{scss,ts,tsx}"
},
"lint-staged": {
"src/**/*.{scss,ts,tsx}": [
"pixeloven-pretty"
]
}
}