vuepress-validate-frontmatter (deprecated)

raw JSON →
3.0.0 verified Fri May 01 auth: no javascript deprecated

This package is deprecated as of version 3.0.0. It previously provided frontmatter validation for VuePress projects. Users should migrate to vuepress-frontmatter-lint for continued support. The package is no longer maintained.

error Cannot find module 'vuepress-validate-frontmatter'
cause Package has been deprecated and removed from npm or version mismatch.
fix
Use vuepress-frontmatter-lint package instead.
error require() of ES Module not supported
cause Package is ESM-only and CommonJS require is used.
fix
Use import statement or switch to vuepress-frontmatter-lint.
deprecated Package is deprecated since version 3.0.0. Use vuepress-frontmatter-lint instead.
fix npm install vuepress-frontmatter-lint and update imports.
npm install vuepress-validate-frontmatter
yarn add vuepress-validate-frontmatter
pnpm add vuepress-validate-frontmatter

Shows migration to vuepress-frontmatter-lint since the original package is deprecated.

// This package is deprecated. Use vuepress-frontmatter-lint instead.
import lint from 'vuepress-frontmatter-lint';

const result = lint({ frontmatter: { title: 'Hello' }, rules: { 'title-case': ['error', 'capitalize'] } });
console.log(result);