es-guard
Version:
A tool to check JavaScript compatibility with target environments
17 lines • 915 B
TypeScript
import type { Linter } from "eslint";
import type { Config, SourceMappedMessage, Violation } from "./types.js";
export type CompatibilityResult = {
errors: Violation[];
warnings: Violation[];
};
export declare const checkCompatibility: (config: Config) => Promise<CompatibilityResult>;
/**
* Formats a violation message with source map information and creates a link to the actual source file.
* @param message The lint message
* @param sourceMappedMessage Optional source mapped message with original file information
* @param baseDir Base directory for resolving relative paths
* @param explicitFilePath Explicit file path for code frame
* @returns Formatted message string
*/
export declare const formatViolationMessage: (message: Linter.LintMessage, sourceMappedMessage?: SourceMappedMessage, baseDir?: string, explicitFilePath?: string) => string;
//# sourceMappingURL=checkCompatiblity.d.ts.map