Registry / devops / prettier-config-vuepress

prettier-config-vuepress

JSON →
library7.1.0jsnpmunverified

Prettier configuration used by the VuePress Team internally. Current stable version is 7.1.0, with recent major version 8.0.0 migrating to @vuepress scope. This package is not intended for external use unless you are familiar with its specific settings. It is published on npm and includes TypeScript type definitions.

npm install prettier-config-vuepress
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-VU
P
prettier-config-vuepress
devopsjavascriptv7.1.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.

default
import prettierConfig from 'prettier-config-vuepress'
const prettierConfig = require('prettier-config-vuepress')
For TypeScript, use default import. ESM-only since Node >= 20.
default
prettier: 'prettier-config-vuepress' in package.json
prettier: '@vuepress/prettier-config' (v8 uses different package)
In package.json, reference the string directly. In v7, the package name is 'prettier-config-vuepress'; v8 migrated to '@vuepress/prettier-config'.
default
import * as config from 'prettier-config-vuepress'
import { config } from 'prettier-config-vuepress'
This package exports a default configuration object. Named exports are not available.

Shows how to use the package via package.json or .prettierrc.js

// Install: npm install -D prettier prettier-config-vuepress // In package.json: { "prettier": "prettier-config-vuepress" } // Or in .prettierrc.js: const config = require('prettier-config-vuepress'); module.exports = config;
Debug
Known issues
breakingSince v8.0.0, the package has been migrated to @vuepress scope. The old package name 'prettier-config-vuepress' may no longer be updated.
fix
Use '@vuepress/prettier-config' instead.
affects: >=8.0.0
gotchaThis config is for internal VuePress team use. Using it in your own project may cause unexpected formatting.
fix
Prefer standard Prettier configs or create your own.
affects: >=0.0.0
deprecatedThe package does not follow semver strictly; minor releases may contain breaking changes.
fix
Pin to exact version.
affects: >=0.0.0
gotchaRequires Node >= 20. Older Node versions will fail to import.
fix
Upgrade Node to 20+ or use an older version of the package.
affects: >=7.1.0
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module not supported.
Using require() on ESM-only package with Node <20 or without { type: 'module' }.
fix
Use import statement or upgrade Node to 20+ with { type: 'module' }.
Cannot find module 'prettier-config-vuepress'
Package not installed or not in node_modules.
fix
Run: npm install -D prettier-config-vuepress
Invalid configuration for prettier: Expected object, got string
Setting prettier config to a string without proper resolution.
fix
In package.json, set 'prettier': 'prettier-config-vuepress' or use .prettierrc.js that exports the config object.
Upgrade
Version history
7.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
prettier-config-vuepress — npm install prettier-config-vuepress · libregistry