@elkevinwolf/prettier-config

1.0.0 • Public • Published

version downloads

@elkevinwolf/prettier-config

⚙️ Kevin Wolf's opinionated shareable Prettier config.

Installation

npm install --save-dev prettier @elkevinwolf/prettier-config

Usage

Depending on your preferred way to configure Prettier, you have several options:

  • In package.json, using the prettier property:
{
  // name, scripts, dependencies, etc...
  "prettier": "@elkevinwolf/prettier-config"
}
  • In .prettierrc, .prettierrc.json, .prettierrc.json5, .prettierrc.yaml, or .prettierrc.yml:
"@elkevinwolf/prettier-config
  • In .prettierrc.js, .prettierrc.cjs, prettier.config.js or prettier.config.cjs:
module.exports = "@elkevinwolf/prettier-config"

Extending

For extending this configuration, you will need to either use prettier.config.js or .prettierrc.js, spread the original config and add your overwrites:

module.exports = {
  ...require("@elkevinwolf/prettier-config"),
  // your overwrites...
}

Contributing

Read the contributing guidelines.

License

MIT

/@elkevinwolf/prettier-config/

    Package Sidebar

    Install

    npm i @elkevinwolf/prettier-config

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • elkevinwolf