UNPKG

eslint-plugin-readable-tailwind

Version:

auto-wraps tailwind classes after a certain print width or class count into multiple lines to improve readability.

27 lines 2.76 kB
import type { Rule } from "eslint"; import type { BaseNode as ESBaseNode, CallExpression as ESCallExpression, Node as ESNode, SimpleLiteral as ESSimpleLiteral, TaggedTemplateExpression as ESTaggedTemplateExpression, TemplateElement as ESTemplateElement, TemplateLiteral as ESTemplateLiteral, VariableDeclarator as ESVariableDeclarator } from "estree"; import type { Literal, Node, StringLiteral } from "../types/ast.js"; import type { Callees, Matcher, Tags, Variables } from "../types/rule.js"; export declare function getLiteralsByESVariableDeclarator(ctx: Rule.RuleContext, node: ESVariableDeclarator, variables: Variables): Literal[]; export declare function getLiteralsByESCallExpression(ctx: Rule.RuleContext, node: ESCallExpression, callees: Callees): Literal[]; export declare function getLiteralsByTaggedTemplateExpression(ctx: Rule.RuleContext, node: ESTaggedTemplateExpression, tags: Tags): Literal[]; export declare function getLiteralsByESLiteralNode(ctx: Rule.RuleContext, node: ESBaseNode): Literal[]; export declare function getLiteralsByESMatchers(ctx: Rule.RuleContext, node: ESBaseNode, matchers: Matcher[]): Literal[]; export declare function getLiteralNodesByRegex(ctx: Rule.RuleContext, node: ESNode, regex: RegExp): ESNode[]; export declare function getStringLiteralByESStringLiteral(ctx: Rule.RuleContext, node: ESSimpleStringLiteral): StringLiteral | undefined; export declare function getLiteralsByESTemplateLiteral(ctx: Rule.RuleContext, node: ESTemplateLiteral): Literal[]; export declare function findParentESTemplateLiteralByESTemplateElement(node: ESNode & Partial<Rule.NodeParentExtension>): ESTemplateLiteral | undefined; export interface ESSimpleStringLiteral extends Rule.NodeParentExtension, ESSimpleLiteral { value: string; } export declare function isESObjectKey(node: ESBaseNode & Rule.NodeParentExtension | Node): boolean; export declare function isInsideObjectValue(node: ESBaseNode & Partial<Rule.NodeParentExtension>): boolean; export declare function isESSimpleStringLiteral(node: ESBaseNode): node is ESSimpleStringLiteral; export declare function isESStringLike(node: ESBaseNode): node is ESSimpleStringLiteral | ESTemplateElement; export declare function isESTemplateLiteral(node: ESBaseNode): node is ESTemplateLiteral; export declare function isESTemplateElement(node: ESBaseNode): node is ESTemplateElement; export declare function isESNode(node: unknown): node is ESNode; export declare function isESCallExpression(node: ESBaseNode): node is ESCallExpression; export declare function isESVariableDeclarator(node: ESBaseNode): node is ESVariableDeclarator; export declare function hasESNodeParentExtension(node: ESBaseNode): node is Rule.Node & Rule.NodeParentExtension; //# sourceMappingURL=es.d.ts.map