Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: francoismassart/eslint-plugin-tailwindcss
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.13.0
Choose a base ref
...
head repository: francoismassart/eslint-plugin-tailwindcss
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.13.1
Choose a head ref
  • 4 commits
  • 12 files changed
  • 1 contributor

Commits on Jun 27, 2023

  1. docs: minor typo

    fixes #258
    francoismassart committed Jun 27, 2023

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    018f05c View commit details
  2. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    6b6c0dd View commit details

Commits on Dec 29, 2023

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    e027df6 View commit details
  2. 3.13.1

    francoismassart committed Dec 29, 2023

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    0da9aa0 View commit details
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -30,16 +30,17 @@ You can can the same information on your favorite command line software as well.

## 🤝 Support `eslint-plugin-tailwindcss`

| 🥰 How you can support us? | 💪 They did it! |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Premium Sponsors** <br /> Support us by becoming a sponsor. <br /> [Become a recurring sponsor](https://github.com/sponsors/francoismassart?frequency=recurring) | <a href="https://daily.dev/" target="_blank"><img width="150" src="https://raw.githubusercontent.com/francoismassart/eslint-plugin-tailwindcss/master/sponsors/daily.dev.jpg"></a> |
| **Current Sponsors** <br /> Any amount is appreciated. | <a href="https://github.com/theMosaad" target="_blank"><img src="https://avatars.githubusercontent.com/u/48773133?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@theMosaad"></a> <a href="https://github.com/acewf" target="_blank"><img src="https://avatars.githubusercontent.com/u/4835572?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@acewf"></a> <a href="https://github.com/charkour" target="_blank"><img src="https://avatars.githubusercontent.com/u/33156025?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@charkour"></a> <a href="https://github.com/dailydotdev" target="_blank"><img class="avatar" src="https://avatars.githubusercontent.com/u/41463883?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@dailydotdev"></a> |
| **Past sponsors** <br /> Even if this is just a one-time thing. <br /> [Become a backer](https://github.com/sponsors/francoismassart?frequency=one-time) | <a href="https://github.com/aniravi24" target="_blank"><img src="https://avatars.githubusercontent.com/u/5902976?s=100&amp;v=4" width="50" height="50" style="border-radius:100%;" alt="@aniravi24"></a> <a href="https://github.com/mongolyy" target="_blank"><img src="https://avatars.githubusercontent.com/u/10972787?s=100&amp;v=4" width="50" height="50" style="border-radius:100%;" alt="@mongolyy"></a> <a href="https://github.com/t3dotgg" target="_blank"><img src="https://avatars.githubusercontent.com/u/6751787?s=100&amp;v=4" width="50" height="50" style="border-radius:100%;" alt="@t3dotgg"></a> |
| **Contributors** <br /> This project can evolve thanks to all the people who contribute. <br /> You are welcome to [contribute](CONTRIBUTING.md) to this project by reporting issues, feature requests or even opening Pull Requests. | <a href="https://github.com/francoismassart/eslint-plugin-tailwindcss/graphs/contributors"><img src="https://contrib.rocks/image?repo=francoismassart/eslint-plugin-tailwindcss&width=300&columns=4" /></a> |
| **Supporters** <br /> Talk about the plugin on your social networks | <a href="https://twitter.com/search?q=eslint-plugin-tailwindcss&src=recent_search_click" target="_blank">eslint-plugin-tailwindcss on Twitter</a> |
| 🥰 How you can support us? | 💪 They did it! |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Premium Sponsors** <br /> Support us by becoming a sponsor. <br /> [Become a recurring sponsor](https://github.com/sponsors/francoismassart?frequency=recurring) | <a href="https://daily.dev/" target="_blank"><img width="150" src="https://raw.githubusercontent.com/francoismassart/eslint-plugin-tailwindcss/master/sponsors/daily.dev.jpg"></a> |
| **Current Sponsors** <br /> Any amount is appreciated. | <a href="https://github.com/jonz94" target="_blank"><img src="https://avatars.githubusercontent.com/u/16042676?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@jonz94"></a> <a href="https://github.com/theMosaad" target="_blank"><img src="https://avatars.githubusercontent.com/u/48773133?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@theMosaad"></a> <a href="https://github.com/acewf" target="_blank"><img src="https://avatars.githubusercontent.com/u/4835572?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@acewf"></a> <a href="https://github.com/charkour" target="_blank"><img src="https://avatars.githubusercontent.com/u/33156025?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@charkour"></a> <a href="https://github.com/dailydotdev" target="_blank"><img class="avatar" src="https://avatars.githubusercontent.com/u/41463883?s=150&amp;v=4" width="75" height="75" style="border-radius:100%;" alt="@dailydotdev"></a> |
| **Past sponsors** <br /> Even if this is just a one-time thing. <br /> [Become a backer](https://github.com/sponsors/francoismassart?frequency=one-time) | <a href="https://github.com/aniravi24" target="_blank"><img src="https://avatars.githubusercontent.com/u/5902976?s=100&amp;v=4" width="50" height="50" style="border-radius:100%;" alt="@aniravi24"></a> <a href="https://github.com/mongolyy" target="_blank"><img src="https://avatars.githubusercontent.com/u/10972787?s=100&amp;v=4" width="50" height="50" style="border-radius:100%;" alt="@mongolyy"></a> <a href="https://github.com/t3dotgg" target="_blank"><img src="https://avatars.githubusercontent.com/u/6751787?s=100&amp;v=4" width="50" height="50" style="border-radius:100%;" alt="@t3dotgg"></a> |
| **Contributors** <br /> This project can evolve thanks to all the people who contribute. <br /> You are welcome to [contribute](CONTRIBUTING.md) to this project by reporting issues, feature requests or even opening Pull Requests. | <a href="https://github.com/francoismassart/eslint-plugin-tailwindcss/graphs/contributors"><img src="https://contrib.rocks/image?repo=francoismassart/eslint-plugin-tailwindcss&width=300&columns=4" /></a> |
| **Supporters** <br /> Talk about the plugin on your social networks | <a href="https://twitter.com/search?q=eslint-plugin-tailwindcss&src=recent_search_click" target="_blank">eslint-plugin-tailwindcss on Twitter</a> |

## 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) 🙏)
2 changes: 1 addition & 1 deletion docs/rules/classnames-order.md
Original file line number Diff line number Diff line change
@@ -74,4 +74,4 @@ Optional, if you are using tagged templates, you should provide the tags in this

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes
2 changes: 1 addition & 1 deletion docs/rules/enforces-negative-arbitrary-values.md
Original file line number Diff line number Diff line change
@@ -88,4 +88,4 @@ Optional, if you are using tagged templates, you should provide the tags in this

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes
2 changes: 1 addition & 1 deletion docs/rules/enforces-shorthand.md
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ Optional, if you are using tagged templates, you should provide the tags in this

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes

## Further Reading

2 changes: 1 addition & 1 deletion docs/rules/migration-from-tailwind-2.md
Original file line number Diff line number Diff line change
@@ -125,4 +125,4 @@ Optional, if you are using tagged templates, you should provide the tags in this

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes
2 changes: 1 addition & 1 deletion docs/rules/no-arbitrary-value.md
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ Optional, if you are using tagged templates, you should provide the tags in this

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes

## Further Reading

2 changes: 1 addition & 1 deletion docs/rules/no-contradicting-classname.md
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ Optional, if you are using tagged templates, you should provide the tags in this

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes

## Further Reading

2 changes: 1 addition & 1 deletion docs/rules/no-custom-classname.md
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ e.g. I want to allow custom classnames while checking the validity of the `text-

### `classRegex` (default: `"^class(Name)?$"`)

Optional, can be used to support custom attribues
Optional, can be used to support custom attributes

## Further Reading

2 changes: 1 addition & 1 deletion lib/config/groups.js
Original file line number Diff line number Diff line change
@@ -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',
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-tailwindcss",
"version": "3.13.0",
"version": "3.13.1",
"description": "Rules enforcing best practices while using Tailwind CSS",
"keywords": [
"eslint",
4 changes: 4 additions & 0 deletions tests/lib/rules/no-contradicting-classname.js
Original file line number Diff line number Diff line change
@@ -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: [