A sharable prettier config object.
Install prettier and @dre1080/prettier-config
:
With Yarn
$ yarn add --dev prettier @dre1080/prettier-config
With npm
$ npm install prettier @dre1080/prettier-config --save-dev
Add the prettier
key to your package.json
:
"prettier": "@dre1080/prettier-config"
or create a .prettierrc.js
with the following contents:
module.exports = {
...require("@dre1080/prettier-config"),
};
Check out the prettier
documentation for more info on sharing configurations.