
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@broxus/prettier-config
Advanced tools
Recommended Prettier configuration to create formatted code with best practices.
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
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
.prettierrcorprettier.configfile 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
FAQs
Broxus base configuration for Prettier
We found that @broxus/prettier-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.