@flarum/prettier-config

1.0.0 • Public • Published

Flarum Prettier Config

Flarum's official configuration for the Prettier code formatter.

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

Usage

  1. Install @flarum/prettier-config as a dev dependency:
npm i -D @flarum/prettier-config
yarn add -D @flarum/prettier-config
  1. Add the prettier key to your package.json:
// package.json
{
  "name": "my-cool-package",
  "version": "1.0.0",
  "prettier": "@flarum/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.

⚠️ Make sure your package.json doesn't have the prettier key.

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

Dependents (0)

Package Sidebar

Install

npm i @flarum/prettier-config

Weekly Downloads

83

Version

1.0.0

License

MIT

Unpacked Size

1.63 kB

Total Files

3

Last publish

Collaborators

  • sycho9
  • luceos
  • askvortsov
  • davwheat