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.3.5 to 3.3.6

5

lib/config/groups.js

@@ -835,2 +835,7 @@ /**

{
type: 'Deprecated Border Opacity',
members: 'border\\-opacity\\-(?<value>${borderOpacity})',
deprecated: true,
},
{
type: 'Border Style',

@@ -837,0 +842,0 @@ members: 'border\\-(solid|dashed|dotted|double|hidden|none)',

8

lib/rules/migration-from-tailwind-2.js

@@ -24,3 +24,3 @@ /**

const CLASSNAME_CHANGED_MSG = `Classname '{{deprecated}}' should be updated to '{{updated}}' in Tailwind CSS v3!`;
const BG_OPACITY_DEPRECATED_MSG = `Classname '{{classname}}' should be replaced by an opacity suffix (eg. '/{{value}}')`;
const OPACITY_CLASS_DEPRECATED_MSG = `Classname '{{classname}}' should be replaced by an opacity suffix (eg. '/{{value}}')`;

@@ -39,3 +39,3 @@ module.exports = {

classnameChanged: CLASSNAME_CHANGED_MSG,
bgOpacityDeprecated: BG_OPACITY_DEPRECATED_MSG,
classnameOpacityDeprecated: OPACITY_CLASS_DEPRECATED_MSG,
},

@@ -190,3 +190,3 @@ fixable: 'code',

}
let bgOpacityRes = /^(bg|ring)\-opacity\-(?<value>\d{1,})$/i.exec(suffix);
let bgOpacityRes = /^(bg|border|ring)\-opacity\-(?<value>\d{1,})$/i.exec(suffix);
if (bgOpacityRes && bgOpacityRes.groups && bgOpacityRes.groups.value) {

@@ -239,3 +239,3 @@ const opacityVal = bgOpacityRes.groups.value;

node,
messageId: 'bgOpacityDeprecated',
messageId: 'classnameOpacityDeprecated',
data: {

@@ -242,0 +242,0 @@ classname: bgClass[0],

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

case 'backgroundOpacity':
case 'borderOpacity':
case 'opacity':

@@ -206,0 +207,0 @@ case 'ringOpacity':

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