prettier-config-smarthr
A sharable prettier config for SmartHR.
Installation
prettier-config-smarthr is available as an npm package.
// with npm
npm install --save-dev prettier-config-smarthr
// with yarn
yarn add --dev prettier-config-smarthr
How to use
Edit package.json
.
{
"name": "your project",
"prettier": "prettier-config-smarthr"
}
If you don’t want to use package.json
, you can use any of the supported extensions to export a string, e.g. .prettierrc.json
:
"prettier-config-smarthr"
Check here for details : https://prettier.io/docs/en/configuration.html
How to extend
Create .prettierrc.js
, import the file in a .prettierrc.js
file and export the modifications.
module.exports = {
...require("prettier-config-smarthr"),
"arrowParens": "avoid",
};