Using npm:
npm i @bonfida/prettier-config --save-dev
Using Yarn:
yarn add @bonfida/prettier-config --dev
Edit package.json
:
{
// ...
"prettier": "@bonfida/prettier-config"
}
If you want to override config, you need to use .prettierrc.js
instead of package.json
and edit it like that:
import bonfidaPrettierConfig from '@bonfida/prettier-config';
export default {
...bonfidaPrettierConfig,
semi: false,
};
That's it! 🎉
For more information read Prettier Official Documentation.