Registry / devops / xcraft-dev-prettier

xcraft-dev-prettier

JSON →
library2.0.2jsnpmunverified

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.

npm install xcraft-dev-prettier
INSTALL
IMPORT
SIG · XCRAFT-DEV-PRETTIE
X
xcraft-dev-prettier
devopsjavascriptv2.0.2
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 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

prettier
import prettier from 'prettier';
const prettier = require('prettier');
Prettier is ESM-only since v3; CommonJS require may fail or require special handling.

Shows how to extend the shared Prettier config from xcraft-dev-prettier in a project, using either .prettierrc.js or package.json.

// Install the package and Prettier // npm install --save-dev xcraft-dev-prettier prettier // In .prettierrc.js: module.exports = { ...require('xcraft-dev-prettier'), // Override any settings if needed }; // Or in package.json: { "prettier": "xcraft-dev-prettier" }
Debug
Known issues
gotchaThis package is intended for internal Xcraft use; may not be maintained for general public.
fix
Consider using a community-maintained Prettier shared config like @company/prettier-config or prettier-config-standard.
affects: >=2.0.0
breakingPrettier v3 changes default options (e.g., trailingComma defaults to 'all'), which may conflict with settings in this config.
fix
Review Prettier v3 migration guide and update .prettierrc accordingly.
affects: >=2.0.0
Errors
Common errors & fixes
Cannot find module 'xcraft-dev-prettier'
Package not installed or not in node_modules.
fix
Run `npm install --save-dev xcraft-dev-prettier`.
Invalid configuration file: "xcraft-dev-prettier" is not a valid Prettier configuration.
Mistakenly set 'prettier' field in package.json to package name instead of requiring it in a .prettierrc.js file.
fix
Use .prettierrc.js with `module.exports = require('xcraft-dev-prettier');`
Upgrade
Version history
2.0.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
21
Resources
xcraft-dev-prettier — npm install xcraft-dev-prettier · libregistry