intial
This commit is contained in:
32
node_modules/eslint-plugin-svelte/lib/shared/svelte-compile-warns/index.d.ts
generated
vendored
Normal file
32
node_modules/eslint-plugin-svelte/lib/shared/svelte-compile-warns/index.d.ts
generated
vendored
Normal 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;
|
||||
Reference in New Issue
Block a user