1.0.0 • Published 4 years ago
sharec-prettier-hook v1.0.0
sharec-prettier-hook
Allows to format your sharec configs with prettier.
Usage
Install the hook:
npm i --save-dev sharec-prettier-hook
# or with yarn
yarn add -D sharec-prettier-hookCreate .sharecrc.js file in your project with following content:
const perttierHook = require('sharec-prettier-hook')
module.exports = {
afterMerge: perttierHook,
}How it works
The hook is looking for prettier config inside upcoming configs or inside a target project.
1.0.0
4 years ago