0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-06 11:18:57 -05:00

jsdoc my old friend

This commit is contained in:
Bartek Iwańczuk 2025-01-30 23:49:48 +01:00
parent 46e150dcb0
commit b3d0b0e47d
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -1407,6 +1407,10 @@ declare namespace Deno {
report(data: ReportData): void;
}
/**
* @category Linter
* @experimental
*/
export interface Rule {
create(ctx: RuleContext): Record<string, (node: unknown) => void>;
destroy?(ctx: RuleContext): void;
@ -1436,7 +1440,7 @@ declare namespace Deno {
* @experimental
*/
export interface Fix {
range: [number, number];
range: Range;
text?: string;
}
@ -1444,12 +1448,12 @@ declare namespace Deno {
* @category Linter
* @experimental
*/
interface LintDiagnostic {
export interface Diagnostic {
id: string;
message: string;
hint?: string;
range: [number, number];
fix?: LintFix;
range: Range;
fix?: Fix;
}
/**
@ -1458,10 +1462,10 @@ declare namespace Deno {
* @experimental
*/
export function runPlugin(
plugin: LintPlugin,
plugin: Plugin,
fileName: string,
source: string,
): LintDiagnostic[];
): Diagnostic[];
}
export {}; // only export exports