🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@broxus/prettier-config

Package Overview
Dependencies
Maintainers
8
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@broxus/prettier-config

Broxus base configuration for Prettier

latest
npmnpm
Version
1.3.0
Version published
Maintainers
8
Created
Source

Broxus Prettier config

Recommended Prettier configuration to create formatted code with best practices.

Installation

Install the package as development dependency, alongside prettier package

npm i @broxus/prettier-config prettier -D
yarn add @broxus/prettier-config prettier -D
pnpm add @broxus/prettier-config prettier -D
bun add @broxus/prettier-config prettier -D

Usage

In your package.json, add the following:

{
    ...
    "prettier": "@broxus/prettier-config",
    "hysky": {
        "hooks": {
            "pre-commit": "npx lint-staged"
        }
    }
    ...
}

If you need to change or add any other config to the prettier, you must remove the prettier option on package.json and create a .prettierrc.js or prettier.config.js file with the following content:

module.exports = {
    ...require('@broxus/prettier-config')
    // some overrides if needed
}

[!TIP] Alternatively, you can create a .prettierrc or prettier.config file in any supported format, such as: .prettierrc.js, .prettierrc.ts, .prettierrc.cjs, .prettierrc.cts, prettierrc.mjs, prettierrc.mts, prettier.config.js, prettier.config.ts, prettier.config.cjs, prettier.config.cts, prettier.config.mjs, prettier.config.mts

Keywords

prettier

FAQs

Package last updated on 03 Oct 2025

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