@webgrip/prettier-config (0.3.0)

Published 2026-09-18 14:20:49 +00:00 by webgrip-ci in webgrip/frontend-toolkit

Installation

@webgrip:registry=
npm install @webgrip/prettier-config@0.3.0
"@webgrip/prettier-config": "0.3.0"

About this package

@webgrip/prettier-config

Shared Prettier config for Webgrip static-site repos (Astro-aware). Extracted from the byte-identical .prettierrc.json files in twente.dev and webgrip.nl so the style can never fork again.

Usage

// package.json
{
  "prettier": "@webgrip/prettier-config",
  "devDependencies": {
    "@webgrip/prettier-config": "^1.0.0",
    "prettier": "3.9.6",
  },
}

Then delete the repo's .prettierrc.json.

.prettierignore stays per-repo (it lists build output and generated files, which differ), but start from: dist/, .astro/, pnpm-lock.yaml, plus whatever the repo generates.

To extend rather than replace, make a local .prettierrc.cjs:

module.exports = { ...require('@webgrip/prettier-config'), printWidth: 120 };

Dependencies

Dependencies

ID Version
prettier-plugin-astro ^1.0.0

Peer dependencies

ID Version
prettier ^3.0.0
Details
npm
2026-09-18 14:20:49 +00:00
3
MIT
latest
1.4 KiB
Assets (1)
Versions (3) View all
0.3.0 2026-09-18
0.2.0 2026-09-04
0.1.0 2026-09-04