Skip to content

Commit e027df6

Browse files
fix: bg-center mark as conflicting with bg-[image:xxx] (#301)
1 parent 6b6c0dd commit e027df6

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ You can can the same information on your favorite command line software as well.
4040

4141
## Latest changelog
4242

43+
- fix: [bg-center mark as conflicting with bg-[image:xxx]](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/260)
4344
- feat: [support enforcing truncate shorthand](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/255) (by [bezbac](https://github.com/bezbac) 🙏)
4445
- fix: [parsing spreads in object expressions](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/251) (by [bezbac](https://github.com/bezbac) 🙏)
4546
- fix: [do not handle non-ASCII whitespace as separator](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/246) (by [uhyo](https://github.com/uhyo) 🙏)

lib/config/groups.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ module.exports.groups = [
621621
members: [
622622
{
623623
type: 'Background Image URL',
624-
members: 'bg\\-\\[url\\((?<value>${backgroundImageUrl})\\)\\]',
624+
members: 'bg\\-\\[(image\\:|url\\()(?<value>${backgroundImageUrl})\\)\\]',
625625
},
626626
{
627627
type: 'Background Attachment',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-tailwindcss",
3-
"version": "3.13.0",
3+
"version": "3.13.1-beta.0",
44
"description": "Rules enforcing best practices while using Tailwind CSS",
55
"keywords": [
66
"eslint",

tests/lib/rules/no-contradicting-classname.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ ruleTester.run("no-contradicting-classname", rule, {
295295
code: `
296296
<div class="bg-[url('/image.jpg')] bg-center">Issue #186</div>`,
297297
},
298+
{
299+
code: `
300+
<section className="bg-[image:var(--bg-small)] bg-center" />`,
301+
},
298302
],
299303

300304
invalid: [

0 commit comments

Comments
 (0)