Socket
Book a DemoInstallSign in
Socket

@flarum/prettier-config

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flarum/prettier-config

Flarum's configuration for the Prettier code formatter.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
72
-20.88%
Maintainers
3
Weekly downloads
 
Created
Source

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

  • Install @flarum/prettier-config as a dev dependency:
npm i -D @flarum/prettier-config
yarn add -D @flarum/prettier-config
  • 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.

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

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

Keywords

flarum

FAQs

Package last updated on 18 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts