/** * The token contract, read inside a class list joined by hand (UIG-42): * *
* * The Tailwind plugin stops at a function call, so it never reads the list in * front of `.join(' ')`, and no setting can make it: a call it is told about is * read at its arguments, which here is the `' '`. This rule reads the list and * tests each class against the same patterns, with the same messages, as the * rule it stands in for. It registers once per rule it mirrors, so an error * stays an error and a warning a warning (`token-joined/classes`, `/values`, * `/spacing`). * * A list joined with anything but one space is not a class list, and a * sentence built this way passes unless one of its words is itself such a * class, as in `'set text-sm here'`. Only strings written in the list are * read, directly or behind `cond && …`, `a ? … : …` and a template's fixed * parts; a list worked out while it runs cannot be read. */ import type { ESLint } from 'eslint'; /** One pattern and its message, the shape `no-restricted-classes` takes. `$0` is the class. */ export interface Restriction { pattern: string; message: string; } /** The plugin, as the token lint registers it: one rule, under three names. */ export declare const tokenJoinedPlugin: ESLint.Plugin; //# sourceMappingURL=token-joined.d.ts.map