Files
go-cuckoo/node_modules/markdownlint-cli2/parsers/yaml-parse.mjs
T
2026-07-03 19:24:01 -04:00

17 lines
307 B
JavaScript

// @ts-check
import yaml 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 yaml.load(text);
};
export default yamlParse;