intial
This commit is contained in:
25
node_modules/eslint-plugin-svelte/lib/utils/eslint-core.d.ts
generated
vendored
Normal file
25
node_modules/eslint-plugin-svelte/lib/utils/eslint-core.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user