eslint-plugin-html-compat
Version:
ESLint plugin to check HTML element and attribute compatibility using browserslist and @mdn/browser-compat-data
18 lines • 904 B
TypeScript
import type { BrowserTarget } from "./browserslist";
export interface CompatibilityResult {
isSupported: boolean;
unsupportedBrowsers: string[];
feature: string;
mdnUrl?: string;
}
export interface DeprecationResult {
isDeprecated: boolean;
deprecationNote?: string;
feature: string;
mdnUrl?: string;
}
export declare function checkHtmlElementCompatibility(element: string, targetBrowsers: BrowserTarget[], ignoreBrowsers?: string[]): CompatibilityResult;
export declare function checkHtmlElementDeprecation(element: string): DeprecationResult;
export declare function checkHtmlAttributeDeprecation(element: string, attribute: string): DeprecationResult;
export declare function checkHtmlAttributeCompatibility(element: string, attribute: string, targetBrowsers: BrowserTarget[], ignoreBrowsers?: string[]): CompatibilityResult;
//# sourceMappingURL=compatibility.d.ts.map