eslint-plugin-svelte
Version:
ESLint plugin for Svelte using AST
10 lines (9 loc) • 412 B
TypeScript
import type { AST } from 'svelte-eslint-parser';
import type { RuleContext } from '../../../types.js';
import type { TransformResult } from './types.js';
/**
* Transpile with babel
*/
export declare function transform(node: AST.SvelteScriptElement, text: string, context: RuleContext): TransformResult | null;
/** Check if project has Babel. */
export declare function hasBabel(context: RuleContext): boolean;