eslint-plugin-tailwindcss
Advanced tools
Comparing version 3.3.5 to 3.3.6
@@ -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)', |
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148124
4105