Registry / devops / prettier-config-mx

prettier-config-mx

JSON →
library1.0.0jsnpmunverified

A shared Prettier configuration package published by MX Technologies. Version 1.0.0, last updated in 2019. It provides a baseline set of formatting rules for projects within the MX ecosystem. The package is minimal, expecting Prettier 1.19.1 as a peer dependency. Its main differentiator is being a simple reusable config for consistency across MX projects, but it has not been updated since its initial release, and no longer works with modern Prettier versions (>1.19.1).

npm install prettier-config-mx
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-MX
P
prettier-config-mx
devopsjavascriptv1.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-mx
const prettierConfig = require('prettier-config-mx');
import prettierConfig from 'prettier-config-mx';
CommonJS only; no ESM export. Named export does not exist.
prettierrc.js (extend)
module.exports = { ...require('prettier-config-mx'), semi: false };
module.exports = { extends: ['prettier-config-mx'] };
Do not use 'extends'; spread the config object instead.
package.json "prettier" field
"prettier": "prettier-config-mx"
"prettier": { "extends": "prettier-config-mx" }
Use a string, not an object with extends.

Installs Prettier and the shared config, then applies it via the package.json prettier field.

{ "name": "my-project", "version": "1.0.0", "devDependencies": { "prettier": "1.19.1", "prettier-config-mx": "1.0.0" }, "prettier": "prettier-config-mx" }
Debug
Known issues
gotchaPackage requires Prettier 1.19.1; incompatible with Prettier v2+
fix
Downgrade Prettier to 1.19.1 or avoid using this config with newer versions.
affects: >=1.0.0
deprecatedNo updates since 2019; consider using official @prettier/config package
fix
Replace with '@prettier/plugin-*' or maintain a fork.
affects: *
gotchaCommonJS only; no ESM export available
fix
Use require() instead of import.
affects: *
Errors
Common errors & fixes
Cannot find module 'prettier-config-mx'
Package not installed or missing in node_modules
fix
Run npm install prettier-config-mx --save-dev
Invalid configuration file: "prettier" field must be a string or object
Incorrect usage in package.json
fix
Set "prettier": "prettier-config-mx" (as a string)
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
prettierrequiredPeer dependency – required to use the config
Agent activity
4 hits · last 30 days
node
4
Resources
prettier-config-mx — npm install prettier-config-mx · libregistry