auto-config-loader
Version:
Find and load configuration from a package.json property, rc file, or CommonJS module.
9 lines (8 loc) • 330 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.yamlLoader = yamlLoader;
const yaml_eslint_parser_1 = require("yaml-eslint-parser");
function yamlLoader(_, content) {
const ast = (0, yaml_eslint_parser_1.parseYAML)(content);
return (0, yaml_eslint_parser_1.getStaticYAMLValue)(ast);
}