Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: bg-center mark as conflicting with bg-[image:xxx]
  • Loading branch information
francoismassart committed Oct 2, 2023
commit 33a8c2deca3f854312a7342ae0100670d0d2d00a
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ You can can the same information on your favorite command line software as well.

## Latest changelog

- fix: [bg-center mark as conflicting with bg-[image:xxx]](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/260)
- feat: [support enforcing truncate shorthand](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/255) (by [bezbac](https://github.com/bezbac) 🙏)
- fix: [parsing spreads in object expressions](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/251) (by [bezbac](https://github.com/bezbac) 🙏)
- fix: [do not handle non-ASCII whitespace as separator](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/246) (by [uhyo](https://github.com/uhyo) 🙏)
Expand Down
2 changes: 1 addition & 1 deletion lib/config/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ module.exports.groups = [
members: [
{
type: 'Background Image URL',
members: 'bg\\-\\[url\\((?<value>${backgroundImageUrl})\\)\\]',
members: 'bg\\-\\[(image\\:|url\\()(?<value>${backgroundImageUrl})\\)\\]',
},
{
type: 'Background Attachment',
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/rules/no-contradicting-classname.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,10 @@ ruleTester.run("no-contradicting-classname", rule, {
code: `
<div class="bg-[url('/image.jpg')] bg-center">Issue #186</div>`,
},
{
code: `
<section className="bg-[image:var(--bg-small)] bg-center" />`,
},
],

invalid: [
Expand Down