npm.io
1.0.0 • Published 5 years ago

@elkevinwolf/prettier-config

Licence
MIT
Version
1.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

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

Keywords