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 • 1.12 kB
TypeScript
import type { Rule } from "eslint";
import type { Literal, Node, QuoteMeta } from "../types/ast.js";
export declare function getCommonOptions(ctx: Rule.RuleContext): {
attributes: any;
callees: any;
tags: any;
tailwindConfig: any;
variables: any;
};
export declare function getWhitespace(classes: string): {
leadingWhitespace: string | undefined;
trailingWhitespace: string | undefined;
};
export declare function getQuotes(raw: string): QuoteMeta;
export declare function splitClasses(classes: string): string[];
export declare function display(classes: string): string;
export declare function splitWhitespaces(classes: string): string[];
export declare function findLineStartPosition(ctx: Rule.RuleContext, node: Node): number;
export declare function findLiteralStartPosition(ctx: Rule.RuleContext, literal: Literal): number;
export declare function isLiteral(node: Node): node is Literal;
export declare function matchesName(pattern: string, name: string | undefined): boolean;
export declare function deduplicateLiterals(literals: Literal[]): Literal[];
//# sourceMappingURL=utils.d.ts.map