@webgrip/prettier-config
v0.3.0
Published
Shared Prettier config for Webgrip static-site repos (Astro-aware). Consume via "prettier": "@webgrip/prettier-config" in package.json.
Readme
@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 };