UNPKG

eslint-rule-benchmark

Version:

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

12 lines (11 loc) 372 B
import { LANGUAGES } from '../../constants' type Language = (typeof LANGUAGES)[number] /** * Get the language of a file based on its extension. * * @param filePath - The path to the file. * @returns The language of the file or 'javascript' if the extension is not * supported. */ export declare function getLanguageByFileName(filePath: string): Language export {}