A shared Prettier config
Installation
yarn add --dev @constvarlet/prettier-config
Usage
- package.json
{
"prettier": "@constvarlet/prettier-config"
}
- prettier.config.js
module.exports = {
...require("@constvarlet/prettier-config");
// ...
}
Options
default parser is typescript
If you using only javascript just add js
{
"prettier": "@constvarlet/prettier-config/js"
}