{"id":41760,"library":"prettier-config-che","title":"CHE Prettier Config","description":"A shared Prettier configuration for CHE Proximity projects. Current stable version: 3.0.17. The package provides a consistent code formatting standard across CHE Proximity projects. It includes a CLI tool that generates a .prettierrc.json file and installs Prettier if not already present. Release cadence is irregular, tied to updates in Prettier or ESLint peer dependencies. Key differentiator: opinionated, CHE-specific formatting rules with automated setup.","status":"active","version":"3.0.17","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","prettierconfig","prettier","cheproximity"],"install":[{"cmd":"npm install prettier-config-che","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-che","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-che","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required for formatting; version 3.0.1","package":"prettier","optional":false},{"reason":"Peer dependency optionally used for linting integration; version ^8.52.0","package":"eslint","optional":true}],"imports":[{"note":"ESM usage; can also extend in .prettierrc.js: module.exports = 'prettier-config-che'","wrong":"const config = require('prettier-config-che')","symbol":"default","correct":"import config from 'prettier-config-che'"},{"note":"TypeScript usage requires prettier >= 3.0.1 and the package exports types","wrong":"","symbol":"PrettierConfig","correct":"import type { PrettierConfig } from 'prettier-config-che'"},{"note":"The postinstall script is a tool to install prettier as devDependency, not a npm lifecycle script","wrong":"npm run postinstall","symbol":"postinstall","correct":"npx postinstall"}],"quickstart":{"code":"// Install the config as a dev dependency\nnpm install prettier-config-che --save-dev\n\n// Run the postinstall script to install Prettier (if not already installed)\nnpx postinstall\n\n// Generate .prettierrc.json\nnpx prettier-config-che\n\n// Format all files\nnpx prettier . --write","lang":"bash","description":"Shows how to install the config, set up Prettier, generate configuration, and format all project files."},"warnings":[{"fix":"Update prettier to 3.0.1 or later using npm install prettier@latest --save-dev","message":"v3 requires prettier >= 3.0.1; older versions may cause configuration parsing errors","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Run 'npx postinstall' only if prettier is not already in package.json devDependencies","message":"The postinstall script installs prettier as a devDependency; if prettier is already present globally, it may still install locally","severity":"gotcha","affected_versions":"*"},{"fix":"Back up existing config before running the command","message":"npx prettier-config-che overwrites any existing .prettierrc.json without prompt","severity":"gotcha","affected_versions":"*"},{"fix":"Install prettier manually via 'npm install prettier --save-dev --save-exact'","message":"The postinstall script is deprecated in favor of manual prettier installation; future versions may remove it","severity":"deprecated","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'3.0.17':15 'across':24 'alreadi':43 'autom':67 'cadenc':46 'che':1,9,25,62 'che-specif':61 'cheproxim':72 'cli':31 'code':21 'config':3 'configur':7 'consist':20 'current':12 'depend':57 'differenti':59 'eslint':55 'file':37 'format':22,64 'generat':34 'includ':29 'instal':39 'irregular':48 'javascript':69 'key':58 'opinion':60 'packag':17 'peer':56 'present':44 'prettier':2,6,40,53,71 'prettierconfig':70 'prettierrc.json':36 'project':11,27 'provid':18 'proxim':10,26 'releas':45 'rule':65 'setup':68 'share':5 'specif':63 'stabl':13 'standard':23 'tie':49 'tool':32 'updat':51 'version':14","created_at":"2026-06-04T18:53:58.632875+00:00","updated_at":"2026-06-04T18:53:58.632875+00:00","problems":[{"fix":"Run npm install prettier-config-che --save-dev","cause":"Package not installed or not in devDependencies","error":"Error: Cannot find module 'prettier-config-che'"},{"fix":"Run npx prettier-config-che to generate the config file","cause":"Not yet generated by npx prettier-config-che","error":"Error: Configuration file .prettierrc.json not found"},{"fix":"Update prettier to 3.0.1 or later","cause":"Incompatible prettier version (less than 3.0.1)","error":"Error: [prettier] Invalid configuration encountered"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://bitbucket.org/cheprox/prettier-config-che#readme","github":null,"docs":null,"changelog":null,"pypi":null,"npm":"prettier-config-che","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}