UNPKG

eslint-rule-benchmark

Version:

Benchmark ESLint rules with detailed performance metrics for CI and plugin development

11 lines (10 loc) 202 B
let jsonLoader = (_filepath, content) => { try { return JSON.parse(content) } catch (error) { throw new Error('Failed to load JSON', { cause: error, }) } } export { jsonLoader }