EITS-web/node_modules/eslint-plugin-svelte/lib/utils/eslint-core.d.ts
2025-12-06 09:54:52 -05:00

26 lines
914 B
TypeScript

import type { RuleListener, RuleContext, RuleModule } from '../types.js';
import type { TSESTree } from '@typescript-eslint/types';
import type { AST as SvAST } from 'svelte-eslint-parser';
/**
* Define the wrapped core rule.
*/
export declare function defineWrapperListener(coreRule: RuleModule, context: RuleContext, proxyOptions: {
createListenerProxy?: (listener: RuleListener) => RuleListener;
}): RuleListener;
/**
* Get the proxy node
*/
export declare function getProxyNode(node: {
type: string;
}, properties: any): any;
/**
* Build the proxy rule listener
*/
export declare function buildProxyListener(base: RuleListener, convertNode: (node: SvAST.SvelteNode | (TSESTree.Node & {
parent: SvAST.SvelteNode | TSESTree.Node | null;
})) => any): RuleListener;
/**
* Get the core rule implementation from the rule name
*/
export declare function getCoreRule(ruleName: string): RuleModule;