Socket
Socket
Sign inDemoInstall

eslint-plugin-tailwindcss

Package Overview
Dependencies
Maintainers
0
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.17.3-beta.2 to 3.17.3-beta.3

4

lib/util/ast.js

@@ -99,3 +99,3 @@ /**

function isArrayExpression(node) {
return node.value && node.value.type === 'VExpressionContainer' && node.value.expression.type === 'ArrayExpression';
return node.value && node.value.type === 'VExpressionContainer' && node.value.expression && node.value.expression.type === 'ArrayExpression';
}

@@ -110,3 +110,3 @@

function isObjectExpression(node) {
return node.value && node.value.type === 'VExpressionContainer' && node.value.expression.type === 'ObjectExpression';
return node.value && node.value.type === 'VExpressionContainer' && node.value.expression && node.value.expression.type === 'ObjectExpression';
}

@@ -113,0 +113,0 @@

@@ -6,2 +6,3 @@ 'use strict';

const postcss = require('postcss');
const lastClassFromSelectorRegexp = /\.([^\.\,\s\n\:\(\)\[\]\'~\+\>\*\\]*)/gim;
const removeDuplicatesFromArray = require('./removeDuplicatesFromArray');

@@ -53,4 +54,3 @@

root.walkRules((rule) => {
const regexp = /\.([^\.\,\s\n\:\(\)\[\]\'~\+\>\*\\]*)/gim;
const matches = [...rule.selector.matchAll(regexp)];
const matches = [...rule.selector.matchAll(lastClassFromSelectorRegexp)];
const classnames = matches.map((arr) => arr[1]);

@@ -57,0 +57,0 @@ detectedClassnames = new Set([...detectedClassnames, ...classnames]);

{
"name": "eslint-plugin-tailwindcss",
"version": "3.17.3-beta.2",
"version": "3.17.3-beta.3",
"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