Prettier-config
A shared prettier configuration to use in digital wafa projects
Installation
npm install --save-dev prettier @digital-wafa/prettier-config
Usage
Add a prettier
property in your package.json
. See the Configuration docs.
"prettier": "@digital-wafa/prettier-config"
Extending
If you find yourself in the situation where you have to change This configuration, here is how to do it.
To extend a configuration you have to create a prettier.config.js
or .prettierrc.js
file like the example below:
module.exports = {
...require('@digital-wafa/prettier-config'),
"useTabs": false,
"semi": true
};
don't forget to delete the prettier property in package.json
file.