UNPKG

eslint-plugin-better-tailwindcss

Version:

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

1,145 lines (1,144 loc) 157 kB
type Severity = "error" | "warn"; type PluginRules = typeof rules[number]; type RuleObject = { [Rule in PluginRules as Rule extends any ? Rule["name"] : never]: Rule["rule"]; }; declare const rules: readonly [{ category: "stylistic"; messages: { readonly order: "Incorrect class order. Expected\n\n{{ notSorted }}\n\nto be\n\n{{ sorted }}"; } | undefined; name: "enforce-consistent-class-order"; readonly options: { cwd?: string | undefined; rootFontSize?: number | undefined; detectComponentClasses: boolean; tsconfig?: string | undefined; tailwindConfig?: string | undefined; messageStyle: "visual" | "compact" | "raw"; entryPoint?: string | undefined; tags?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; variables?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; attributes?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; callees?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; selectors: ({ callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; } | { kind: import("../types/rule.js").SelectorKind.Attribute; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; } | { kind: import("../types/rule.js").SelectorKind.Variable; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; })[]; } & { componentClassOrder: "asc" | "desc" | "preserve"; componentClassPosition: "start" | "end"; order: "strict" | "asc" | "desc" | "official"; unknownClassOrder: "asc" | "desc" | "preserve"; unknownClassPosition: "start" | "end"; }; recommended: true; rule: { create: (ctx: import("node_modules/eslint/lib/types/index.js").Rule.RuleContext) => import("node_modules/eslint/lib/types/index.js").Rule.RuleListener; meta: { messages?: { readonly order: "Incorrect class order. Expected\n\n{{ notSorted }}\n\nto be\n\n{{ sorted }}"; }; docs: { description: string; recommended: boolean; url: string; }; fixable: "code" | undefined; schema: { additionalProperties: false; properties: Record<string, boolean | import("node_modules/@valibot/to-json-schema/dist/index.mjs").JsonSchema> | undefined; type: "object"; }[]; type: "problem" | "layout"; }; }; }, { category: "stylistic"; messages: { readonly position: "Incorrect important position. '{{ className }}' should be '{{ fix }}'."; } | undefined; name: "enforce-consistent-important-position"; readonly options: { cwd?: string | undefined; rootFontSize?: number | undefined; detectComponentClasses: boolean; tsconfig?: string | undefined; tailwindConfig?: string | undefined; messageStyle: "visual" | "compact" | "raw"; entryPoint?: string | undefined; tags?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; variables?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; attributes?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; callees?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; selectors: ({ callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; } | { kind: import("../types/rule.js").SelectorKind.Attribute; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; } | { kind: import("../types/rule.js").SelectorKind.Variable; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; })[]; } & { position?: "recommended" | "legacy" | undefined; }; recommended: false; rule: { create: (ctx: import("node_modules/eslint/lib/types/index.js").Rule.RuleContext) => import("node_modules/eslint/lib/types/index.js").Rule.RuleListener; meta: { messages?: { readonly position: "Incorrect important position. '{{ className }}' should be '{{ fix }}'."; }; docs: { description: string; recommended: boolean; url: string; }; fixable: "code" | undefined; schema: { additionalProperties: false; properties: Record<string, boolean | import("node_modules/@valibot/to-json-schema/dist/index.mjs").JsonSchema> | undefined; type: "object"; }[]; type: "problem" | "layout"; }; }; }, { category: "stylistic"; messages: { readonly missing: "Incorrect line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}"; readonly unnecessary: "Unnecessary line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}"; } | undefined; name: "enforce-consistent-line-wrapping"; readonly options: { cwd?: string | undefined; rootFontSize?: number | undefined; detectComponentClasses: boolean; tsconfig?: string | undefined; tailwindConfig?: string | undefined; messageStyle: "visual" | "compact" | "raw"; entryPoint?: string | undefined; tags?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; variables?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; attributes?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; callees?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; selectors: ({ callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; } | { kind: import("../types/rule.js").SelectorKind.Attribute; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; } | { kind: import("../types/rule.js").SelectorKind.Variable; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; })[]; } & { classesPerLine: number; group: "never" | "newLine" | "emptyLine"; indent: number | "tab"; lineBreakStyle: "unix" | "windows"; preferSingleLine: boolean; printWidth: number; strictness: "loose" | "strict"; tabWidth: number; vueConvertToBinding: boolean; }; recommended: true; rule: { create: (ctx: import("node_modules/eslint/lib/types/index.js").Rule.RuleContext) => import("node_modules/eslint/lib/types/index.js").Rule.RuleListener; meta: { messages?: { readonly missing: "Incorrect line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}"; readonly unnecessary: "Unnecessary line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}"; }; docs: { description: string; recommended: boolean; url: string; }; fixable: "code" | undefined; schema: { additionalProperties: false; properties: Record<string, boolean | import("node_modules/@valibot/to-json-schema/dist/index.mjs").JsonSchema> | undefined; type: "object"; }[]; type: "problem" | "layout"; }; }; }, { category: "stylistic"; messages: { readonly order: "Incorrect variant order. '{{ className }}' should be '{{ fix }}'."; } | undefined; name: "enforce-consistent-variant-order"; readonly options: { cwd?: string | undefined; rootFontSize?: number | undefined; detectComponentClasses: boolean; tsconfig?: string | undefined; tailwindConfig?: string | undefined; messageStyle: "visual" | "compact" | "raw"; entryPoint?: string | undefined; tags?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; variables?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; attributes?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; callees?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; selectors: ({ callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; } | { kind: import("../types/rule.js").SelectorKind.Attribute; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; } | { kind: import("../types/rule.js").SelectorKind.Variable; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; })[]; } & { [x: string]: unknown; }; recommended: false; rule: { create: (ctx: import("node_modules/eslint/lib/types/index.js").Rule.RuleContext) => import("node_modules/eslint/lib/types/index.js").Rule.RuleListener; meta: { messages?: { readonly order: "Incorrect variant order. '{{ className }}' should be '{{ fix }}'."; }; docs: { description: string; recommended: boolean; url: string; }; fixable: "code" | undefined; schema: { additionalProperties: false; properties: Record<string, boolean | import("node_modules/@valibot/to-json-schema/dist/index.mjs").JsonSchema> | undefined; type: "object"; }[]; type: "problem" | "layout"; }; }; }, { category: "stylistic"; messages: { readonly incorrect: "Incorrect variable syntax: {{ className }}."; } | undefined; name: "enforce-consistent-variable-syntax"; readonly options: { cwd?: string | undefined; rootFontSize?: number | undefined; detectComponentClasses: boolean; tsconfig?: string | undefined; tailwindConfig?: string | undefined; messageStyle: "visual" | "compact" | "raw"; entryPoint?: string | undefined; tags?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; variables?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; attributes?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; callees?: (string | [string, ({ match: import("../types/rule.js").MatcherType.String; } | { match: import("../types/rule.js").MatcherType.ObjectKey; pathPattern?: string | undefined; } | { match: import("../types/rule.js").MatcherType.ObjectValue; pathPattern?: string | undefined; })[]])[] | undefined; selectors: ({ callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { callTarget?: number | "all" | "first" | "last" | undefined; kind: import("../types/rule.js").SelectorKind.Callee; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; targetArgument?: number | "all" | "first" | "last" | undefined; targetCall?: number | "all" | "first" | "last" | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; path?: string | undefined; } | { kind: import("../types/rule.js").SelectorKind.Tag; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name?: string | undefined; path: string; } | { kind: import("../types/rule.js").SelectorKind.Attribute; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; } | { kind: import("../types/rule.js").SelectorKind.Variable; match?: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; } | { match: ({ type: import("../types/rule.js").MatcherType.String; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectKey; } | { path?: string | undefined; type: import("../types/rule.js").MatcherType.ObjectValue; })[]; type: import("../types/rule.js").MatcherType.AnonymousFunctionReturn; })[] | undefined; name: string; })[]; } & { syntax: "variable" | "shorthand"; }; recommended: false; rule: { create: (ctx: import("node_modules/eslint/lib/types/index.js").Rule.RuleContext) => import("node_modules/eslint/lib/types/index.js").Rule.RuleListener; meta: { messages?: { readonly incorrect: "Incorrect variable syntax: {{ className }}."; }; docs: { description: string; recommended: boolean; url: string; }; fixable: "code" | undefined; schema: { additionalProperties: false; properties: Record<string, boolean | import("node_modules/@valibot/to-json-schema/dist/index.mjs").JsonSchema> | undefined; type: "object"; }[]; type: "problem" | "layout"; }; }; }, { category: "stylistic"; messages: { readonly multiple: "Physical class detected. Replace \"{{ className }}\" with logical classes \"{{fix}}\"."; readonly single: "Physical class detected. Replace \"{{ className }}\" with logical class \"{{fix}}\"."; } | undefined; name: "enforce-logical-properties"; readonly options: { cwd?: string | undefined; rootFontSize?: number | undefined;