prettier-config-modern
v1.0.0
Published
A Prettier shareable config for projects wanting to conform to a modern format.
Downloads
6
Maintainers
Readme
prettier-config-modern
A Prettier shareable config for projects wanting to conform to a modern format.
Installation
npm install --save-dev prettier-config-modern
This is only a shareable configuration. It does not install Prettier.
Usage
Reference it in package.json
using the prettier
property:
{
"name": "my-projects-name",
"prettier": "prettier-config-modern",
"devDependencies": {
"prettier-config-modern": "^1.0.0"
}
}
If you don't want to use package.json
, you can use any of the supported
extensions to export a string:
// `.prettierrc.json`
"prettier-config-modern"
// `prettier.config.js` or `.prettierrc.js`
module.exports = 'prettier-config-modern'