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:
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`moduleexports = 'prettier-config-modern'