1.0.0 • Published 3 years ago

@elkevinwolf/prettier-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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