1.0.0 • Published 2 years ago

@duroom/prettier-config v1.0.0

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

DuRoom Prettier Config

DuRoom's official configuration for the Prettier code formatter.

For more info about shared Prettier configurations, check out the Prettier documentation.

Usage

  1. Install @duroom/prettier-config as a dev dependency:
npm i -D @duroom/prettier-config
yarn add -D @duroom/prettier-config
  1. Add the prettier key to your package.json:
// package.json
{
  "name": "my-cool-package",
  "version": "1.0.0",
  "prettier": "@duroom/prettier-config",
  // ...
}

Extending

You can extend our config with your own custom options, too. Import our config, then spread its require in a .prettierrc.js file.

:warning: Make sure your package.json doesn't have the prettier key.

// .prettierrc.js
module.exports = {
  ...require("@duroom/prettier-config"),
  semi: false,
};