UNPKG

es-guard

Version:

A tool to check JavaScript compatibility with target environments

34 lines 882 B
import type { Linter } from "eslint"; export type SourceMappedMessage = Linter.LintMessage & { originalFile?: string; originalLine?: number; originalColumn?: number; }; export type Violation = { file: string; messages: Linter.LintMessage[]; sourceMappedMessages?: SourceMappedMessage[]; }; export type Config = { dir: string; target: string; browsers?: string; }; export type ProjectType = "nextjs" | "vite" | "webpack" | "rollup" | "parcel" | "generic"; export interface ESGuardOptions { target?: string; browsers?: string; verbose?: boolean; skip?: boolean; directory?: string; workingDir?: string; } export interface ESGuardResult { success: boolean; errors: Violation[]; warnings: Violation[]; scanDirectory: string; target: string; browserTargets: string; } //# sourceMappingURL=types.d.ts.map