UNPKG

eslint-rule-benchmark

Version:

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

9 lines (8 loc) 236 B
import { formatMs } from './format-ms.js' function formatDeviation(deviation) { if (typeof deviation !== 'number' || !Number.isFinite(deviation)) { return 'N/A' } return ${formatMs(deviation)}` } export { formatDeviation }