{"id":20296,"library":"prettier-config-holepunch","title":"Holepunch Prettier Config","description":"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.","status":"active","version":"2.0.0","language":"javascript","source_language":"en","source_url":"https://github.com/holepunchto/prettier-config-holepunch","tags":["javascript"],"install":[{"cmd":"npm install prettier-config-holepunch","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-holepunch","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-holepunch","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to apply the config","package":"prettier","optional":false}],"imports":[{"note":"Use string reference in config file, not a require() call.","wrong":"require('prettier-config-holepunch') in JS","symbol":"prettier-config-holepunch","correct":"\"prettier-config-holepunch\" in .prettierrc"}],"quickstart":{"code":"// .prettierrc\n\"prettier-config-holepunch\"\n\n// Then format with:\n// npx prettier --check .\n// npx prettier --write .","lang":"javascript","description":"Shows how to extend the shared Prettier config in .prettierrc file."},"warnings":[{"fix":"Update Prettier to 3.6.2 or later.","message":"Version 2.0.0 requires Prettier ^3.6.2, which may have breaking changes from Prettier 2.x.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Set .prettierrc to the string \"prettier-config-holepunch\".","message":"Do not use require() or import to load this config; it must be a string in .prettierrc.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use extends or spread to preserve base config.","message":"If you override options, you may lose the shared defaults; merge carefully.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run: npm install --save-dev prettier-config-holepunch","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'prettier-config-holepunch'"},{"fix":"Change .prettierrc to: \"prettier-config-holepunch\"","cause":"Using the package name as a key instead of a string value.","error":"Configuration file .prettierrc contains an invalid option: prettier-config-holepunch"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}