- optional
File globs to enable MDX linting on (typically every .mdx.mdx file).
When provided, registers the eslint-mdxeslint-mdx parser + mdxmdx plugin and applies the core no-unused-expressionsno-unused-expressions rule to embedded JS/JSX. Omit to disable entirely (no parser, no rules), mirroring how tailwindEntryPointtailwindEntryPoint gates Tailwind. Does not lint markdown prose. Requires eslint-plugin-mdxeslint-plugin-mdx (bundled as a dependency).
- optional
Utility function names whose string arguments should be scanned for non-canonical Tailwind classes.
Applied to both plugins (better-tailwindcss calleescallees + tailwind-canonical-classes calleeFunctionscalleeFunctions). Defaults to seedcord's cncn helper, the only call site that holds literal class strings; the twtw tagged template is handled by tailwindTaggedTemplatestailwindTaggedTemplates.
['cn']
- optional
Absolute path to the consumer's Tailwind entry CSS file (the one with @import 'tailwindcss'@import 'tailwindcss'). When provided, the canonical-class lint rules are registered as warnwarn: - better-tailwindcss/enforce-canonical-classesbetter-tailwindcss/enforce-canonical-classes (shorthand combining, e.g. h-N w-N → size-Nh-N w-N → size-N) - tailwind-canonical-classes/tailwind-canonical-classestailwind-canonical-classes/tailwind-canonical-classes (arbitrary-value scale normalization)
When omitted, both rules are off, useful for packages with no Tailwind surface (CLI, framework, types). Shared packages without their own globals.cssglobals.css should pass a sibling app's entry via resolveSharedTailwindEntryresolveSharedTailwindEntry.
Requires tailwindcsstailwindcss to be installed in the consuming package (an optional peerDependency).
- optional
Tagged template literal names whose template content should be scanned for non-canonical Tailwind classes.
Only the better-tailwindcssbetter-tailwindcss plugin supports tagged templates today; tailwind-canonical-classestailwind-canonical-classes canonicalizes JSX className attrs + string-literal callees only. Seedcord uses a custom twtw template tag in packages/ui/src/lib/tw.tspackages/ui/src/lib/tw.ts, so the default scans that.
['tw']
userConfigs: FlatConfigItem[]userConfigs: FlatConfigItem[]