{"id":20874,"library":"xcraft-dev-prettier","title":"Xcraft Prettier Settings","description":"Xcraft Prettier settings is a shared configuration package for Prettier, version 2.0.2, designed for use within the Xcraft ecosystem. It provides a standardized set of Prettier options to enforce consistent code formatting across Xcraft projects. This package is likely internal to Xcraft and not intended for general use; it has low release cadence and minimal documentation. Compared to more widely-adopted shared configs like @company/prettier-config, this is highly specific and may break if Prettier updates its options.","status":"active","version":"2.0.2","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","xcraft","devel"],"install":[{"cmd":"npm install xcraft-dev-prettier","lang":"bash","label":"npm"},{"cmd":"yarn add xcraft-dev-prettier","lang":"bash","label":"yarn"},{"cmd":"pnpm add xcraft-dev-prettier","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Prettier is ESM-only since v3; CommonJS require may fail or require special handling.","wrong":"const prettier = require('prettier');","symbol":"prettier","correct":"import prettier from 'prettier';"}],"quickstart":{"code":"// Install the package and Prettier\n// npm install --save-dev xcraft-dev-prettier prettier\n// In .prettierrc.js:\nmodule.exports = {\n  ...require('xcraft-dev-prettier'),\n  // Override any settings if needed\n};\n\n// Or in package.json:\n{\n  \"prettier\": \"xcraft-dev-prettier\"\n}","lang":"javascript","description":"Shows how to extend the shared Prettier config from xcraft-dev-prettier in a project, using either .prettierrc.js or package.json."},"warnings":[{"fix":"Consider using a community-maintained Prettier shared config like @company/prettier-config or prettier-config-standard.","message":"This package is intended for internal Xcraft use; may not be maintained for general public.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Review Prettier v3 migration guide and update .prettierrc accordingly.","message":"Prettier v3 changes default options (e.g., trailingComma defaults to 'all'), which may conflict with settings in this config.","severity":"breaking","affected_versions":">=2.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 xcraft-dev-prettier`.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'xcraft-dev-prettier'"},{"fix":"Use .prettierrc.js with `module.exports = require('xcraft-dev-prettier');`","cause":"Mistakenly set 'prettier' field in package.json to package name instead of requiring it in a .prettierrc.js file.","error":"Invalid configuration file: \"xcraft-dev-prettier\" is not a valid Prettier configuration."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}