Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-tailwindcss

Package Overview
Dependencies
Maintainers
1
Versions
184
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.10.0 to 3.10.1-beta.0

3

lib/rules/classnames-order.js

@@ -98,3 +98,4 @@ /**

originalClassNamesValue = astUtil.extractValueFromNode(node);
const range = astUtil.extractRangeFromNode(node);
const rangeOffset = getOption('rangeOffset');
const range = astUtil.extractRangeFromNode(node, rangeOffset);
if (node.type === 'TextAttribute') {

@@ -101,0 +102,0 @@ start = range[0];

@@ -12,2 +12,3 @@ /**

const removeDuplicatesFromArray = require('./removeDuplicatesFromArray');
const getOption = require('./settings');

@@ -172,5 +173,5 @@ /**

function extractRangeFromNode(node) {
function extractRangeFromNode(node, rangeOffset = 0) {
if (node.type === 'TextAttribute' && node.name === 'class') {
return [node.valueSpan.fullStart.offset, node.valueSpan.end.offset];
return [node.valueSpan.fullStart.offset + rangeOffset, node.valueSpan.end.offset + rangeOffset];
}

@@ -177,0 +178,0 @@ switch (node.value.type) {

@@ -21,2 +21,4 @@ 'use strict';

return ['**/*.css', '!**/node_modules', '!**/.*', '!**/dist', '!**/build'];
case 'rangeOffset':
return 0;
case 'removeDuplicates':

@@ -31,3 +33,3 @@ return true;

case 'classRegex':
return "^class(Name)?$"
return '^class(Name)?$';
}

@@ -34,0 +36,0 @@ }

{
"name": "eslint-plugin-tailwindcss",
"version": "3.10.0",
"version": "3.10.1-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