@simenandre/prettier
v5.0.0
Published
A reuseable, simple prettier config
Downloads
6,373
Readme
@simenandre/prettier
Reusable prettier config.
Installation
yarn add --dev @simenandre/prettier
or
pnpm add --save-dev @simenandre/prettier
Usage
Add a key in your package.json file.
"prettier": "@simenandre/prettier"
OR
Create a .prettierrc , .prettierrc.yaml , .prettierrc.yml or .prettierrc.json file and export a string.
"@simenandre/prettier"
OR
Create a prettier.config.js or .prettierrc.js file and export an object.
module.exports = {
...require("@simenandre/prettier"),
tabWidth: 2,
};
Thanks
Most of this code is based on https://github.com/devsht/prettier-config.