UNPKG

eslint-plugin-better-tailwindcss

Version:

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

33 lines 1.7 kB
import type { BracesMeta, Literal, QuoteMeta } from "../types/ast.js"; import type { Warning } from "../types/async.js"; export declare function getWhitespace(classes: string): { leadingWhitespace: string | undefined; trailingWhitespace: string | undefined; }; export declare function getQuotes(raw: string): QuoteMeta; export declare function getContent(raw: string, quotes?: QuoteMeta, braces?: BracesMeta): string; export declare function splitClasses(classes: string): string[]; export declare function display(classes: string): string; export declare function augmentMessageWithWarnings(message: string, documentationUrl: string, warnings?: (Warning | undefined)[]): string; export declare function splitWhitespaces(classes: string): string[]; export declare function getIndentation(line: string): number; export declare function isClassSticky(literal: Literal, classIndex: number): boolean; export declare function getExactClassLocation(literal: Literal, startIndex: number, endIndex: number): { end: { column: number; line: number; }; start: { column: number; line: number; }; }; export declare function matchesName(pattern: string, name: string | undefined): boolean; export declare function replacePlaceholders(template: string, match: RegExpMatchArray | string[]): string; export declare function deduplicateLiterals(literals: Literal[]): Literal[]; export declare function createObjectPathElement(path?: string): string; export interface GenericNodeWithParent { parent: GenericNodeWithParent; } export declare function isGenericNodeWithParent(node: unknown): node is GenericNodeWithParent; //# sourceMappingURL=utils.d.ts.map