eslint-rule-benchmark
Version:
Benchmark ESLint rules with detailed performance metrics for CI and plugin development
17 lines (16 loc) • 556 B
TypeScript
import { SUPPORTED_EXTENSIONS } from '../../constants'
/**
* Type representing the supported file extensions for the benchmark runner.
* This is derived from the SUPPORTED_EXTENSIONS constant.
*/
type Extensions = (typeof SUPPORTED_EXTENSIONS)[number]
/**
* Check if the given extension is supported by the benchmark runner.
*
* @param extension - The file extension to check.
* @returns True if the extension is supported, false otherwise.
*/
export declare function isSupportedExtension(
extension: string,
): extension is Extensions
export {}