You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring tailwind-merge, one creates their own twMerge function to call. I should add a guide on how to prevent to accidentally use import { twMerge } from 'tailwind-merge' instead of import { twMerge } from 'src/my-own-tailwind-merge' and explain the ESLint rule I use for that.
Activity
IEdiong commentedon Aug 16, 2024
Hi @dcastil, any thought on how to go about this?
dcastil commentedon Aug 17, 2024
@IEdiong I typically use ESLint to do that, more specifically the no-restricted-imports rule.
This is my config for it: