UNPKG

stencil-eslint-core

Version:

ESLint utils to help create custom rules for Stencil JS projects.

23 lines (22 loc) 970 B
import ts from 'typescript'; export declare function isPrivate(originalNode: any): any; export declare function getDecorator(node: any, decoratorName?: string): any | any[]; export declare function parseDecorator(decorator: any): any; export declare function decoratorName(dec: any): string; export declare function isDecoratorNamed(propName: string): (dec: any) => boolean; export declare function stencilComponentContext(): { rules: { ClassDeclaration: (node: any) => void; 'ClassDeclaration:exit': (node: any) => void; }; isComponent(): boolean; }; export declare function getType(node: any): any; export declare const stencilDecorators: string[]; export declare const stencilLifecycle: string[]; /** * Returns the string form of the given TSToken SyntaxKind * @param kind the token's SyntaxKind * @returns the token applicable token as a string */ export declare function getTextForTokenKind(kind: ts.SyntaxKind): string | undefined;