@webgrip/prettier-config (0.1.0)
Installation
@webgrip:registry=npm install @webgrip/prettier-config@0.1.0"@webgrip/prettier-config": "0.1.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. The repo needs the Forgejo registry line in its
.npmrc:
@webgrip:registry=https://forgejo.webgrip.dev/api/packages/webgrip/npm/
.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 | ^0.14.1 |
Peer dependencies
| ID | Version |
|---|---|
| prettier | ^3.0.0 |
Details
Assets (1)
Versions (3)
View all
prettier-config-0.1.0.tgz
1.3 KiB