eslint-plugin-svelte
Version:
ESLint plugin for Svelte using AST
6 lines (5 loc) • 314 B
TypeScript
import type { AST } from 'svelte-eslint-parser';
import type { RuleContext } from '../../types.js';
import type { ASTNodeWithParent } from '../../types-for-node.js';
/** Extract comments */
export declare function extractLeadingComments(context: RuleContext, node: ASTNodeWithParent): (AST.Token | AST.Comment)[];