{"id":20310,"library":"prettier-config-vuepress","title":"Prettier Config VuePress","description":"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.","status":"active","version":"7.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/vuepress/configs","tags":["javascript","typescript"],"install":[{"cmd":"npm install prettier-config-vuepress","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-config-vuepress","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-config-vuepress","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"For TypeScript, use default import. ESM-only since Node >= 20.","wrong":"const prettierConfig = require('prettier-config-vuepress')","symbol":"default","correct":"import prettierConfig from 'prettier-config-vuepress'"},{"note":"In package.json, reference the string directly. In v7, the package name is 'prettier-config-vuepress'; v8 migrated to '@vuepress/prettier-config'.","wrong":"prettier: '@vuepress/prettier-config' (v8 uses different package)","symbol":"default","correct":"prettier: 'prettier-config-vuepress' in package.json"},{"note":"This package exports a default configuration object. Named exports are not available.","wrong":"import { config } from 'prettier-config-vuepress'","symbol":"default","correct":"import * as config from 'prettier-config-vuepress'"}],"quickstart":{"code":"// Install: npm install -D prettier prettier-config-vuepress\n// In package.json:\n{\n  \"prettier\": \"prettier-config-vuepress\"\n}\n// Or in .prettierrc.js:\nconst config = require('prettier-config-vuepress');\nmodule.exports = config;","lang":"javascript","description":"Shows how to use the package via package.json or .prettierrc.js"},"warnings":[{"fix":"Use '@vuepress/prettier-config' instead.","message":"Since v8.0.0, the package has been migrated to @vuepress scope. The old package name 'prettier-config-vuepress' may no longer be updated.","severity":"breaking","affected_versions":">=8.0.0"},{"fix":"Prefer standard Prettier configs or create your own.","message":"This config is for internal VuePress team use. Using it in your own project may cause unexpected formatting.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Pin to exact version.","message":"The package does not follow semver strictly; minor releases may contain breaking changes.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Upgrade Node to 20+ or use an older version of the package.","message":"Requires Node >= 20. Older Node versions will fail to import.","severity":"gotcha","affected_versions":">=7.1.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Use import statement or upgrade Node to 20+ with { type: 'module' }.","cause":"Using require() on ESM-only package with Node <20 or without { type: 'module' }.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module not supported."},{"fix":"Run: npm install -D prettier-config-vuepress","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'prettier-config-vuepress'"},{"fix":"In package.json, set 'prettier': 'prettier-config-vuepress' or use .prettierrc.js that exports the config object.","cause":"Setting prettier config to a string without proper resolution.","error":"Invalid configuration for prettier: Expected object, got string"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}