eslint-plugin-tailwindcss icon indicating copy to clipboard operation
eslint-plugin-tailwindcss copied to clipboard

[Feature request] Lint values in a object

Open arekbartnik opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Can't lint values in an object passed to a callee.

My list of callees: ["clsx", "cva"].

This doesn't work:

const buttons = cva({
  variants: {
    variant: {
      primary: "bg-white text-black font-bold px-4",
      secondary: "bg-black text-white font-semibold px-5",
    },
  },
});

This does:

const buttons = cva({
  variants: {
    variant: {
      primary: clsx("bg-white text-black font-bold px-4"),
      secondary: clsx("bg-black text-white font-semibold px-5"),
    },
  },
});

Describe the solution you'd like I would like for the first example to work.

arekbartnik avatar Apr 08 '22 11:04 arekbartnik