Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' of github.com:francoismassart/eslint-plugin-tai…
…lwindcss into fix/issue-40-jit-arbitrary-values

# Conflicts:
#	tests/lib/rules/no-contradicting-classname.js
  • Loading branch information
francoismassart committed Aug 17, 2021
commit ab1e22efdb880a2b0c26a4ee57ba027597d2ee5c
39 changes: 39 additions & 0 deletions tests/lib/rules/no-contradicting-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,45 @@ ruleTester.run("no-contradicting-classname", rule, {
},
],
},
{
code: `
myTag\`
text-white
rounded-md
py-5
px-10
text-sm
\${
type === 'primary' &&
\`
bg-black
hover:bg-blue
\`
}
\${
type === 'secondary' &&
\`
bg-transparent
hover:bg-green
\`
}
disabled:cursor-not-allowed
\`
`,
options: [
{
tags: ["myTag"],
},
],
},
{
code: `
<div class="flex flex-row-reverse space-x-4 space-x-reverse">
<div>1</div>
<div>2</div>
<div>3</div>
</div>`,
},
],

invalid: [
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.