feat: use go tool
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// @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;
|
||||
Reference in New Issue
Block a user