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.15.2-beta.1 to 3.15.3-beta.0

2

lib/rules/no-arbitrary-value.js

@@ -136,3 +136,3 @@ /**

const parsed = groupUtil.parseClassname(cls, [], mergedConfig, idx);
if (/\[.*\]/i.test(parsed.body)) {
if (/\[.*\]/i.test(parsed.name)) {
forbidden.push(parsed.name);

@@ -139,0 +139,0 @@ }

@@ -235,2 +235,5 @@ /**

const noneOrMinus = negativeSubstitutes[idx] ? '-' : '';
if (key === 'DEFAULT') {
return parsed.variants + noneOrMinus + patchedBody.substring(0, patchedBody.length - 1);
}
return parsed.variants + noneOrMinus + patchedBody + key;

@@ -237,0 +240,0 @@ })

@@ -39,10 +39,2 @@ /**

break;
case 'JSXAttribute':
if (node.name.type === 'JSXNamespacedName') {
const ns = node.name.namespace.name || '';
name = (ns.length ? ns + ':' : '') + node.name.name.name;
} else {
name = node.name.name;
}
break;
default:

@@ -197,3 +189,3 @@ name = node.name.name;

if (node.value === undefined) {
return [0, 0];
return [0,0];
}

@@ -200,0 +192,0 @@ switch (node.value.type) {

{
"name": "eslint-plugin-tailwindcss",
"version": "3.15.2-beta.1",
"version": "3.15.3-beta.0",
"description": "Rules enforcing best practices while using Tailwind CSS",

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

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