
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.
@clabnet/configs-prettier
Advanced tools
The purpose of the prettier is formatting many language formats (js, ts, tsx, md, json, yaml).
Add workspace reference to @clabnet/configs-prettier and its peer dependencies:
pnpm add -w @clabnet/configs-prettier prettier
Add prettier configuration file:
// .prettierrc.js
module.exports = require('@clabnet/configs-prettier')
Add prettier ignore patterns file:
# .prettierignore
node_modules/
pnpm-lock.yaml
# Next ignore patterns
.next/
.build/
.coverage/
# Custom ignore patterns
...
Add prettier scripts:
// package.json
"scripts": {
...
"format": "prettier",
"format:check": "pnpm format --check --debug-check",
"format:fix": "pnpm format --write"
...
}
prettier with vscode environment.Automatic format file with prettier on save.
Automatic format of staged files with prettier on commit.
Manual usage from command line:
pnpm format:check .
pnpm format:fix .
FAQs
Shared prettier config for monorepo and lib packages
We found that @clabnet/configs-prettier demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Research
/Security News
Another wave of Shai-Hulud campaign has hit npm with more than 500 packages and 700+ versions affected.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.