UNPKG

eslint-plugin-readable-tailwind

Version:

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

23 lines 2.35 kB
import type { Rule } from "eslint"; import type { BaseNode as ESBaseNode, Node as ESNode, Program } from "estree"; import type { AttributeMatchers, AttributeName, AttributeRegex, Attributes, CalleeMatchers, CalleeName, CalleeRegex, Callees, MatcherFunctions, Regex, TagMatchers, TagName, TagRegex, Tags, VariableMatchers, VariableName, VariableRegex, Variables } from "../types/rule.js"; export declare function getLiteralNodesByMatchers(ctx: Rule.RuleContext, node: ESBaseNode, matcherFunctions: MatcherFunctions): ESNode[]; export declare function findMatchingNestedNodes(node: ESNode | Program, matcherFunctions: MatcherFunctions): ESNode[]; export declare function findMatchingParentNodes(node: ESNode & Partial<Rule.NodeParentExtension>, matcherFunctions: MatcherFunctions): ESNode[]; export declare function getObjectPath(node: ESNode & Partial<Rule.NodeParentExtension>): string | undefined; export declare function matchesPathPattern(path: string, pattern: Regex): boolean; export declare function isCalleeName(callee: Callees[number]): callee is CalleeName; export declare function isCalleeRegex(callee: Callees[number]): callee is CalleeRegex; export declare function isCalleeMatchers(callee: Callees[number]): callee is CalleeMatchers; export declare function isVariableName(variable: Variables[number]): variable is VariableName; export declare function isVariableRegex(variable: Variables[number]): variable is VariableRegex; export declare function isVariableMatchers(variable: Variables[number]): variable is VariableMatchers; export declare function isTagName(tag: Tags[number]): tag is TagName; export declare function isTagRegex(tag: Tags[number]): tag is TagRegex; export declare function isTagMatchers(tag: Tags[number]): tag is TagMatchers; export declare function isAttributesName(attributes: Attributes[number]): attributes is AttributeName; export declare function isAttributesRegex(attributes: Attributes[number]): attributes is AttributeRegex; export declare function isAttributesMatchers(attributes: Attributes[number]): attributes is AttributeMatchers; export declare function isInsideConditionalExpressionTest(node: ESNode & Partial<Rule.NodeParentExtension>): boolean; export declare function isInsideLogicalExpressionLeft(node: ESNode & Partial<Rule.NodeParentExtension>): boolean; //# sourceMappingURL=matchers.d.ts.map