Socket
Socket
Sign inDemoInstall

eslint-plugin-tailwindcss

Package Overview
Dependencies
Maintainers
1
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-tailwindcss - npm Package Compare versions

Comparing version 3.16.0 to 3.17.0

2

lib/rules/classnames-order.js

@@ -238,3 +238,3 @@ /**

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -241,0 +241,0 @@ }

@@ -182,3 +182,3 @@ /**

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -185,0 +185,0 @@ }

@@ -365,5 +365,4 @@ /**

const xOrYType = getBodyByShorthand(targetGroups, classname.parentType, xOrY);
const patchedName = `${cls.variants}${important}${minus}${mergedConfig.prefix}${xOrYType}${
absoluteVal.length ? '-' + absoluteVal : ''
}`;
const patchedName = `${cls.variants}${important}${minus}${mergedConfig.prefix}${xOrYType}${absoluteVal.length ? '-' + absoluteVal : ''
}`;
const toBeReplaced = sameVariantAndValue

@@ -505,3 +504,3 @@ .filter((c) => {

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -508,0 +507,0 @@ }

@@ -293,3 +293,3 @@ /**

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -296,0 +296,0 @@ }

@@ -182,3 +182,3 @@ /**

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -185,0 +185,0 @@ }

@@ -206,3 +206,3 @@ /**

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -209,0 +209,0 @@ }

@@ -185,3 +185,3 @@ /**

TaggedTemplateExpression: function (node) {
if (!tags.includes(node.tag.name)) {
if (!tags.includes(node.tag.name ?? node.tag.object?.name ?? node.tag.callee?.name)) {
return;

@@ -188,0 +188,0 @@ }

{
"name": "eslint-plugin-tailwindcss",
"version": "3.16.0",
"version": "3.17.0",
"description": "Rules enforcing best practices while using Tailwind CSS",

@@ -53,5 +53,5 @@ "keywords": [

"engines": {
"node": ">=12.13.0"
"node": ">=14.0.0"
},
"license": "MIT"
}

@@ -44,2 +44,3 @@ # eslint-plugin-tailwindcss

- fix: [support `tag.div` and `tag(Component)`](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/302) (by [nihalgonsalves](https://github.com/nihalgonsalves) πŸ™)
- feat: [**support flat config and ESLint 9**](https://github.com/francoismassart/eslint-plugin-tailwindcss/pull/330) (by [kazupon](https://github.com/kazupon) πŸ™)

@@ -46,0 +47,0 @@ - feat: new rule [**`no-unnecessary-arbitrary-value`**](docs/rules/no-unnecessary-arbitrary-value.md) πŸŽ‰

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc