@danielwerg/prettier-config
v1.0.0
Published
Shared Prettier config
Downloads
2,115
Maintainers
Readme
prettier-config
⚙️ Shared Prettier config
💾 Install
yarn add -D @danielwerg/prettier-config
yarn add -D prettier
VSCode Prettier ESLint extension
GitHub • Marketplace • VSCode • VSCodium
👀 Usage
Edit package.json
:
{
"prettier": "@danielwerg/prettier-config"
}
Or if you want to put it in a separate file
.prettierrc
"@danielwerg/prettier-config"
Or if you want to extend it
.prettierrc.js
module.exports = {
/** @type {import('prettier').Options} */ // optional IntelliSense support (neeeds `@types/prettier`)
...require('@danielwerg/prettier-config'),
printWidth: 100
};