Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

prettier-config-modern

1.0.0 • Public • Published

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'

Install

npm i prettier-config-modern

DownloadsWeekly Downloads

2

Version

1.0.0

License

BSD-3-Clause

Unpacked Size

2.86 kB

Total Files

4

Last publish

Collaborators

  • avatar