You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
649 B
TypeScript

import type { AST } from 'svelte-eslint-parser';
import type { RuleContext } from '../../types';
import type { IgnoreItem } from './ignore-comment';
export type SvelteCompileWarnings = {
warnings: Warning[];
unusedIgnores: IgnoreItem[];
kind: 'warn' | 'error';
stripStyleElements: AST.SvelteStyleElement[];
};
export type Loc = {
start?: {
line: number;
column: number;
};
end?: {
line: number;
column: number;
};
};
export type Warning = {
code?: string;
message: string;
} & Loc;
export declare function getSvelteCompileWarnings(context: RuleContext): SvelteCompileWarnings;