markdownlint-cli2
Version:
A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the `markdownlint` library
17 lines (12 loc) • 306 B
JavaScript
// @ts-check
import { load } from "js-yaml";
/* eslint-disable arrow-body-style */
/**
* Parses a YAML string, returning the corresponding object.
* @type {import("markdownlint").ConfigurationParser}
*/
const yamlParse = (text) => {
// @ts-ignore
return load(text);
};
export default yamlParse;