This commit is contained in:
2026-11-02 12:42:04 +00:00
commit e4e28174bf
5498 changed files with 1735888 additions and 0 deletions

View File

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