Registry / testing / prettier-config-holepunch

prettier-config-holepunch

JSON →
library2.0.0jsnpmunverified

Shared Prettier configuration used by Holepunch projects. Version 2.0.0 requires Prettier ^3.6.2. Provides a standardized set of formatting options for consistent code style across Holepunch repositories. Simple to use by referencing the package name in .prettierrc.

npm install prettier-config-holepunch
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-HO
P
prettier-config-holepunch
testingjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

prettier-config-holepunch
"prettier-config-holepunch" in .prettierrc
require('prettier-config-holepunch') in JS
Use string reference in config file, not a require() call.

Shows how to extend the shared Prettier config in .prettierrc file.

// .prettierrc "prettier-config-holepunch" // Then format with: // npx prettier --check . // npx prettier --write .
Debug
Known issues
breakingVersion 2.0.0 requires Prettier ^3.6.2, which may have breaking changes from Prettier 2.x.
fix
Update Prettier to 3.6.2 or later.
affects: >=2.0.0
gotchaDo not use require() or import to load this config; it must be a string in .prettierrc.
fix
Set .prettierrc to the string "prettier-config-holepunch".
affects: >=1.0.0
gotchaIf you override options, you may lose the shared defaults; merge carefully.
fix
Use extends or spread to preserve base config.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'prettier-config-holepunch'
Package not installed or not in node_modules.
fix
Run: npm install --save-dev prettier-config-holepunch
Configuration file .prettierrc contains an invalid option: prettier-config-holepunch
Using the package name as a key instead of a string value.
fix
Change .prettierrc to: "prettier-config-holepunch"
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
prettierrequiredpeer dependency required to apply the config
Agent activity
8 hits · last 30 days
node
8
Resources
prettier-config-holepunch — npm install prettier-config-holepunch · libregistry