UNPKG

auto-config-loader

Version:

Find and load configuration from a package.json property, rc file, or CommonJS module.

9 lines (8 loc) 334 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.jsonLoader = jsonLoader; const jsonc_eslint_parser_1 = require("jsonc-eslint-parser"); function jsonLoader(_, content) { const ast = (0, jsonc_eslint_parser_1.parseJSON)(content); return (0, jsonc_eslint_parser_1.getStaticJSONValue)(ast); }